/* ============================================================
   Grasse Pharmacie Parfums — Design System 2026
   Monocromo de precisión + color funcional por familia olfativa
   ============================================================ */

/* Tipografía de lujo (debe ir antes de cualquier regla) */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400&display=swap');

/* El atributo [hidden] debe ganar a cualquier display de componente
   (.ck y .ck-form usan display:flex y lo pisaban) */
[hidden] { display: none !important; }

:root {
  --ink: #1d1d1f;
  --paper: #ffffff;
  --mist: #f5f5f7;
  --muted: #6e6e73;
  --hairline: rgba(0, 0, 0, 0.08);
  --glass: rgba(255, 255, 255, 0.72);
  --radius: 22px;
  --wrap: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 99; }

/* ---------- tipografía ---------- */
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted);
}
.display {
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1.04;
}
.display-2 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700; letter-spacing: -0.025em; line-height: 1.08;
}
.title {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700; letter-spacing: -0.02em; margin-bottom: .5em;
}
.lead { font-size: clamp(1.1rem, 2.2vw, 1.35rem); color: var(--muted); max-width: 38em; }
.sub { color: var(--muted); max-width: 42em; }

/* ---------- nav cristal ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  backdrop-filter: blur(18px) saturate(1.6);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.nav.scrolled { border-color: var(--hairline); }
.nav-in {
  max-width: var(--wrap); margin: 0 auto; padding: 0 24px;
  height: 56px; display: flex; align-items: center; gap: 28px;
}
.nav-brand img { width: 132px; height: auto; }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 14px; }
.nav-links a { color: var(--muted); transition: color .2s; padding: 4px 0; }
.nav-links a:hover, .nav-links a.on { color: var(--ink); }
.nav-side { display: flex; align-items: center; gap: 14px; }
.lang {
  font-size: 12px; font-weight: 600; letter-spacing: .08em;
  border: 1px solid var(--hairline); border-radius: 99px; padding: 5px 12px;
  transition: background .2s, color .2s;
}
.lang:hover { background: var(--ink); color: #fff; }
.burger { display: none; background: none; border: 0; width: 36px; height: 36px; cursor: pointer; }
.burger span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 5px auto; transition: transform .3s, opacity .3s; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { text-align: center; padding: 88px 24px 0; }
.hero .display { margin: 18px auto 18px; }
.hero .lead { margin: 0 auto 30px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 56px; }
.hero-fig { max-width: 960px; margin: 0 auto; }
.hero-fig img {
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.18);
}

/* ---------- botones ---------- */
.btn {
  display: inline-block; font-size: 15px; font-weight: 600;
  padding: 12px 26px; border-radius: 99px; cursor: pointer;
  border: 1px solid transparent; font-family: inherit;
  transition: transform .2s ease, box-shadow .2s ease, background .2s, color .2s, opacity .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { box-shadow: 0 10px 24px rgba(0,0,0,.22); }
.btn-ghost { border-color: var(--hairline); color: var(--ink); }
.btn-ghost:hover { background: var(--mist); }

/* ---------- firma: raíl de numerales ---------- */
.strip { padding: 96px 0 84px; text-align: center; }
.strip .title { margin-top: 14px; }
.strip .sub { margin: 8px auto 40px; }
.num-rail {
  display: flex; gap: 10px; overflow-x: auto; padding: 18px 24px 28px;
  scroll-snap-type: x proximity; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.num-rail::-webkit-scrollbar { display: none; }
.num {
  flex: 0 0 auto; scroll-snap-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 18px 20px 14px; border-radius: 18px;
  border: 1px solid var(--hairline);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.num:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,.1); border-color: transparent; }
.num-fig {
  font-size: 44px; font-weight: 700; letter-spacing: -0.04em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.num-dot { width: 9px; height: 9px; border-radius: 99px; background: var(--c); }

/* ---------- tarjetas de portada ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; padding-bottom: 110px; }
.card {
  border-radius: var(--radius); overflow: hidden; background: var(--mist);
  transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(0,0,0,.14); }
.card-img { aspect-ratio: 4 / 3; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 22px 24px 26px; }
.card-body h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.015em; }
.card-body p { color: var(--muted); font-size: 15px; margin: 8px 0 14px; }
.more { font-size: 14px; font-weight: 600; }

/* ---------- banda oscura ---------- */
.band { background: var(--ink); color: #fff; text-align: center; padding: 110px 24px; }
.band .lead { color: rgba(255, 255, 255, 0.65); margin: 16px auto 0; }

/* ---------- páginas interiores ---------- */
.page-head { text-align: center; padding: 84px 24px 40px; }
.page-head .lead { margin: 18px auto 0; }
.wide-fig { padding-bottom: 60px; }
.wide-fig img { border-radius: var(--radius); margin: 0 auto; }
.mist { background: var(--mist); padding: 90px 0; text-align: center; }
.mist .sub { margin: 0 auto 26px; }
.mist .wide-fig { padding: 26px 0 30px; }
.mist .wide-fig img { max-width: 720px; width: 100%; }

/* ---------- catálogo ---------- */
.catalog { padding-bottom: 90px; }
.catalog .title { margin: 56px 0 22px; }
.count { color: var(--muted); font-weight: 400; font-size: .6em; vertical-align: .35em; letter-spacing: 0; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.pcard {
  border: 1px solid var(--hairline); border-radius: 18px; padding: 22px 20px 18px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  scroll-margin-top: 90px;
}
.pcard:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(0,0,0,.1); border-color: var(--c); }
.pcard:target { border-color: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 30%, transparent); }
.pcard-num { font-size: 56px; font-weight: 700; letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.pcard-meta { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 600;
}
.chip i { width: 9px; height: 9px; border-radius: 99px; background: var(--c); flex: none; }
.pcard-sub { font-size: 12.5px; color: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: 10px 18px; justify-content: center; margin-bottom: 10px; }

/* ---------- splits editoriales ---------- */
.splits { display: flex; flex-direction: column; gap: 70px; padding-bottom: 100px; }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.split.flip figure { order: 2; }
.split figure img { border-radius: var(--radius); }
.contact { padding-bottom: 100px; }
.contact .title { margin-top: 22px; }
.mail { font-weight: 600; color: var(--ink); margin-top: 10px; }

/* ---------- prose legal ---------- */
.prose { padding-bottom: 90px; color: var(--ink); }
.prose h1 { text-align: center; margin-bottom: 40px; }
.prose h2 { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.015em; margin: 38px 0 12px; }
.prose h3 { font-size: 1.05rem; font-weight: 600; margin: 26px 0 8px; }
.prose p, .prose li { color: var(--muted); margin-bottom: 12px; }
.prose ol, .prose ul { padding-left: 22px; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 18px 0; }
.prose th { background: var(--ink); color: #fff; text-align: left; padding: 10px 12px; font-weight: 600; }
.prose td { padding: 10px 12px; border-bottom: 1px solid var(--hairline); color: var(--muted); }
.prose i, .prose em { font-size: 14px; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--hairline); padding: 44px 0 56px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 13px; margin-bottom: 16px; }
.foot-links a { color: var(--muted); }
.foot-links a:hover { color: var(--ink); }
.foot-copy { font-size: 13px; color: var(--muted); }
.foot-note { font-size: 11.5px; color: #a1a1a6; margin-top: 10px; max-width: 60em; }

/* ---------- consentimiento de cookies ---------- */
.ck {
  position: fixed; inset: auto 0 0 0; z-index: 90;
  padding: 14px; display: flex; justify-content: center;
}
.ck-card {
  width: min(860px, 100%);
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  backdrop-filter: blur(20px) saturate(1.6);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
  padding: 22px 26px;
  animation: ck-in .5s cubic-bezier(.2,.8,.25,1);
}
@keyframes ck-in { from { transform: translateY(24px); opacity: 0; } }
.ck-card p { font-size: 14px; color: var(--ink); }
.ck-card p a { text-decoration: underline; text-underline-offset: 3px; }
.ck-form { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 14px; font-size: 14px; }
.ck-form label { display: flex; gap: 8px; align-items: center; cursor: pointer; }
.ck-form input { accent-color: var(--ink); width: 16px; height: 16px; cursor: pointer; }
.ck-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.ck-btns .btn { padding: 9px 20px; font-size: 14px; }
.btn-solid { background: var(--ink); color: #fff; }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: #fff; }
.ck-gear {
  position: fixed; left: 14px; bottom: 14px; z-index: 89;
  width: 42px; height: 42px; border-radius: 99px; border: 1px solid var(--hairline);
  background: rgba(255,255,255,.85); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font-size: 18px; cursor: pointer; box-shadow: 0 8px 22px rgba(0,0,0,.14);
}

/* ---------- reveals ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .08s; }
.js .reveal.d2 { transition-delay: .16s; }
.js .reveal.d3 { transition-delay: .24s; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .cards { grid-template-columns: 1fr; }
  .split, .split.flip { grid-template-columns: 1fr; gap: 26px; }
  .split.flip figure { order: 0; }
  .nav-links {
    position: fixed; inset: 56px 0 auto 0; flex-direction: column; gap: 0;
    background: rgba(255,255,255,.92); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--hairline);
    max-height: 0; overflow: hidden; transition: max-height .35s ease;
  }
  .nav-links.open { max-height: 320px; }
  .nav-links a { padding: 15px 24px; font-size: 16px; border-top: 1px solid var(--hairline); }
  .burger { display: block; }
  .hero { padding-top: 56px; }
  .num-fig { font-size: 36px; }
  .pgrid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .pcard-num { font-size: 44px; }
  .ck-btns .btn { flex: 1 1 auto; text-align: center; }
}

/* ---------- accesibilidad: menos movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .ck-card { animation: none; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ============================================================
   Motion premium 2026
   ============================================================ */

/* Titulares: revelado palabra a palabra con máscara */
.js .w-split .w {
  display: inline-block; overflow: hidden; vertical-align: top;
  padding-bottom: .14em; margin-bottom: -.14em;
}
.js .w-split .w > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform .9s cubic-bezier(.2, .75, .2, 1);
}
.js .w-split.in .w > span { transform: none; }

/* Hero: entrada cinematográfica con desenfoque */
.js .hero-fig img {
  transition: transform 1.4s cubic-bezier(.2,.75,.2,1), filter 1.4s ease,
              opacity 1.2s ease, box-shadow .4s ease;
}
.js .hero-fig.reveal img { transform: scale(1.06); filter: blur(14px); opacity: 0; }
.js .hero-fig.reveal.in img { transform: none; filter: blur(0); opacity: 1; }
.hero-fig { will-change: transform; }

/* Raíl de numerales: deriva infinita, pausa al pasar el cursor */
.num-rail.marquee { overflow: hidden; }
.num-rail.marquee .rail-track {
  display: flex; gap: 10px; width: max-content;
  animation: drift 60s linear infinite;
}
.num-rail.marquee:hover .rail-track,
.num-rail.marquee:focus-within .rail-track { animation-play-state: paused; }
@keyframes drift { to { transform: translateX(-50%); } }
.num { background: var(--paper); }

/* Numerales y tarjetas de catálogo: pop escalonado */
.js .pop { opacity: 0; transform: translateY(18px) scale(.96); }
.js .pop.in {
  opacity: 1; transform: none;
  transition: opacity .6s ease, transform .6s cubic-bezier(.2,.75,.25,1.1);
  transition-delay: var(--d, 0s);
}

/* Catálogo: tilt 3D + brillo de la familia siguiendo el cursor */
.pgrid { perspective: 1200px; }
.pcard {
  position: relative; overflow: hidden;
  transform-style: preserve-3d;
  background:
    radial-gradient(220px circle at var(--mx, 50%) var(--my, 0%),
      color-mix(in srgb, var(--c) 16%, transparent), transparent 70%),
    var(--paper);
}
.pcard::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(160px circle at var(--mx,50%) var(--my,0%),
    rgba(255,255,255,.5), transparent 60%);
  opacity: 0; transition: opacity .3s ease; pointer-events: none;
}
.pcard:hover::after { opacity: 1; }

/* Banda oscura: barrido de luz sobre el titular */
.band .display-2 {
  background: linear-gradient(110deg, #fff 35%, #6e6e73 50%, #fff 65%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: shine 5.5s ease-in-out infinite;
}
@keyframes shine { 0%, 25% { background-position: 110% 0; } 60%, 100% { background-position: -60% 0; } }

/* Tarjetas de portada: sombra cromática suave al hover */
.card { will-change: transform; }

/* Botones magnéticos */
.btn-ink, .btn-ghost { will-change: transform; }

/* Engranaje cookies: latido sutil una vez cerrado */
.ck-gear { transition: transform .25s ease; }
.ck-gear:hover { transform: rotate(40deg) scale(1.08); }

/* Reduced motion: desactivar todo el paquete */
@media (prefers-reduced-motion: reduce) {
  .js .w-split .w > span { transform: none; transition: none; }
  .js .hero-fig.reveal img { transform: none; filter: none; opacity: 1; }
  .num-rail.marquee .rail-track { animation: none; }
  .js .pop { opacity: 1; transform: none; }
  .band .display-2 { animation: none; -webkit-text-fill-color: #fff; color: #fff; }
}

/* =========================================================
   PASE PREMIUM 2026 · capa de mejora visual (no destructiva)
   serif de lujo · paleta cálida champán · héroe inmersivo ·
   fichas con identidad de color · pulido de detalles
   ========================================================= */
:root{
  --paper:#faf7f1;
  --mist:#f1ebe1;
  --ink:#1a1714;
  --muted:#6f675d;
  --hairline:rgba(40,28,12,.12);
  --glass:rgba(250,247,241,.72);
  --gold:#b08d57;
  --gold-2:#caa86f;
  --serif:"Fraunces","Cormorant Garamond",Georgia,"Times New Roman",serif;
}
/* atmósfera cálida de fondo */
body{
  background:
    radial-gradient(1100px 520px at 50% -180px, color-mix(in srgb,var(--gold) 11%,transparent), transparent 72%),
    radial-gradient(900px 640px at 100% 6%, color-mix(in srgb,var(--gold) 6%,transparent), transparent 58%),
    var(--paper);
  background-attachment:fixed;
}
/* tipografía de lujo en titulares */
.display,.display-2,.title,.card-body h3,.prose h1,.prose h2{
  font-family:var(--serif); font-weight:500; letter-spacing:-.005em;
}
.display{ line-height:1.02; }
/* eyebrow editorial con filetes dorados */
.eyebrow{ color:var(--gold); letter-spacing:.2em; }
.eyebrow::before,.eyebrow::after{
  content:""; display:inline-block; width:24px; height:1px;
  background:currentColor; vertical-align:middle; margin:0 12px; opacity:.6;
}
/* nav */
.nav-links a:hover,.nav-links a.on{ color:var(--gold); }
.lang:hover{ background:var(--gold); border-color:var(--gold); color:#fff; }
/* botones */
.btn{ letter-spacing:.01em; }
.btn-ink:hover{ box-shadow:0 12px 30px color-mix(in srgb,var(--ink) 38%,transparent); }
.btn-ghost{ border-color:color-mix(in srgb,var(--gold) 50%,var(--hairline)); }
.btn-ghost:hover{ background:transparent; border-color:var(--gold); color:var(--gold); }
.more{ color:var(--gold); }
/* héroe inmersivo: halo + marco con aro dorado */
.hero-fig{ position:relative; }
.hero-fig::before{
  content:""; position:absolute; inset:-7% -5% 6%; z-index:-1;
  background:radial-gradient(58% 58% at 50% 38%, color-mix(in srgb,var(--gold) 24%,transparent), transparent 70%);
  filter:blur(34px);
}
.hero-fig img{
  border-radius:26px;
  box-shadow:
    0 40px 95px -22px rgba(26,18,10,.42),
    0 0 0 1px color-mix(in srgb,var(--gold) 38%,transparent);
}
/* separador dorado antes de la firma de numerales */
.strip::before{
  content:""; display:block; width:54px; height:1px; margin:0 auto 30px;
  background:linear-gradient(90deg,transparent,var(--gold),transparent);
}
/* raíl de numerales */
.num{ background:color-mix(in srgb,var(--paper) 55%,#fff); }
.num-fig{ font-family:var(--serif); font-weight:500; }
.num:hover{ box-shadow:0 16px 34px rgba(26,18,10,.12); border-color:var(--c,var(--gold)); }
/* tarjetas de portada */
.card{ background:color-mix(in srgb,var(--mist) 65%,#fff); }
.card:hover{ box-shadow:0 26px 54px rgba(26,18,10,.16); }
/* catálogo: fichas con lomo de color por familia olfativa */
.pcard{
  position:relative; overflow:hidden;
  background:linear-gradient(180deg, color-mix(in srgb,var(--c) 7%,#fff), #fff);
}
.pcard::before{
  content:""; position:absolute; left:0; top:0; bottom:0; width:4px;
  background:var(--c); opacity:.85;
}
.pcard-num{ font-family:var(--serif); font-weight:500; color:var(--ink); }
.pcard:hover{ box-shadow:0 18px 40px color-mix(in srgb,var(--c) 24%, rgba(26,18,10,.10)); }
/* secciones mist y banda oscura */
.mist{ background:linear-gradient(180deg, var(--mist), color-mix(in srgb,var(--mist) 35%,#fff)); }
.band{
  background:
    radial-gradient(720px 420px at 50% -12%, color-mix(in srgb,var(--gold) 20%,transparent), transparent 60%),
    var(--ink);
}
.band .display-2{ font-weight:500; }
/* footer con remate dorado */
.foot{ border-top:1px solid color-mix(in srgb,var(--gold) 38%,var(--hairline)); }
.foot-links a:hover{ color:var(--gold); }
@media (prefers-reduced-motion: reduce){ body{ background-attachment:scroll; } }
