/* ===========================================
   Estilos Profesionales - FUSIÓN: Estructura A + Diseño B
   Tema: Rosa Elegante (Ledy)
=========================================== */

/* --------- RESET GLOBAL --------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  /* Fondo base del diseño B */
  background-color: #fff6fa; 
  color: #2c2c2c;
  line-height: 1.6;
  scroll-behavior: smooth;
  /* Importante para el canvas de fondo */
  background: transparent !important; 
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* --------- VARIABLES (PALETA ROSA DEL DOC B) --------- */
:root {
  --rose-accent: #e56b8a;  /* Color principal */
  --rose-hover: #d94b74;
  --rose-soft: rgba(229, 107, 138, 0.15);
  --rose-nude: #f3c6d1;
  --champagne: #f2d3a4;
  --text-dark: #2e2e2e;
  --bg-light: #fff1f5;
  --shadow-rose: 0 18px 35px rgba(229, 107, 138, 0.25);
}

/* --------- FONDO ANIMADO (Canvas) --------- */
#fondo-estrellas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(180deg, #fff6fa 0%, #ffe9f0 100%);
  pointer-events: none;
}

/* --------- ENCABEZADO --------- */
.header {
  background-color: #ffffff;
  border-bottom: 1px solid var(--rose-soft);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

/* --------- LOGO TIPOGRÁFICO --------- */
.logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  line-height: 1;
}

.logo .brand {
  font-size: 2.2rem;
  font-weight: 600;
  font-family: 'Playfair Display', serif;
  letter-spacing: 0.5px;
  color: var(--rose-accent); /* Actualizado a Rosa */
}

.logo .tagline {
  font-size: 0.8rem;
  color: #8a8a8a;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* --------- NAVBAR --------- */
.navbar ul {
  display: flex;
  list-style: none;
  gap: 1.8rem;
}

.navbar a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

.navbar a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--rose-accent);
  transition: width 0.3s ease;
}

.navbar a:hover::after,
.navbar a.active::after {
  width: 100%;
}

.navbar a:hover,
.navbar a.active {
  color: var(--rose-accent);
}

/* --------- HERO (Mantenido del Doc A, actualizado colores) --------- */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: 1;
  filter: brightness(0.55);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; 
  left: 0;
  width: 100%; 
  height: 100%;
  /* Actualizado degradado a tonos rosados/nude */
  background: linear-gradient(rgba(229, 107, 138, 0.3), rgba(243, 198, 209, 0.4));
  z-index: 1;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50px;
  /* Transición suave al nuevo fondo rosa */
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #fff6fa 60%);
  z-index: 2;
  pointer-events: none;
}

.hero-content {
  position: relative;
  color: #fff;
  z-index: 2;
  max-width: 650px;
  padding: 25px 30px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 20px;
  animation: fadeInUp 1s ease-out;
}

.hero-content h2 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.hero-content p {
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
  opacity: 0.95;
}

/* --------- BOTONES (Actualizados a Rosa) --------- */
.btn-primario,
.btn-secundario {
  background: var(--rose-accent);
  color: #fff;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(229, 107, 138, 0.3);
}

.btn-primario:hover,
.btn-secundario:hover {
  background: var(--rose-hover);
  transform: scale(1.05);
}

@keyframes fadeInUp {
  0% {opacity: 0; transform: translateY(30px);}
  100% {opacity: 1; transform: translateY(0);}
}

/* --------- CATALOGO (GRID) --------- */
.catalogo {
  padding: 5rem 0;
  /* Fondo transparente para ver las estrellas */
  background-color: transparent; 
  position: relative;
  z-index: 1;
}

.catalogo h2 {
  text-align: center;
  color: var(--rose-accent);
  font-size: 2.3rem;
  margin-bottom: 0.8rem;
}

.catalogo .subtitulo {
  text-align: center;
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

.grid-catalogo {
  display: grid;
  /* Usando el layout del Doc B (3 columnas) */
  grid-template-columns: repeat(3, 1fr); 
  gap: 2.5rem;
}

/* --------- TARJETAS (Estilo "Hover 3D" del Doc B) --------- */
.card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 20px rgba(229, 107, 138, 0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  will-change: transform, box-shadow;
  transform-style: preserve-3d;
}

.card:hover {
  transform: translateY(-14px) rotate3d(1, 1, 0, 4deg) scale(1.04);
  box-shadow: var(--shadow-rose), 0 4px 8px rgba(0, 0, 0, 0.05);
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.4), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.card:hover::before {
  opacity: 1;
}

.card img {
  width: 100%;
  height: 320px; /* Altura del Doc B */
  object-fit: cover;
  transition: transform 0.6s ease;
}

.card:hover img {
  transform: scale(1.08) rotate3d(1, 1, 0, 2deg);
}

.card h3 {
  color: var(--rose-accent);
  font-size: 1.3rem;
  font-weight: 600;
  margin-top: 1.2rem;
  transition: color 0.3s ease;
}

.card:hover h3 {
  color: var(--rose-hover);
}

.card p {
  color: #555;
  font-size: 1rem;
  margin: 0.8rem 1.5rem 1.5rem;
  line-height: 1.5;
}

/* --------- SECCIÓN OFERTAS (Actualizada a fondo Rosa) --------- */
/* IMPORTANTE: He cambiado el color de fondo para que coincida 
   con el nuevo tema, pero manteniendo la técnica mix-blend-mode 
*/
.oferta-banner {
  width: 100%;
  /* Fondo base rosa muy suave */
  background-color: #fff6fa; 
  padding: 3rem 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.oferta-contenido {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  max-width: 1200px;
  width: 100%;
  position: relative;
}

.oferta-texto {
  flex: 1 1 350px;
  text-align: left;
  z-index: 5;
}

.oferta-texto h2 {
  font-size: 3.5rem;
  color: var(--rose-accent); /* Rosa */
  font-weight: 800;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  line-height: 1.1;
}

.oferta-texto p {
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 1.5rem;
}

.btn-oferta {
  display: inline-block;
  padding: 1rem 2.5rem;
  background-color: var(--rose-accent);
  color: #fff;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-oferta:hover {
  background-color: var(--rose-hover);
  transform: translateY(-2px);
}

/* IMAGEN OFERTA */
.oferta-imagen {
  flex: 1 1 550px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.oferta-imagen img {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  mix-blend-mode: multiply; 
  mask-image: radial-gradient(circle, black 50%, transparent 95%);
  -webkit-mask-image: radial-gradient(circle, black 50%, transparent 95%);
}

/* DESVANECIDO LATERAL (Actualizado al color #fff6fa) */
.fade-overlay {
  position: absolute;
  top: 0;
  width: 200px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.fade-overlay.left {
  left: 0;
  /* Degradado hacia #fff6fa */
  background: linear-gradient(to right, #fff6fa 5%, transparent 100%);
}

.fade-overlay.right {
  right: 0;
  /* Degradado hacia #fff6fa */
  background: linear-gradient(to left, #fff6fa 5%, transparent 100%);
}

/* ================= DESTACADOS (Slider) ================= */
.destacados {
  padding: 4rem 0;
  /* Fondo transparente para el canvas */
  background: transparent; 
  position: relative;
  z-index: 1;
}

.destacados h2 {
  text-align: center;
  font-size: 2.4rem;
  color: var(--rose-accent);
  margin-bottom: 0.5rem;
}

.destacados .subtitulo {
  text-align: center;
  color: #666;
  margin-bottom: 2.5rem;
  font-size: 1.1rem;
}

.destacados-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.destacado-card {
  position: relative;
  height: 320px;
  border-radius: 22px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  box-shadow: 0 15px 40px rgba(229, 107, 138, 0.2);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

/* SLIDER INTERNO */
.destacado-card .slider {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 22px;
}

.destacado-card .slider img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.destacado-card .slider img.active {
  opacity: 1;
}

/* OVERLAY DESTACADOS */
.destacado-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(229, 107, 138, 0.75), /* Rosa fuerte */
    rgba(0, 0, 0, 0.45)
  );
  transition: opacity 0.4s ease;
}

.destacado-content {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.destacado-content h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.destacado-content p {
  font-size: 1rem;
  opacity: 0.95;
  margin-bottom: 1.2rem;
}

.badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: #fff;
  color: var(--rose-accent);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
}

.badge.gold {
  background: linear-gradient(135deg, #f8d49d, #e6b566);
  color: #5a3a00;
}

.destacado-card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 25px 55px rgba(229, 107, 138, 0.4);
}

.destacado-card:hover .destacado-overlay {
  opacity: 0.85;
}

/* --------- FOOTER --------- */
.footer-le {
  background-color: var(--rose-accent); /* Rosa */
  color: #fff;
  padding: 3rem 1rem 1.5rem;
  text-align: center;
  position: relative;
  z-index: 2;
}

.footer-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 1200px;
  margin: auto;
  gap: 2rem;
  position: relative;
}

.footer-contacto {
  text-align: center;
}

.footer-social {
  position: absolute;
  right: 0;
  display: flex;
  gap: 1.2rem;
}

.footer-social a {
  color: #fff;
  font-size: 1.3rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer-social a:hover {
  color: var(--champagne);
  transform: scale(1.2);
}

.footer-copy {
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  padding-top: 1rem;
  font-size: 0.9rem;
  opacity: 0.9;
  text-align: center;
}

/* ======================================================================
   RESPONSIVE (Copiado y adaptado del Doc B)
====================================================================== */

/* Tablets (iPad, etc) */
@media (max-width: 1024px) {
  .grid-catalogo {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

/* Móviles Grandes */
@media (max-width: 900px) {
  .hero-content h2 {font-size: 2.3rem;}
  .logo .brand {font-size: 1.7rem;}
  .navbar ul {gap: 1rem;}
  .oferta-contenido {gap: 1.5rem;}
}

/* Móviles Estándar */
@media (max-width: 650px) {
  .header .container {
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
  }

  .logo {
    align-items: center;
  }

  .navbar ul {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .logo .brand {
    font-size: 1.8rem;
  }
  
  /* Ajuste de Hero en móvil */
  .hero { height: 80vh; }
  .hero-content { padding: 1.2rem; }
  .hero-content h2 { font-size: 2rem; }
  .hero-content p { font-size: 1rem; }

  /* Ajuste Oferta en móvil */
  .oferta-banner { padding: 2rem 1rem; }
  
  .footer-social {
    position: static;
    margin-top: 1.5rem;
    justify-content: center;
  }

  .footer-grid {
    flex-direction: column;
  }
}

/* Móviles Pequeños */
@media (max-width: 480px) {
  .grid-catalogo {
    grid-template-columns: 1fr; /* Una sola columna */
  }

  .container {
    width: 95%;
  }

  .catalogo h2 {
    font-size: 1.6rem;
  }
}