/* ============================================================
   OZI · site.css — lo común a todas las páginas (v3)
   Base: los estilos de la web de Dennis (colores, tipografía,
   barra de progreso, menú, botones, cierre, footer, WhatsApp).
   Regla v3: nada se esconde sin JS. Las animaciones solo ocultan
   contenido bajo html.anim (la pone el <head> cuando GSAP cargó
   y el visitante no pidió movimiento reducido).
   ============================================================ */
:root {
  --navy:        #0a1830;
  --navy-deep:   #060f22;
  --paper:       #f4f1ea;
  --silver:      #c8d1e0;
  --silver-mute: #8896b0;
  --line:        rgba(244, 241, 234, 0.14);
  --line-strong: rgba(244, 241, 234, 0.28);
  --gold:        #4a8dc7;
  --glow:        rgba(74, 141, 199, 0.35);
  --ease-out:    cubic-bezier(.23, 1, .32, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--navy);
  color: var(--paper);
  font-family: 'Montserrat', system-ui, sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;           /* navegadores viejos */
  overflow-x: clip;             /* corta igual, pero deja funcionar position: sticky */
  line-height: 1.5;
}
html.menu-open, body.menu-open { overflow: hidden; }
::selection { background: var(--gold); color: var(--navy); }
img, video { max-width: 100%; }

/* Film grain (de Dennis) */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 4;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--paper); color: var(--navy);
  padding: 10px 16px; border-radius: 100px; font-size: 13px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.progress-bar {
  position: fixed; top: 0; left: 0;
  height: 2px; width: 0%;
  background: var(--gold);
  z-index: 100;
  box-shadow: 0 0 10px var(--gold);
}

.wrap { max-width: 1320px; margin: 0 auto; padding: 0 36px; position: relative; z-index: 2; }
.wrap-tight { max-width: 980px; margin: 0 auto; padding: 0 36px; position: relative; z-index: 2; }
@media (max-width: 720px) { .wrap, .wrap-tight { padding: 0 22px; } }

em { font-style: italic; }

/* ============================================================
   NAV (de Dennis) + selector de idioma (nuevo)
   ============================================================ */
nav.top {
  position: fixed; top: 0; left: 0; right: 0;
  padding: 16px 36px;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  z-index: 60;
  transition: backdrop-filter .4s, background .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
nav.top.scrolled {
  background: rgba(10, 24, 48, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 720px) { nav.top { padding: 12px 22px; } }

nav.top .nav-logo { display: flex; align-items: center; text-decoration: none; color: var(--paper); }
nav.top .nav-logo img { width: auto; height: 46px; object-fit: contain; transition: transform .5s cubic-bezier(.4,0,.2,1); }
nav.top .nav-logo:hover img { transform: scale(1.08); }

.nav-right { display: flex; align-items: center; gap: 34px; }

nav.top ul.nav-desktop {
  list-style: none; display: flex; gap: 40px;
  font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase;
  font-weight: 400;
}
nav.top ul.nav-desktop a {
  color: var(--silver); text-decoration: none;
  transition: color .3s; position: relative; padding: 6px 0;
}
nav.top ul.nav-desktop a:hover { color: var(--paper); }
nav.top ul.nav-desktop a.is-active { color: var(--gold); }
nav.top ul.nav-desktop a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px;
  background: var(--gold); transition: width .35s ease;
}
nav.top ul.nav-desktop a:hover::after,
nav.top ul.nav-desktop a.is-active::after { width: 100%; }
@media (max-width: 880px) { nav.top ul.nav-desktop { display: none; } }

/* Selector de idioma: EN activo; ES/NL/PAP se encienden cuando existan /es/ /nl/ /pap/ */
.lang {
  display: flex; align-items: center; gap: 2px;
  font-size: 10px; letter-spacing: 0.18em; font-weight: 400;
  border: 1px solid var(--line); border-radius: 100px; padding: 3px;
}
.lang a, .lang span {
  padding: 6px 9px; border-radius: 100px; text-decoration: none;
  color: var(--silver-mute); line-height: 1;
}
.lang [aria-current="true"] { color: var(--navy); background: var(--silver); }
.lang .soon { opacity: .5; cursor: default; }
@media (max-width: 880px) { nav.top .lang { display: none; } }
.menu-foot .lang { display: inline-flex; margin-top: 16px; }

.menu-btn {
  display: none; background: none;
  border: 1px solid var(--line-strong);
  border-radius: 100px; padding: 12px 14px;
  cursor: pointer; z-index: 70; color: var(--paper);
  transition: border-color .25s; -webkit-tap-highlight-color: transparent;
}
.menu-btn:hover, .menu-btn:focus-visible { border-color: var(--gold); outline: none; }
.menu-btn .bars { display: flex; flex-direction: column; gap: 4px; width: 18px; }
.menu-btn .bars span {
  display: block; height: 1.5px; background: var(--paper); border-radius: 1px;
  transition: transform .35s cubic-bezier(.7,0,.3,1), opacity .25s, background .25s;
  transform-origin: center;
}
.menu-btn[aria-expanded="true"] .bars span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); background: var(--gold); }
.menu-btn[aria-expanded="true"] .bars span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] .bars span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); background: var(--gold); }
@media (max-width: 880px) { .menu-btn { display: block; } }

.menu-backdrop {
  position: fixed; inset: 0; background: rgba(6, 15, 34, 0.7);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  z-index: 55; opacity: 0; pointer-events: none; transition: opacity .35s ease;
}
.menu-backdrop.is-open { opacity: 1; pointer-events: auto; }

.menu-panel {
  position: fixed; top: 0; right: 0;
  width: min(82vw, 420px); height: 100dvh;
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 100%);
  border-left: 1px solid var(--line-strong);
  z-index: 58; padding: 100px 36px 40px;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .5s cubic-bezier(.7,0,.2,1), visibility 0s linear .5s;
  display: flex; flex-direction: column;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.menu-panel.is-open { transform: translateX(0); visibility: visible; transition: transform .5s cubic-bezier(.7,0,.2,1); }
.menu-panel ul { list-style: none; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.menu-panel li { border-bottom: 1px solid var(--line); }
.menu-panel li:last-of-type { border-bottom: 0; }
.menu-panel ul a {
  display: flex; align-items: baseline; justify-content: space-between;
  text-decoration: none; padding: 22px 4px;
  font-family: 'Cormorant', serif; font-weight: 300; font-style: italic;
  font-size: 32px; letter-spacing: -0.01em; color: var(--paper);
  transition: color .3s, padding-left .3s;
  -webkit-tap-highlight-color: transparent;
}
.menu-panel a .menu-num {
  font-size: 11px; font-style: normal; letter-spacing: 0.2em;
  font-family: 'Montserrat', sans-serif; color: var(--silver-mute);
  font-weight: 400; text-transform: uppercase;
}
.menu-panel ul a:hover, .menu-panel ul a:focus-visible { color: var(--gold); padding-left: 8px; outline: none; }
.menu-panel ul a.is-active { color: var(--gold); }
.menu-foot {
  margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--silver-mute); letter-spacing: 0.04em; line-height: 1.8;
}
.menu-foot > a { color: var(--silver); text-decoration: none; display: block; padding: 4px 0; font-size: 13px; }
.menu-foot > a:hover { color: var(--gold); }
.menu-foot .menu-tagline {
  font-family: 'Cormorant', serif; font-style: italic;
  color: var(--gold); font-size: 16px; margin-top: 14px; display: block;
}

/* ============================================================
   BOTONES Y ENLACES (de Dennis)
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 20px 34px;
  background: var(--paper); color: var(--navy);
  text-decoration: none;
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  font-weight: 500; border-radius: 100px;
  position: relative; overflow: hidden;
  min-height: 48px;
  transition: box-shadow .35s, transform .16s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn::before {
  content: ""; position: absolute; inset: 0;
  background: var(--gold);
  transform: translateY(101%);
  transition: transform .5s cubic-bezier(.6,0,.2,1);
  z-index: 0;
}
.btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover::before { transform: translateY(0); }
  .btn:hover { box-shadow: 0 20px 40px rgba(74, 141, 199, 0.3); }
  .btn:hover .arrow { transform: translateX(8px); }
}
.btn:focus-visible::before { transform: translateY(0); }
.btn:focus-visible { box-shadow: 0 20px 40px rgba(74, 141, 199, 0.3); outline: none; }
.btn span { position: relative; z-index: 1; }
.btn .arrow { transition: transform .35s cubic-bezier(.6,0,.2,1); font-family: 'Cormorant', serif; font-size: 18px; }
.btn-wrap { display: inline-block; }

.panel-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid transparent;
  transition: border-color .3s, gap .3s;
}
.panel-link:hover, .panel-link:focus-visible { border-color: var(--gold); gap: 16px; outline: none; }
.panel-link .ar { font-family: 'Cormorant', serif; font-size: 17px; }

.wa-line { margin-top: 18px; font-size: 13px; color: var(--silver-mute); letter-spacing: 0.02em; }
.wa-line a { color: var(--silver); text-decoration: none; border-bottom: 1px solid var(--line-strong); transition: color .25s, border-color .25s; }
.wa-line a:hover { color: var(--paper); border-color: var(--gold); }

/* ============================================================
   CABECERA DE PÁGINAS INTERIORES (de Dennis, común)
   ============================================================ */
.page-hero { padding: 180px 0 100px; border-bottom: 1px solid var(--line); position: relative; }
@media (max-width: 720px) { .page-hero { padding: 130px 0 70px; } }
.page-hero::before {
  content: ""; position: absolute; width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(74, 141, 199, 0.08) 0%, transparent 70%);
  top: -200px; left: -200px; pointer-events: none; filter: blur(20px);
}
.page-eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--silver-mute); margin-bottom: 38px;
}
.page-eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--gold); }
.page-eyebrow .num { color: var(--gold); font-family: "Cormorant", serif; font-style: italic; }
h1.page-title {
  font-family: "Cormorant", serif; font-weight: 300;
  font-size: clamp(46px, 8vw, 128px); line-height: 0.95;
  letter-spacing: -0.025em; color: var(--paper); max-width: 14ch;
}
h1.page-title em { font-style: italic; font-weight: 400; color: var(--gold); }
.page-intro { margin-top: 50px; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: end; }
@media (max-width: 880px) { .page-intro { grid-template-columns: 1fr; gap: 36px; } }
.page-intro p { font-size: clamp(16px, 1.4vw, 19px); line-height: 1.7; color: var(--silver); max-width: 50ch; font-weight: 300; }
.page-intro .intro-meta {
  border-left: 1px solid var(--line-strong); padding-left: 28px; font-size: 13px;
  color: var(--silver-mute); line-height: 1.9; letter-spacing: 0.04em;
}
.page-intro .intro-meta b {
  display: block; color: var(--paper); font-family: "Cormorant", serif; font-weight: 400;
  font-style: italic; font-size: 17px; margin-bottom: 6px;
}

.section-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 20px;
  padding-bottom: 20px; margin-bottom: 50px; border-bottom: 1px solid var(--line);
  font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase;
}
.section-head .num { color: var(--gold); }
.section-head .label { color: var(--silver-mute); text-align: right; }
.section-title {
  font-family: 'Cormorant', serif; font-weight: 300;
  font-size: clamp(34px, 4.6vw, 66px); line-height: 1.03; letter-spacing: -0.025em;
  color: var(--paper); max-width: 20ch; margin-bottom: 26px;
}
.section-title em { font-weight: 400; color: var(--gold); }
.section-lead { font-size: clamp(15px, 1.25vw, 17px); line-height: 1.8; color: var(--silver); max-width: 60ch; margin-bottom: 60px; }

/* ============================================================
   CIERRE (CTA) + FOOTER (de Dennis)
   ============================================================ */
section.cta {
  padding: 170px 0 150px;
  border-top: 1px solid var(--line);
  background: var(--navy-deep);
  position: relative;
  overflow: hidden;
}
@media (max-width: 880px) { section.cta { padding: 90px 0; } }
.cta-inner { display: grid; grid-template-columns: 1.35fr 1fr; gap: 80px; align-items: end; }
@media (max-width: 880px) { .cta-inner { grid-template-columns: 1fr; gap: 40px; } }
.cta-center { text-align: center; max-width: 820px; margin: 0 auto; }
.cta-center p { margin-left: auto; margin-right: auto; }
.cta h2 {
  font-family: 'Cormorant', serif; font-weight: 300;
  font-size: clamp(40px, 6.6vw, 104px);
  line-height: 0.98; letter-spacing: -0.03em;
  color: var(--paper); max-width: 13ch;
}
.cta-center h2 { max-width: none; margin-bottom: 30px; }
.cta h2 em { font-style: italic; font-weight: 400; color: var(--gold); }
.cta p { font-size: 16px; line-height: 1.8; color: var(--silver); margin-bottom: 34px; max-width: 38ch; }
.cta-tagline {
  margin-top: 90px; text-align: center;
  font-family: 'Cormorant', serif; font-style: italic; font-size: 22px; color: var(--gold);
}

footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--line);
  background: var(--navy-deep);
  position: relative; z-index: 2;
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.3fr 1fr 1fr; gap: 50px; margin-bottom: 70px; }
@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
footer .footer-brand { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
footer .footer-brand img { width: 132px; height: auto; object-fit: contain; }
footer p.tag { font-size: 13px; color: var(--silver-mute); line-height: 1.7; max-width: 32ch; }
footer .footer-tagline {
  margin-top: 14px;
  font-family: 'Cormorant', serif; font-style: italic;
  font-weight: 300; font-size: 18px; color: var(--gold);
}
footer h2.f-h {
  font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--silver-mute); margin-bottom: 20px; font-weight: 400;
}
footer ul { list-style: none; }
footer li { font-size: 13px; color: var(--silver); margin-bottom: 12px; letter-spacing: 0.02em; }
footer li.f-place { margin-top: 14px; color: var(--silver-mute); }
footer a {
  color: inherit; text-decoration: none;
  transition: color .25s, padding-left .25s;
  display: inline-flex; align-items: center; gap: 10px; padding: 2px 0;
}
footer a:hover { color: var(--gold); padding-left: 4px; }
footer a svg { width: 16px; height: 16px; flex-shrink: 0; }
.footer-bottom {
  border-top: 1px solid var(--line); padding-top: 32px;
  display: flex; justify-content: space-between; gap: 14px;
  font-size: 11px; color: var(--silver-mute);
  letter-spacing: 0.15em; text-transform: uppercase;
}
.footer-credit a { color: var(--gold); text-decoration: none; transition: opacity .25s; }
.footer-credit a:hover { opacity: 0.7; }
@media (max-width: 720px) { .footer-bottom { flex-direction: column; } }

@media (hover: none) { .magnetic { transform: none !important; } }

/* ============================================================
   WHATSAPP FLOTANTE (de Dennis)
   ============================================================ */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 54;
  display: flex; align-items: center; gap: 0;
  text-decoration: none; -webkit-tap-highlight-color: transparent;
}
.wa-float .wa-ring {
  width: 56px; height: 56px; flex-shrink: 0; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px -6px rgba(37, 211, 102, 0.5), 0 4px 12px rgba(0,0,0,0.3);
  transition: transform .35s cubic-bezier(.6,0,.2,1), box-shadow .35s;
}
.wa-float .wa-label {
  max-width: 0; overflow: hidden; white-space: nowrap;
  color: #f4f1ea; font-family: 'Montserrat', sans-serif;
  font-size: 13px; letter-spacing: 0.04em; font-weight: 400;
  background: rgba(6, 15, 34, 0.9); backdrop-filter: blur(10px);
  border-radius: 100px 0 0 100px; line-height: 56px; height: 56px;
  opacity: 0; padding: 0;
  transition: max-width .4s cubic-bezier(.6,0,.2,1), opacity .3s, padding .4s;
  box-shadow: 0 10px 30px -6px rgba(0,0,0,0.4);
}
@media (hover: hover) and (pointer: fine) {
  .wa-float:hover .wa-label, .wa-float:focus-visible .wa-label { max-width: 160px; opacity: 1; padding: 0 22px 0 20px; }
  .wa-float:hover .wa-ring, .wa-float:focus-visible .wa-ring { transform: scale(1.06); }
}
.wa-float:focus-visible { outline: none; }
.wa-float:focus-visible .wa-ring { outline: 2px solid var(--gold); outline-offset: 3px; }
@media (max-width: 720px) {
  .wa-float { bottom: 18px; right: 18px; }
  .wa-float .wa-ring { width: 52px; height: 52px; }
}

/* ============================================================
   APARICIONES — solo con html.anim (sin JS todo se ve)
   ============================================================ */
.anim .reveal, .anim .reveal-up { opacity: 0; transform: translateY(26px); }
.anim .reveal-fade { opacity: 0; }
.anim .page-hero .page-eyebrow { opacity: 0; transform: translateY(20px); }
.anim .page-hero h1.page-title { opacity: 0; transform: translateY(30px); }

/* FAQ (acordeón nativo <details>, suave con JS) */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 28px 0;
  font-family: 'Cormorant', serif; font-weight: 400;
  font-size: clamp(21px, 2.1vw, 28px); line-height: 1.2; color: var(--paper);
  transition: color .3s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; flex-shrink: 0;
  font-family: 'Montserrat', sans-serif; font-weight: 200; font-size: 26px;
  color: var(--gold); transition: transform .35s var(--ease-out);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
@media (hover: hover) and (pointer: fine) { .faq-item summary:hover { color: var(--gold); } }
.faq-answer { overflow: hidden; }
.faq-answer p { font-size: 15px; line-height: 1.8; color: var(--silver); max-width: 64ch; padding-bottom: 16px; }
.faq-answer p:last-child { padding-bottom: 30px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
