/* ===============================
   FONTS
================================= */
@font-face{
  font-family:"ClashDisplay";
  src:url("/assets/fonts/ClashDisplay-Variable.woff2") format("woff2");
  font-weight:100 900;
  font-display:swap;
}
@font-face{
  font-family:"Gotham";
  src:url("/assets/fonts/Gotham-Book.woff2") format("woff2");
  font-weight:400;
  font-display:swap;
}
@font-face{
  font-family:"Gotham";
  src:url("/assets/fonts/Gotham-Medium.woff2") format("woff2");
  font-weight:500;
  font-display:swap;
}
@font-face{
  font-family:"Gotham";
  src:url("/assets/fonts/Gotham-Bold.woff2") format("woff2");
  font-weight:700;
  font-display:swap;
}

/* ===============================
   TOKENS
================================= */
:root{
  --bg-1:#F3EFE6;
  --bg-2:#E6DDCE;
  --bg-3:#C7BEAD;

  --navy-1:#1A2634;
  --navy-2:#2E3D52;
  --rose:#BD949C;

  --foil:#C78404;
  --accent:#A55439;

  --text:#303B41;
  --muted:rgba(48,59,65,.72);

  --line:rgba(26,38,52,.10);
  --shadow:0 12px 28px rgba(26,38,52,.10);

  --radius:18px;
  --container:1200px;

  --header-h:64px;
  --mega-h:52px;
  --bridge-h:14px;
}

/* ===============================
   BASE
================================= */
*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:"Gotham", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:linear-gradient(180deg,var(--bg-1),var(--bg-2));
  line-height:1.6;
}
img{ max-width:100%; display:block; }
a{ color:inherit; }

/* ===============================
   LAYOUT
================================= */
.container{
  width:min(100% - 80px, var(--container));
  margin-inline:auto;
  padding-block:84px;
}
.section{ scroll-margin-top:92px; }

/* ===============================
   TYPO
================================= */
h1,h2,h3{
  margin:0 0 16px 0;
  font-family:"ClashDisplay","Gotham",system-ui,sans-serif;
  color:var(--navy-1);
  letter-spacing:-.5px;
}
h1{
  font-size:clamp(34px,4vw,54px);
  line-height:1.05;
  font-weight:600;
}
h2{
  font-size:clamp(24px,2.4vw,34px);
  line-height:1.15;
  font-weight:560;
  margin-bottom:26px;
}
p{
  margin:0 0 14px 0;
  font-size:16px;
  color:var(--muted);
}

/* ===============================
   HEADER
================================= */
.site-header{
  position:sticky;
  top:0;
  z-index:1000;

  /* ✅ clave: contenedor posicionado para mega-bar */
  position: sticky;
}
.site-header{
  background:rgba(243,239,230,.78);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);

  /* ✅ esta es la clave real para ABSOLUTE children */
  position: sticky;
}
.site-header{
  /* ✅ y esta sí importa: */
  position: sticky;
}

/* ✅ IMPORTANTE: sticky no siempre te da un containing block confiable para absolute
   En práctica: fuerza relative */
.site-header{
  position: sticky;
}
.site-header{
  position: sticky;
}
.site-header{
  position: sticky;
}
.site-header{
  position: sticky;
}

/* ✅ DE VERDAD: esta es la línea que necesitas */
.site-header{ position: sticky; }
.site-header{ position: relative; } /* <-- contenedor para mega-bar */

.header-inner{
  width:min(100% - 80px, var(--container));
  margin-inline:auto;
  height:var(--header-h);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}

.brand{
  display:flex;
  align-items:center;
  text-decoration:none;
  font-family:"ClashDisplay","Gotham",sans-serif;
  font-weight:600;
  letter-spacing:-.4px;
  color:var(--navy-1);
  font-size:18px;
}
.brand-logo{
  height:28px;
  width:auto;
  display:block;
}

.nav{
  display:flex;
  align-items:center;
  gap:22px;
}
.nav-link{
  text-decoration:none;
  font-size:13px;
  letter-spacing:.2px;
  color:rgba(26,38,52,.86);
  transition:opacity 180ms ease;
}
.nav-link:hover{ opacity:.62; }
.nav-link.active{ font-weight:700; }

/* ===============================
   MEGA MENU (FULL WIDTH + STABLE)
================================= */
.nav-item.mega{ position: static; }

/* barra full width */
.mega-bar{
  display:none;
  position:absolute;
  left:0;
  right:0;
  top: var(--header-h);
  height: var(--mega-h);

  background:rgba(243,239,230,.94);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
  z-index:999;
}





/* mantener visible cuando ya estás sobre la barra */
.mega-bar:hover{ display:block; }

/* contenido alineado a la derecha */
.mega-bar-inner,
#megaFragrances{
  width:min(100% - 80px, var(--container));
  margin-inline:auto;
  height:100%;

  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:22px;

  overflow-x:auto;
  white-space:nowrap;
  padding-right:40px;
}

.mega-link{
  font-family:"Gotham",sans-serif;
  font-weight:500;
  font-size:13px;
  letter-spacing:.2px;
  color:rgba(26,38,52,.82);
  text-decoration:none;
  padding:8px 0;
  border-bottom:1px solid transparent;
}
.mega-link:hover{
  color:var(--navy-1);
  border-bottom-color:rgba(199,132,4,.55);
}

/* ===============================
   BUTTONS
================================= */
.btn-primary{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 16px;
  border-radius:999px;
  border:1px solid rgba(199,132,4,.35);
  background:linear-gradient(180deg, rgba(199,132,4,.16), rgba(199,132,4,.06));
  color:var(--navy-1);
  text-decoration:none;
  font-weight:700;
  font-size:13px;
}
.btn-primary:hover{ border-color:rgba(199,132,4,.55); }

hr.sep{
  border:0;
  height:1px;
  background:var(--line);
  margin:28px 0;
}

/* ===============================
   FOOTER
================================= */
.site-footer{
  background:linear-gradient(180deg,var(--navy-1),#0f1721);
  color:rgba(243,239,230,.92);
  padding:56px 0;
  border-top:1px solid rgba(255,255,255,.08);
}
.footer-inner{
  width:min(100% - 80px, var(--container));
  margin-inline:auto;
  display:flex;
  justify-content:space-between;
  gap:22px;
  align-items:flex-start;
}
.footer-left strong{
  font-family:"ClashDisplay","Gotham",sans-serif;
  color:#fff;
  font-size:16px;
}
.footer-right a{
  display:block;
  color:rgba(243,239,230,.86);
  text-decoration:none;
  margin-bottom:10px;
  font-size:13px;
}
.footer-right a:hover{ color:#fff; }

/* ===============================
   RESPONSIVE
================================= */
@media (max-width:720px){
  .header-inner{ width: calc(100% - 28px); }
  .container{ width: calc(100% - 28px); padding-block:68px; }
  .nav{ gap:14px; }
  .nav-link{ font-size:12px; }

  .mega-bar-inner,
  #megaFragrances{
    width: calc(100% - 28px);
    padding-right: 18px;
    gap: 16px;
  }
}

/* Mega menu controlado por JS */
.mega-bar {
  display: none;
}

.nav-item.mega.is-open .mega-bar {
  display: block;
}

.mega-bar{ display:none; }
.nav-item.mega.is-open .mega-bar{ display:block; }

/* =====================================================
   HERO FULL-BLEED CON OVERLAY EDITORIAL
===================================================== */

.section-hero{
  padding: 0;
  position: relative;
}

/* Wrapper para permitir superposición */
.hero-wrapper{
  position: relative;
  width: 100%;
  height: 90vh; /* 90% viewport */
  overflow: hidden;
}

/* Ajuste del carrusel para ocupar todo */
.hero-carousel,
.hero-carousel .carousel-track,
.hero-carousel .carousel-slide{
  height: 100%;
}

.hero-carousel .carousel-track{
  aspect-ratio: auto; /* anulamos aspect-ratio anterior */
}

/* =====================================================
   OVERLAY IZQUIERDO (1/3 ancho)
===================================================== */

.hero-overlay{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  pointer-events: none; /* permite interacción con dots */
}

/* Contenido editorial */
.hero-content{
  width: 33.333%;
  min-width: 320px;
  padding-left: 8%;
  color: white;
  pointer-events: auto;

  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* Logo dentro del hero */
.hero-logo{
  width: 180px;
  height: auto;
  filter: brightness(0) invert(1); /* blanco si fondo oscuro */
}

/* Texto */
.hero-text{
  font-family: "Gotham", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  max-width: 420px;
  color: rgba(255,255,255,0.92);
}

/* Overlay oscuro sutil para contraste */
.hero-wrapper::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(
    to right,
    rgba(26,38,52,0.65) 0%,
    rgba(26,38,52,0.45) 35%,
    rgba(26,38,52,0.0) 65%
  );
  z-index:1;
}

.hero-overlay{
  z-index:2;
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 900px){

  .hero-content{
    width: 60%;
    padding-left: 6%;
  }

}

@media (max-width: 640px){

  .hero-content{
    width: 85%;
    padding-left: 5%;
  }

  .hero-logo{
    width: 140px;
  }

}

/* ============================================================
   FRAGRANCES — Section background matches carousel
============================================================ */
:root{
  --fr-bg: rgba(255,255,255);
}

.section-fragrances{
  background: var(--fr-bg);
}

/* el carrusel usa el mismo fondo (por si luego lo cambias) */
.section-fragrances .fr-carousel--full{
  background: var(--fr-bg);
}

/*----*/
#productsToggle{
  display:block;
  margin:40px auto 0;
  padding:16px 34px;

  font-size:14px;
  font-weight:600;

  border-radius:999px;

  background:#E6DDCE;        /* beige que resalta del fondo */
  border:1px solid #ffc857;

  color:var(--navy-1);

  cursor:pointer;
  transition:all 240ms ease;
}

/* hover */
#productsToggle:hover{
  background:#A55439;
  border-color:#A55439;
  color:white;
  transform:translateY(-2px);
}


/* =====================================================
   HEADER — logo izquierda, menú derecha, sticky premium
===================================================== */
.site-header{
  position: sticky;
  top: 0;
  z-index: 1000;

  /* look flotante */
  background: rgba(243,239,230,0.78); /* mismo tono del sitio */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border-bottom: 1px solid rgba(26,38,52,0.08);
}

.header-inner{
  /* ya lo tienes, pero reforzamos el layout */
  display: flex;
  align-items: center;
  justify-content: space-between; /* logo izquierda / nav derecha */
  gap: 22px;
}

/* Logo a la izquierda */
.brand{
  margin-right: auto;
}

/* Menú a la derecha */
.nav{
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

/* (Opcional) reduce un poco la altura visual del header */
.header-inner{
  height: var(--header-h);
}

/* =====================================================
   Responsive Nav (hamburguesa)
===================================================== */

.nav-toggle{
  display:none;
  width:44px;
  height:44px;
  border-radius:999px;
  border:1px solid rgba(26,38,52,0.14);
  background: rgba(243,239,230,0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor:pointer;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:0;
}

.nav-toggle span{
  display:block;
  width:18px;
  height:2px;
  background: rgba(26,38,52,0.86);
  border-radius:999px;
  transition: transform 220ms ease, opacity 220ms ease;
}

/* Mobile layout */
@media (max-width: 720px){
  .nav-toggle{ display:inline-flex; }

  /* oculta nav en móvil por default */
  .nav{
    position:absolute;
    left:0;
    right:0;
    top: var(--header-h);
    display:none;

    flex-direction:column;
    gap:0;

    background: rgba(243,239,230,0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom:1px solid rgba(26,38,52,0.10);
    padding: 12px 14px;
    z-index: 999;
  }

  .nav .nav-link{
    display:block;
    padding: 12px 6px;
    font-size: 13px;
  }

  /* cuando está abierto */
  .site-header.is-nav-open .nav{
    display:flex;
  }

  /* animación ícono -> X */
  .site-header.is-nav-open .nav-toggle span:nth-child(1){
    transform: translateY(8px) rotate(45deg);
  }
  .site-header.is-nav-open .nav-toggle span:nth-child(2){
    opacity: 0;
  }
  .site-header.is-nav-open .nav-toggle span:nth-child(3){
    transform: translateY(-8px) rotate(-45deg);
  }
}

/* ABOUT — full height pero arranca arriba (sin hueco visual) */
.section-about{
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: flex-start;   /* antes: center */
  background: none;          /* para que no se diferencie */
}

.section-about .container{
  padding-top: 48px;         /* ajusta el aire arriba */
  padding-bottom: 84px;      /* puedes dejar el default */
}

/* Products: menos padding abajo para que no haya desierto */
#products .container{
  padding-bottom: 48px; /* antes: 84px del .container global */
}

/* =====================================================
   CONTACT — split layout (image + form)
   (Pegar al FINAL de main.css o components.css)
===================================================== */

.section-contact{
  background: #ECE5D8; /* premium intermedio */
}

.section-contact .container{
  padding-block: 84px; /* consistente con tu sistema */
}

.contact-wrap{
  display: flex;
  gap: 28px;
  align-items: stretch;
}

.contact-visual{
  flex: 1.15;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255,255,255,0.45);
  box-shadow: 0 12px 28px rgba(26,38,52,0.06);
  border: 1px solid rgba(26,38,52,0.08);
  min-height: 520px;
}

.contact-visual img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
}

.contact-card{
  flex: 0.85;
  border-radius: 18px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(26,38,52,0.08);
  box-shadow: 0 12px 28px rgba(26,38,52,0.06);
  padding: 26px;
}

.contact-title{
  margin: 0 0 10px 0;
  font-family:"ClashDisplay","Gotham",system-ui,sans-serif;
  color: rgba(26,38,52,0.92);
}

.contact-subtitle{
  margin: 0 0 18px 0;
  color: rgba(48,59,65,.72);
}

.contact-form{
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field span{
  display:block;
  font-size: 12px;
  letter-spacing: .2px;
  color: rgba(26,38,52,.78);
  margin-bottom: 6px;
}

.field input,
.field textarea{
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(26,38,52,0.12);
  background: rgba(243,239,230,0.55);
  padding: 12px 12px;
  font-family: "Gotham", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 14px;
  color: rgba(26,38,52,0.88);
  outline: none;
}

.field input:focus,
.field textarea:focus{
  border-color: rgba(199,132,4,.55);
  box-shadow: 0 0 0 3px rgba(199,132,4,.15);
}

.contact-cta{
  margin-top: 6px;
  width: 100%;
  justify-content: center;
}

.contact-meta{
  margin-top: 10px;
  font-size: 13px;
  color: rgba(48,59,65,.72);
}

.contact-meta a{
  color: rgba(26,38,52,.78);
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 920px){
  .contact-wrap{ flex-direction: column; }
  .contact-visual{ min-height: 360px; }
}
