:root {
  --bg: #ffffff;
  --text: #111111;
  --accent: #46bfe1;
  --highlight: #ffe448;
  --subtitle-color: #46bfe1; /* azul */
}

body {
  margin: 0;
  font-family: 'Quicksand', sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: background 0.3s, color 0.3s;
  scroll-behavior: smooth;
}

body.dark {
  --bg: #111111;
  --text: #ffffff;
  --accent: #ffe448;
  --highlight: #46bfe1;
  --subtitle-color: #ffe448; /* amarillo */
}

header {
  position: relative;
  text-align: center;
  padding: 85px 20px 70px;
  background: url('img/portada.jpg') center top/cover no-repeat;
}

header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.1);
  z-index: 1;
}

@media (max-width: 768px) {
  header {
    background-position: center 20%; /* más arriba de lo normal */
  }
}

.logo {
  position: relative;
  width: 270px;
  z-index: 2;
}

.titulo-principal {
  font-family: 'Balsamiq Sans', cursive;
  font-size: 3rem;
  font-weight: 800;
  color: var(--highlight);
  text-shadow: 2px 2px var(--text);
  position: relative;
  z-index: 2;
}

.slogan {
  font-family: 'Quicksand', sans-serif;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--highlight);
  margin-top: 10px;
  z-index: 2;
  position: relative;
}

#theme-toggle {
  position: fixed; /* Cambia esto de absolute a fixed */
  top: 20px;
  right: 20px;
  background: var(--accent);
  color: white;
  padding: 10px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1001; /* Más alto que el menú */
  transition: background 0.3s, transform 0.3s;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#theme-toggle:hover {
  background: var(--highlight);
  transform: rotate(20deg);
}

.icono-tema {
  width: 24px;
  height: 24px;
  display: block;
  background-repeat: no-repeat;
  background-size: contain;
  transition: background-image 0.4s ease;
}

/* Sol por defecto */
body:not(.dark) .icono-tema {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="%23fff" viewBox="0 0 24 24"><path d="M6.76 4.84l-1.8-1.79-1.42 1.42 1.79 1.8 1.43-1.43zm10.48 0l1.79-1.8-1.42-1.42-1.8 1.79 1.43 1.43zm-4.24-.84h-2v3h2V4zm0 16h-2v3h2v-3zM1 13h3v-2H1v2zm19 0h3v-2h-3v2zM4.22 19.78l1.79-1.8-1.42-1.42-1.8 1.79 1.43 1.43zm15.56 0l1.43-1.43-1.8-1.79-1.42 1.42 1.79 1.8zM12 8a4 4 0 100 8 4 4 0 000-8z"/></svg>');
}

/* Luna cuando está oscuro */
body.dark .icono-tema {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="%23000" viewBox="0 0 24 24"><path d="M9.37 5.51A7 7 0 1018.5 14.63 9 9 0 019.37 5.51z"/></svg>');
}

.menu-generos {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.7); /* Modo claro con transparencia */
  backdrop-filter: blur(6px); /* Opcional: desenfoque bonito */
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 0;
  gap: 20px;
  font-family: 'Balsamiq Sans', cursive;
  font-size: 1.2rem;
  border-bottom: 3px solid var(--accent);
  position: sticky;
  top: 0;
  z-index: 1000;
}

body.dark .menu-generos {
  background-color: rgba(26, 26, 26, 0.7); /* Fondo oscuro transparente */
}

.menu-generos a {
  text-decoration: none;
  color: var(--text-color, #333);
  transition: color 0.3s;
}

.menu-generos a:hover {
  color: var(--accent);
}

.menu-generos .separador {
  color: var(--accent);
  font-weight: bold;
}

/* Tema claro */
:root {
  --accent: #46bfe1;       /* Azul para claro */
  --text-color: #333;
  --menu-bg: #ffffff;
}

/* Tema oscuro */
body.dark {
  --accent: #ffe448;        /* Amarillo para oscuro */
  --text-color: #ffffff;
  --menu-bg: #1a1a1a;
}

.seccion-titulo {
  font-family: 'Balsamiq Sans', cursive;
  font-size: 2rem;
  text-align: center;
  padding: 30px 10px 10px;
  color: var(--accent);
  text-shadow: 1px 1px var(--text);
}

.subtitulo-separador {
  text-align: center;
  margin: 20px auto 40px;
  font-family: 'Balsamiq Sans', cursive;
  font-size: 2rem;
  color: var(--subtitle-color);
  position: relative;
  animation: aparecerDesdeAbajo 0.8s ease-out both;
  padding: 0 1rem;
  text-shadow: 1px 1px var(--text);
}

.subtitulo-separador::before,
.subtitulo-separador::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 35%;
  height: 3px;
  background: var(--subtitle-color);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.subtitulo-separador::before {
  left: 0;
}

.subtitulo-separador::after {
  right: 0;
}

@keyframes aparecerDesdeAbajo {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .subtitulo-separador::before,
  .subtitulo-separador::after {
    width: 20%;
  }
}

@media (max-width: 480px) {
  .subtitulo-separador::before,
  .subtitulo-separador::after {
    width: 10%;
  }
}

.referencia {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin: 40px auto;
  padding: 20px;
  max-width: 1000px;
  flex-wrap: wrap;
}

.imagen-carrusel {
  width: 320px;
  border: 3px solid var(--accent);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.imagen-carrusel img {
  width: 100%;
  display: block;
  border-radius: 14px;
}

.info-referencia {
  margin-top: 15px;
  font-family: 'Balsamiq Sans', cursive;
  font-size: 1rem;
  color: var(--accent);
  animation: aparecerDesdeAbajo 0.6s ease-out both;
}

.info-referencia .frase {
  font-style: 'Balsamiq Sans', cursive;
  color: var(--text-color);
  margin-bottom: 8px;
}

.info-referencia .tallas {
  color: var(--text-color);
}
.miniaturas-item {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 15px;
}

.miniatura-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.miniatura-item img {
  width: 100px;
  height: 125px;
  border: 3px solid var(--accent);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.miniatura-item img:hover {
  border-color: var(--highlight);
}

.codigo-ref {
  font-size: 0.9rem;
  margin-top: 4px;
  color: var(--text-color);
  font-family: 'Balsamiq Sans', cursive;
  text-align: center;
}

@media (max-width: 768px) {
  .miniaturas-item {
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  }
}

.proximamente-texto {
  text-align: center;
  font-size: 1.2rem;
  margin: 40px;
}
@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.5) translateY(-100px);
  }
  60% {
    opacity: 1;
    transform: scale(1.1) translateY(20px);
  }
  80% {
    transform: scale(0.95) translateY(-10px);
  }
  100% {
    transform: scale(1) translateY(0);
  }
}
@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.5) translateY(-100px);
  }
  60% {
    opacity: 1;
    transform: scale(1.1) translateY(20px);
  }
  80% {
    transform: scale(0.95) translateY(-10px);
  }
  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

@keyframes floatIn {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.logo {
  animation: bounceIn 1.2s ease-out forwards;
  /* forwards conserva el estado final */
}

.titulo-principal {
  animation: floatIn 1.5s ease-out forwards;
}

.slogan {
  animation: floatIn 1.8s ease-out forwards;
}
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 10000;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  animation: aparecerDesdeAbajo 0.6s ease-out;
  transition: transform 0.3s ease;
}

.whatsapp-float:hover {
  animation: vibrar 0.3s linear infinite;
}

.whatsapp-float img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@keyframes vibrar {
  0% { transform: translateX(0); }
  20% { transform: translateX(-2px); }
  40% { transform: translateX(2px); }
  60% { transform: translateX(-2px); }
  80% { transform: translateX(2px); }
  100% { transform: translateX(0); }
}
.catalogo-footer {
  text-align: center;
  padding: 30px 10px;
  background-color: var(--menu-bg); /* Color del fondo que estás usando */
  color: var(--text-color);
  font-family: 'Balsamiq Sans', cursive;
  border-top: 2px solid var(--accent);
  margin-top: 40px;
}

.footer-line {
  width: 80%;
  margin: 0 auto 20px auto;
  border: none;
  border-top: 2px dashed var(--accent);
}

.redes-sociales {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.redes-sociales img {
  width: 40px;
  height: 40px;
  transition: transform 0.3s ease;
}

.redes-sociales img:hover {
  transform: scale(1.2);
}
.abrir-formulario-btn {
  margin-top: 10px;
  background-color: #ffe448;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}

/* === FORMULARIO DE PEDIDO === */
.formulario-pedido {
  margin-top: 15px;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 10px;
  background: #fff;
  display: none;
  flex-direction: column;
  gap: 10px;
  animation: slideIn 0.3s ease-out forwards;
}

/* === LABELS GENERALES === */
.formulario-pedido label {
  font-weight: bold;
  color: #46bfe1;
}

/* === MULTISELECT CON BOTONES === */
.opciones-multiselect {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.opcion {
  background-color: #f0f0f0;
  border: 1px solid #aaa;
  border-radius: 20px;
  padding: 6px 12px;
  cursor: pointer;
  font-weight: bold;
  color: #333;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.opcion.seleccionado {
  background-color: #46bfe1;
  color: white;
  border-color: #46bfe1;
}

/* === CAMPO DESCRIPCIÓN === */
.input-cantidad {
  min-height: 80px;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #aaa;
  resize: vertical;
}

/* === BOTÓN WHATSAPP === */
.btn-enviar-whatsapp {
  background-color: #25D366;
  color: white;
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.btn-enviar-whatsapp:hover {
  background-color: #1ebe5d;
}

/* === BOTÓN PARA MOSTRAR FORMULARIO === */
.btn-toggle-formulario {
  background-color: #46bfe1;
  color: white;
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin-top: 10px;
}

/* === ANIMACIONES === */
@keyframes slideIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-10px); }
}

.oculto {
  animation: slideOut 0.2s ease-in forwards;
}

/* === MODO OSCURO === */
body.dark .formulario-pedido {
  background: #1a1a1a;
  border: 1px solid #444;
}

body.dark .formulario-pedido label {
  color: #ffe448;
}

body.dark .btn-toggle-formulario {
  background-color: #ffe448;
  color: black;
}

body.dark .btn-toggle-formulario:hover {
  background-color: #e6b800;
}

body.dark .opcion {
  background-color: #333;
  color: #ccc;
  border-color: #555;
}

body.dark .opcion.seleccionado {
  background-color: #ffe448;
  color: black;
  border-color: #ffe448;
}