/* Estilos Globales */
@font-face {
  font-family: "Tw Cen MT Condensed Extra Bold";
  src: url("../multimedia/fonts/Tw Cen MT Condensed Extra Bold.woff2") format("woff2"),
       url("../multimedia/fonts/Tw Cen MT Condensed Extra Bold.woff")  format("woff");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Burbank Big Condensed Bold";
  src: url("../multimedia/fonts/Burbank Big Condensed Bold.woff2") format("woff2"),
       url("../multimedia/fonts/Burbank Big Condensed Bold.woff")  format("woff");
  font-weight: bold;
  font-style: normal;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}



/* --------------------------------- NOVOEDADES --------------------------------- */

/* Modal de Novedades */
.update-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  place-content: center;
  z-index: 1000;
}
.update-modal.active {
  display: grid;
}

/* Fuente principal en todo el modal */
.update-modal,
.update-modal * {
  font-family: "Tw Cen MT Condensed Extra Bold", sans-serif;
}

/* Contenido del modal */
.update-modal-content {
  background: #fff;
  padding: 2rem 3rem;         /* más relleno */
  border-radius: 10px;        /* un poco más redondeado */
  max-width: 600px;           /* más ancho */
  width: 90%;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  position: relative;
}

/* Botón cerrar */
.update-modal-close {
  all: unset;
  position: absolute;
  top: 16px; right: 16px;     /* más separación */
  font-size: 2rem;            /* más grande */
  color: #333;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}
.update-modal-close:hover {
  color: #e74c3c;
  transform: scale(1.3);      /* efecto más pronunciado */
}

/* Título centrado con emojis */
.update-modal-content h2 {
  margin: 0 0 1rem;           /* más espacio inferior */
  font-size: 2rem;            /* más grande */
  text-align: center;
  position: relative;
}

.update-modal-content h2::before { content: "⚡ "; font-size: 2rem; }
.update-modal-content h2::after  { content: " ⚡"; font-size: 2rem; }

/* Lista de novedades */
.update-modal-content ul {
  margin: 0;
  padding-left: 1.5em;        /* un poco más de sangría */
}
.update-modal-content li {
  margin-bottom: 0.75rem;     /* más separación */
  line-height: 1.6;           /* más espacio entre líneas */
  font-size: 1.1rem;          /* texto algo más grande */
}


/* ---------------------------------------------------------------------- */


.hidden {
  position: absolute;
  left: -9999px;
  top: -9999px;
  visibility: hidden;
}

body {
  font-family: Arial, sans-serif;
  background-color: #FFF4E6;
  background-image: url("../multimedia/imagenes/img/campo.jpg");
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed;
  background-size: cover;
}

/* Header / Navbar */
.site-header {
  background-color: #161616;
  padding: 10px 20px;
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}
.navbar .nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}
.navbar .nav-links li a {
  position: relative;
  text-decoration: none;
  color: #ffffff;
  font-weight: bold;
}
.navbar .nav-links li a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 0;
  height: 2px;
  background-color: #ffffff;
  transition: width 0.5s ease, left 0.5s ease;
  transform: translateX(-50%);
}
.navbar .nav-links li a:hover::after {
  width: 100%;
  left: 50%;
}
@media (max-width: 768px) {
  .navbar .nav-links {
    flex-direction: column;
    gap: 10px;
  }
}

/* Logo principal (inicio) */
.main-content .container > img {
  display: block;
  width: 100%;
  max-width: 600px;
  height: auto;
  margin: 0 auto 20px;
} /* tomado de tu logo en el HTML :contentReference[oaicite:0]{index=0}&#8203;:contentReference[oaicite:1]{index=1} */

/* Título principal H1 */
h1 {
  font-size: 3rem;
  color: white;
  font-family: "Burbank Big Condensed Bold", sans-serif;
  font-weight: bold;
  letter-spacing: 0.3px;
  text-shadow:
    2px 0 0 black, -2px 0 0 black,
    0 2px 0 black, 0 -2px 0 black;
  margin-bottom: 1px;
}






/* Sección de rachas  */
#streakSection {
  font-family: "Tw Cen MT Condensed Extra Bold", sans-serif;
  text-align: center;
  border: 3px solid white;
  border-radius: 15px;
  padding: 20px;
  margin: 20px auto;
  width: 500px;
  max-width: 90%;
  background-color: rgba(253, 255, 229, 0.8);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
#streakSection p {
  font-size: 25px;
  margin: 5px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
#streakSection p img {
  width: 32px;
  height: auto;
  margin: 0 0.5rem;
}










/* Sección de estadísticas */
#statsSection {
  font-family: "Tw Cen MT Condensed Extra Bold", sans-serif;
  text-align: center;
  border: 3px solid white;
  border-radius: 15px;
  padding: 20px;
  margin: 20px auto;
  width: 340px;
  max-width: 90%;
  background-color: rgba(253, 255, 229, 0.8);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
#statsSection h2 {
  font-size: 40px;
  margin-top: 3px;
}
#statsSection p {
  font-size: 25px;
  margin: 5px 0;
}

/* Mensaje de victoria y contenedor “felicidades” */
.victory-message {
  font-size: 2rem;
  font-weight: bold;
  color: #FFD700;
  text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.3);
  text-align: center;
  animation: popIn 0.6s ease-out;
} /* originalmente en tu CSS :contentReference[oaicite:2]{index=2}&#8203;:contentReference[oaicite:3]{index=3} */
@keyframes popIn {
  0%   { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1);   opacity: 1; }
}




/* Gif de victoria (se inserta vía JS con estilo inline) */
#message img {
  display: block !important;
  width: 100% !important;
  max-width: 400px;
  height: auto !important;
  border-radius: 15px !important;
  border: 4px solid white !important;
  margin: 20px auto !important;
} /* sobreescribe el estilo inline del JS :contentReference[oaicite:4]{index=4}&#8203;:contentReference[oaicite:5]{index=5} */


#message p {
  text-align: center;
  font-size: 30px;
  color: #333;
  margin-top: 0.5em;
  font-family: "Tw Cen MT Condensed Extra Bold";
}

.losemsg {
  border: 3px solid white;
  border-radius: 15px;
  padding: 20px;
  margin: 20px auto;
  width: 340px;
  max-width: 90%;
  background-color: rgba(253, 255, 229, 0.8);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}









/* Contenedor principal */
.main-content {
  display: flex;
  justify-content: center;
  margin: 0 auto;
  padding: 50px;
  min-height: 50vh;
  box-sizing: border-box;
}

/* Efecto “frosted glass” para el fondo */
.container {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  width: 95%;
  max-width: 850px;
  text-align: center;
  position: relative;
  margin: 5px auto 100px;
}

/* Texto “beta” */
.beta-text {
  font-size: 15px;
  color: #000000;
  margin-top: 10px;
  text-align: center;
}

/* Sección de entrada y sugerencias */
.input-section {
  margin-top: 20px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

input[type="text"] {
  width: 70%;
  padding: 10px;
  font-size: 16px;
  border: 2px solid #ffffff;
  border-radius: 8px;
  outline: none;
}

/* ——— WRAPPER que añadimos ——— */
.input-field {
  position: relative;    /* para que #suggestions se posicione respecto a este */
  width: 70%;            /* mismo ancho que antes tenías en el input */
  box-sizing: border-box;
}

.input-field input[type="text"] {
  width: 100%;           /* ahora ocupa el 100% del wrapper */
  padding: 10px;
  font-size: 16px;
  border: 2px solid #ffffff;
  border-radius: 8px;
  outline: none;
}
#suggestions {
  position: absolute;
  top: calc(100% + 2px);  /* justo debajo del input */

  /* en vez de left:50% + transform..., hacemos: */
  left: 0;
  right: 0;
  margin: 0 auto;         /* centra el elemento de ancho fijo */
  width: 80%;             /* o 90%, 70%... el ancho que necesites */

  background: #ffffff;
  border: 1px solid #ffffff;
  border-top: none;
  z-index: 10;
  border-radius: 0 0 8px 8px;
  display: none;
  max-height: 250px;
  overflow-y: auto;
  box-sizing: border-box;
}

#suggestions ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#suggestions li {
  display: flex;
  align-items: center;
  padding: 8px;
  cursor: pointer;
}
#suggestions li:hover {
  background-color: #feffdd;
}
#suggestions img {
  width: 30px;
  height: 30px;
  margin-right: 8px;
  object-fit: cover;
  border-radius: 4px;
}

#suggestions li.selected {
  /* Pon aquí el color que tú quieras */
  background-color: #feffdd; 
}



/* Tabla de adivinanzas */
.guess-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 5px;
  margin-top: 20px;
  table-layout: fixed; /* fuerza anchos iguales */
}

.guess-table thead th {
  height: 20px;
  min-width: 50px;
  background: linear-gradient(180deg, #ffc400, #FF5722);
  color: white;
  font-weight: bold;
  padding: 12px;
  border: 2px solid #ffffff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.guess-table th,
.guess-table td {
  width: 80px;            /* ancho fijo */
  height: 80px;           /* alto fijo */
  overflow: hidden;       /* recorta lo que sobrepase */
  border: 2px solid #ffffff;
  padding: 0;
  text-align: center;
  vertical-align: middle;
  font-size: 20px;
  font-weight: bold;
  border-radius: 8px;
  font-family: 'Tw Cen MT Condensed Extra Bold', sans-serif;
}

.guess-table td img {
  max-width: 100%;        /* dentro de la celda */
  max-height: 100%;
  object-fit: contain;    /* mantiene proporción */
  display: block;
  margin: 0 auto;
}


/* Celdas sin pista: fondo blanco */
#guessTable td.empty-cell {
  background-color: white;
}


/* colores de estado */
.green  { background-color: #4CAF50; color: white; }
.red    { background-color: #F44336; color: white; }
.yellow { background-color: #FFEB3B; color: black; }
.purple { background-color: #8d36ff; color: white; }
.orange { background-color: #ffb637; color: black; }

/* sprites específicas (opcional ajustes) */
.pos-sprite { width: 56px; height: 30px; image-rendering: crisp-edges; }
.aff-sprite { width: 39px; height: 39px; image-rendering: crisp-edges; }

/* Animaciones de celdas */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.8); }
  to   { opacity: 1; transform: scale(1); }
}
.fade-in {
  opacity: 0;
  animation: fadeIn 0.4s forwards;
}

/* Grupo de botones Compartir / Twittear */
.button-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
}
#shareButton {
  font-family: "Tw Cen MT Condensed Extra Bold", sans-serif;
  font-size: 18px;
  background-color: #FFECB3;
  border: 2px solid #ffffff;
  border-radius: 10px;
  padding: 12px 24px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background-color 0.3s ease;
}
#shareButton:hover {
  background-color: #fbb13a;
}
.tweet-button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: transform 0.2s ease-in-out;
}
.tweet-button .x-logo {
  display: block;
  width: 50px;
  height: 50px;
}
.tweet-button:hover {
  transform: scale(1.1);
}
.share-icon {
  width: 24px;
  height: 24px;
}

/* Botón Enter */
#enterButton {
  height: 40px;
  width: 40px;
  background-color: #FFECB3;
  border: 2px solid #ffffff;
  border-radius: 5px;
  font-size: 20px;
  font-weight: bold;
  font-family: 'Tw Cen MT Condensed Extra Bold', sans-serif;
  cursor: pointer;
  transition: background 0.3s ease;
  margin-left: 5px;
}
#enterButton:hover {
  background-color: #fbb13a;
}

/* Detalles desplegables */
details {
  margin: 20px auto;
  max-width: 800px;
  border: 3px solid white;
  border-radius: 15px;
  overflow: hidden;
  background-color: rgba(253, 255, 229, 0.8);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}
details summary {
  cursor: pointer;
  font-family: "Tw Cen MT Condensed Extra Bold", sans-serif;
  font-size: 22px;
  color: #5D4037;
  padding: 15px;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.7);
  position: relative;
  transition: all 0.3s ease;
}

/* quita el triángulo negro por defecto */
details summary {
  list-style: none;              /* elimina marcador de listado */
}
details summary::-webkit-details-marker {
  display: none !important;      /* Chrome, Edge, Safari */
}
details summary::marker {
  content: none;                 /* Firefox y resto */
}


details summary::-webkit-details-marker,
details summary::marker {
  display: none;
}
details summary::before,
details summary::after {
  content: "▼";
  position: absolute;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  color: #FF5722;
  font-size: 16px;
  transition: transform 0.3s ease;
}
details summary::before { left: 15px; }
details summary::after  { right: 15px; }
details[open] summary::before,
details[open] summary::after {
  transform: translateY(-50%) rotate(180deg);
}
details div {
  padding: 20px;
  background: transparent;
}
details p {
  font-size: 16px;
  line-height: 1.6;
  color: #5D4037;
  margin-bottom: 15px;
  text-align: justify;
}

/* Sección de texto editorial */
.text-content {
  text-align: left;
  color: #5D4037;
}
.text-content h1 {
  background: linear-gradient(180deg, #ffc400, #FF5722);
  color: white;
  font-family: 'Tw Cen MT Condensed Extra Bold', sans-serif;
  font-weight: bold;
  font-size: 2.2rem;
  padding: 12px 30px;
  border: 3px solid #ffffff;
  border-radius: 12px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  display: block;
  width: fit-content;
  margin: 0 auto 50px;
  letter-spacing: 0.5px;
}
.text-content h2 {
  margin-top: 1.5rem;
  font-size: 1.25rem;
  color: white;
  font-family: 'Tw Cen MT Condensed Extra Bold', sans-serif;
  font-weight: bold;
  letter-spacing: 0.3px;
  display: inline-block;
  text-shadow:
    2px 0 0 black, -2px 0 0 black,
    0 2px 0 black, 0 -2px 0 black;
  padding: 2px;
}
.text-content p,
.text-content ul,
.text-content li {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}
.text-content ul {
  list-style: disc inside;
}
.text-content a {
  color: #000000;
  text-decoration: none;
}
.text-content a:hover {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(22, 22, 22, 1);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 0.75rem 1rem;
  z-index: 999;
}
.site-footer .footer-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.footer-legal {
  margin-right: auto;
  font-size: 0.9rem;
}
.footer-legal a {
  color: #ffffff;
  text-decoration: none;
}
.footer-legal a:hover {
  text-decoration: underline;
}
.site-footer .x-logo {
  width: 24px;
  height: auto;
  vertical-align: middle;
}
.site-footer .footer-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.site-footer .footer-nav a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.9rem;
  transition: opacity 0.2s;
}
.site-footer .footer-nav a:hover {
  opacity: 0.7;
}
.footer-links {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  color: #ffffff;
  gap: 0.5rem;
}
.footer-links a {
  color: #ffffff;
  text-decoration: none;
}
.footer-links a:hover {
  text-decoration: underline;
}

/* Spans de color discretos */
.green, .yellow, .red, .purple, .orange {
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: bold;
  text-shadow: none;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Controles de información editorial */
.editorial-content {
  text-align: left;
  line-height: 1.6;
  margin: 15px 0;
}
.editorial-content p {
  margin-bottom: 1em;
}
noscript.editorial-content {
  background: rgba(255,255,255,0.9);
  border-radius: 8px;
  padding: 15px;
  max-width: 800px;
  margin: 0 auto 20px;
}

/* Colores destacados */
.morado-light {
  color: #41127f;
  font-weight: bold;
  text-shadow: 0 0 2px rgba(179, 153, 212, 0.3);
}
.naranja-light {
  color: #e8880b;
  font-weight: bold;
  text-shadow: 0 0 2px rgba(179, 153, 212, 0.3);
}
.rojo-light {
  color: #dd1818;
  font-weight: bold;
  text-shadow: 0 0 2px rgba(179, 153, 212, 0.3);
}

/* Grupo imagen + texto */
.grupo-imagen-texto {
  display: inline-block;
  white-space: nowrap;
}

/* Celda Eg/Mxmax */
.guess-table thead th:nth-child(7),
.guess-table tbody td:nth-child(7) {
  width: 80px;     /* o el valor que necesites (p.ej. 90px, 110px) */
  min-width: 100px; /* idem */
}


.spirit-header {
  display: inline-block;      /* para poder posicionar el / respecto a este wrapper */
  position: relative;
  text-align: center;         /* centra todo el bloque dentro de la celda */
}

/* ¡Aquí está el truco! */
.spirit-header .divider {
  position: absolute;
  left: 50%;                  /* punto medio del wrapper */
  transform: translateX(-50%);
  top: 50%;                   /* opcional: para centrar vertical */
  transform: translate(-50%, -50%);
  font-weight: bold;
}

/* Márgenes iguales para las dos imágenes */
.spirit-header img {
  vertical-align: middle;
}
.spirit-header img:first-child {
  margin-right: 30px;          /* ajusta a tu gusto */
}
.spirit-header img:last-child {
  margin-left: 28px;
}




/* ----------------- BOTONES MODOS ------------------- */


/* Elimina cualquier fondo y borde por defecto de los botones */
.mode-toggle {
  all: unset;
  cursor: pointer;
}



.mode-switcher {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: -30px; /* valor por defecto para pantallas grandes */
}


.mode-toggle img {
  display: block;
  width: 260px;             /* antes era 120px */
  height: auto;
  transition: transform 0.2s ease-in-out;
  border-radius: 8px;
}

/* Hover: ligera ampliación */
.mode-toggle:hover img {
  transform: scale(1.1);
}




/* Base: B&N y escala 1 */
.mode-toggle img {
  filter: grayscale(100%);
  transform: scale(1);
  transition: filter 0.3s ease-in-out, transform 0.2s ease-in-out;
}

/* Hover global: un poquito de ampliación */
.mode-toggle:hover img {
  transform: scale(1.1);
}

/* Hover sobre no activos: llevamos de 100% a 50% de gris */
.mode-toggle:not(.active):hover img {
  filter: grayscale(50%);
}

/* Activo: color completo y escala 1.05 */
.mode-toggle.active img {
  filter: none;
  transform: scale(1.05);
}

/* Activo + hover: mismo límite que hover normal */
.mode-toggle.active:hover img {
  transform: scale(1.1);
}
















































/* ----------------- BOTÓN CACHE ------------------- */



.clear-storage-btn {
  display: block;         /* para que margin auto funcione */
  margin: 1rem auto;      /* centro horizontal y algo de separación vertical */
  padding: 0.5rem 1rem;   /* espacio interno */
  background: #e74c3c;    /* color de fondo */
  color: #fff;            /* color de texto */
  border: none;           /* sin borde */
  border-radius: 4px;     /* esquinas redondeadas */
  font-size: 1rem;        /* tamaño de fuente legible */
  cursor: pointer;        /* puntero al pasar por encima */
  transition: background 0.2s;
}

.clear-storage-btn:hover {
  background: #c0392b;    /* tono más oscuro al hover */
}













/* ----------------- LO RESPONSIVE Y ESO ------------------- */

/* ---------------------------------------------------------- */

/* ---------------------------------------------------------- */







/* Scroll en categorías sólo en tablet/móvil */
@media (max-width: 1024px) {
  .categories-container {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
    padding: 0 10px;
  }
}

/* Layout general responsive */
@media (max-width: 768px) {
  .main-content {
    flex-direction: column;
    padding: 20px;
  }
  #statsSection,
  input[type="text"],
  .button-group {
    width: 100%;
  }
  .button-group {
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
  }
  .guess-table {
    display: block;
    overflow-x: auto;
    width: 100%;
  }
}

/* Ajustes para pantallas muy pequeñas */
@media (max-width: 480px) {
  #shareButton {
    font-size: 14px;
    padding: 8px 16px;
  }
  .tweet-button .x-logo {
    width: 40px;
    height: 40px;
  }
  #statsSection {
    font-size: 14px;
    padding: 10px;
  }
  #statsSection h2 {
    font-size: 20px;
  }
  #statsSection p {
    font-size: 14px;
  }
}


@media (max-width: 768px) {
  .input-field {
    width: 100%;      /* que el wrapper englobe todo el ancho disponible */
  }
  #suggestions {
    width: 100%;      /* ahora el dropdown también */
    /* left/right/margin ya lo tienes; si quieres, puedes quitar margin aquí */
  }
}


/* Ajustes de <details> para pantallas <= 768px */
@media (max-width: 768px) {
  /* Asegúrate de que el summary sea relativo para que los ::before/::after usen ese contenedor */
  details summary {
    position: relative;
  }

  /* Ajustamos flechas: absolutas, centradas verticalmente y pegadas a los lados */
  details summary::before,
  details summary::after {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;      /* o el tamaño que ya tenías */
    /* quita aquí cualquier left/right global */
  }

  /* Flecha izquierda */
  details summary::before {
    left: 1rem;           /* a 1rem del borde izquierdo */
  }

  /* Flecha derecha */
  details summary::after {
    right: 1rem;          /* a 1rem del borde derecho */
  }

  /* Si quieres ajustar aún más el padding/tamaño del summary */
  details summary {
    font-size: 18px;
    padding: 10px;
  }
}


/* ————————————————
   Tablet ancho / pequeño portátil
   ———————————————— */
   @media (min-width: 769px) and (max-width: 1024px) {
    /* – Hacemos que las categorías puedan saltar de línea en lugar de salirse – */
    .categories-container {
      flex-wrap: wrap;            /* permitir varias filas */
      justify-content: center;    /* centrar los botones */
      overflow-x: visible;        /* ya no scroll horizontal */
    }
    .categories-container button {
      flex: 1 1 30%;              /* cada botón ocupa al menos un 30% */
      margin: 5px;                /* un poquito de espacio entre ellos */
      min-width: 120px;           /* evita que queden demasiado estrechos */
    }
  }

  @media (max-width: 480px) {
    details summary {
      padding: 10px 2rem;         /* espacio para que las flechas no tapen el texto */
    }
    /* Aseguramos que las flechas queden siempre pegadas a sus extremos */
    details summary::before { left: 0.5rem; }
    details summary::after  { right: 0.5rem; }
  }



/* Tabletas y pantallas medianas */
@media (max-width: 1024px) {
  .mode-switcher {
    gap: 15px;
    margin-bottom: -30px;
  }
  .mode-toggle img {
    max-width: 200px;
  }
}

/* Móviles grandes */
@media (max-width: 768px) {
  .mode-switcher {
    gap: 10px;
    margin-bottom: -10px;
  }
  .mode-toggle img {
    max-width: 150px;
  }
}

/* Móviles pequeños: full-width y columna */
@media (max-width: 480px) {
  .mode-switcher {
    gap: 15px;
    margin-bottom: -10px;
  }
  .mode-toggle img {
    max-width: 100%;    /* ocupa todo el ancho del contenedor */
  }
}



 /* ----------- ESTILOS PARA LA IMAGEN DE LA SILUETA ----------- */

 /* Estilos para el contenedor de la silueta */
.silueta-container {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 3px solid white;
  border-radius: 15px;
  padding: 20px;
  margin: 20px auto;
  max-width: 200px;
  width: 90%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Estilos para la imagen de la silueta */
.silueta-container img {
  max-height: 300px;
  height: 100px;
  width: auto;
  max-width: 100%;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.3));
  transition: transform 0.3s ease;
}

/* Efecto hover para la imagen */
.silueta-container img:hover {
  transform: scale(1.05);
}