/* =====================================================================
   WAL Living · styles.css  (versión 8: dirección C · Luz interior)
   - Noche petróleo muy profunda con una luz dorada que ilumina desde arriba.
   - Las secciones de lectura larga van en marfil cálido para descansar la vista;
     las de impacto (portada, cifras, banda, contacto, pie) van en petróleo.
   - Títulos en Cormorant Garamond (fina y elegante), texto en DM Sans.
   - Botones con borde dorado sobre oscuro y petróleo sólido sobre claro.
   - Cada programa conserva su color GILDED: dorado, teal y cyan.
   Mobile first. Todo se ajusta en :root.
   ===================================================================== */

:root {
  /* Paleta GILDED */
  --petrol: #0D4F63;
  --night: #07222B;          /* fondo de las secciones oscuras */
  --night-2: #0A2E39;        /* tarjetas sobre oscuro */
  --teal: #1A7A8A;
  --cyan: #1E9DB5;
  --aqua: #26B5A0;
  --green: #5DB870;
  --olive: #8DBF45;
  --gold: #D4A020;
  --gold-deep: #C9820B;
  --gold-light: #E9C46A;     /* dorado legible sobre oscuro */
  --gold-text: #8A5C08;      /* dorado legible sobre claro */

  /* Superficies claras */
  --ivory: #F5F1E6;
  --ivory-2: #EDE6D6;
  --card: #FBF8F1;
  --line: #DCD3BF;
  --line-dark: rgba(233,223,200,.16);

  /* Texto */
  --ink: #0E2830;
  --text: #33464B;
  --text-soft: #5D6E72;
  --on-dark: #F5F1E6;
  --on-dark-soft: #B9CACC;

  --gilded-line: linear-gradient(90deg, #0D4F63 0 11.11%, #1A7A8A 0 22.22%, #1E9DB5 0 33.33%, #26B5A0 0 44.44%, #5DB870 0 55.55%, #8DBF45 0 66.66%, #C4B820 0 77.77%, #D4A020 0 88.88%, #C9820B 0);
  --glow: radial-gradient(closest-side, rgba(212,160,32,.36), rgba(212,160,32,.12) 55%, rgba(212,160,32,0));

  --f-display: "Cormorant Garamond", Georgia, serif;
  --f-text: "DM Sans", system-ui, -apple-system, sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --radius: 10px;
  --header-h: 76px;
  --max: 1160px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; scrollbar-color: #9DB3B3 var(--ivory); }
body { margin: 0; font-family: var(--f-text); font-size: 1.02rem; line-height: 1.8; color: var(--text); background: var(--ivory); overflow-x: hidden; -webkit-font-smoothing: antialiased; caret-color: var(--petrol); }
::selection { background: #F1DDA6; color: var(--ink); }
img, svg, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--petrol); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 500; color: var(--ink); line-height: 1.08; margin: 0 0 .4em; letter-spacing: -.005em; text-wrap: balance; }
em { font-style: italic; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
strong { color: var(--ink); font-weight: 700; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.container.narrow { max-width: 720px; }
.container.mid { max-width: 1040px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--petrol); color: #fff; padding: 10px 16px; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.center { text-align: center; }

/* ---------- Títulos de sección ---------- */
.h2 { font-size: clamp(2.5rem, 5.6vw, 3.8rem); }
.tagline { font-family: var(--f-display); font-style: italic; font-weight: 500; font-size: clamp(1.3rem, 2.6vw, 1.65rem); line-height: 1.35; color: var(--gold-text); max-width: 32em; margin: 0; }
.accent { color: inherit; }
.sec-head { text-align: center; margin: 0 auto 56px; max-width: 780px; }
.sec-head .h2 { margin-bottom: .2em; }
.sec-head .tagline { margin: 0 auto; }
.sec-head::after { content: ""; display: block; width: 56px; height: 1px; margin: 28px auto 0; background: var(--gold); }
.sec-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; text-align: left; max-width: none; }
.sec-head-row::after { display: none; }
.sec-head-row .tagline { margin: 0; }
.section-sub { color: var(--text-soft); margin: 10px 0 0; }
.fine-print { font-size: .82rem; color: var(--text-soft); margin-top: 22px; max-width: 760px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em; text-align: center;
  min-height: 50px; padding: 13px 30px; border-radius: 0;
  font-family: var(--f-text); font-weight: 500; font-size: .92rem; letter-spacing: .08em; line-height: 1.3;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease, color 200ms ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn-sm { min-height: 42px; padding: 9px 18px; font-size: .84rem; }
.btn-lg { min-height: 56px; padding: 16px 36px; font-size: .98rem; }
/* Sobre claro: petróleo sólido */
.btn-primary, .btn-gold { background: var(--petrol); color: var(--on-dark); }
/* Sobre oscuro: borde dorado */
.btn-light, .btn-outline-light { background: transparent; color: var(--on-dark); border-color: var(--gold); }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover, .btn-gold:hover { background: var(--night); }
  .btn-light:hover, .btn-outline-light:hover { background: rgba(212,160,32,.14); }
}
.text-link { font-weight: 500; color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.text-link-light { color: var(--on-dark); text-decoration-color: var(--gold); }

/* Pendientes (solo con showPendingMarkers: true) */
.show-pending .is-pending { position: relative; outline: 2px dashed var(--gold); outline-offset: 4px; }
.show-pending .is-pending::after {
  content: "pendiente"; position: absolute; top: -12px; right: 8px; pointer-events: none;
  font: 700 .58rem/1.4 var(--f-text); letter-spacing: .08em; text-transform: uppercase;
  background: var(--gold); color: var(--ink); border-radius: 999px; padding: 1px 7px;
}
.show-pending .whatsapp-float.is-pending { position: fixed; }
.whatsapp-float.is-pending::after { display: none; }

/* ---------- Encabezado (oscuro) ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(7,34,43,.9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color 200ms ease, background-color 200ms ease; }
.site-header.scrolled { border-color: var(--line-dark); background: rgba(7,34,43,.96); }
.header-inner { min-height: var(--header-h); display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.brand { margin-right: auto; }
.brand img { width: 100px; filter: brightness(0) invert(1); }
.header-cta { order: 2; background: transparent !important; color: var(--on-dark) !important; border-color: var(--gold) !important; }
@media (hover: hover) and (pointer: fine) { .header-cta:hover { background: rgba(212,160,32,.14) !important; } }
.nav-toggle { order: 3; width: 44px; height: 44px; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--on-dark); }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; display: block; width: 22px; height: 1.5px; background: currentColor; transition: transform 200ms var(--ease-out); }
.nav-toggle-bar { position: relative; }
.nav-toggle-bar::before { position: absolute; top: -7px; }
.nav-toggle-bar::after { position: absolute; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 420px) { .header-cta { display: none; } }

.main-nav { order: 4; flex-basis: 100%; display: none; padding: 0 0 16px; }
.main-nav.open { display: block; }
.main-nav li a { display: block; padding: 12px 2px; color: var(--on-dark); text-decoration: none; border-bottom: 1px solid var(--line-dark); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; }
@media (min-width: 1040px) {
  .header-inner { flex-wrap: nowrap; }
  .brand img { width: 112px; }
  .nav-toggle { display: none; }
  .main-nav { order: 1; display: block; flex-basis: auto; padding: 0; margin-right: 24px; }
  .main-nav ul { display: flex; gap: 4px; }
  .main-nav li a { border: 0; padding: 10px 12px; font-size: .76rem; color: #D9CFB8; transition: color 200ms ease; }
  .main-nav li a[aria-current="true"] { color: var(--gold-light); }
}
@media (min-width: 1040px) and (hover: hover) and (pointer: fine) { .main-nav li a:hover { color: #fff; } }

/* ---------- Portada: bosque en penumbra con luz dorada ---------- */
.hero { position: relative; min-height: min(88vh, 820px); display: flex; align-items: center; text-align: center; color: var(--on-dark); background: var(--night); overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -3; opacity: .55; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(180deg, rgba(7,34,43,.55) 0%, rgba(7,34,43,.35) 40%, rgba(7,34,43,.92) 100%); }
.hero-glow { position: absolute; left: 50%; top: -38%; width: min(1200px, 160vw); aspect-ratio: 1.6; transform: translateX(-50%); background: var(--glow); z-index: -1; pointer-events: none; }
.hero-inner { width: 100%; padding-top: 96px; padding-bottom: 96px; }
.hero-copy { max-width: 860px; margin: 0 auto; }
.hero h1 { color: #fff; font-size: clamp(2.8rem, 8vw, 5.4rem); line-height: 1.02; margin: 0 auto .35em; }
.hero h1 em { color: var(--gold-light); }
.lead { font-size: clamp(1.02rem, 1.8vw, 1.15rem); line-height: 1.75; color: var(--on-dark-soft); max-width: 34em; margin: 0 auto 34px; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px 28px; }
.hero-tag { font-size: .74rem; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin: 56px 0 0; }
.hero-tag span { margin: 0 .5em; }

/* ---------- Impacto (oscuro) ---------- */
.impact { position: relative; padding: 96px 0; background: var(--night); color: var(--on-dark-soft); overflow: hidden; border-top: 1px solid var(--line-dark); }
.impact-grid { display: grid; gap: 18px 64px; margin-bottom: 48px; }
.impact .h2 { color: #fff; margin: 0 0 .25em; }
.impact .tagline { color: var(--gold-light); }
.impact-text { color: var(--on-dark-soft); max-width: 30em; margin: 0; }
@media (min-width: 900px) { .impact-grid { grid-template-columns: 1.3fr 1fr; align-items: end; } }
.stats { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-dark); }
.stat { padding: 30px 12px 6px; display: flex; flex-direction: column; gap: 6px; text-align: center; }
.stat-num { font-family: var(--f-display); font-weight: 500; font-size: clamp(3rem, 7vw, 4.4rem); line-height: 1; color: var(--gold-light); font-variant-numeric: tabular-nums lining-nums; }
.stat-num.stat-text { font-size: clamp(1.6rem, 3.4vw, 2.2rem); line-height: 1.1; padding-top: .4em; }
.stat-label { font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-soft); }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, 1fr); } .stat + .stat { border-left: 1px solid var(--line-dark); } }

/* ---------- Secciones (claras) ---------- */
.section { padding: 96px 0; }
.section.soft { background: var(--ivory-2); }
@media (min-width: 900px) { .section { padding: 128px 0; } }

/* La historia */
.story-intro { display: grid; gap: 40px; align-items: center; margin-bottom: 72px; }
.story-photo { margin: 0; }
.story-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 999px 999px 0 0; }
.story-photo img[src*="camilo-marcela"] { object-position: 55% 30%; }
.story-intro-text { text-align: center; }
.story-intro-text .h2 { font-size: clamp(2.8rem, 6vw, 4rem); }
.story-intro-text .tagline { margin: 0 auto 24px; }
.story-intro-text p:not(.tagline) { max-width: 34em; margin: 0 auto 30px; }
@media (min-width: 900px) { .story-intro { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 80px; } }
.story-text p { font-size: 1.04rem; }
.pull-quote { position: relative; margin: 56px 0; text-align: center; padding: 48px 20px; background: var(--night); color: var(--on-dark); overflow: hidden; isolation: isolate; }
.pull-quote::before { content: ""; position: absolute; left: 50%; top: -60%; width: 700px; aspect-ratio: 1.6; transform: translateX(-50%); background: var(--glow); z-index: -1; }
.pull-quote p { margin: 0; }
.pull-quote p:first-child { font-family: var(--f-display); font-style: italic; font-weight: 500; font-size: clamp(3rem, 9vw, 4.8rem); line-height: 1; color: var(--gold-light); }
.pull-answer { font-size: 1.05rem; color: var(--on-dark-soft); margin-top: 14px !important; }
/* Línea de tiempo: en letra normal, sin resaltar */
.timeline { margin: 32px 0; }
.timeline li { padding: 0; margin: 0 0 1em; font-size: 1.04rem; }
.tl-year { font-weight: 700; color: var(--ink); }
.tl-year::after { content: ". "; }
.story-sign { font-family: var(--f-display); font-style: italic; font-weight: 500; font-size: clamp(2rem, 4vw, 2.6rem) !important; color: var(--petrol); text-align: center; margin-top: 40px; }

/* Lo que nos hace diferentes */
.diff-intro { display: grid; gap: 24px 64px; margin-bottom: 56px; }
.diff-intro p { margin: 0; max-width: 36em; }
.statement { font-family: var(--f-display); font-style: italic; font-weight: 500; font-size: clamp(2rem, 4vw, 2.8rem) !important; line-height: 1.15; color: var(--petrol); }
@media (min-width: 900px) { .diff-intro { grid-template-columns: 1.1fr 1fr; align-items: center; } }

.compare { background: var(--card); border: 1px solid var(--line); margin-bottom: 72px; }
.compare-row { display: grid; grid-template-columns: 1fr 1fr; }
.compare-row span { padding: 18px 16px; font-size: .95rem; line-height: 1.5; }
.compare-row + .compare-row { border-top: 1px solid var(--line); }
.compare-row span:first-child { color: var(--text-soft); }
.compare-row span:last-child { color: var(--ink); font-weight: 500; background: #F3EBD6; border-left: 1px solid var(--line); }
.compare-head span { font-size: .74rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.compare-head span:last-child { background: var(--night); color: var(--gold-light); }
@media (min-width: 768px) { .compare-row span { padding: 20px 32px; font-size: 1rem; } }

.diff-pair { display: grid; gap: 40px; }
.diff-pair h3 { font-size: clamp(2rem, 3.4vw, 2.5rem); }
@media (min-width: 900px) { .diff-pair { grid-template-columns: 1fr 1fr; gap: 72px; } }

/* Cómo lo hacemos */
.steps { display: grid; gap: 20px; }
@media (min-width: 960px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.step { background: var(--card); border: 1px solid var(--line); padding: 36px 28px; }
.step-num { display: flex; align-items: baseline; gap: 14px; font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-soft); margin-bottom: 16px; }
.step-num span { font-family: var(--f-display); font-style: italic; font-weight: 500; font-size: 3.4rem; letter-spacing: 0; line-height: 1; color: var(--gold-deep); font-variant-numeric: lining-nums; }
.step h3 { font-size: clamp(1.9rem, 2.8vw, 2.2rem); }
.step > p:not(.step-num) { color: var(--text-soft); }
.step-list { margin-top: 18px; border-top: 1px solid var(--line); }
.step-list li { position: relative; padding: 13px 0 13px 22px; border-bottom: 1px solid var(--line); font-size: .95rem; line-height: 1.6; }
.step-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.step-list li::before { content: ""; position: absolute; left: 2px; top: 22px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }

/* Banda de marca: bosque + luz */
.manifesto { position: relative; padding: 140px 0; color: var(--on-dark); background: linear-gradient(180deg, rgba(7,34,43,.85), rgba(7,34,43,.7) 50%, rgba(7,34,43,.9)), url("assets/img/tmp-bosque-3.jpg") center / cover no-repeat; overflow: hidden; isolation: isolate; }
.manifesto::before { content: ""; position: absolute; left: 50%; top: -50%; width: min(1100px, 160vw); aspect-ratio: 1.6; transform: translateX(-50%); background: var(--glow); z-index: -1; }
.manifesto p { margin: 0; }
.manifesto-brand { font-size: .74rem; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px !important; }
.manifesto-title { font-family: var(--f-display); font-weight: 500; font-size: clamp(3.2rem, 8.6vw, 6.2rem); line-height: 1; color: #fff; }
.manifesto-sub { font-family: var(--f-display); font-style: italic; font-size: clamp(1.4rem, 2.8vw, 1.9rem); color: var(--gold-light); margin-top: 18px !important; }

/* Programas */
.programs-intro { display: grid; gap: 16px 64px; margin-bottom: 48px; }
.programs-intro p { margin: 0; max-width: 36em; }
@media (min-width: 900px) { .programs-intro { grid-template-columns: 1fr 1fr; } }

.tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 6px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .tabs { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 0; gap: 18px; } }
.tab { position: relative; scroll-snap-align: start; aspect-ratio: 4 / 5; border: 0; padding: 0; border-radius: 999px 999px 0 0; overflow: hidden; cursor: pointer; text-align: center; font-family: var(--f-text); color: #fff; background: var(--night); isolation: isolate; transition: transform 160ms var(--ease-out); }
.tab:active { transform: scale(0.98); }
.tab-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .75; transition: transform 600ms var(--ease-out), opacity 300ms ease; }
.tab::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7,34,43,.1) 30%, rgba(7,34,43,.92) 100%); }
.tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: var(--c); transition: height 200ms var(--ease-out); }
.tab-text { position: absolute; left: 18px; right: 18px; bottom: 26px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.tab-name { font-family: var(--f-display); font-weight: 500; font-size: clamp(2rem, 3vw, 2.4rem); line-height: 1.05; }
.tab-sub { font-family: var(--f-display); font-style: italic; font-size: 1.15rem; color: var(--gold-light); }
.tab-pill { margin-top: 16px; display: inline-block; border: 1px solid rgba(255,255,255,.6); color: #fff; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; padding: 9px 18px; transition: background-color 200ms ease, border-color 200ms ease; }
.tab[aria-selected="true"]::after { height: 5px; }
.tab[aria-selected="true"] .tab-img { opacity: 1; }
.tab[aria-selected="true"] .tab-pill { background: var(--c); border-color: var(--c); }
@media (hover: hover) and (pointer: fine) { .tab:hover .tab-img { transform: scale(1.04); opacity: 1; } }

.program { margin-top: 32px; background: var(--card); border: 1px solid var(--line); }
.program[hidden] { display: none; }
.program-top { position: relative; padding: 44px 24px 36px; text-align: center; background: var(--night); color: var(--on-dark); overflow: hidden; isolation: isolate; border-bottom: 5px solid var(--c); }
.program-top::before { content: ""; position: absolute; left: 50%; top: -70%; width: 900px; aspect-ratio: 1.6; transform: translateX(-50%); background: var(--glow); z-index: -1; }
.program-kind { font-size: .74rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.program-kind span { margin: 0 .5em; }
.program-hook { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.05; color: #fff; margin: 0 auto; max-width: 16em; }
.program-body { display: grid; gap: 36px; padding: 36px 24px; }
.program-question { font-family: var(--f-display); font-style: italic; font-weight: 500; font-size: clamp(1.6rem, 2.8vw, 2rem) !important; line-height: 1.3; color: var(--ink); margin: 28px 0 !important; }
.program-turn { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.6rem, 2.8vw, 2rem) !important; line-height: 1.2; color: var(--c-text); margin-top: 28px !important; }
.side-title { font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-soft); margin-bottom: 8px; }
.pillars li { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: .95rem; line-height: 1.6; color: var(--text-soft); }
.pillars li:first-child { border-top: 1px solid var(--line); }
.pillars strong { display: block; font-family: var(--f-display); font-weight: 600; font-size: 1.45rem; line-height: 1.2; color: var(--ink); margin-bottom: 4px; }
.format { margin-top: 26px; padding: 24px 24px 8px; background: var(--c-soft); }
.format-title { font-family: var(--f-display); font-weight: 600; font-size: 1.7rem; line-height: 1.15; color: var(--ink); margin-bottom: 8px; }
.format-meta { font-size: .9rem; font-weight: 700; color: var(--c-text); }
.format p:last-child { font-size: .94rem; }
.program-close { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; padding: 32px 24px; background: var(--night); color: var(--on-dark-soft); }
.program-close p { margin: 0 0 .6em; max-width: 40em; }
.close-title { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.9rem, 3.4vw, 2.5rem); line-height: 1.1; color: #fff; }
.close-sign { font-family: var(--f-display); font-style: italic; font-size: 1.3rem; color: var(--gold-light); margin: 0 !important; }
.program-close .btn { background: transparent; color: var(--on-dark); border-color: var(--gold); }
@media (hover: hover) and (pointer: fine) { .program-close .btn:hover { background: rgba(212,160,32,.14); } }
.program-note { font-size: .84rem; color: var(--text-soft); padding: 16px 24px; margin: 0; }
@media (min-width: 900px) {
  .program-top { padding: 64px 48px 52px; }
  .program-body { grid-template-columns: 1.15fr 1fr; gap: 64px; padding: 52px 48px; }
  .program-close { flex-direction: row; align-items: center; justify-content: space-between; gap: 40px; padding: 40px 48px; }
  .program-close .btn { flex: none; }
  .program-note { padding: 16px 48px; }
}
@media (prefers-reduced-motion: no-preference) { .program:not([hidden]) { animation: panel-in 320ms var(--ease-out); } }
@keyframes panel-in { from { opacity: .4; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Quiénes hacemos WAL Living */
.team-intro { text-align: center; max-width: 42em; margin: -24px auto 64px; color: var(--text-soft); }
.people { display: grid; gap: 64px; }
.person { display: grid; gap: 30px; align-items: center; }
.person-photo { aspect-ratio: 4 / 5; background: #C9DCDA; border-radius: 999px 999px 0 0; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.person:nth-child(2) .person-photo { background: #E3D8BC; }
.person-photo img.cutout { height: 90%; width: auto; max-width: none; object-fit: contain; }
.person-body { text-align: center; }
.person-body h3 { font-size: clamp(2.6rem, 5vw, 3.4rem); margin-bottom: .05em; }
.person-role { font-family: var(--f-display); font-style: italic; font-size: 1.35rem; color: var(--gold-text); margin-bottom: 18px; }
.person-cred { margin: 20px auto 0 !important; padding-top: 20px; border-top: 1px solid var(--line); color: var(--text-soft); font-style: italic; }
@media (min-width: 900px) {
  .person { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 80px; }
  .person:nth-child(2) .person-photo { order: 2; }
  .person-body p { max-width: 36em; margin-left: auto; margin-right: auto; }
}

/* Testimonios */
.testimonials-intro { max-width: 46em; margin: -24px 0 36px; }
.carousel-nav { display: none; gap: 10px; flex: none; }
@media (min-width: 768px) { .carousel-nav { display: flex; } }
.arrow { width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, border-color 200ms ease; }
.arrow:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .arrow:hover { background: var(--night); color: var(--gold-light); border-color: var(--night); } }

.carousel {
  display: grid; grid-auto-flow: column; grid-auto-columns: 78%;
  gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px;
  padding: 6px 16px 18px; scrollbar-width: thin; scrollbar-color: #9DB3B3 transparent; overscroll-behavior-x: contain;
}
@media (min-width: 640px) { .carousel { grid-auto-columns: 44%; } }
@media (min-width: 980px) {
  .carousel { grid-auto-columns: calc((min(100vw, var(--max)) - 64px - 48px) / 4); padding-left: max(32px, calc((100vw - var(--max)) / 2 + 32px)); padding-right: 32px; scroll-padding-left: max(32px, calc((100vw - var(--max)) / 2 + 32px)); }
}
.testimonial-card { scroll-snap-align: start; background: var(--card); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; }
.video-frame { position: relative; aspect-ratio: 4 / 5; background: var(--night); }
.video-frame img, .video-frame video, .video-frame iframe { width: 100%; height: 100%; object-fit: cover; border: 0; display: block; }
.play-btn { position: absolute; inset: 0; width: 100%; border: 0; padding: 0; cursor: pointer; background: linear-gradient(180deg, transparent 55%, rgba(7,34,43,.6)); display: grid; place-items: center; }
.play-btn img { position: absolute; inset: 0; }
.play-icon { position: relative; width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; background: transparent; border: 1px solid var(--gold); color: var(--gold-light); transition: transform 200ms var(--ease-out), background-color 200ms ease; }
.play-btn:active .play-icon { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .play-btn:hover .play-icon { transform: scale(1.06); background: rgba(212,160,32,.18); } }
.video-missing { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; text-align: center; background: rgba(7,34,43,.9); color: var(--gold-light); font-weight: 500; }
.testimonial-body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.t-before { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); margin-bottom: .5em; }
.t-before span { display: block; text-transform: none; letter-spacing: 0; font-size: .9rem; color: var(--text-soft); margin-top: 2px; }
.testimonial-quote { font-family: var(--f-display); font-style: italic; font-weight: 500; font-size: 1.35rem; line-height: 1.35; color: var(--ink); margin-bottom: .8em; flex: 1; }
.testimonial-meta { font-size: .88rem; font-weight: 700; color: var(--ink); margin: 0; }
.show-pending .testimonial-card.is-placeholder { outline: 2px dashed var(--gold); outline-offset: -2px; }

/* Habla con nosotros (oscuro) */
.next-step { position: relative; color: var(--on-dark-soft); padding: 128px 0; background: var(--night); overflow: hidden; isolation: isolate; }
.next-step::before { content: ""; position: absolute; left: 50%; top: -45%; width: min(1100px, 160vw); aspect-ratio: 1.6; transform: translateX(-50%); background: var(--glow); z-index: -1; }
.next-step .h2 { color: #fff; font-size: clamp(3rem, 7vw, 4.6rem); margin: 0 auto .15em; }
.next-step .tagline { color: var(--gold-light); margin: 0 auto 26px; text-align: center; }
.next-text { font-size: clamp(1.05rem, 2vw, 1.18rem); line-height: 1.7; margin: 0 auto 16px; max-width: 32em; color: var(--on-dark); }
.next-detail { max-width: 36em; margin: 0 auto 36px; }
.next-detail strong { color: #fff; }
.next-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.next-actions .btn { flex: 1 1 260px; max-width: 360px; }
.next-actions .btn-gold { background: var(--gold); color: var(--night); border-color: var(--gold); }
@media (hover: hover) and (pointer: fine) { .next-actions .btn-gold:hover { background: var(--gold-light); } }
.next-actions .btn-outline-light { border-color: rgba(245,241,230,.5); }

/* Pie */
.site-footer { position: relative; background: var(--night); color: var(--on-dark-soft); padding: 64px 0 100px; border-top: 1px solid var(--line-dark); }
.footer-grid { display: grid; gap: 30px; padding-bottom: 32px; border-bottom: 1px solid var(--line-dark); }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.logo-white { filter: brightness(0) invert(1); }
.footer-brand img { width: 140px; margin-bottom: 14px; }
.footer-brand p { margin: 0 0 4px; font-family: var(--f-display); font-style: italic; font-size: 1.3rem; color: var(--gold-light); }
.footer-brand .footer-place { font-family: var(--f-text); font-style: normal; font-size: .88rem; color: var(--on-dark-soft); }
.footer-title { font-family: var(--f-text); font-weight: 500; color: var(--gold); font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; margin-bottom: 14px; }
.footer-links li + li { margin-top: 6px; }
.footer-links a { color: var(--on-dark); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.legal { font-size: .82rem; margin: 26px 0 8px; max-width: 70em; }
.copyright { font-size: .82rem; margin: 0; }
.site-footer::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--gilded-line); }

/* WhatsApp flotante */
.whatsapp-float { position: fixed; right: 16px; bottom: 16px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; background: #1F9D55; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 20px -8px rgba(0,0,0,.4); transition: transform 160ms var(--ease-out), opacity 200ms ease; }
.whatsapp-float:active { transform: scale(0.94); }
.whatsapp-float.is-tucked { opacity: 0; transform: scale(.9); pointer-events: none; }
@media (min-width: 768px) { .whatsapp-float { right: 24px; bottom: 24px; } }

/* Movimiento: la luz se enciende al cargar la portada */
@media (prefers-reduced-motion: no-preference) {
  .js .hero .reveal { animation: hero-in 900ms var(--ease-out) both; }
  .js .hero h1.reveal { animation-delay: 150ms; }
  .js .hero .lead.reveal { animation-delay: 300ms; }
  .js .hero .hero-actions.reveal { animation-delay: 450ms; }
  .js .hero .hero-tag.reveal { animation-delay: 600ms; }
  .js .hero-glow { animation: glow-in 2200ms var(--ease-out) both; }
  .js .hero-bg { animation: hero-bg-in 2400ms var(--ease-out) both; }
}
@keyframes hero-in { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes glow-in { from { opacity: 0; transform: translateX(-50%) scale(.85); } to { opacity: 1; transform: translateX(-50%) scale(1); } }
@keyframes hero-bg-in { from { opacity: 0; transform: scale(1.06); } to { opacity: .9; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:active, .arrow:active, .tab:active, .whatsapp-float:active, .play-btn:active .play-icon { transform: none; }
  .tab-img, .nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { transition: none; }
}

/* Retrato a foto completa (no recorte) dentro del arco */
.person-photo img.portrait { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }

/* Camilo y Marcela: misma columna, mismo arco y mismo tamaño de foto (recortes sin fondo) */
.person-photo { width: 100%; max-width: 380px; justify-self: center; }
.person-photo img.cutout { height: 92%; width: auto; max-width: 100%; object-fit: contain; object-position: bottom center; }
@media (min-width: 900px) { .person:nth-child(2) { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); } }

/* Tres cifras */
@media (min-width: 768px) { .stats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px) { .stat[data-stat="paises"] { grid-column: 1 / -1; border-top: 1px solid var(--line-dark); } }
/* Desvanecido inferior: suaviza los bordes rectos donde la foto original estaba cortada */
.person-photo img.cutout { -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent 100%); mask-image: linear-gradient(180deg, #000 78%, transparent 100%); }


/* ---------- Testimonios: videos horizontales en cuadrícula (2 filas de 4 en escritorio) ---------- */
.testimonial-grid { display: grid; grid-template-columns: 1fr; gap: 20px; width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .testimonial-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .testimonial-grid { padding: 0 32px; } }
@media (min-width: 1040px) { .testimonial-grid { grid-template-columns: repeat(4, 1fr); } }
.testimonial-grid .video-frame { aspect-ratio: 16 / 9; }
.testimonial-grid .play-icon { width: 52px; height: 52px; }
.testimonial-grid .testimonial-quote { font-size: 1.2rem; }

/* "Somos Camilo y Marcela": los nombres resaltados */
.names { font-family: var(--f-display); font-style: italic; font-weight: 600; font-size: 1.35em; line-height: 1; color: var(--petrol); }
/* Tres cifras numéricas: ya no hace falta la fila completa para "presencia" en celular */
@media (max-width: 767px) { .stats { grid-template-columns: 1fr; } .stat + .stat { border-top: 1px solid var(--line-dark); } }

/* ---------- Nuestra esencia: compacta, dos columnas en escritorio ---------- */
.essence { padding: 72px 0; background: var(--ivory); }
.essence-grid { display: grid; gap: 28px 72px; align-items: center; max-width: 1040px; }
.essence-intro .h2 { font-size: clamp(2.4rem, 5vw, 3.2rem); margin-bottom: .1em; }
.essence-intro .tagline { margin-bottom: 18px; }
.essence-text { margin: 0; max-width: 28em; color: var(--text-soft); }
.essence-def { margin: 0; border-top: 1px solid var(--line); }
.essence-row { display: grid; grid-template-columns: 96px 1fr; gap: 20px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); }
.essence-row dt { font-family: var(--f-display); font-weight: 600; font-size: 1.7rem; line-height: 1; color: var(--petrol); }
.essence-row dt span { display: block; margin-top: 6px; font-family: var(--f-text); font-weight: 400; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text-soft); }
.essence-row dd { margin: 0; line-height: 1.6; color: var(--text); }
.wal-words { display: block; font-family: var(--f-display); font-size: clamp(1.9rem, 3.6vw, 2.4rem); line-height: 1.05; color: var(--ink); margin-bottom: 4px; }
.wal-words b { font-weight: 600; color: var(--gold-deep); }
.essence-sign { grid-column: 1 / -1; text-align: center; margin: 8px 0 0; font-family: var(--f-display); font-style: italic; font-weight: 500; font-size: clamp(1.35rem, 2.6vw, 1.7rem); line-height: 1.3; color: var(--petrol); }
.essence-sign::before, .essence-sign::after { content: ""; display: inline-block; width: 40px; height: 1px; background: var(--gold); vertical-align: middle; margin: 0 16px; }
@media (min-width: 900px) { .essence-grid { grid-template-columns: .9fr 1.1fr; } .essence { padding: 88px 0; } }
@media (max-width: 560px) { .essence-sign::before, .essence-sign::after { display: none; } }

/* =====================================================================
   ENSAYO · "La historia" con la foto de los dos fundida en el fondo
   (sin marco: la foto se desvanece hacia el marfil, como en el ejemplo)
   ===================================================================== */
.story { padding-top: 0; }
.story-intro { position: relative; max-width: none; margin: 0 0 72px; padding: 0; display: block; overflow: hidden; }
.story-intro .story-photo { position: relative; margin: 0; height: 380px; }
.story-intro .story-photo img {
  width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: 55% 28%; border-radius: 0;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
}
.story-intro .story-intro-text { position: relative; margin-top: -40px; padding: 0 16px; text-align: center; }
@media (min-width: 900px) {
  .story-intro { min-height: 640px; display: flex; align-items: center; }
  .story-intro .story-photo { position: absolute; inset: 0 auto 0 0; width: 62%; height: auto; }
  .story-intro .story-photo img {
    -webkit-mask-image: linear-gradient(90deg, #000 58%, rgba(0,0,0,.45) 80%, transparent 100%), linear-gradient(180deg, transparent 0, #000 12%, #000 86%, transparent 100%);
    -webkit-mask-composite: source-in;
            mask-image: linear-gradient(90deg, #000 58%, rgba(0,0,0,.45) 80%, transparent 100%), linear-gradient(180deg, transparent 0, #000 12%, #000 86%, transparent 100%);
            mask-composite: intersect;
  }
  .story-intro .story-intro-text {
    margin: 0 max(32px, calc((100vw - var(--max)) / 2 + 32px)) 0 auto;
    width: min(480px, 36vw); padding: 120px 0; text-align: left;
  }
  .story-intro-text .tagline, .story-intro-text p:not(.tagline) { margin-left: 0; margin-right: 0; }
}

/* =====================================================================
   ENSAYO · Fotos individuales fundidas con el fondo (sin arco ni color)
   Camilo: se desvanece hacia la derecha y abajo. Marcela: hacia la izquierda y abajo.
   ===================================================================== */
.people { gap: 24px; }
.person { gap: 0; }
.person-photo { background: none !important; border-radius: 0; max-width: 460px; aspect-ratio: 4 / 5; }
.person-photo img.cutout {
  height: 100%; width: 100%; max-width: none; object-fit: contain; object-position: bottom center;
  -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 62%, transparent 100%);
}
.person-body { position: relative; margin-top: -48px; }
@media (min-width: 900px) {
  .person { gap: 24px; }
  .person-photo { max-width: none; }
  .person-body { margin-top: 0; }
  .person:nth-child(1) .person-photo img.cutout {
    -webkit-mask-image: linear-gradient(90deg, #000 55%, transparent 100%), linear-gradient(180deg, #000 60%, transparent 100%);
    -webkit-mask-composite: source-in;
            mask-image: linear-gradient(90deg, #000 55%, transparent 100%), linear-gradient(180deg, #000 60%, transparent 100%);
            mask-composite: intersect;
  }
  .person:nth-child(2) .person-photo img.cutout {
    -webkit-mask-image: linear-gradient(270deg, #000 55%, transparent 100%), linear-gradient(180deg, #000 60%, transparent 100%);
    -webkit-mask-composite: source-in;
            mask-image: linear-gradient(270deg, #000 55%, transparent 100%), linear-gradient(180deg, #000 60%, transparent 100%);
            mask-composite: intersect;
  }
}

/* ---------- Pie: barra legal y disclaimer ---------- */
.legal-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding: 24px 0 18px; }
.legal-bar .copyright { margin: 0; font-size: .84rem; color: var(--on-dark); }
.legal-links { display: flex; gap: 24px; }
.legal-links a { font-size: .84rem; color: var(--gold-light); text-decoration: underline; text-decoration-color: rgba(233,196,106,.4); text-underline-offset: 4px; }
.legal-links a:hover { text-decoration-color: var(--gold-light); }
.disclaimer { padding-top: 18px; border-top: 1px solid var(--line-dark); }
.disclaimer p { font-size: .76rem; line-height: 1.65; color: rgba(185,202,204,.82); margin: 0 0 .9em; max-width: 78em; }

/* Camilo: su recorte es cuadrado y su texto más largo; foto más grande para equilibrar con Marcela */
.person:nth-child(1) .person-photo { aspect-ratio: 1 / 1; max-width: 520px; }
@media (min-width: 900px) {
  .person:nth-child(1) { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .person:nth-child(1) .person-photo { max-width: none; }
}

/* Portada: "Puedes volver a ti." siempre en su propia línea */
.hero h1 em { display: block; margin-top: .08em; }

/* ---------- Línea de tiempo (hitos) ---------- */
.milestones-wrap { max-width: 1240px; }
.milestones { list-style: none; margin: 40px 0 48px; padding: 0; position: relative; display: grid; gap: 30px; }
.milestones::before { content: ""; position: absolute; left: 8px; top: 10px; bottom: 10px; width: 2px; background: var(--gold-deep); opacity: .75; }
.milestones li { position: relative; padding-left: 40px; margin: 0; }
.ms-dot { position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--gold-deep); background: radial-gradient(circle, var(--gold-deep) 0 3.5px, var(--ivory) 4.5px); box-sizing: border-box; }
.ms-year { display: block; font-family: var(--f-display); font-weight: 600; font-size: 1.75rem; line-height: 1; color: var(--gold-text); font-variant-numeric: lining-nums; }
.ms-title { font-family: var(--f-text); font-size: .76rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); margin: 10px 0 6px; line-height: 1.4; }
.milestones p { font-size: .92rem; line-height: 1.6; margin: 0; color: var(--text); }
@media (min-width: 1040px) {
  .milestones { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 22px; margin: 56px 0 64px; }
  .milestones::before { left: calc(100% / 14); right: calc(100% / 14); top: 8px; bottom: auto; width: auto; height: 2px; }
  .milestones li { padding: 0; text-align: center; }
  .ms-dot { position: relative; display: block; left: auto; top: auto; margin: 0 auto 22px; }
  .ms-title { min-height: 2.8em; display: flex; align-items: flex-start; justify-content: center; }
  .milestones p { font-size: .86rem; }
}
/* En móvil la línea termina en el último punto */
.milestones li:last-child::after { content: ""; position: absolute; left: 7px; top: 22px; bottom: -12px; width: 4px; background: var(--ivory); }
@media (min-width: 1040px) { .milestones li:last-child::after { display: none; } }

/* Foto de los dos: se corre a la izquierda y el fundido empieza después de Marcela */
@media (min-width: 900px) {
  .story-intro .story-photo { left: -8%; width: 70%; }
  .story-intro .story-photo img {
    -webkit-mask-image: linear-gradient(90deg, #000 74%, rgba(0,0,0,.5) 88%, transparent 100%), linear-gradient(180deg, transparent 0, #000 12%, #000 86%, transparent 100%);
            mask-image: linear-gradient(90deg, #000 74%, rgba(0,0,0,.5) 88%, transparent 100%), linear-gradient(180deg, transparent 0, #000 12%, #000 86%, transparent 100%);
  }
}
/* Línea de tiempo más compacta */
.ms-year { font-size: 1.3rem; }
.ms-title { font-size: .66rem; letter-spacing: .12em; margin: 6px 0 4px; }
.milestones p { font-size: .82rem; line-height: 1.5; }
.milestones { gap: 22px; }
.ms-dot { width: 14px; height: 14px; background: radial-gradient(circle, var(--gold-deep) 0 2.5px, var(--ivory) 3.5px); }
.milestones::before { left: 6px; }
.milestones li { padding-left: 32px; }
.milestones li:last-child::after { left: 5px; top: 18px; }
@media (min-width: 1040px) {
  .milestones { gap: 18px; margin: 40px 0 48px; }
  .milestones::before { left: calc(100% / 14); top: 6px; }
  .milestones li { padding: 0; }
  .ms-dot { margin-bottom: 14px; }
  .ms-title { min-height: 2.7em; }
  .milestones p { font-size: .76rem; }
}

/* ---------- Línea de tiempo curva (journey) ---------- */
.journey-wrap { max-width: 1240px; margin-top: 24px; margin-bottom: 40px; }
.journey { position: relative; }
.journey-svg { display: none; }
.journey-list { list-style: none; margin: 0; padding: 0; position: relative; }
.j-year { font-family: var(--f-display); font-weight: 600; font-size: 1.3rem; line-height: 1; color: var(--gold-text); font-variant-numeric: lining-nums; }
.j-title { font-family: var(--f-text); font-size: .66rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); line-height: 1.4; }
.j-dot { width: 18px; height: 18px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 34% 30%, #EEF4F0 0, #A9C3C6 38%, #4F7F8E 75%, var(--petrol) 100%);
  box-shadow: 0 0 0 3px var(--ivory), 0 0 0 4px rgba(13,79,99,.35), 0 3px 8px rgba(13,79,99,.25);
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease; }
.journey-btn { font: inherit; background: none; border: 0; padding: 0; cursor: pointer; color: inherit; -webkit-tap-highlight-color: transparent; }
.journey-card { background: #fff; border: 1px solid rgba(13,79,99,.12); border-radius: 14px; box-shadow: 0 14px 34px -14px rgba(14,40,48,.35); padding: 14px 16px; }
.journey-card p { margin: 0; font-size: .86rem; line-height: 1.55; color: var(--text); }
.is-open .j-dot { transform: scale(1.3); box-shadow: 0 0 0 3px var(--ivory), 0 0 0 5px var(--gold), 0 4px 12px rgba(13,79,99,.3); }
.journey-hint { margin: 10px 0 0; text-align: center; font-size: .8rem; font-style: italic; color: var(--muted, #5b6b70); }
.hint-desk { display: none; }

/* Celular y tableta: vertical, se abre al tocar */
@media (max-width: 1039px) {
  .journey-list::before { content: ""; position: absolute; left: 8px; top: 12px; bottom: 12px; width: 2px; border-radius: 2px; background: linear-gradient(var(--petrol), rgba(13,79,99,.35)); opacity: .55; }
  .journey-item { position: relative; padding: 0 0 18px; }
  .journey-btn { display: grid; grid-template-columns: 18px auto 1fr; align-items: center; column-gap: 14px; width: 100%; text-align: left; padding: 4px 0; }
  .j-dot { grid-column: 1; grid-row: 1; }
  .j-year { grid-column: 2; grid-row: 1; }
  .j-title { grid-column: 3; grid-row: 1; }
  .journey-card { display: none; margin: 10px 0 0 32px; }
  .journey-item.is-open .journey-card { display: block; animation: jIn .25s ease; }
}

/* Escritorio: curva horizontal, se abre al pasar el cursor */
@media (min-width: 1040px) {
  .journey { height: 340px; }
  .journey-svg { display: block; position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
  .journey-path { fill: none; stroke: var(--petrol); stroke-width: 1.6; opacity: .7; vector-effect: non-scaling-stroke; }
  .journey-wave { stroke: none; }
  .journey-wave.w1 { fill: rgba(169,195,198,.22); }
  .journey-wave.w2 { fill: rgba(212,160,32,.08); }
  .journey-list { position: absolute; inset: 0; }
  .journey-item { position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); width: 0; height: 0; }
  .journey-btn { position: absolute; left: 0; bottom: -9px; transform: translateX(-50%); width: 150px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
  .j-title { min-height: 2.8em; display: flex; align-items: flex-end; justify-content: center; margin-bottom: 8px; }
  .journey-card { position: absolute; top: 22px; left: 0; width: 250px; transform: translate(-50%, 6px); opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .22s ease .08s, transform .22s ease .08s, visibility 0s linear .3s; z-index: 4; }
  .journey-item:first-child .journey-card { transform: translate(-22%, 6px); }
  .journey-item:last-child .journey-card { transform: translate(-78%, 6px); }
  .journey-item:hover, .journey-item:focus-within, .journey-item.is-open { z-index: 5; }
  .journey-item:hover .journey-card, .journey-item:focus-within .journey-card, .journey-item.is-open .journey-card { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .22s ease, transform .22s ease, visibility 0s; }
  .journey-item:first-child:hover .journey-card, .journey-item:first-child:focus-within .journey-card, .journey-item:first-child.is-open .journey-card { transform: translate(-22%, 0); }
  .journey-item:last-child:hover .journey-card, .journey-item:last-child:focus-within .journey-card, .journey-item:last-child.is-open .journey-card { transform: translate(-78%, 0); }
  .journey-item:hover .j-dot, .journey-item:focus-within .j-dot { transform: scale(1.3); box-shadow: 0 0 0 3px var(--ivory), 0 0 0 5px var(--gold), 0 4px 12px rgba(13,79,99,.3); }
  .hint-desk { display: inline; }
  .hint-touch { display: none; }
}
@keyframes jIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .j-dot, .journey-card { transition: none !important; animation: none !important; } }
@media (min-width: 1040px) {
  .journey { height: 310px; }
  .journey-wave.w1 { fill: url(#jg1); }
  .journey-wave.w2 { fill: url(#jg2); }
  .journey-svg { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%); }
  .journey-hint { margin-top: 18px; }
}

/* Camilo: foto nueva (vertical) y un poco más grande */
.person:nth-child(1) .person-photo { aspect-ratio: 87 / 100; max-width: 560px; }
@media (min-width: 900px) {
  .person:nth-child(1) { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
  .person:nth-child(1) .person-photo img.cutout {
    -webkit-mask-image: linear-gradient(90deg, #000 68%, transparent 100%), linear-gradient(180deg, #000 66%, transparent 100%);
            mask-image: linear-gradient(90deg, #000 68%, transparent 100%), linear-gradient(180deg, #000 66%, transparent 100%);
  }
}
@media (min-width: 900px) {
  .person:nth-child(1) .person-photo { max-width: none; align-self: center; }
  .person:nth-child(1) .person-photo img.cutout {
    -webkit-mask-image: linear-gradient(90deg, #000 72%, transparent 100%), linear-gradient(180deg, #000 76%, transparent 100%);
            mask-image: linear-gradient(90deg, #000 72%, transparent 100%), linear-gradient(180deg, #000 76%, transparent 100%);
  }
}

/* Cierre de cada bio: la frase que resume su visión */
.person-close { margin: 26px auto 0 !important; padding-top: 22px; position: relative; max-width: 30em;
  font-family: var(--f-display); font-style: italic; font-weight: 500; font-size: 1.32rem; line-height: 1.45; color: var(--petrol); }
.person-close::before { content: ""; position: absolute; top: 0; left: 50%; width: 48px; height: 1px; background: var(--gold); transform: translateX(-50%); }
.person-cred + .person-close { margin-top: 20px !important; }
.person-cred { font-style: normal; }

/* Bios largas: texto alineado a la izquierda y foto que acompaña al leer */
@media (min-width: 900px) {
  .person { align-items: start; }
  .person-photo { position: sticky; top: calc(var(--header-h) + 32px); }
  .person-body { text-align: left; }
  .person-body p, .person-body .person-cred, .person-body .person-close { margin-left: 0 !important; margin-right: 0 !important; }
  .person-close::before { left: 0; transform: none; }
  .person:nth-child(2) { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  .person:nth-child(2) .person-photo { max-width: none; }
}

/* Bios: columna de texto más ancha para que los párrafos sean menos largos */
@media (min-width: 900px) {
  .people .person:nth-child(1) { grid-template-columns: minmax(0, .85fr) minmax(0, 1.35fr); gap: 48px; }
  .people .person:nth-child(2) { grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr); gap: 48px; }
  .person-body p, .person-body .person-cred { max-width: none; }
  .person-close { max-width: 34em; }
}
/* Bios resumidas: fotos un poco más grandes de nuevo */
@media (min-width: 900px) {
  .people .person:nth-child(1) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
  .people .person:nth-child(2) { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .person-photo { align-self: center; }
}

/* ===== PRUEBA: bios en forma de L (el texto rodea la silueta de la foto) ===== */
@media (min-width: 900px) {
  .people .person, .people .person:nth-child(1), .people .person:nth-child(2) { display: block; max-width: 1040px; margin-left: auto; margin-right: auto; }
  .people .person::after { content: ""; display: table; clear: both; }
  .people .person-photo { display: contents; }
  .people .person-photo img.cutout {
    position: static; height: auto; max-width: none; object-fit: fill; margin: 0 0 8px;
    shape-image-threshold: .35; shape-margin: 22px;
  }
  .people .person:nth-child(1) .person-photo img.cutout { float: left; width: 46%; margin-right: 8px; shape-outside: url(assets/img/camilo-recorte.png); }
  .people .person:nth-child(2) .person-photo img.cutout { float: right; width: 40%; margin-left: 8px; shape-outside: url(assets/img/marcela-recorte.png); }
  .people .person-body { text-align: left; margin-top: 0; }
  .people .person-body h3 { padding-top: 40px; }
  .people .person + .person { margin-top: 72px; }
}
@media (min-width: 900px) {
  .people .person-body, .people .person-body p, .people .person-body h3, .people .person-role { text-align: left !important; }
  .people .person:nth-child(1) .person-body h3 { padding-top: 56px; }
}

/* Portada más compacta y luminosa */
.hero { min-height: min(72vh, 680px); }
.hero-inner { padding-top: 64px; padding-bottom: 56px; }
.hero-copy { max-width: 1000px; }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4.1rem); line-height: 1.06; text-shadow: 0 2px 24px rgba(7,34,43,.45); }
.hero h1 em { color: #F3CD62; text-shadow: 0 0 28px rgba(212,160,32,.35), 0 2px 18px rgba(7,34,43,.5); }
.hero .lead { color: #F1F5F2; text-shadow: 0 1px 12px rgba(7,34,43,.6); }
.hero-bg { opacity: .9; }
.hero::before { background: linear-gradient(180deg, rgba(7,34,43,.30) 0%, rgba(7,34,43,.18) 40%, rgba(7,34,43,.78) 100%); }
.hero-tag { margin-top: 36px; color: var(--gold-light); }

/* Títulos de los programas más visibles */
.program-kind { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 4px 16px; letter-spacing: 0; text-transform: none; margin-bottom: 18px; }
.pk-name { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.7rem, 3.2vw, 2.3rem); letter-spacing: .14em; color: var(--gold-light); line-height: 1.1; }
.pk-sep { color: var(--gold); opacity: .7; font-size: 1.3rem; }
.pk-sub { font-family: var(--f-display); font-style: italic; font-size: clamp(1.2rem, 2.2vw, 1.5rem); color: #F1E3BF; line-height: 1.2; }
/* AWAKENINGS: dorado arena claro → texto oscuro en su botón para que se lea */
#tab-personal[aria-selected="true"] .tab-pill { color: var(--ink); }

/* Portada: letras con más fuerza sobre el bosque claro */
.hero::before { background:
  radial-gradient(ellipse 60% 55% at 50% 48%, rgba(7,34,43,.50) 0%, rgba(7,34,43,.22) 55%, transparent 80%),
  linear-gradient(180deg, rgba(7,34,43,.30) 0%, rgba(7,34,43,.18) 40%, rgba(7,34,43,.78) 100%); }
.hero h1 { font-weight: 600; text-shadow: 0 2px 6px rgba(7,34,43,.55), 0 4px 30px rgba(7,34,43,.6); }
.hero h1 em { font-weight: 600; color: #F6C445; text-shadow: 0 2px 6px rgba(7,34,43,.6), 0 4px 26px rgba(7,34,43,.55), 0 0 30px rgba(246,196,69,.25); }
.hero .lead { color: #fff; font-weight: 500; text-shadow: 0 1px 4px rgba(7,34,43,.75), 0 2px 16px rgba(7,34,43,.6); }

/* Menú completo también en pantallas medianas (940–1039 px), más compacto */
@media (min-width: 940px) and (max-width: 1039px) {
  .header-inner { flex-wrap: nowrap; gap: 8px; }
  .brand img { width: 92px; }
  .nav-toggle { display: none; }
  .main-nav { order: 1; display: block; flex-basis: auto; padding: 0; margin-right: 10px; }
  .main-nav ul { display: flex; gap: 0; }
  .main-nav li a { border: 0; padding: 10px 7px; font-size: .68rem; letter-spacing: .1em; color: #D9CFB8; }
  .main-nav li a[aria-current="true"] { color: var(--gold-light); }
  .header-cta { padding: 8px 14px; font-size: .78rem; }
}

/* =====================================================================
   Portada dinámica: fotos que se funden y frase dorada que cambia
   ===================================================================== */
.hero-slides { position: absolute; inset: 0; z-index: -3; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1800ms ease; }
.hero-slide.is-on { opacity: .9; }
@media (prefers-reduced-motion: no-preference) {
  .hero-slide.is-on { animation: hero-drift 9s ease-out both; }
}
@keyframes hero-drift { from { transform: scale(1.08); } to { transform: scale(1); } }

/* Las frases se apilan en la misma celda: la altura no salta al cambiar */
.hero-rotator { display: grid; justify-items: center; margin-top: .08em; }
.hero-rotator .rot { grid-area: 1 / 1; opacity: 0; transform: translateY(.22em); filter: blur(6px); transition: opacity 700ms ease, transform 700ms cubic-bezier(.2,.8,.2,1), filter 700ms ease; }
.hero-rotator .rot.is-on { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) { .hero-rotator .rot { transform: none; filter: none; } }

/* Resultados reales bajo los botones */
.hero-proof { list-style: none; margin: 34px auto 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; color: #F1F5F2; font-size: .9rem; text-shadow: 0 1px 6px rgba(7,34,43,.7); }
.hero-proof li { display: flex; align-items: baseline; gap: 8px; }
.hero-proof b { font-family: var(--f-display); font-weight: 600; font-size: 1.55rem; color: #F6C445; line-height: 1; font-variant-numeric: lining-nums; }
.hero-proof li + li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); align-self: center; margin-right: 20px; opacity: .8; }
@media (max-width: 560px) { .hero-proof { flex-direction: column; align-items: center; gap: 6px; } .hero-proof li + li::before { display: none; } }
@media (prefers-reduced-motion: no-preference) { .js .hero .hero-proof.reveal { animation-delay: 600ms; } }

/* =====================================================================
   Selector de idioma EN / ES
   ===================================================================== */
.lang-switch { order: 2; display: flex; align-items: center; gap: 2px; font-size: .74rem; letter-spacing: .14em; }
.lang-switch a { color: #B9CACC; text-decoration: none; padding: 8px 6px; border-radius: 4px; }
.lang-switch a[aria-current="true"] { color: var(--gold-light); font-weight: 600; }
.lang-switch span { color: rgba(185,202,204,.5); }
@media (hover: hover) and (pointer: fine) { .lang-switch a:hover { color: #fff; } }
.header-cta { order: 3; }
.nav-toggle { order: 4; }
.main-nav { order: 5; }
@media (min-width: 940px) {
  .main-nav { order: 1; }
  .lang-switch { margin-right: 8px; }
}
.hero h1 em.hero-rotator { display: grid; justify-items: center; }
.main-nav li a, .header-cta, .lang-switch { white-space: nowrap; }

/* Pie: redes como íconos redondos */
.social-icons { list-style: none; margin: 4px 0 0; padding: 0; display: flex; gap: 12px; flex-wrap: wrap; }
.social-icons a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(233,196,106,.35); color: #fff; transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .social-icons a:hover { background: rgba(212,160,32,.16); border-color: var(--gold); color: var(--gold-light); } }
.social-icons a:focus-visible { outline-offset: 3px; }
a.video-missing { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Botón play de testimonios: dorado sólido con palpitar ---------- */
.testimonial-grid .play-icon {
  width: 66px; height: 66px;
  background: rgba(7,34,43,.28); border: 2px solid #F6C445; color: #F6C445;
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  box-shadow: 0 0 18px rgba(246,196,69,.35);
}
.testimonial-grid .play-icon svg { width: 30px; height: 30px; margin-left: 4px; }
.testimonial-grid .play-icon::before,
.testimonial-grid .play-icon::after {
  content: ""; position: absolute; inset: -2px; border-radius: 50%;
  border: 2px solid #F6C445; opacity: 0; pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .testimonial-grid .play-btn:hover .play-icon { background: rgba(212,160,32,.3); transform: scale(1.1); }
}
@media (prefers-reduced-motion: no-preference) {
  .testimonial-grid .play-icon { animation: play-beat 2.4s ease-in-out infinite; }
  .testimonial-grid .play-icon::before { animation: play-ring 2.4s ease-out infinite; }
  .testimonial-grid .play-icon::after  { animation: play-ring 2.4s ease-out 1.2s infinite; }
  .testimonial-grid .play-btn:hover .play-icon { animation-play-state: paused; }
}
@keyframes play-beat {
  0%, 100% { transform: scale(1); }
  12%      { transform: scale(1.1); }
  24%      { transform: scale(1); }
  36%      { transform: scale(1.06); }
  48%      { transform: scale(1); }
}
@keyframes play-ring {
  0%   { transform: scale(1);   opacity: .85; }
  100% { transform: scale(1.9); opacity: 0; }
}
@keyframes play-glow {
  0%, 100% { box-shadow: 0 0 10px rgba(246,196,69,.25); }
  50%      { box-shadow: 0 0 24px rgba(246,196,69,.6); }
}
@media (prefers-reduced-motion: no-preference) {
  .testimonial-grid .play-icon { animation: play-beat 2.4s ease-in-out infinite, play-glow 2.4s ease-in-out infinite; }
}
.testimonial-grid .play-icon svg path { filter: drop-shadow(0 1px 2px rgba(7,34,43,.6)); }

/* Frases de testimonios más compactas */
.testimonial-grid .testimonial-body { padding: 12px 16px 14px; }
.testimonial-grid .testimonial-quote { font-size: 1.08rem; line-height: 1.3; margin-bottom: .45em; }
.testimonial-grid .testimonial-meta { font-size: .82rem; }

/* ---------- Testimonios estilo galería: portada limpia, nombre y frase debajo ---------- */
.testimonial-grid { gap: 32px 24px; }
@media (min-width: 1040px) { .testimonial-grid { grid-template-columns: repeat(3, 1fr); } }
.testimonial-grid .testimonial-card { background: transparent; border: 0; overflow: visible; }
.testimonial-grid .video-frame { border-radius: 10px; overflow: hidden; box-shadow: 0 6px 18px rgba(7,34,43,.14); }
.testimonial-grid .play-btn { background: none; }
.testimonial-grid .play-icon {
  width: 60px; height: 60px; border: 0;
  background: rgba(200,169,107,.78); color: #07222B;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.testimonial-grid .play-icon svg { width: 26px; height: 26px; margin-left: 3px; }
.testimonial-grid .play-icon svg path { filter: none; }
.testimonial-grid .play-icon::before, .testimonial-grid .play-icon::after { inset: 0; border-color: #C8A96B; }
@keyframes play-glow {
  0%, 100% { box-shadow: 0 0 0 rgba(200,169,107,0); }
  50%      { box-shadow: 0 0 20px rgba(200,169,107,.55); }
}
@media (hover: hover) and (pointer: fine) {
  .testimonial-grid .play-btn:hover .play-icon { background: rgba(212,160,32,.92); }
}
.testimonial-grid .testimonial-body { padding: 12px 2px 0; }
.testimonial-grid .testimonial-meta { font-size: 1rem; font-weight: 700; margin: 0 0 2px; }
.testimonial-grid .testimonial-quote {
  font-family: var(--f-text); font-style: normal; font-weight: 400;
  font-size: .88rem; line-height: 1.4; color: var(--muted, #5b6b70); margin: 0; flex: 0 1 auto;
}
.testimonial-grid .play-icon { top: -11%; } /* sube un poco para no tapar el nombre de la portada */

/* Testimonios: 2 columnas en computador, 4 visibles + "Ver más" */
@media (min-width: 1040px) { .testimonial-grid { grid-template-columns: repeat(2, 1fr); max-width: 1080px; } }
.testimonial-grid { gap: 26px 28px; }
.testimonial-grid.is-collapsed .is-extra { display: none; }
.testimonial-more { text-align: center; margin-top: 28px; }
/* Descripción más compacta */
.testimonial-grid .testimonial-body { padding: 8px 2px 0; }
.testimonial-grid .testimonial-meta { margin: 0; line-height: 1.3; }
.testimonial-grid .testimonial-quote { margin: 1px 0 0; line-height: 1.35; }

/* Historia plegable */
.story-text { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 450ms var(--ease-out), opacity 350ms ease, padding 450ms var(--ease-out); }
.story-text > * { min-height: 0; }
.story-text.is-folded { grid-template-rows: 0fr; opacity: 0; padding-top: 0; padding-bottom: 0; overflow: hidden; }
.story-text:focus { outline: none; }
@media (prefers-reduced-motion: reduce) { .story-text { transition: none; } }
/* En celular (una columna) solo 2 testimonios antes de "Ver más" */
@media (max-width: 639px) { .testimonial-grid.is-collapsed .is-extra-m { display: none; } }

/* Pie: enlace que abre el aviso de responsabilidad */
.legal-toggle { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; font-size: .84rem; color: var(--gold-light); text-decoration: underline; text-decoration-color: rgba(233,196,106,.4); text-underline-offset: 4px; }
.legal-toggle:hover { text-decoration-color: var(--gold-light); }
.legal-toggle::after { content: " ▾"; font-size: .7em; text-decoration: none; display: inline-block; transition: transform 200ms ease; }
.legal-toggle[aria-expanded="true"]::after { transform: rotate(180deg); }
.legal-links { flex-wrap: wrap; row-gap: 10px; }

/* ---------- Espacios más compactos (noviembre 2026) ---------- */
.story-text.no-anim { transition: none; }
/* Historia → línea de tiempo: menos aire */
.story-intro { margin-bottom: 8px; }
.story-text:not(.is-folded) { padding-top: 40px; }
.journey-wrap { margin-top: 0; margin-bottom: 8px; }
/* Entre secciones */
.section { padding: 64px 0; }
@media (min-width: 900px) { .section { padding: 88px 0; } }
.story { padding-top: 0; }
.impact { padding: 64px 0; }
.manifesto { padding: 96px 0; }
@media (min-width: 900px) { .essence { padding: 72px 0; } }
.next-step { padding: 72px 0; }
@media (min-width: 900px) { .next-step { padding: 96px 0; } }

/* ---------- Formulario de calificación (formulario.js) ---------- */
html.qf-open { overflow: hidden; }
dialog.qf { padding: 0; border: 0; background: transparent; max-width: none; max-height: none; width: 100%; height: 100%; margin: 0; color: var(--text); }
dialog.qf::backdrop { background: rgba(7,34,43,.72); backdrop-filter: blur(3px); }
.qf-box { position: relative; box-sizing: border-box; width: 100%; min-height: 100%; background: var(--ivory); padding: 56px 20px 32px; overflow: hidden; }
@media (min-width: 640px) {
  dialog.qf { display: grid; place-items: center; }
  dialog.qf:not([open]) { display: none; }
  .qf-box { width: min(620px, calc(100% - 48px)); min-height: 0; max-height: calc(100vh - 48px); overflow: auto; border-radius: 14px; padding: 52px 44px 36px; box-shadow: 0 30px 80px rgba(7,34,43,.4); }
}
.qf-close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; background: none; font-size: 1.9rem; line-height: 1; color: var(--text-soft); cursor: pointer; border-radius: 50%; }
.qf-close:hover { color: var(--ink); background: rgba(14,40,48,.06); }
.qf-progress { position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--ivory-2); }
.qf-progress span { display: block; height: 100%; width: 0; background: var(--gold); transition: width 400ms var(--ease-out); }
.qf-title { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.8rem, 4vw, 2.3rem); line-height: 1.15; color: var(--ink); margin: 0 0 .5em; }
.qf-intro { margin: 0 0 1.4em; }
.qf-step { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-text); font-weight: 600; margin: 0 0 .6em; }
.qf-q { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.45rem, 3.4vw, 1.85rem); line-height: 1.2; color: var(--ink); margin: 0 0 1em; }
.qf-q:focus, .qf-title:focus { outline: none; }
.qf-options { display: grid; gap: 10px; }
.qf-opt { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; background: var(--card); border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; line-height: 1.45; font-size: .97rem; transition: border-color 160ms ease, background-color 160ms ease; }
.qf-opt:hover { border-color: #C8A96B; }
.qf-opt input { accent-color: var(--petrol); width: 18px; height: 18px; margin: 2px 0 0; flex: none; }
.qf-opt.is-on { border-color: var(--gold); background: #FBF3DE; color: var(--ink); }
.qf-opt:has(input:focus-visible) { outline: 2px solid var(--petrol); outline-offset: 2px; }
.qf-other { margin-top: 12px; }
.qf-other label, .qf-field label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.qf-other textarea, .qf-field input { box-sizing: border-box; width: 100%; font: inherit; font-size: 1rem; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); }
.qf-other textarea:focus, .qf-field input:focus { outline: none; border-color: var(--petrol); box-shadow: 0 0 0 3px rgba(13,79,99,.15); }
.qf-form { display: grid; gap: 14px; }
@media (min-width: 640px) { .qf-form { grid-template-columns: 1fr 1fr; } .qf-form > :not(.qf-field) { grid-column: 1 / -1; } }
.qf-consent { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; line-height: 1.5; cursor: pointer; }
.qf-consent input { accent-color: var(--petrol); width: 18px; height: 18px; margin: 2px 0 0; flex: none; }
.qf-error { color: #A3361B; font-size: .88rem; font-weight: 600; margin: 10px 0 0; }
.qf-test { font-size: .8rem; color: var(--gold-text); background: #FBF3DE; border: 1px dashed var(--gold); border-radius: 8px; padding: 8px 12px; margin: 0; }
.qf-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 24px; }
.qf-actions:only-child, .qf-intro + .qf-actions { justify-content: flex-start; }
.qf-center { justify-content: center !important; }
.qf-stack { flex-direction: column; }
.qf-back { background: none; border: 0; padding: 10px 4px; font: inherit; font-size: .92rem; color: var(--text-soft); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.qf-back:hover { color: var(--ink); }
.qf-link { font-size: .92rem; }
@media (prefers-reduced-motion: no-preference) {
  .qf-body > * { animation: qf-in 320ms var(--ease-out) both; }
}
@keyframes qf-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
/* Formulario: pantalla de bienvenida */
.qf-welcome { text-align: center; padding: 8px 0 4px; }
.qf-welcome::before { content: ""; display: block; width: 120px; height: 120px; margin: -20px auto -70px; background: var(--glow); pointer-events: none; }
.qf-eyebrow { font-family: var(--f-display); font-style: italic; font-size: 1.25rem; color: var(--gold-text); margin: 0 0 .3em; position: relative; }
.qf-welcome .qf-title { font-size: clamp(1.9rem, 4.4vw, 2.5rem); margin-bottom: .6em; position: relative; }
.qf-welcome .qf-intro { margin: 0 auto 1em; max-width: 30em; }
.qf-lead { font-weight: 600; color: var(--ink); }
.qf-chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 0; margin: 1.2em 0 0; }
.qf-chips li { font-size: .8rem; font-weight: 600; letter-spacing: .04em; color: var(--petrol); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; }
.qf-chips li::before { content: "✦ "; color: var(--gold); }
/* Formulario: teléfono con bandera del país */
.qf-phone { display: flex; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; }
.qf-phone:focus-within { border-color: var(--petrol); box-shadow: 0 0 0 3px rgba(13,79,99,.15); }
.qf-ccwrap { position: relative; flex: none; display: flex; align-items: center; padding: 0 10px 0 12px; border-right: 1px solid var(--line); background: var(--card); border-radius: 7px 0 0 7px; }
.qf-cc { font-size: .98rem; white-space: nowrap; color: var(--ink); pointer-events: none; }
.qf-cc::after { content: " ▾"; font-size: .7em; color: var(--text-soft); }
.qf-ccwrap select { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
.qf-phone input { border: 0 !important; box-shadow: none !important; border-radius: 0 7px 7px 0; min-width: 0; flex: 1; }
/* Bienvenida: "Habla con nosotros" */
.qf-welcome .qf-title { font-size: clamp(2.2rem, 5vw, 2.9rem); margin-bottom: .15em; }
.qf-welcome .qf-eyebrow { margin-bottom: 1em; }
.qf-firststep { font-weight: 700; color: var(--ink); margin: 1.4em auto .4em; max-width: 30em; padding-top: 1.1em; border-top: 1px solid var(--line); }
/* Formulario: calendario dentro del formulario */
@media (min-width: 640px) { dialog.qf.qf-wide .qf-box { width: min(900px, calc(100% - 48px)); } }
.qf-cal { margin: 8px -8px 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.qf-cal iframe { display: block; width: 100%; height: min(720px, 72vh); border: 0; }
.qf-calnote { text-align: center; font-size: .82rem; margin: 10px 0 0; }

/* ---------- Formulario más compacto y menos invasivo ---------- */
dialog.qf::backdrop { background: rgba(7,34,43,.5); backdrop-filter: blur(2px); }
@media (min-width: 640px) {
  .qf-box { width: min(500px, calc(100% - 48px)); padding: 38px 34px 26px; border-radius: 14px; }
  dialog.qf.qf-wide .qf-box { width: min(820px, calc(100% - 48px)); }
}
/* Celular: sube desde abajo como una hoja, sin tapar toda la pantalla */
@media (max-width: 639px) {
  dialog.qf { display: flex; align-items: flex-end; }
  dialog.qf:not([open]) { display: none; }
  .qf-box { min-height: 0; max-height: 92dvh; overflow: auto; border-radius: 18px 18px 0 0; padding: 40px 20px 22px; }
  dialog.qf.qf-wide .qf-box { max-height: 96dvh; }
}
.qf-close { top: 8px; right: 8px; width: 38px; height: 38px; font-size: 1.6rem; }
.qf-welcome::before { width: 90px; height: 90px; margin: -18px auto -58px; }
.qf-welcome .qf-title { font-size: clamp(1.8rem, 4vw, 2.15rem); }
.qf-welcome .qf-eyebrow { font-size: 1.05rem; margin-bottom: .8em; }
.qf-welcome .qf-intro, .qf-intro { font-size: .93rem; line-height: 1.6; }
.qf-firststep { font-size: .93rem; margin: 1em auto .3em; padding-top: .9em; }
.qf-chips { margin-top: .9em; }
.qf-chips li { font-size: .74rem; padding: 4px 12px; }
.qf-welcome .qf-actions .btn-lg { min-height: 48px; padding: 12px 30px; font-size: .92rem; }
.qf-step { font-size: .68rem; margin-bottom: .4em; }
.qf-q { font-size: clamp(1.25rem, 3vw, 1.45rem); margin-bottom: .8em; }
.qf-title { font-size: clamp(1.6rem, 3.6vw, 1.95rem); }
.qf-options { gap: 8px; }
.qf-opt { padding: 10px 14px; font-size: .9rem; line-height: 1.4; gap: 10px; }
.qf-opt input, .qf-consent input { width: 16px; height: 16px; }
.qf-other textarea, .qf-field input { padding: 9px 12px; font-size: .95rem; }
.qf-other label, .qf-field label { font-size: .8rem; }
.qf-form { gap: 12px; }
.qf-consent { font-size: .8rem; }
.qf-actions { margin-top: 18px; }
.qf-actions .btn:not(.btn-lg) { min-height: 44px; padding: 10px 24px; font-size: .88rem; }
/* Calendario: sin marco propio (StartFly ya trae su tarjeta) */
.qf-cal { border: 0; border-radius: 0; background: transparent; margin: 4px -10px 0; }

/* ---------- GILDED: botón del programa estrella ---------- */
.btn-star, .program-close .btn-star {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(135deg, #C9820B 0%, #D4A020 38%, #F6C445 62%, #D4A020 100%);
  color: #07222B; border: 0; font-weight: 700; letter-spacing: .06em;
  box-shadow: 0 10px 26px rgba(201,130,11,.38), 0 0 0 4px rgba(246,196,69,.22);
  transition: transform 200ms var(--ease-out), box-shadow 200ms ease;
}
.btn-star::after { content: "→"; display: inline-block; margin-left: .6em; transition: transform 200ms var(--ease-out); }
.btn-star::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%);
  transform: translateX(-120%);
}
@media (hover: hover) and (pointer: fine) {
  .btn-star:hover, .program-close .btn-star:hover { background: linear-gradient(135deg, #D4A020 0%, #F6C445 50%, #E9C46A 100%); color: #07222B; transform: translateY(-2px); box-shadow: 0 14px 32px rgba(201,130,11,.45), 0 0 0 5px rgba(246,196,69,.3); }
  .btn-star:hover::after { transform: translateX(4px); }
}
@media (prefers-reduced-motion: no-preference) {
  .btn-star::before { animation: star-shine 3.6s ease-in-out 1s infinite; }
  .btn-star { animation: star-glow 3.6s ease-in-out infinite; }
}
@keyframes star-shine { 0% { transform: translateX(-120%); } 35%, 100% { transform: translateX(120%); } }
@keyframes star-glow {
  0%, 100% { box-shadow: 0 10px 26px rgba(201,130,11,.35), 0 0 0 4px rgba(246,196,69,.18); }
  50%      { box-shadow: 0 10px 30px rgba(201,130,11,.5), 0 0 0 7px rgba(246,196,69,.28); }
}

