/* ==================== RESET ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --negro: #0D0D0D;
  --negro-suave: #1a1a1a;
  --rosa: #FF1493;
  --rosa-hover: #e0127e;
  --blanco: #ffffff;
  --gris-texto: #cccccc;
}

html { scroll-behavior: smooth; }

body {
  background: var(--blanco);
  color: var(--negro);
  font-family: 'Montserrat', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ==================== HEADER ==================== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--blanco);
  border-bottom: 1px solid rgba(255, 20, 147, 0.15);
}

.header-contenido {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 3rem;
  max-width: 1400px;
  margin: 0 auto;
}

.logo-header {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 70px;
  width: auto;
  display: block;
}

.carrito-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--rosa);
  color: var(--blanco);
  border: none;
  padding: 0.6rem 1.3rem;
  border-radius: 30px;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  transition: all 0.3s;
}

.carrito-btn:hover { background: var(--rosa-hover); }

.carrito-icono { font-size: 1rem; }

#contador {
  background: var(--blanco);
  color: var(--rosa);
  padding: 0.1rem 0.5rem;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  min-width: 22px;
  text-align: center;
}

/* ==================== HERO ==================== */
.hero {
  position: relative;
  background-image: url('img/hero-bg.jpg');
  background-size: cover;
  background-position: center 30%;
  background-attachment: fixed;
  padding: 5rem 2rem;
  text-align: center;
  overflow: hidden;
  min-height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 👇 IMAGEN DE FONDO COMPLETAMENTE VISIBLE, SIN OVERLAY */
/* No hay .hero-overlay en el HTML ahora */

.hero-contenido {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.hero-logo-img {
  width: 100%;
  max-width: 300px;
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 20px rgba(255, 255, 255, 0.8))
          drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

.btn-principal {
  display: inline-block;
  background: var(--rosa);
  color: var(--blanco);
  padding: 1rem 3rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.15em;
  font-size: 0.85rem;
  text-transform: uppercase;
  transition: all 0.3s;
  box-shadow: 0 10px 30px rgba(255, 20, 147, 0.4);
}

.btn-principal:hover {
  background: var(--rosa-hover);
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(255, 20, 147, 0.55);
}

/* ==================== PRODUCTOS CON VIDEO ==================== */
.productos {
  position: relative;
  padding: 4rem 3rem;
  overflow: hidden;
  background: #fafafa;
}

/* VIDEO COMPLETAMENTE VISIBLE, SIN FILTROS */
.productos-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  z-index: 0;
  filter: none;
  pointer-events: none;
}

/* SIN CAPA BLANCA ENCIMA */
.productos-overlay {
  position: absolute;
  inset: 0;
  background: transparent;
  z-index: 1;
  pointer-events: none;
}

.productos-contenido {
  position: relative;
  z-index: 2;
  max-width: 1300px;
  margin: 0 auto;
}

.seccion-titulo {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  color: var(--negro);
  text-transform: uppercase;
  margin-bottom: 3rem;
  position: relative;
  text-shadow:
    0 0 10px rgba(255, 255, 255, 1),
    0 0 20px rgba(255, 255, 255, 0.9),
    0 2px 6px rgba(255, 255, 255, 1);
}

.seccion-titulo::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: var(--rosa);
  margin: 1rem auto 0;
}

.grid-productos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
}

.card-producto {
  position: relative;
  background: var(--blanco);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 20, 147, 0.12);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.card-producto:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--rosa);
  box-shadow: 0 20px 40px rgba(255, 20, 147, 0.25);
}

/* BRILLO QUE RECORRE LA TARJETA */
.card-producto::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    transparent 40%,
    rgba(255, 255, 255, 0.6) 50%,
    transparent 60%,
    transparent 100%
  );
  transition: left 0.7s ease;
  z-index: 4;
  pointer-events: none;
}

.card-producto:hover::before {
  left: 100%;
}

.card-producto img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card-producto:hover img {
  transform: scale(1.05);
}

/* ==================== FLORES EN LAS TARJETAS ==================== */
.card-flores {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  overflow: hidden;
  border-radius: 12px;
}

.flor {
  position: absolute;
  font-size: 1.8rem;
  opacity: 0;
  transform: translateY(20px) scale(0.5) rotate(-30deg);
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 2px 6px rgba(255, 20, 147, 0.4));
  will-change: transform, opacity;
}

.flor-1 { top: 8%; left: 8%; }
.flor-2 { top: 12%; right: 10%; }
.flor-3 { top: 45%; left: 5%; }
.flor-4 { bottom: 28%; right: 8%; }
.flor-5 { bottom: 12%; left: 12%; }
.flor-6 { bottom: 8%; right: 15%; }

.card-producto:hover .flor {
  opacity: 1;
  transform: translateY(-15px) scale(1.2) rotate(15deg);
}

.card-producto:hover .flor-2 { transition-delay: 0.08s; transform: translateY(-20px) scale(1.15) rotate(-20deg); }
.card-producto:hover .flor-3 { transition-delay: 0.15s; transform: translateY(-10px) scale(1.25) rotate(25deg); }
.card-producto:hover .flor-4 { transition-delay: 0.22s; transform: translateY(-18px) scale(1.15) rotate(-15deg); }
.card-producto:hover .flor-5 { transition-delay: 0.3s; transform: translateY(-12px) scale(1.2) rotate(20deg); }
.card-producto:hover .flor-6 { transition-delay: 0.38s; transform: translateY(-22px) scale(1.1) rotate(-25deg); }

.info-producto {
  padding: 1.2rem;
  position: relative;
  z-index: 3;
  background: var(--blanco);
}

.info-producto h3 {
  font-size: 1rem;
  font-weight: 400;
  color: var(--negro);
  margin-bottom: 0.5rem;
  letter-spacing: 0.03em;
}

.info-producto .precio {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--rosa);
  margin-bottom: 1rem;
}

.btn-agregar {
  width: 100%;
  padding: 0.8rem;
  background: transparent;
  color: var(--negro);
  border: 1.5px solid var(--rosa);
  border-radius: 30px;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  text-transform: uppercase;
  transition: all 0.3s;
}

.btn-agregar:hover {
  background: var(--rosa);
  color: var(--blanco);
}

/* ==================== BENEFICIOS ==================== */
.beneficios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  padding: 4rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
  background: #fafafa;
  border-radius: 20px;
}

.beneficio { text-align: center; }

.beneficio-icono { font-size: 2.5rem; margin-bottom: 1rem; }

.beneficio h3 {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.beneficio p {
  font-size: 0.9rem;
  color: #666;
}

/* ==================== MODAL GENERAL ==================== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(13, 13, 13, 0.85);
  justify-content: center;
  align-items: center;
  z-index: 200;
  backdrop-filter: blur(4px);
  padding: 1rem;
}

.modal.activo { display: flex; }

.modal-contenido {
  background: var(--blanco);
  border-radius: 16px;
  padding: 2rem;
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
}

/* ==================== MODAL PRODUCTO ==================== */
.modal-producto-contenido {
  max-width: 1000px;
  width: 95%;
  padding: 0;
  position: relative;
  overflow: visible;
  max-height: 90vh;
}

.btn-cerrar-modal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--blanco);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--negro);
  z-index: 10;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: all 0.3s;
}

.btn-cerrar-modal:hover {
  background: var(--rosa);
  color: var(--blanco);
}

.producto-detalle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.galeria {
  background: #f5f5f5;
  padding: 1.5rem;
  border-radius: 16px 0 0 16px;
}

.galeria-principal {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.galeria-principal img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
}

.galeria-flecha {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--negro);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  z-index: 2;
}

.galeria-flecha:hover {
  background: var(--rosa);
  color: var(--blanco);
}

.galeria-prev { left: 0.5rem; }
.galeria-next { right: 0.5rem; }

.galeria-miniaturas {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.galeria-miniaturas img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0.5;
  border: 2px solid transparent;
  transition: all 0.3s;
}

.galeria-miniaturas img.activa {
  opacity: 1;
  border-color: var(--rosa);
}

.galeria-miniaturas img:hover { opacity: 1; }

.producto-info {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.producto-info h2 {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--negro);
  letter-spacing: 0.02em;
}

.detalle-precio {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--rosa);
}

.detalle-descripcion {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
}

.selector-grupo {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.selector-grupo label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--negro);
}

.opciones-talles, .opciones-colores {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.opcion-talle {
  min-width: 48px;
  height: 44px;
  padding: 0 1rem;
  background: var(--blanco);
  border: 1.5px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--negro);
  transition: all 0.2s;
}

.opcion-talle:hover { border-color: var(--rosa); }

.opcion-talle.seleccionado {
  background: var(--rosa);
  color: var(--blanco);
  border-color: var(--rosa);
}

.opcion-color {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  background: var(--blanco);
  border: 1.5px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  color: var(--negro);
  transition: all 0.2s;
}

.opcion-color:hover { border-color: var(--rosa); }

.opcion-color.seleccionado {
  border-color: var(--rosa);
  background: #fff5fa;
}

.muestra-color {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-block;
}

.selector-cantidad {
  display: flex;
  align-items: center;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  width: fit-content;
}

.selector-cantidad button {
  background: var(--blanco);
  border: none;
  width: 44px;
  height: 44px;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--negro);
  transition: all 0.2s;
}

.selector-cantidad button:hover {
  background: var(--rosa);
  color: var(--blanco);
}

.selector-cantidad input {
  width: 60px;
  height: 44px;
  border: none;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--negro);
  border-left: 1.5px solid #ddd;
  border-right: 1.5px solid #ddd;
}

.btn-guia {
  background: transparent;
  border: 1px dashed var(--rosa);
  color: var(--rosa);
  padding: 0.7rem;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s;
}

.btn-guia:hover { background: #fff5fa; }

.btn-agregar-detalle {
  background: var(--rosa);
  color: var(--blanco);
  border: none;
  padding: 1.1rem;
  border-radius: 30px;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.3s;
  margin-top: 0.5rem;
}

.btn-agregar-detalle:hover {
  background: var(--rosa-hover);
  box-shadow: 0 8px 20px rgba(255, 20, 147, 0.3);
}

/* ==================== MODAL TALLES ==================== */
.modal-talles-contenido {
  max-width: 700px;
  width: 95%;
  padding: 2.5rem;
  text-align: center;
  position: relative;
}

.titulo-talles {
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  color: var(--negro);
}

.img-guia-talles {
  width: 100%;
  max-width: 600px;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  border: 1px solid #eee;
}

.nota-talles {
  font-size: 0.85rem;
  color: #888;
  font-style: italic;
}

/* ==================== CARRITO ==================== */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.modal-header h2 {
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 1.1rem;
}

.btn-cerrar {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: #999;
}

.btn-cerrar:hover { color: var(--rosa); }

#lista-carrito {
  list-style: none;
  margin-bottom: 1rem;
}

#lista-carrito li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid #eee;
  gap: 1rem;
}

.item-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
}

.item-nombre {
  color: var(--negro);
  font-size: 0.9rem;
}

.item-detalle {
  font-size: 0.75rem;
  color: #888;
}

.item-info strong {
  color: var(--rosa);
  font-size: 0.85rem;
}

.item-precio {
  font-weight: 600;
  color: var(--negro);
  white-space: nowrap;
}

.modal-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-top: 1px solid #eee;
  font-size: 1.1rem;
}

.total-precio {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--rosa);
}

.modal-botones {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.btn-secundario {
  flex: 1;
  padding: 0.8rem;
  background: transparent;
  color: var(--negro);
  border: 1px solid #ddd;
  border-radius: 30px;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 0.85rem;
  transition: all 0.3s;
}

.btn-secundario:hover { border-color: var(--rosa); color: var(--rosa); }

.btn-pagar {
  flex: 2;
  padding: 0.8rem;
  background: var(--rosa);
  color: var(--blanco);
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.3s;
}

.btn-pagar:hover {
  background: var(--rosa-hover);
  box-shadow: 0 8px 20px rgba(255, 20, 147, 0.3);
}

.btn-pagar:disabled { opacity: 0.6; cursor: not-allowed; }

/* ==================== FOOTER ==================== */
footer {
  background: var(--negro);
  color: var(--blanco);
  text-align: center;
  padding: 4rem 2rem 2rem;
  margin-top: 4rem;
}

/* 👇 LOGO DE TEXTO: Z MÁS GRANDE QUE APATA */
.footer-logo-texto {
  display: flex;
  justify-content: center;
  align-items: baseline;
  margin-bottom: 1.5rem;
  gap: 0.05em;
}

.footer-z {
  font-size: 4rem;
  font-weight: 800;
  color: var(--rosa);
  letter-spacing: -0.08em;
  line-height: 1;
  font-family: 'Montserrat', sans-serif;
}

.footer-apata {
  font-size: 2.4rem;
  font-weight: 200;
  letter-spacing: 0.05em;
  color: var(--blanco);
  font-family: 'Montserrat', sans-serif;
}

.corazon-footer {
  font-size: 1.8rem;
  color: var(--rosa);
  margin-bottom: 2rem;
}

.footer-contacto {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.contacto-item {
  color: var(--blanco);
  text-decoration: none;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s;
}

.contacto-item:hover { color: var(--rosa); }

.icono-footer {
  width: 20px;
  height: 20px;
  color: var(--rosa);
}

.separador { color: var(--rosa); }

.footer-pie {
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--rosa);
  margin-bottom: 1.5rem;
}

.copyright {
  font-size: 0.75rem;
  color: #666;
  letter-spacing: 0.05em;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  .header-contenido {
    padding: 0.6rem 1.2rem;
  }

  .logo-img {
    height: 50px;
  }

  .carrito-texto { display: none; }

  .hero {
    background-attachment: scroll;
    padding: 3rem 1.5rem;
    min-height: 350px;
  }

  .hero-logo-img {
    max-width: 220px;
  }

  .productos { padding: 3rem 1.5rem; }

  .beneficios { padding: 3rem 1.5rem; }

  .producto-detalle {
    grid-template-columns: 1fr;
  }

  .galeria {
    border-radius: 16px 16px 0 0;
    padding: 1rem;
  }

  .galeria-principal img {
    height: 350px;
  }

  .producto-info {
    padding: 1.5rem;
  }

  .producto-info h2 { font-size: 1.2rem; }
  .detalle-precio { font-size: 1.5rem; }

  .footer-contacto { flex-direction: column; gap: 0.8rem; }
  .separador { display: none; }

  .footer-z { font-size: 3rem; }
  .footer-apata { font-size: 1.8rem; }

  .modal-botones { flex-direction: column; }

  .flor {
    opacity: 0.35;
    transform: translateY(0) scale(0.9);
    animation: flotarFlor 4s ease-in-out infinite;
  }

  .flor-2 { animation-delay: 0.5s; }
  .flor-3 { animation-delay: 1s; }
  .flor-4 { animation-delay: 1.5s; }
  .flor-5 { animation-delay: 2s; }
  .flor-6 { animation-delay: 2.5s; }
}

@keyframes flotarFlor {
  0%, 100% { transform: translateY(0) scale(0.9) rotate(-5deg); }
  50% { transform: translateY(-8px) scale(1) rotate(5deg); }
}