body {
      font-family: 'Poppins', sans-serif;
      margin: 2rem;
      background-color: #f5f5f5;
      color: #333;
    }
    h1 {
      color: #333;
      font-size: 2.2rem;
      text-align: center;
      margin: 0.5rem 0 1rem;
      border-bottom: 2px solid #e74c3c;
      display: inline-block; /* <-- esto es clave */
    }

    .titulo-centrado {
      text-align: center;
    }

    .titulo-centrado h1{
      text-align: center;
      margin-top: 1rem;
    }

    h2 { 
      color: #c0392b;
     font-size: 2.2rem;
     text-align: left;
     margin: 0rem 0 0rem 0; /* top, right, bottom, left */
    }
    .filtros {
      background-color: #fff;
      padding: 2rem;
      border-radius: 10px;
      box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
      display: flex;
      flex-direction: column;
      gap: 1.5rem;
    }
    .fila {
      display: flex;
      flex-wrap: wrap;
      gap: 1rem;
    }
    .filtros label {
      flex: 1 1 220px;
      display: flex;
      flex-direction: column;
      font-weight: 500;
      font-size: 0.95rem;
    }
    .filtros select,
    .filtros input {
      padding: 0.5rem;
      font-size: 1rem;
      border: 1px solid #ccc;
      border-radius: 6px;
      margin-top: 0.3rem;
    }

    #resultados {
      display: flex;
      flex-direction: column;
      gap: 1.5rem;
      margin-top: 2rem;
    }

    #portada:hover {
      transform: scale(1.01);
      box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
    }

    .juego {
      background-color: #fffdfa;
      padding: 1.7rem;
      border-radius: 12px;
      border-left: 6px solid #c0392b;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
      line-height: 1.7;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    .juego:hover {
      transform: scale(1.01);
      box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
    }
    .juego:active {
      transform: scale(1);
      box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
    }
    .juego strong {
      font-size: 1.2rem;
      color: #2c3e50;
      margin-bottom: 0.5rem;
      display: inline-block;
    }
    .juego p {
      margin: 0.3rem 0;
    }

html {
  scroll-behavior: smooth;
}
body.dark-mode {
  background-color: #1e1e1e;
  color: #f8f8f8;
}
body.dark-mode .filtros,
body.dark-mode .juego {
  background-color: #2a2a2a;
  color: #f8f8f8;
  border-color: #c0392b;
  border-left: 5px solid #c0392b;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
body.dark-mode nav {
  background-color: #111 !important;
  border-color: #333;
}
body.dark-mode a {
  color: #f36;
  font-weight: 500;
  color: #f36;
}

/* Títulos en tarjetas modo oscuro con rojo corporativo */
body.dark-mode .juego strong {
  color: #e74c3c;
}

.btn-modo {
  background: linear-gradient(90deg, #c0392b 0%, #e74c3c 100%);
  color: white;
  border: none;
  padding: 0.7rem 1.5rem;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 100px;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: background 0.3s ease, transform 0.2s ease;
  transform: scale(1);
  display: flex;
  margin-left: auto;
  gap: 0.5rem;
}

.btn-modo:hover {
  background: linear-gradient(90deg, #a93226 0%, #d73933 100%);
  transform: scale(1.1);
}
.btn-modo:active {
  background: linear-gradient(90deg, #a93226 0%, #d73933 100%);
  transform: scale(1);
}


@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.logo-hover {
  transition: transform 0.3s ease;
}

.logo-hover:hover {
  transform: scale(1.3);
}

.logo-hover:hover::after {
  transform: scaleX(1);
}

.logo-hover:active {
  transform: scale(1);
}

.juego.animado {
  animation: fadeInUp 0.4s ease forwards;
  opacity: 0;
}

.miniatura {
  width: 260px;
  height: auto;
  max-height: 340px;
  object-fit: contain;
  border-radius: 8px;
  margin: 1rem 0;
  display: block;
  text-align: left;
}

body.dark-mode .descripcion {
  color: #f8f8f8;
}

.botones-centradas {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.botones-centradas button:last-child {
  background-color: #bbb;
  color: white;
}

.btn-download {
  background: linear-gradient(90deg, #c0392b 0%, #e74c3c 100%);
  color: white;
  border: none;
  padding: 1rem 2rem;
  gap: 1rem;
  margin-right: 3rem;
  border-radius: 100px;
  font-weight: bold;
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: background 0.3s ease, transform 0.2s ease;
  transform: scale(1);
}

.btn-download:hover {
  background: linear-gradient(90deg, #a93226 0%, #d73933 100%);
  transform: scale(1.1);
}

.btn-download:active {
  background: linear-gradient(90deg, #a93226 0%, #d73933 100%);
  transform: scale(1);
}

.bgg-link {
  color: #111;
  font-weight: bold;
  text-decoration: none;
  transform: scale(1);
}
.bgg-link:hover {
  text-decoration: underline;
  transform: scale(1.1);
}
.bgg-link:active {
  transform: scale(1);
}
body.dark-mode .bgg-link {
  color: #e74c3c;
  font-weight: bold;
  text-decoration: none;
}

/* ⭐ Alta valoración */
.badge-estrella {
  display: inline-block;
  background: #f1c40f;
  color: #000;
  font-weight: bold;
  font-size: 0.85rem;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  margin: 0.5rem 0;
}

/* 🏆 Spiel des Jahres */
.badge-spiel {
  display: inline-block;
  background: #2980b9;
  color: white;
  font-weight: bold;
  font-size: 0.85rem;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  margin: 0.5rem 0;
}

/* 🔥 Viral */
.badge-viral {
  display: inline-block;
  background: #f39c12 ;
  color: white;
  font-weight: bold;
  font-size: 0.85rem;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  margin: 0.5rem 0;
}

/* 🎯 Favorito del canal */
.badge-favorito {
  display: inline-block;
  background: #8e44ad;
  color: white;
  font-weight: bold;
  font-size: 0.85rem;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  margin: 0.5rem 0;
}

.tags-contenedor {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin: 0.6rem 0;
}

.tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background-color: #eee;
  color: #333;
  white-space: nowrap;
}

/* Colores diferenciados */
.tag-tipo {
  background: #d6eaf8;
  color: #154360;
}

.tag-idioma {
  background: #fdebd0;
  color: #7e5109;
}

.tag-modalidad {
  background: #d5f5e3;
  color: #145a32;
}

.tag-clasificacion {
  background: #f9e79f;
  color: #7d6608;
}

.tag-mecanica {
  background: #1abc9c;
  color: white;
}

.tag-mecanica {
  background: #bc1ab1;
  color: white;
}

.tag-editorial {
  background: #95a5a6;
  color: white;
}

.tag {
  cursor: pointer;
  transition: all 0.2s ease;
}

.tag:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  opacity: 0.9;
}

.tag:active {
  transform: scale(1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  opacity: 0.9;
}

.badge {
  cursor: pointer;
  transition: all 0.2s ease;
}

.badge:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.badge:active {
  transform: scale(1);
  opacity: 0.9;
}

.descripcion p {
  margin: 0 0 0.6rem 0;
  line-height: 1.5;
}

.encabezado-juego {
  display: flex;
  align-items: center;
  gap: 1rem;
}

#volverListaInterno {
  margin-left: auto;
}

.logo-editorial-encabezado {
  height: 56px;               /* más grande */
  max-width: 150px;
  object-fit: contain;
  margin-top: -15px;          /* sube más sin desplazar el h2 */
}

#resultados.compacto {
  display: grid;
  grid-template-columns: repeat(auto-fill, 240px); /* tamaño más estrecho */
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem;
}

.juego.compacto {
  border: 1px solid #ddd;
  padding: 0.5rem;
  text-align: center;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  
  flex: 1 1 240px;
  max-width: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  justify-content: space-between; /* Asegura separación uniforme */
}

.juego.compacto h3 {
  margin-top: 0.5rem;
  margin-bottom: 0.1rem;
  padding: 0;
  line-height: 1;
}

.logo-mini {
  height: 50px;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  object-fit: contain;
}

.mini-tags {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.3rem;
  padding-top: 0.5rem;
}


.juego.compacto img.miniatura {
  width: 100%;
  height: 260px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
  margin-bottom: 0.5rem;
  margin-top: 0.5rem;
}

.juego.compacto .miniatura {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.juego.compacto .miniatura:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.juego.compacto .miniatura:active {
  transform: scale(1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.estadisticas {
  margin-top: 0.5rem;
  font-size: 1rem;
  color: #333;
  font-style: italic;
}

/* En modo oscuro */
body.dark-mode #estadisticas {
  color: #ccc;
}

.compacto .nombre-juego {
  font-size: 1rem;
  margin-top: 0.5rem;
  line-height: 1;
  padding-bottom: 0.2rem;
}

/* 🎡 Estilos para la ruleta visual tipo carrusel */
#carrusel-container {
  overflow: hidden;
  width: 400px;
  height: 350px;
  margin: 1rem auto;
  border: 4px solid #c0392b;
  border-radius: 12px;
  background: white;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

#carrusel {
  display: flex;
  transition: transform 2s cubic-bezier(.68,-0.55,.27,1.55), opacity 0.3s ease;
  opacity: 1;
}

#carrusel.oculto {
  opacity: 0;
  pointer-events: none;
}

.carrusel-placeholder img {
  opacity: 0.5;
  object-fit: contain;
}

.carrusel-item {
  flex: 0 0 400px;
  padding: 0.5rem;
  box-sizing: border-box;
}

.carrusel-item img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
  height: 330px;
}

.imagen-carrusel {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.imagen-carrusel:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.imagen-carrusel:active {
  transform: scale(1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

body.dark-mode footer {
  color: #aaa;
}

body.dark-mode footer a {
  color: #e74c3c;
}

footer a {
  color: inherit;
  text-decoration: none;
  position: relative;
  transition: color 0.2s ease;
}

footer a:not(:has(img))::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  left: 0;
  bottom: -2px;
  background-color: #c0392b;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

footer a:hover {
  color: #c0392b;
}

footer a:not(:has(img)):hover::after {
  transform: scaleX(1);
}

.nav-link {
  color: #c0392b;
  text-decoration: none;
  position: relative;
  font-weight: 600;
  padding: 0.4rem 0.5rem;
  transition: color 0.2s ease transform 0.3s ease;
  
}

.nav-link:hover {
  color: #a93226;
  transform: scale(1.2);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-link:active {
  color: #a93226;
  transform: scale(1);
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  left: 0;
  bottom: -2px;
  background-color: #c0392b;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}








footer a img {
  transition: transform 0.2s ease;
}

footer a:hover img {
  transform: scale(1.1);
}

footer a:active img {
  transform: scale(1);
}

footer .footer-redes {
  margin-top: 0.8rem;
}

footer a img {
  border-radius: 6px;
  box-shadow: 0 0 3px rgba(0,0,0,0.1);
}

#contador {
  color: #555;
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 1rem;
  padding: 0.3rem 0.8rem;
  background-color: #fdf2ec;
  border-left: 4px solid #c0392b;
  border-radius: 6px;
  display: inline-block;
}

/* Modo oscuro */
body.dark-mode #contador {
  background-color: #2c2c2c;
  color: #fdf2ec;
  border-left-color: #c0392b;
}

.limite-caracteres {
  background-color: #fff4ee;
  color: #555;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  margin: 0.7rem 0 1rem;
  display: flex;
  justify-content: flex-start;
  font-size: 0.9rem;
  border-left: 4px solid #c0392b;
}


.noticia-preview {
  border: 1px solid #ddd;
  padding: 1rem;
  margin: 1rem auto;
  max-width: 800px;
  border-radius: 8px;
  background: #f9f9f9;
}

body.dark-mode .noticia-preview {
  background: #222;
  border-color: #444;
  color: #ddd;
}

.noticia {
  border: 1px solid #ddd;
  padding: 1rem;
  margin: 1rem auto;
  max-width: 1200px;
  border-radius: 8px;
  background: #f9f9f9;
}

body.dark-mode .noticia {
  background: #222;
  border-color: #444;
  color: #ddd;
}

.video-youtube {
  margin-top: 1rem;
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.video-youtube iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.contador-visitas {
  font-size: 0.9rem;
  text-align: center;
  color: #555;
  margin-top: 1rem;
  font-style: italic;
}

body.dark-mode .contador-visitas {
  color: #ccc;
}

.tarjeta-juego {
  background: white;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  padding: 2rem;
  text-align: center;
  max-width: 450px;
  width: 100%;
  margin: 0 auto; /* <-- Esto la centra */
  transition: all 0.3s ease;
}

.tarjeta-juego h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #333;
  text-align: center;
  line-height: 1.2;
  height: 2.4em;               /* ← Ocupa 2 líneas exactas */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  display: inline-block; /* <-- esto es clave */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}



.tarjeta-juego img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

body.dark-mode .tarjeta-juego {
  background: #1f1f1f;
  color: white;
}

.linea-separadora {
  height: 2px;
  background-color: #e74c3c;
  margin: 1rem auto 1rem auto;
  width: 80%;
  border-radius: 2px;
}


.titulo-juego {
  height: 2.4em;
  display: flex;
  align-items: flex-end; /* alinea el texto en la parte baja del bloque */
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.titulo-juego h2 {
  font-size: 2rem;
  color: #c0392b;
  line-height: 1.2;
  margin: 0;
}

body.dark-mode .grid-minijuegos div {
  background: #1f1f1f;
  color: #eee;
}

.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #c0392b;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  animation: spin 1s linear infinite;
  margin: auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.btn-reset {
  background: linear-gradient(90deg, #f39c12 0%, #f1c40f 100%);
  color: white;
  border: none;
  padding: 1rem 2rem;
  gap: 1rem;
  font-size: 1.3rem;
  border-radius: 100px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: background 0.3s ease, transform 0.2s ease;
  cursor: pointer;
  font-weight: bold;
  transform: scale(1);
}

.btn-reset:hover {
  background: linear-gradient(90deg, #f39c12 0%, #e67e22 100%);
  transform: scale(1.1);
}

.btn-reset:active {
  background: linear-gradient(90deg, #f39c12 0%, #e67e22 100%);
  transform: scale(1);
}


.btn-retry-final {
  background: linear-gradient(90deg, #f39c12 0%, #f1c40f 100%);
  color: white;
  border: none;
  padding: 1rem 2rem;
  gap: 1rem;
  font-size: 1.3rem;
  margin-left: 3rem;
  border-radius: 100px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: background 0.3s ease, transform 0.2s ease;
  cursor: pointer;
  font-weight: bold;
  transform: scale(1);
}

.btn-retry-final:hover {
  background: linear-gradient(90deg, #f39c12 0%, #e67e22 100%);
  transform: scale(1.1);
}

.btn-retry-final:active {
  background: linear-gradient(90deg, #f39c12 0%, #e67e22 100%);
  transform: scale(1);
}

.btn-final {
  border: none;
  padding: 1rem 2rem;
  border-radius: 100px;
  font-weight: bold;
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: background 0.3s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  transform: scale(1);
}

.btn-no {
  background: linear-gradient(90deg, #c0392b 0%, #e74c3c 100%);
  color: white;
  border: none;
  padding: 1.2rem 2.2rem;
  gap: 1rem;
  margin-right: 3rem; /* Añade espacio a la derecha */
  border-radius: 100px;
  font-weight: bold;
  font-size: 3rem;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: background 0.3s ease, transform 0.2s ease;
  transform: scale(1);
}
.btn-no:hover {
  background: linear-gradient(90deg, #a93226 0%, #d73933 100%);
  transform: scale(1.1);
}
.btn-no:active {
  background: linear-gradient(90deg, #a93226 0%, #d73933 100%);
  transform: scale(1);
}

.btn-si {
  background: linear-gradient(90deg, #27ae60 0%, #2ecc71 100%);
  color: white;
  border: none;
  padding: 1.2rem 2.2rem;
  margin-left: 3rem;  /* Añade espacio a la izquierda */
  border-radius: 100px;
  font-weight: bold;
  font-size: 3rem;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: background 0.3s ease, transform 0.2s ease;
  transform: scale(1);
}
.btn-si:hover {
  background: linear-gradient(90deg, #229954 0%, #28b463 100%);
  transform: scale(1.1);
}
.btn-si:active {
  background: linear-gradient(90deg, #229954 0%, #28b463 100%);
  transform: scale(1);
}

.btn-reco {
  background: linear-gradient(90deg, #c0392b 0%, #e74c3c 100%);
  color: white;
  border: none;
  padding: 1rem 2rem;
  gap: 1rem;
  border-radius: 100px;
  font-weight: bold;
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: background 0.3s ease, transform 0.2s ease;
  transform: scale(1);
}

.btn-reco:hover {
  background: linear-gradient(90deg, #a93226 0%, #d73933 100%);
  transform: scale(1.1);
}
.btn-reco:active {
  background: linear-gradient(90deg, #a93226 0%, #d73933 100%);
  transform: scale(1);
}

.btn-rojo {
  background: linear-gradient(90deg, #c0392b 0%, #e74c3c 100%);
  color: white;
  text-decoration: none;
  display: inline-block;
  border: none;
  padding: 1rem 2rem;
  gap: 1rem;
  border-radius: 100px;
  font-weight: bold;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: background 0.3s ease, transform 0.2s ease;
  transform: scale(1);
}

.btn-rojo:hover {
  background: linear-gradient(90deg, #a93226 0%, #d73933 100%);
  transform: scale(1.1);
}
.btn-rojo:active {
  background: linear-gradient(90deg, #a93226 0%, #d73933 100%);
  transform: scale(1);
}

.red-social {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: transparent;
  color: #c0392b;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  transition: transform 0.2s ease, background-color 0.3s ease;
  text-decoration: none;
}

.red-social:hover {
  background-color: rgba(192, 57, 43, 0.1); /* rojo muy suave */
  transform: scale(1.1);
}
.red-social:active {
  background-color: rgba(192, 57, 43, 0.1); /* rojo muy suave */
  transform: scale(1);
}

.red-social-nav {
  display: flex;
  align-items: center;
  gap: 5rem;
  margin-left: auto;
}

.red-social-nav a {
  display: inline-block;
  transition: transform 0.2s ease;
}

.red-social-nav a:hover {
  transform: scale(1.3);
}




.red-social-nav a:active {
  transform: scale(1);
}

#tabla-juegos td {
  text-align: center;
  vertical-align: middle;
}
#tabla-juegos td:nth-child(1) {
  text-align: left;
}

#tabla-juegos a {
  color: #e74c3c;
  text-decoration: underline;
  font-weight: 600;
  display: inline-block; /* <- CLAVE para que funcione el hover con transform */
  transition: transform 0.2s ease, color 0.2s ease;
}

#tabla-juegos a:hover {
  transform: scale(1.1);
  color: #c0392b;
}

#tabla-juegos a:active {
  text-decoration: underline;
  transform: scale(1);
}

.busqueda-con-boton {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.bloque-busqueda {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.bloque-busqueda label {
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.bloque-busqueda input {
  padding: 0.5rem;
  width: 100%;
  max-width: 400px;
}

.busqueda-con-boton input {
  flex: 1;
  max-width: 400px;
}


.btn-home {
  background: linear-gradient(90deg, #c0392b 0%, #e74c3c 100%);
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 1rem 1.8rem;
  border-radius: 12px;
  font-size: 1rem;
  box-shadow: 0 6px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, background 0.3s ease;
}
.btn-home:hover {
  background: linear-gradient(90deg, #a93226 0%, #d73933 100%);
  transform: scale(1.1);
}
.btn-home:active {
  background: linear-gradient(90deg, #a93226 0%, #d73933 100%);
  transform: scale(1);
}

.btn {
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: bold;
  border: none;
  border-radius: 999px;
  color: white;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  text-decoration: none;
  justify-content: center;
}

.texto-intro {
  max-width: 800px;
  margin: 1rem auto 2.5rem;
  font-size: 1.1rem;
  color: #555;
  line-height: 1.6;
  text-align: center; 
}

.btn-cerrar {
  background: linear-gradient(90deg, #c0392b 0%, #e74c3c 100%);
  color: white;
  border: none;
  padding: 1rem 2rem;
  gap: 1rem;
  border-radius: 100px;
  font-weight: bold;
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: background 0.3s ease, transform 0.2s ease;
  transform: scale(1);
}

.btn-cerrar:hover {
  background: linear-gradient(90deg, #a93226 0%, #d73933 100%);
  transform: scale(1.1);
}
.btn-cerrar:active {
  background: linear-gradient(90deg, #a93226 0%, #d73933 100%);
  transform: scale(1);
}

.btn-volver-global {
  background: linear-gradient(90deg, #c0392b 0%, #e74c3c 100%);
  color: white;
  border: none;
  padding: 1rem 2rem;
  gap: 1rem;
  border-radius: 100px;
  font-weight: bold;
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: background 0.3s ease, transform 0.2s ease;
  transform: scale(1);
}

.btn-volver-global:hover {
  background: linear-gradient(90deg, #a93226 0%, #d73933 100%);
  transform: scale(1.1);
}
.btn-volver-global:active {
  background: linear-gradient(90deg, #a93226 0%, #d73933 100%);
  transform: scale(1);
}

.contenedor-volver {
  display: flex;
  justify-content: flex-end;
  align-items: right;
}

.form-sugerencia {
  max-width: 600px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  background: #f9f9f9;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.form-sugerencia label {
  font-weight: 500;
  color: #333;
}

.form-sugerencia input[type="text"],
.form-sugerencia input[type="email"],
.form-sugerencia textarea {
  font-size: 1.05rem;
  padding: 0.8rem 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  width: 100%;
  font-family: 'Poppins', sans-serif;
  box-sizing: border-box;
}

.form-sugerencia input:focus,
.form-sugerencia textarea:focus {
  box-shadow: inset 0 0 0 4px #c0392b;
}

.form-sugerencia textarea {
  resize: vertical;
  min-height: 100px;
}

.seccion-comentarios input[type="text"],
.seccion-comentarios input[type="email"],
.seccion-comentarios textarea {
  font-size: 1.05rem;
  padding: 0.8rem 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  width: 100%;
  font-family: 'Poppins', sans-serif;
  box-sizing: border-box;
}

.seccion-comentarios input:focus,
.seccion-comentarios textarea:focus {
  box-shadow: inset 0 0 0 4px #c0392b;
}

.seccion-comentarios textarea {
  resize: vertical;
  min-height: 100px;
}

.ficha-desplegada {
  text-align: left;
  margin: 2rem auto;
  max-width: 100%;
  padding: 1rem;
}

.miniatura-favorito {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.miniatura-favorito:hover {
  transform: scale(1.06);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.miniatura-favorito:active {
  transform: scale(0.98);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

#modalFicha {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#modalFicha.visible {
  display: flex;
  opacity: 1;
}


#modalContent {
  background: #fff;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 0 30px rgba(0,0,0,0.3);
  position: relative;
}

#modalFicha::before {
  content: "";
  position: absolute;
  inset: 0;
}

#modalContent .cerrar {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: #888;
}

.no-scroll {
  overflow: hidden;
}

.descripcion-juego {
  line-height: 1.6;
  margin-bottom: 1rem;
  text-align: justify;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.6;
    transform: translateY(-50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
  }
}

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem; /* más grande */
  color: white;
  background-color: rgba(0, 0, 0, 0.4); /* fondo suave oscuro */
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  z-index: 1001;
  transition: background-color 0.3s, transform 0.2s;
  border-radius: 4px;
  animation: pulse 2s infinite;
}

#modalPrev {
  left: 10px;
}

#modalNext {
  right: 10px;
}

.modal-nav:hover {
  background-color: rgba(0, 0, 0, 0.6);
  transform: translateY(-50%) scale(1.1); /* efecto de hover leve */
}

.modal-nav:active {
  animation: none; /* pausa el pulso mientras se hace clic */
  transform: translateY(-50%) scale(0.95); /* efecto de "clic" */
  background-color: rgba(0, 0, 0, 0.7); /* un poco más oscuro */
}

#modalFicha::before,
#modalFicha::after {
  content: "";
  position: absolute;
  top: 0;
  width: 50px;
  height: 100%;
  z-index: 1000;
}

#modalFicha::before {
  left: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.3), transparent);
}

#modalFicha::after {
  right: 0;
  background: linear-gradient(to left, rgba(0,0,0,0.3), transparent);
}

.contador-modal {
  font-size: 0.75rem;
  background: #eee;
  padding: 2px 8px;
  border-radius: 999px;
  display: inline-block;
  color: #555;

  /* Fade */
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
}

.contador-modal.fade-out {
  opacity: 0;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
  text-align: center;
  margin: 0.5rem 0 1rem;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid #e74c3c;
  display: inline-block; /* <-- esto es clave */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.encabezado-juego h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
  text-align: center;
  margin: 0.5rem 0 1rem;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid #e74c3c;
  display: inline-block; /* <-- esto es clave */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.title-page {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
  text-align: center;
  margin: 0.5rem 0 1rem;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid #e74c3c;
  display: inline-block; /* <-- esto es clave */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.contenedor-reseñas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem;
}

.tarjeta-reseña {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.2s ease;
}

.tarjeta-reseña:hover {
  transform: scale(1.02);
}

.imagen-reseña {
  width: 100%;
  height: 320px; /* o el alto que prefieras */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.tarjeta-reseña h2 {
  font-size: 1.3rem;
  color: #333;
  text-align: center;

  /* Soporte para limitar líneas */
  line-height: 1.4;
  max-height: 3.6em; /* 2 líneas aprox con line-height 1.4 */
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}



.tarjeta-reseña h3 {
  font-size: 1.3rem;
  color: #333;
  
}

.extracto-reseña {
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 1rem;
}

.linea-roja {
  width: 60px;
  height: 3px;
  background-color: #e74c3c;
  margin: 0.5rem auto 1rem auto;
  border-radius: 999px;
}

.boton-volver {
  display: inline-block; /* Asegura que tenga área clicable */
  padding: 0.75rem 1.5rem;
  background-color: #e74c3c;
  color: white;
  text-decoration: none;
  font-weight: bold;
  border-radius: 999px;
  transition: background-color 0.3s;  
  margin-top: 2.8rem;
  transition: background 0.3s ease, transform 0.2s ease;
}

.boton-volver:hover {
  background-color: #c0392b;
  transform: scale(1.1);
}

.boton-volver:active {
  background-color: #c0392b;
  transform: scale(1);
}

.boton-volver a {
  color: white;
  text-decoration: none;
  border-radius: 999px;  
}

.boton-listado-reseñas {
  text-align: right; /* Alinea el contenedor a la izquierda */
  margin-right: 2rem;
  transition: background 0.3s ease, transform 0.2s ease;
}

.boton-listado-reseñas.alineado {
  justify-self: end; /* ⬅️ clave para alinearlo al final de la columna */
  grid-column: span 1;
}

.boton-listado-reseñas.alineado a {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #e74c3c;
  color: white;
  font-weight: bold;
  text-decoration: none;
  border-radius: 999px;
  transition: background-color 0.3s;
}

.boton-listado-reseñas.alineado a:hover {
  background-color: #c0392b;
}

.boton-listado-reseñas a {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #e74c3c;
  color: white;
  font-weight: bold;
  text-decoration: none;
  border-radius: 999px;
  transition: background-color 0.3s;
}

.boton-listado-reseñas a:hover {
  background-color: #c0392b;
  transform: scale(1.1);
}

.boton-listado-reseñas a:active {
  background-color: #c0392b;
  transform: scale(1);
}

.boton-reseña {
  flex-grow: 1;
  display: inline-block;
  background: linear-gradient(90deg, #c0392b, #e74c3c);
  color: white;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.2s ease;
}

.boton-reseña:hover {
  background: linear-gradient(90deg, #a93226, #d73933);
  transform: scale(1.1);
}

.boton-reseña:active {
  background: linear-gradient(90deg, #a93226, #d73933);
  transform: scale(1);
}

.centrar-titulo {
  text-align: center;
}

.contenedor-reseña {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 1rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.06);
  font-family: 'Poppins', sans-serif;
}

.titulo-reseña {
  font-size: 2rem;
  margin: 0 auto 1.5rem auto; /* esto lo centra horizontalmente */
  border-bottom: 3px solid #e74c3c;
  padding-bottom: 0.5rem;
  width: fit-content; /* se ajusta al contenido */
  display: block; /* asegura que actúe como bloque para el margin auto */
}

.datos-reseña {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.imagen-reseñas {
  width: 300px;
  height: auto;
  max-height: 300px;
  object-fit: cover;
  border-radius: 8px;
  margin-left: 3rem;
  margin-right: 1rem;
}

.info-juego {
  display: flex;
  flex-wrap: wrap;
  gap: 4rem;
  justify-content: space-between;
}

.columna-info,
.columna-extra {
  flex: 1;
  min-width: 300px;
  flex-direction: column;
  justify-content: space-between;
  text-overflow: ellipsis;
}

.columna-extra {
  max-width:  px;
}


.separador-reseña {
  border: none;
  border-top: 2px solid #e74c3c;
  margin: 2rem 0;
}

.texto-reseña h2 {
  color: #e74c3c;
  border-left: 4px solid #e74c3c;
  margin-top: 2rem;
  padding-left: 0.5rem;
  font-size: 1.2rem;
}

.veredicto-reseña {
  background: #f6f6f6;
  padding: 1rem 1.5rem;
  border-left: 6px solid #27ae60;
  margin-top: 2rem;
  font-style: italic;
}

.pros-contras h3 {
  margin-top: 2rem;
  color: #c0392b;
  font-size: 1.2rem;
}

.pros-contras ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.pros-contras li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.bloque-voz {
  background: #fdf5f4;
  border-left: 4px solid #e74c3c;
  padding: 1rem;
  margin-top: 2rem;
  border-radius: 8px;
}

.meta-reseña {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 1rem;
}
.meta-reseña span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.like-confirmado {
  background-color: #ffe6ec;
  color: #c0392b;
  border: 1px solid #c0392b;
  cursor: default;
  font-weight: bold;
}


#boton-like {
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  font-weight: 600;
  color: #c0392b;
  background-color: #ffe6e6;
  border: 2px solid #c0392b;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

#boton-like:hover {
  background-color: #fadbd8;
  transform: scale(1.1);
}

#boton-like:active {
  background-color: #fadbd8;
  transform: scale(1);
}

#boton-like:disabled {
  opacity: 0.6;
  cursor: default;
  background-color: #f8d7da;
  border-color: #c0392b;
  color: #a93226;
}

#boton-like.like-confirmado {
  background-color: #fcebea;
  color: #a93226;
  border-color: #a93226;
  font-weight: bold;
}

.form-respuesta {
  margin-top: 1rem;
  background: #fff;
  border-radius: 8px;
  padding: 1rem;
}

.input-estandar {
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 0.7rem;
  margin-top: 0.5rem;
  margin-bottom: 0.8rem;
  font-size: 1rem;
  font-family: inherit;
  box-sizing: border-box;
}

.input-estandar:focus {
  outline: none;
  border-color: #e74c3c;
  box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.2);
}

.btn-respuesta {
  background: linear-gradient(90deg, #c0392b 0%, #e74c3c 100%);
  color: white;
  text-decoration: none;
  display: inline-block;
  border: none;
  padding: 1rem 2rem;
  gap: 1rem;
  border-radius: 100px;
  font-weight: bold;
  font-size: 0.8rem;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: background 0.3s ease, transform 0.2s ease;
  transform: scale(1);
}

.btn-respuesta:hover {
  background: linear-gradient(90deg, #a93226 0%, #d73933 100%);
  transform: scale(1.1);
}

.btn-respuesta:active {
  background: linear-gradient(90deg, #a93226 0%, #d73933 100%);
  transform: scale(1);
}