/* =========================
   RESET / BASE
========================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.base {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: #0f172a;
  color: #e5e7eb;
  min-height: 100vh;
}

/* =========================
   HEADER
========================= */
.header {
  background: #020617;
  border-bottom: 1px solid #1e293b;
  width: 100%;
  padding: 20px 28px;
}
.header-left {
  max-width: 1200px;
}

.header h1 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.counter {
  font-size: 0.95rem;
  color: #94a3b8;
  margin-bottom: 12px;
}

/* =========================
   INPUTS / BUTTONS
========================= */
input[type="text"] {
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 8px;
  padding: 10px 12px;
  color: #e5e7eb;
  font-size: 0.9rem;
}

input[type="text"]::placeholder {
  color: #64748b;
}

button,
.import-btn {
  background: #1e293b;
  border: 1px solid #334155;
    line-height: 1;
  display: inline-flex;
  height: 34px;

  color: #e5e7eb;
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.2s, border 0.2s;
}

button:hover,
.import-btn:hover {
  background: #334155;
  border-color: #475569;
}

/* =========================
   IMPORT / EXPORT
========================= */
.import-export {
  display: flex;
  gap: 10px;
  margin: 14px 0;
}

.import-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* =========================
   FILTERS
========================= */
.filters {
  display: flex;
  gap: 16px;
  margin-top: 10px;
  font-size: 0.85rem;
}

.filters label {
  cursor: pointer;
  color: #cbd5f5;
}

.filters input {
  margin-right: 4px;
}

/* =========================
   SORT
========================= */
.sort-container {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sort-container label {
  font-size: 0.85rem;
  color: #cbd5f5;
  margin-top: 1px;
}

.sort-container select {
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 8px;
  color: #e5e7eb;
  padding: 3px 8px;
  font-size: 0.85rem;
}

/* =========================
   HEADER RIGHT
========================= */
.header-right {
  position: absolute;
  top: 20px;
  right: 28px;
}

.tip-lang {
  display: flex;
  align-items: center;
  gap: 14px;
}

.tipjar a {
  text-decoration: none;
  color: #facc15;
  font-size: 0.85rem;
}

.lang-switch {
  display: flex;
  gap: 6px;
}

.lang-flag {
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s, transform 0.2s;
}

.lang-flag.active,
.lang-flag:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* =========================
   GRID
========================= */
main {
  padding: 24px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 12px;
}

/* =========================
   CHAMPION CARD
========================= */
.champion {
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 10px;
  padding: 7px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s, border 0.15s, box-shadow 0.15s;
}

.champion img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 6px;
}

.champion-name {
  font-size: 0.75rem;
  color: #cbd5f5;
}

.champion:hover {
  transform: translateY(-2px);
  border-color: #475569;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.champion.won {
  border-color: #22c55e;
  background: linear-gradient(
    180deg,
    rgba(34, 197, 94, 0.15),
    rgba(2, 6, 23, 1)
  );
}

.champion.won .champion-name {
  color: #86efac;
}

/* =========================
   MODAL
========================= */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 14px;
  padding: 24px;
  width: 90%;
  max-width: 420px;
  text-align: center;
}

.modal-content p {
  margin-bottom: 18px;
  font-size: 0.9rem;
  color: #e5e7eb;
}

.modal-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.close {
  position: absolute;
  top: 14px;
  right: 18px;
  cursor: pointer;
  font-size: 1.3rem;
  color: #94a3b8;
}

.close:hover {
  color: #e5e7eb;
}
.import-export {
  display: flex;
  gap: 8px;
}

.action-btn {
  height: 34px;
  padding: 0 12px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-size: 0.85rem;
  font-family: inherit;
  font-weight: 400;

  background: #1e293b;
  color: #e5e7eb;
  border: none;
  border-radius: 6px;

  cursor: pointer;
  transition: background 0.15s ease;
}

.action-btn:hover {
  background: #334155;
}

/* Quitar el azul y el subrayado por defecto */
.tipjar {
  text-decoration: none; /* Quita el subrayado */
  color: inherit;        /* Hereda el color del texto de tu app (blanco/gris) */
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: opacity 0.2s;
}

/* Efecto al pasar el ratón */
.tipjar:hover {
  text-decoration: underline; /* Solo se subraya al pasar el ratón (opcional) */
  opacity: 0.8;
}

/* Contenedor para separarlo un poco de las banderas */
.tipjar-container {
  display: flex;
  align-items: center;
}
.search-wrapper {
  position: relative;
  flex: 1;
  min-width: 100%;
  max-width: clamp(320px, 40vw, 420px);
}

.search-wrapper input {
  width: 100%;
  padding-left: 28px;
  padding-right: 10px;
}
.clear-btn {
  position: absolute;
  left: 8px;
  top: 45%;
  transform: translateY(-50%);
  font-size: 16px;
  color: #94a3b8;
  cursor: pointer;
  user-select: none;
  display: none;
}

.clear-btn:hover {
  color: #e5e7eb;
}
/* =========================
   SEO FOOTER STYLE
========================= */
.seo-footer {
  padding: 3rem 2rem 1rem;
  background: #020617; /* Color de tu cabecera */
  border-top: 1px solid #1e293b;
  color: #94a3b8;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-section h3 {
  color: #e5e7eb;
  font-size: 1rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-section p {
  font-size: 0.85rem;
  line-height: 1.6;
}

.footer-section strong {
  color: #3b82f6; /* Un toque de azul para resaltar keywords */
}

/* Estilo para las Tags/Keywords */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tags span {
  font-size: 0.75rem;
  background: #0f172a;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid #1e293b;
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid #0f172a;
  text-align: center;
  font-size: 0.75rem;
  opacity: 0.6;
}

/* Ajuste para móviles */
@media (max-width: 600px) {
  .seo-footer {
    padding: 2rem 1rem;
    text-align: center;
  }
  .tags {
    justify-content: center;
  }
}
.seo-content {
  max-width: 900px;
  margin: 30px auto;
  padding: 0 20px;
}

.seo-inner {
  margin-top: 15px;
}

.seo-inner h3 {
  margin-top: 30px;
  font-size: 1.1rem;
}

.seo-inner ul {
  margin: 15px 0 20px 20px;
  line-height: 1.6;
}