/* ============================================================
   American English Academy — Homepage Redesign
   Bold, scroll-driven, marketing-forward. On-brand "Sea of Cortez".
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
	--navy: #1A243D;
	--navy-700: #232f4d;
	--blue: #647890;
	--olive: #3C3F20;
	--earth: #714E3A;
	--gold: #CE8A39;
	--gold-soft: #e0a85f;
	--sand: #FEE9C4;
	--cream: #FBF6EC;
	--white: #ffffff;

	--ink: var(--navy);
	--ink-70: rgba(26, 36, 61, 0.7);
	--ink-55: rgba(26, 36, 61, 0.55);
	--ink-12: rgba(26, 36, 61, 0.12);

	--font-sans: "General Sans", ui-sans-serif, system-ui, sans-serif;
	--font-display: "DM Serif Display", ui-serif, Georgia, serif;

	--maxw: 1200px;
	--gutter: clamp(1.25rem, 4vw, 3rem);

	--ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: .001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .001ms !important;
	}
}

body {
	font-family: var(--font-sans);
	color: var(--ink);
	background: var(--white);
	line-height: 1.6;
	font-size: 18px;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: clip;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4 { line-height: 1.08; font-weight: 400; }
.serif { font-family: var(--font-display); }

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

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-wide { max-width: 1340px; }
section { position: relative; }

.eyebrow {
	font-size: .78rem;
	font-weight: 600;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--gold);
}

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .6rem;
	border-radius: 999px;
	padding: .95rem 1.7rem;
	font-size: .98rem;
	font-weight: 600;
	transition: transform .35s var(--ease), background .25s, box-shadow .3s, color .25s, border-color .25s;
	will-change: transform;
}
.btn--gold { background: var(--gold); color: var(--navy); box-shadow: 0 12px 30px -10px rgba(206, 138, 57, .5); }
.btn--gold:hover { background: var(--gold-soft); transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(206, 138, 57, .6); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-700); transform: translateY(-2px); }
.btn--ghost { border: 1px solid rgba(254, 233, 196, .35); color: var(--sand); }
.btn--ghost:hover { border-color: var(--sand); background: rgba(255,255,255,.06); }
.btn--ghost-dark { border: 1px solid var(--ink-12); color: var(--navy); }
.btn--ghost-dark:hover { border-color: rgba(26,36,61,.4); background: rgba(26,36,61,.03); }
.btn--lg { padding: 1.15rem 2.1rem; font-size: 1.05rem; }

.wa-ico { width: 19px; height: 19px; fill: currentColor; flex: none; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 60;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.05rem var(--gutter);
	transition: background .4s, backdrop-filter .4s, box-shadow .4s, padding .4s;
}
.site-header.scrolled {
	background: rgba(251, 246, 236, .82);
	backdrop-filter: blur(14px) saturate(1.3);
	box-shadow: 0 1px 0 rgba(26,36,61,.08);
	padding-block: .75rem;
}
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-size: 1.18rem; letter-spacing: .01em; color: var(--sand); transition: color .4s; }
.brand b { font-weight: 400; color: var(--gold); }
.brand .brand-mark { width: 30px; height: 30px; flex: none; transition: filter .4s; }
.site-header.scrolled .brand { color: var(--navy); }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav a.nav-link {
	font-size: .92rem; font-weight: 500; color: var(--sand);
	opacity: .85; transition: opacity .25s, color .25s; position: relative;
}
.site-header.scrolled .nav a.nav-link { color: var(--navy); opacity: .8; }
.nav a.nav-link:hover { opacity: 1; color: var(--gold); }

.header-tools { display: flex; align-items: center; gap: .85rem; }

.lang-toggle {
	display: inline-flex; align-items: center;
	border: 1px solid rgba(254,233,196,.3);
	border-radius: 999px; overflow: hidden; font-size: .76rem; font-weight: 600;
	transition: border-color .4s;
}
.site-header.scrolled .lang-toggle { border-color: var(--ink-12); }
.lang-toggle button { padding: .35rem .7rem; color: var(--sand); transition: background .25s, color .25s; letter-spacing: .04em; }
.site-header.scrolled .lang-toggle button { color: var(--navy); }
.lang-toggle button.active { background: var(--gold); color: var(--navy); }

.portal-btn { background: var(--gold); color: var(--navy); border-radius: 999px; padding: .5rem 1.05rem; font-size: .85rem; font-weight: 600; transition: transform .3s var(--ease), background .25s; }
.portal-btn:hover { transform: translateY(-1px); background: var(--gold-soft); }

.menu-btn { display: none; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; color: var(--sand); padding: .4rem; }
.site-header.scrolled .menu-btn { color: var(--navy); }

@media (max-width: 880px) {
	.nav { display: none; }
	.menu-btn { display: inline-flex; }
	.portal-btn { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
	position: relative;
	min-height: 100svh;
	display: flex;
	align-items: center;
	background: var(--navy);
	color: var(--sand);
	overflow: hidden;
	padding-block: 8rem 4rem;
}
/* Sea of Cortez animated gradient field */
.hero-field {
	position: absolute; inset: -20% -10% -10% -10%;
	background:
		radial-gradient(40% 55% at 18% 30%, rgba(206,138,57,.32), transparent 60%),
		radial-gradient(45% 50% at 82% 22%, rgba(100,120,144,.40), transparent 62%),
		radial-gradient(50% 60% at 70% 88%, rgba(113,78,58,.34), transparent 60%),
		radial-gradient(40% 50% at 30% 92%, rgba(60,63,32,.40), transparent 60%);
	filter: blur(10px);
	animation: drift 26s ease-in-out infinite alternate;
}
@keyframes drift {
	0%   { transform: translate3d(0,0,0) scale(1); }
	50%  { transform: translate3d(-3%, 2%, 0) scale(1.08); }
	100% { transform: translate3d(3%, -2%, 0) scale(1.04); }
}
/* topographic contour lines */
.hero-lines { position: absolute; inset: 0; opacity: .14; mix-blend-mode: screen; }
.hero-grain {
	position: absolute; inset: 0; pointer-events: none; opacity: .5;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
}
.hero::after {
	content: ""; position: absolute; inset: auto 0 0 0; height: 32%;
	background: linear-gradient(to top, var(--navy), transparent);
	pointer-events: none;
}
/* AEA brand-mark motif — represents the institution behind the type */
.hero-mark {
	position: absolute; right: -8%; top: 50%; transform: translateY(-50%);
	height: 118%; width: auto; color: var(--gold); opacity: .07; z-index: 1;
	pointer-events: none; animation: markFloat 14s ease-in-out infinite alternate;
}
@keyframes markFloat { from { transform: translateY(-52%); } to { transform: translateY(-48%); } }
@media (max-width: 760px) { .hero-mark { right: -28%; height: 80%; opacity: .05; } }

/* school photo collage — the institution behind the words */
.hero-photos { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hp {
	position: absolute; margin: 0; overflow: hidden; border-radius: 16px;
	border: 1px solid rgba(254,233,196,.12);
	box-shadow: 0 34px 70px -28px rgba(0,0,0,.75);
	opacity: .58;
}
.hp img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.9) contrast(1.03); }
.hp::after { content: ""; position: absolute; inset: 0; background: linear-gradient(165deg, rgba(13,29,46,.12), rgba(13,29,46,.42)); }
@keyframes hpIn { from { opacity: 0; transform: translateY(22px) scale(.98); } to { opacity: .58; transform: none; } }
@media (prefers-reduced-motion: no-preference) { .hp { animation: hpIn 1.1s var(--ease); } }
.hp--tl { top: 6%;  left: 2.5%;  width: clamp(150px, 16vw, 290px); aspect-ratio: 3/4;  rotate: -3deg; animation-delay: .15s; }
.hp--tc { top: 3.5%; left: 37%; width: clamp(150px, 15vw, 250px); aspect-ratio: 16/10; rotate: -1.5deg; animation-delay: .3s; }
.hp--tr { top: 9%; right: 3%;   width: clamp(160px, 18vw, 320px); aspect-ratio: 4/3;  rotate: 2.5deg; animation-delay: .45s; }
.hp--ml { top: 40%; left: 0.5%; width: clamp(120px, 12vw, 215px); aspect-ratio: 3/4;  rotate: 2deg; animation-delay: .6s; }
.hp--mr { top: 34%; right: 0.5%; width: clamp(120px, 12vw, 215px); aspect-ratio: 3/4;  rotate: -2deg; animation-delay: .75s; }
.hp--bl { bottom: 11%; left: 4.5%; width: clamp(160px, 17vw, 310px); aspect-ratio: 4/3;  rotate: 3deg; animation-delay: .9s; }
.hp--bc { bottom: 4%; right: 36%; width: clamp(150px, 15vw, 250px); aspect-ratio: 16/10; rotate: 2deg; animation-delay: 1.05s; }
.hp--br { bottom: 8%; right: 2.5%; width: clamp(150px, 15vw, 280px); aspect-ratio: 3/4;  rotate: -2.5deg; animation-delay: 1.2s; }
@media (max-width: 920px) { .hp--tl, .hp--br, .hp--tc, .hp--bc, .hp--ml, .hp--mr { display: none; } .hp { opacity: .4; } }
@media (max-width: 560px) { .hero-photos { display: none; } }

.hero-inner { position: relative; z-index: 2; width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); text-align: center; }
.hero-inner::before {
	content: ""; position: absolute; inset: -14% -10%; z-index: -1; pointer-events: none;
	background: radial-gradient(58% 56% at 50% 47%, rgba(13,29,46,.86), rgba(13,29,46,.55) 50%, rgba(13,29,46,0) 78%);
}
.hero-inner .hero-sub { margin-inline: auto; }
.hero-inner .hero-cta { justify-content: center; }

.hero-eyebrow { display: inline-flex; align-items: center; gap: .7rem; }
.hero-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(206,138,57,.6); animation: pulse 2.6s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(206,138,57,.55);} 70%{box-shadow:0 0 0 10px rgba(206,138,57,0);} 100%{box-shadow:0 0 0 0 rgba(206,138,57,0);} }

.hero-title {
	font-family: var(--font-display);
	font-size: clamp(3.2rem, 11vw, 9.5rem);
	line-height: .92;
	letter-spacing: -.01em;
	color: #fff;
	margin-top: 1.6rem;
}
@media (min-width: 760px) { .hero-title { white-space: nowrap; font-size: clamp(3.2rem, 11vw, 8.3rem); } }
.hero-title .accent { color: var(--gold); font-style: italic; position: relative; white-space: nowrap; }
/* hand-drawn underline */
.hero-title .accent svg { position: absolute; left: -2%; right: -2%; bottom: -.16em; width: 104%; height: .34em; overflow: visible; }
.hero-title .accent svg path { fill: none; stroke: var(--gold); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 640; stroke-dashoffset: 640; }
.hero[data-revealed] .hero-title .accent svg path { animation: draw 1.1s var(--ease) .7s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero-sub {
	margin-top: 1.6rem;
	font-size: clamp(1.5rem, 3.4vw, 2.6rem);
	max-width: 30ch;
	line-height: 1.2;
}
.rotator { display: inline-flex; position: relative; color: var(--gold); font-weight: 600; font-family: var(--font-display); font-style: italic; }
.rotator .rot-word { display: inline-block; opacity: 1; will-change: transform, opacity; }
.rotator .rot-word.out { animation: rotOut .55s var(--ease) forwards; }
.rotator .rot-word.in { animation: rotIn .55s var(--ease) forwards; }
@keyframes rotOut { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-90%); } }
@keyframes rotIn { from { opacity: 0; transform: translateY(90%); } to { opacity: 1; transform: translateY(0); } }

.hero-cta { margin-top: 2.6rem; display: flex; flex-wrap: wrap; gap: .9rem; }

.hero-foot {
	margin-top: 3.2rem; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.4rem;
	font-size: .82rem; letter-spacing: .04em; color: rgba(254,233,196,.6);
}
.hero-foot .pill { display: inline-flex; align-items: center; gap: .5rem; }
.hero-foot .pill::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }

.scroll-cue {
	position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%);
	z-index: 2; display: flex; flex-direction: column; align-items: center; gap: .5rem;
	font-size: .68rem; letter-spacing: .25em; text-transform: uppercase; color: rgba(254,233,196,.5);
}
.scroll-cue .bar { width: 1px; height: 42px; background: linear-gradient(var(--gold), transparent); animation: cue 2s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0%,100%{ transform: scaleY(.4); opacity:.4;} 50%{transform: scaleY(1); opacity:1;} }

/* ============================================================
   ILLUSTRATED DECO — floating app mockups, chat bubbles, icons
   (Quick-Learning-style liveliness, in AEA navy/gold/cream)
   ============================================================ */
.hero-deco, .sec-deco { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.hero-deco > *, .sec-deco > * { position: absolute; will-change: transform; }

@keyframes floatY { from { transform: translateY(7px) rotate(var(--r, 0deg)); } to { transform: translateY(-13px) rotate(var(--r, 0deg)); } }

/* frosted icon badge with a gold line-icon */
.deco-icon {
	display: grid; place-items: center;
	width: var(--s, 60px); height: var(--s, 60px); border-radius: 22px;
	background: linear-gradient(155deg, rgba(254,233,196,.13), rgba(254,233,196,.05));
	border: 1px solid rgba(254,233,196,.2);
	-webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px);
	box-shadow: 0 22px 44px -22px rgba(0,0,0,.7);
	color: var(--gold);
	animation: floatY var(--d, 7s) var(--ease) infinite alternate;
	animation-delay: var(--dl, 0s);
}
.deco-icon svg { width: 48%; height: 48%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.deco-icon.solid { background: var(--gold); color: #14110a; border-color: transparent; box-shadow: 0 22px 44px -18px rgba(206,138,57,.6); }

/* speech / chat bubble */
.deco-bubble {
	font-weight: 600; font-size: clamp(.8rem, 1vw, .95rem); color: var(--navy); line-height: 1.2;
	background: var(--sand); padding: .62rem .9rem; border-radius: 18px 18px 18px 5px;
	box-shadow: 0 22px 44px -22px rgba(0,0,0,.7);
	animation: floatY var(--d, 8s) var(--ease) infinite alternate;
	animation-delay: var(--dl, 0s);
}
.deco-bubble.alt { background: var(--gold); color: #2a1a06; border-radius: 18px 18px 5px 18px; }
.deco-bubble small { display: block; font-weight: 500; opacity: .55; font-size: .68rem; margin-top: 1px; }

/* compact app/lesson mockup cards — sit in the top/bottom bands, clear of the headline */
.deco-card {
	width: var(--cw, 232px); border-radius: 18px; padding: 12px 13px;
	background: linear-gradient(155deg, rgba(33,49,76,.97), rgba(15,31,49,.98));
	border: 1px solid rgba(254,233,196,.2);
	box-shadow: 0 34px 64px -28px rgba(0,0,0,.82), inset 0 1px 0 rgba(254,233,196,.08);
	animation: floatY var(--d, 8.5s) var(--ease) infinite alternate;
	animation-delay: var(--dl, 0s);
}
.dc-head { display: flex; align-items: center; gap: 11px; }
.dc-ring { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; color: #fff; font-family: var(--font-display); font-size: .98rem; border: 3px solid var(--gold); background: rgba(206,138,57,.14); }
.dc-meta b { display: block; color: #fff; font-size: .88rem; }
.dc-meta i { font-style: normal; color: var(--gold); font-size: .68rem; letter-spacing: .02em; }
.dc-bar { margin-top: 11px; height: 7px; border-radius: 4px; background: rgba(254,233,196,.14); overflow: hidden; }
.dc-bar i { display: block; height: 100%; width: var(--p, 78%); background: var(--gold); border-radius: 4px; }
.dc-chat { display: flex; flex-direction: column; gap: 7px; }
.dc-msg { font-size: .72rem; padding: .44rem .62rem; border-radius: 12px; max-width: 90%; line-height: 1.22; }
.dc-in { background: rgba(254,233,196,.1); color: var(--sand); border-bottom-left-radius: 3px; align-self: flex-start; }
.dc-out { background: var(--gold); color: #2a1a06; border-bottom-right-radius: 3px; align-self: flex-end; }
.dc-play { margin-top: 10px; display: flex; align-items: center; gap: 8px; }
.dc-play span { width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--gold); display: grid; place-items: center; color: #11243a; }
.dc-play span svg { width: 42%; height: 42%; fill: currentColor; margin-left: 2px; }
.dc-play em { font-style: normal; font-size: .72rem; color: var(--sand); }

/* (entrance handled by the gentle float only — never gate visibility on an animation) */

@media (prefers-reduced-motion: reduce) { .deco-icon, .deco-bubble, .deco-card { animation: none !important; } }

/* responsive: thin out the scatter on smaller screens */
@media (max-width: 1180px) { .deco--lo { display: none; } }
@media (max-width: 1100px) { .hero-deco, .sec-deco { display: none; } }

/* ============================================================
   TRUST STRIP (count-up)
   ============================================================ */
.trust { background: var(--cream); border-top: 1px solid var(--ink-12); border-bottom: 1px solid var(--ink-12); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-cell { padding: 2.6rem 1.4rem; text-align: center; position: relative; }
.trust-cell + .trust-cell::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--ink-12); }
.trust-num { font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1; color: var(--navy); letter-spacing: -.01em; }
.trust-num.gold-num { color: var(--gold); }
.trust-num .u { color: var(--gold); }
.trust-label { margin-top: .7rem; font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); }
.trust-sub { margin-top: .25rem; font-size: .78rem; color: var(--ink-55); }
@media (max-width: 720px) {
	.trust-grid { grid-template-columns: repeat(2, 1fr); }
	.trust-cell:nth-child(2n)::before { display: none; }
	.trust-cell:nth-child(n+3) { border-top: 1px solid var(--ink-12); }
}

/* ============================================================
   MANIFESTO
   ============================================================ */
.manifesto { background: var(--cream); padding-block: clamp(5rem, 12vw, 9rem); overflow: hidden; }
.manifesto .wrap { max-width: 1100px; }
.manifesto-quote {
	font-family: var(--font-display);
	font-size: clamp(1.9rem, 5.2vw, 4rem);
	line-height: 1.12;
	letter-spacing: -.01em;
	color: var(--navy);
}
.manifesto-quote .word { display: inline-block; opacity: .14; transition: opacity .5s var(--ease); }
.manifesto-quote .word.lit { opacity: 1; }
.manifesto-quote em { font-style: italic; color: var(--gold); }
.manifesto-by { margin-top: 2.2rem; display: flex; align-items: center; gap: 1rem; }
.manifesto-by .line { width: 42px; height: 2px; background: var(--gold); }
.manifesto-by .who b { display: block; font-weight: 600; color: var(--navy); font-size: 1rem; }
.manifesto-by .who span { font-size: .85rem; color: var(--ink-55); }

/* ============================================================
   OUTCOMES
   ============================================================ */
.outcomes { background: var(--white); padding-block: clamp(4.5rem, 10vw, 8rem); }
.section-head { max-width: 46ch; }
.section-head h2 { font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3.6rem); color: var(--navy); margin-top: 1rem; letter-spacing: -.01em; }
.section-head p { margin-top: 1.1rem; font-size: 1.08rem; color: var(--ink-70); }

.outcomes-list { margin-top: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--ink-12); }
.outcome {
	display: grid; grid-template-columns: clamp(3.5rem, 8vw, 7rem) 1fr; gap: clamp(1rem, 4vw, 3rem);
	align-items: baseline; padding: clamp(1.6rem, 3.5vw, 2.6rem) 0;
	border-bottom: 1px solid var(--ink-12);
	transition: background .4s;
}
.outcome:hover { background: var(--cream); }
.outcome .o-num { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 3rem); color: var(--gold); line-height: 1; }
.outcome .o-head { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2.2rem); color: var(--navy); line-height: 1.12; }
.outcome .o-desc { margin-top: .8rem; font-size: 1.02rem; color: var(--ink-70); max-width: 60ch; }
@media (max-width: 620px) {
	.outcome { grid-template-columns: 1fr; gap: .5rem; }
	.outcome .o-num { font-size: 1.5rem; }
}

/* ============================================================
   PROGRAMS
   ============================================================ */
.programs { background: var(--navy); color: var(--sand); padding-top: clamp(4.5rem, 10vw, 8rem); padding-bottom: clamp(2.6rem, 5vw, 4rem); position: relative; overflow: hidden; }
.programs .hero-field { opacity: .5; }
.programs .wrap { position: relative; z-index: 2; }
.programs .section-head h2 { color: #fff; }
.programs .section-head p { color: rgba(254,233,196,.75); }
.programs .section-head { max-width: none; text-align: center; margin-inline: auto; }
@media (min-width: 760px) { .programs .section-head h2, .programs .section-head p { white-space: nowrap; } }
.prog-grid { margin-top: clamp(2.5rem, 5vw, 3.5rem); display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
@media (max-width: 560px) { .prog-grid { grid-template-columns: 1fr; } }
.prog-card {
	position: relative; display: flex; flex-direction: column;
	background: rgba(255,255,255,.04); border: 1px solid rgba(254,233,196,.14);
	border-radius: 22px; padding: clamp(1.8rem, 3.5vw, 2.8rem); overflow: hidden;
	transition: transform .45s var(--ease), border-color .35s, background .35s;
}
.prog-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--accent, var(--gold)); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.prog-card:hover { transform: translateY(-6px); border-color: rgba(206,138,57,.5); background: rgba(255,255,255,.07); }
.prog-card:hover::before { transform: scaleX(1); }
.prog-tag { font-size: .76rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.prog-age { margin-top: .6rem; font-size: .95rem; font-weight: 600; letter-spacing: .03em; color: var(--gold); }
.prog-card h3 { font-family: var(--font-display); font-size: clamp(1.9rem, 4vw, 2.8rem); color: #fff; margin-top: 0; }
.prog-card p { margin-top: 1rem; color: rgba(254,233,196,.8); font-size: 1.02rem; line-height: 1.5; }
.prog-meta { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.prog-meta span { font-size: .8rem; padding: .35rem .8rem; border-radius: 999px; border: 1px solid rgba(254,233,196,.2); color: rgba(254,233,196,.85); }
.prog-actions { margin-top: auto; padding-top: 1.8rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1.1rem; }
.prog-link { font-weight: 600; color: var(--gold); display: inline-flex; align-items: center; gap: .4rem; }
.prog-link .arr { transition: transform .3s var(--ease); }
.prog-card:hover .prog-link .arr { transform: translateX(5px); }
.prog-write { font-weight: 600; color: var(--earth); display: inline-flex; align-items: center; gap: .4rem; border-left: 1px solid rgba(254,233,196,.22); padding-left: 1.1rem; transition: color .25s; }
.prog-write:hover { color: var(--gold); }

/* ============================================================
   SOCIAL PROOF
   ============================================================ */
.proof { background: var(--cream); padding-block: clamp(4.5rem, 10vw, 7rem); overflow: hidden; }
.proof-head { text-align: center; max-width: 30ch; margin-inline: auto; }
.proof-stat { font-family: var(--font-display); font-size: clamp(3.4rem, 9vw, 6rem); line-height: .9; color: var(--gold); }
.proof-head .lbl { margin-top: .8rem; font-size: 1.1rem; font-weight: 600; color: var(--navy); }
.proof-head .lead { font-family: var(--font-display); font-size: clamp(2rem, 5.2vw, 3.4rem); line-height: 1.08; letter-spacing: -.01em; color: var(--navy); white-space: nowrap; }

.marquee-group { margin-top: 2.4rem; }
.marquee-group .cap { text-align: center; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-55); }
.marquee { overflow: hidden; margin-top: 1.1rem; -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent); }
.marquee-track { display: flex; width: max-content; gap: 3.5rem; align-items: center; animation: marquee 80s linear infinite; }
.marquee-track.rev { animation-direction: reverse; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee img { height: 42px; max-height: 42px; width: auto; object-fit: contain; opacity: 1; transition: opacity .3s, transform .3s; }
.marquee img:hover { opacity: 1; transform: scale(1.06); }
@media (prefers-reduced-motion: reduce) {
	.marquee { mask-image: none; -webkit-mask-image: none; }
	.marquee-track { animation: none; flex-wrap: wrap; width: 100%; justify-content: center; gap: 2rem; }
}

/* ============================================================
   QUIZ
   ============================================================ */
.quiz { background: var(--white); padding-block: clamp(4.5rem, 10vw, 8rem); }
.quiz-shell {
	max-width: 760px; margin-inline: auto;
	background: var(--cream); border: 1px solid var(--ink-12);
	border-radius: 28px; padding: clamp(1.6rem, 4vw, 3.4rem);
	box-shadow: 0 30px 70px -40px rgba(26,36,61,.4);
	position: relative; overflow: hidden;
}
.quiz-screen { display: none; }
.quiz-screen.active { display: block; animation: fadeUp .5s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.quiz-intro { text-align: center; }
.quiz-intro h2 { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.2rem); color: var(--navy); margin-top: 1rem; }
.quiz-intro p { margin-top: 1rem; color: var(--ink-70); max-width: 46ch; margin-inline: auto; }
.quiz-intro .btn { margin-top: 1.8rem; }
.quiz-intro .meta { margin-top: 1.4rem; font-size: .82rem; color: var(--ink-55); }

.quiz-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.quiz-progress-label { font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-55); }
.quiz-bar { margin-top: .9rem; height: 6px; border-radius: 999px; background: var(--ink-12); overflow: hidden; }
.quiz-bar i { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--gold); transition: width .45s var(--ease); }
.quiz-q { font-family: var(--font-display); font-size: clamp(1.5rem, 3.6vw, 2.2rem); color: var(--navy); margin-top: 2rem; line-height: 1.18; }
.quiz-options { margin-top: 1.6rem; display: grid; gap: .75rem; }
.quiz-opt {
	width: 100%; text-align: left; display: flex; align-items: center; gap: .9rem;
	background: #fff; border: 1px solid var(--ink-12); border-radius: 16px;
	padding: 1.05rem 1.2rem; font-size: 1rem; color: var(--navy);
	transition: border-color .25s, background .25s, transform .25s var(--ease);
}
.quiz-opt .key { width: 28px; height: 28px; flex: none; border-radius: 8px; background: var(--ink-12); color: var(--navy); display: grid; place-items: center; font-size: .82rem; font-weight: 600; transition: background .25s, color .25s; }
@media (hover: hover) {
	.quiz-opt:hover { border-color: var(--gold); background: rgba(206,138,57,.06); transform: translateX(3px); }
	.quiz-opt:hover .key { background: var(--gold); color: var(--navy); }
}
/* Touch devices: momentary press feedback only. A sticky :hover would carry the
   gold "selected" look onto the next question's option in the same position. */
.quiz-opt:active { border-color: var(--gold); background: rgba(206,138,57,.06); }
.quiz-opt:active .key { background: var(--gold); color: var(--navy); }
.quiz-back { margin-top: 1.4rem; font-size: .85rem; font-weight: 600; color: var(--ink-55); display: inline-flex; align-items: center; gap: .4rem; }
.quiz-back:hover { color: var(--gold); }
.quiz-back[hidden] { display: none; }

.quiz-result { text-align: center; }
#quizResultHeading, #potResHeading {
	font-family: var(--font-display);
	font-size: clamp(1.5rem, 3.6vw, 2.3rem);
	font-weight: 600;
	letter-spacing: normal;
	text-transform: none;
	color: var(--navy);
	line-height: 1.18;
}
#quizResultHeading .rh-gold, #potResHeading .rh-gold { color: var(--gold); font-style: italic; }
.quiz-result .res-band { font-family: var(--font-display); font-size: clamp(4rem, 12vw, 7rem); line-height: .85; color: var(--navy); margin-top: .6rem; }
.quiz-result .res-ring { position: relative; display: inline-grid; place-items: center; margin-top: .4rem; }
.quiz-result .res-level { font-size: 1.2rem; font-weight: 600; color: var(--gold); margin-top: .4rem; }
.quiz-result .res-desc { margin-top: 1.1rem; color: var(--ink-70); max-width: 48ch; margin-inline: auto; }
.quiz-result .res-goal { margin-top: 1rem; font-weight: 500; color: var(--earth); max-width: 48ch; margin-inline: auto; }
.quiz-result .res-cta { margin-top: 1.9rem; display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }
.quiz-result .res-note { margin-top: 1.8rem; font-size: .85rem; color: var(--ink-55); max-width: 44ch; margin-inline: auto; line-height: 1.5; }
.scale { margin-top: 1.6rem; display: flex; gap: .35rem; justify-content: center; }
.scale span { width: 38px; height: 6px; border-radius: 999px; background: var(--ink-12); transition: background .4s; }
.scale span.on { background: var(--gold); }

/* ============================================================
   FAQ
   ============================================================ */
.faq { background: var(--cream); padding-top: clamp(2.6rem, 5vw, 4rem); padding-bottom: clamp(4.5rem, 10vw, 8rem); }
.faq .wrap { max-width: 880px; }
.faq-list { margin-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--ink-12); }
.faq-item { border-bottom: 1px solid var(--ink-12); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.4rem; text-align: left; padding: 1.4rem 0; }
.faq-q span.q-text { font-family: var(--font-display); font-size: clamp(1.15rem, 2.4vw, 1.45rem); color: var(--navy); }
.faq-icon { flex: none; width: 34px; height: 34px; border-radius: 50%; background: rgba(206,138,57,.12); color: var(--gold); display: grid; place-items: center; transition: transform .3s var(--ease), background .3s; }
.faq-item.open .faq-icon { transform: rotate(135deg); background: var(--gold); color: var(--navy); }
.faq-a { overflow: hidden; height: 0; transition: height .4s var(--ease); }
.faq-a-inner { padding: 0 0 1.5rem; color: var(--ink-70); font-size: 1.02rem; max-width: 64ch; }

/* ============================================================
   FINAL CTA
   ============================================================ */
.final { background: var(--navy); color: var(--sand); padding-top: clamp(2.8rem, 5.5vw, 4.5rem); padding-bottom: clamp(2.8rem, 5.5vw, 4.5rem); position: relative; overflow: hidden; text-align: center; }
.final .hero-field { opacity: .55; }
.final .wrap { position: relative; z-index: 2; max-width: 760px; }
.final h2 { font-family: var(--font-display); font-size: clamp(2.4rem, 6.5vw, 5rem); color: #fff; line-height: 1; }
.final p { margin-top: 1.3rem; font-size: 1.15rem; color: rgba(254,233,196,.82); }
.final .final-cta { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: #131b2e; color: var(--sand); padding-block: clamp(3.5rem, 7vw, 5rem) 2rem; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.4rem; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
.foot-brand .name { font-family: var(--font-display); font-size: 1.5rem; color: #fff; }
.foot-brand .tag { font-family: var(--font-display); font-style: italic; color: var(--gold); margin-top: .3rem; }
.foot-brand .addr { margin-top: 1.3rem; font-size: .9rem; color: rgba(254,233,196,.62); max-width: 36ch; }
.foot-brand .maps { margin-top: .5rem; font-size: .9rem; color: var(--gold); }
.foot-brand .maps:hover { text-decoration: underline; }
.foot-col h4 { font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #fff; }
.foot-col a, .foot-col p { display: block; margin-top: .7rem; font-size: .9rem; color: rgba(254,233,196,.75); }
.foot-col a:hover { color: var(--gold); }
.foot-bottom { margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid rgba(254,233,196,.12); display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; justify-content: space-between; font-size: .78rem; color: rgba(254,233,196,.5); }
.foot-bottom a:hover { color: var(--gold); }

/* ============================================================
   FLOATING WHATSAPP
   ============================================================ */
.fab {
	position: fixed; right: 1.3rem; bottom: 1.3rem; z-index: 70;
	display: inline-flex; align-items: center; gap: .6rem;
	background: var(--gold); color: #14110a; font-weight: 600; font-size: .92rem;
	padding: .85rem 1.2rem; border-radius: 999px;
	box-shadow: 0 14px 34px -10px rgba(206,138,57,.6);
	transition: transform .35s var(--ease), box-shadow .3s;
}
.fab:hover { transform: translateY(-3px) scale(1.03); }
.fab svg { width: 22px; height: 22px; fill: currentColor; }
.fab .fab-text { white-space: nowrap; }
@media (max-width: 560px) { .fab .fab-text { display: none; } .fab { padding: .9rem; } }

/* ---------- Scroll reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal-stagger] > * { opacity: 0; transform: translateY(26px); transition: opacity .65s var(--ease), transform .65s var(--ease); }
[data-reveal-stagger].in > * { opacity: 1; transform: none; }
/* Failsafe: when JS can't run progressive reveals (throttled/hidden embeds where
   rAF + CSS transitions are paused), force everything instantly visible. */
html.reveal-now [data-reveal],
html.reveal-now [data-reveal-stagger] > *,
html.reveal-now .manifesto-quote .word { opacity: 1 !important; transform: none !important; transition: none !important; }
html.reveal-now .quiz-screen.active { animation: none !important; opacity: 1 !important; }
html.reveal-now .viz-result { animation: none !important; opacity: 1 !important; }

/* ============================================================
   VISUALÍZATE
   ============================================================ */
.viz { background: var(--navy); color: var(--sand); padding-block: clamp(4.5rem, 10vw, 8rem); position: relative; overflow: hidden; }
.viz .hero-field { opacity: .5; }
.viz .wrap { position: relative; z-index: 2; }
.viz-intro { text-align: center; max-width: 46ch; margin-inline: auto; }
.viz-intro .eyebrow { display: block; }
/* "Visualízate" — the headline / first impact of the section */
.viz-brand { font-family: var(--font-display); font-style: italic; font-size: clamp(3rem, 9vw, 6.5rem); color: var(--gold); line-height: .92; letter-spacing: -.01em; }
.viz-title { font-family: var(--font-display); font-size: clamp(1.45rem, 3.2vw, 2.2rem); color: #fff; letter-spacing: -.01em; line-height: 1.12; margin-top: 1rem; }
.viz-sub { margin-top: 1rem; color: rgba(254,233,196,.8); font-size: 1.05rem; }

/* Conócete — two quiz paths above the Visualízate tool */
.conocete-intro { text-align: center; max-width: 44ch; margin-inline: auto; }
.conocete-phrase { margin-top: 1rem; color: rgba(254,233,196,.82); font-size: 1.08rem; line-height: 1.55; }
.conocete-paths { margin: clamp(1rem, 2.2vw, 1.5rem) auto 0; max-width: 880px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 1.2rem; row-gap: 1.2rem; align-items: start; }
.path-card--short { grid-column: 1; grid-row: 1; }
.path-card--long  { grid-column: 2; grid-row: 1; }
.deploy-short { grid-column: 1; grid-row: 2; }
.deploy-long  { grid-column: 2; grid-row: 2; }
.deploy { animation: fadeUp .4s var(--ease); min-width: 0; }
.deploy[hidden] { display: none; }
/* narrow view: each card immediately followed by its own box */
@media (max-width: 680px) {
	.conocete-paths { display: block; }
	.conocete-paths > * { margin-top: 1.2rem; }
	.conocete-paths > .path-card--short { margin-top: 0; }
}
.path-card {
	position: relative; display: flex; flex-direction: column; align-items: flex-start; text-align: left; width: 100%;
	background: rgba(255,255,255,.045); border: 1px solid rgba(254,233,196,.16); border-radius: 22px;
	padding: clamp(1.5rem, 3.5vw, 2.2rem); overflow: hidden;
	transition: transform .4s var(--ease), border-color .3s, background .3s;
}
.path-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.path-card:hover { transform: translateY(-5px); border-color: rgba(206,138,57,.5); background: rgba(255,255,255,.07); }
.path-card:hover::before { transform: scaleX(1); }
.path-card.open { border-color: rgba(206,138,57,.55); background: rgba(255,255,255,.07); }
.path-card.open::before { transform: scaleX(1); }
.path-tag { font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.path-card h3 { font-family: var(--font-display); font-size: clamp(1.5rem, 3.2vw, 2.1rem); color: #fff; margin-top: .7rem; }
.path-card p { margin-top: .6rem; color: rgba(254,233,196,.8); font-size: 1rem; line-height: 1.5; }
.path-link { margin-top: 1.3rem; font-weight: 600; color: var(--gold); display: inline-flex; align-items: center; gap: .4rem; }
.path-card:hover .path-link { gap: .65rem; }

.conocete-sep { display: flex; align-items: center; gap: 1rem; max-width: 340px; margin: clamp(1rem, 2.2vw, 1.6rem) auto clamp(.7rem, 1.4vw, 1rem); }
.conocete-sep span { flex: 1; height: 1px; background: linear-gradient(to var(--d, right), transparent, rgba(254,233,196,.28)); }
.conocete-sep span:last-child { --d: left; }
.conocete-sep b { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex: none; }
.viz-card {
	margin-top: clamp(.8rem, 1.6vw, 1.3rem); max-width: 860px; margin-inline: auto;
	background: rgba(255,255,255,.045); border: 1px solid rgba(254,233,196,.16);
	border-radius: 26px; padding: clamp(1.6rem, 4vw, 2.8rem);
	box-shadow: 0 30px 70px -45px rgba(0,0,0,.6);
}
.viz-step { margin-bottom: 1.7rem; }
.viz-step:last-child { margin-bottom: 0; }
.viz-q { font-family: var(--font-display); font-size: clamp(1.15rem, 2.6vw, 1.45rem); font-weight: 600; letter-spacing: -.01em; text-transform: none; color: var(--gold); margin-bottom: 1rem; line-height: 1.15; }
/* center the information selector (results below keep their left alignment) */
.viz-step .viz-q { text-align: center; }
.viz-step .viz-opts { justify-content: center; }
/* narrow screens: stack the 4 education-level options into a centered column
   so the lone "Universidad" pill no longer drifts to the right of a 2+2 split */
@media (max-width: 560px) {
	.viz-step .viz-opts:has(> [data-act="nivel"]) { flex-direction: column; align-items: center; }
	.viz-step .viz-opts:has(> [data-act="nivel"]) .viz-btn { width: min(260px, 100%); }
}
.viz-opts { display: flex; flex-wrap: wrap; gap: .6rem; }
.viz-btn {
	padding: .72rem 1.25rem; border-radius: 999px; border: 1px solid rgba(254,233,196,.22);
	color: var(--sand); font-size: .96rem; font-weight: 500; line-height: 1.15; text-align: center;
	transition: background .25s var(--ease), border-color .25s, color .25s, transform .25s var(--ease);
}
.viz-btn:hover { border-color: var(--gold); background: rgba(206,138,57,.12); transform: translateY(-2px); }
.viz-btn.active { background: var(--gold); color: var(--navy); border-color: var(--gold); font-weight: 600; }
.viz-btn small { display: block; font-size: .68rem; opacity: .65; font-weight: 400; margin-top: .12rem; }
.viz-btn.active small { opacity: .8; }

.viz-result { margin-top: 1.9rem; border-top: 1px solid rgba(254,233,196,.16); padding-top: 1.9rem; animation: fadeUp .5s var(--ease); }
.viz-ctx { display: inline-block; font-size: .76rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(254,233,196,.55); }
.viz-benefit {
	margin-top: 1.2rem; border-radius: 18px; padding: 1.3rem 1.5rem;
	background: linear-gradient(120deg, rgba(206,138,57,.18), rgba(206,138,57,.06));
	border: 1px solid rgba(206,138,57,.32);
}
.viz-benefit .b-eyebrow { font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.viz-benefit .b-stat { margin-top: .3rem; font-weight: 600; font-size: 1.2rem; color: #fff; display: flex; align-items: baseline; gap: .45rem; flex-wrap: wrap; }
.viz-benefit .b-stat small { font-size: .82rem; font-weight: 600; letter-spacing: .02em; color: var(--earth); text-transform: none; }
.viz-benefit .b-num { font-family: var(--font-display); font-size: clamp(2.8rem, 8vw, 4.2rem); line-height: .9; color: var(--gold); }
.viz-benefit .b-ladder { margin-top: 1rem; display: flex; gap: 4px; }
.viz-benefit .b-ladder span { flex: 1 1 0; height: 22px; border-radius: 4px; background: rgba(26,36,61,.12); transform-origin: bottom; transition: background .4s var(--ease); }
.viz-benefit .b-ladder span.on { background: linear-gradient(180deg, var(--gold-soft), var(--gold)); box-shadow: 0 5px 14px -6px rgba(206,138,57,.7); }
@media (prefers-reduced-motion: no-preference) {
	.viz-benefit .b-ladder span.on { animation: ladderRise .5s var(--ease) both; animation-delay: calc(var(--li, 0) * 40ms); }
}
@keyframes ladderRise { from { transform: scaleY(.25); } to { transform: scaleY(1); } }
.viz-benefit .b-legend { margin-top: .7rem; display: flex; flex-wrap: wrap; gap: 1.1rem; font-size: .76rem; font-weight: 600; letter-spacing: .02em; }
.viz-benefit .b-legend .lg { display: inline-flex; align-items: center; gap: .4rem; color: var(--ink-55); }
.viz-benefit .b-legend .lg::before { content: ""; width: 11px; height: 11px; border-radius: 3px; background: rgba(26,36,61,.16); }
.viz-benefit .b-legend .lg-on { color: var(--earth); }
.viz-benefit .b-legend .lg-on::before { background: var(--gold); }
.viz-benefit .b-line { margin-top: 1rem; font-size: .98rem; line-height: 1.5; color: rgba(254,233,196,.88); max-width: 52ch; }
.viz-benefit .b-urgency { margin-top: .7rem; font-weight: 600; font-size: .92rem; line-height: 1.45; color: var(--earth); max-width: 52ch; }
.viz-benefit .b-urgency::before { content: "→ "; color: var(--gold); font-weight: 700; }
.viz-result .r-eyebrow { margin-top: .7rem; font-size: .76rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.viz-result .r-head { font-family: var(--font-display); font-size: clamp(1.6rem, 3.6vw, 2.5rem); color: #fff; margin-top: .5rem; line-height: 1.1; }
.viz-result .r-body { margin-top: 1rem; color: rgba(254,233,196,.85); font-size: 1.05rem; line-height: 1.55; max-width: 62ch; }
.viz-result .r-ruta { margin-top: 1.3rem; display: inline-flex; align-items: center; gap: .4rem; font-size: .88rem; background: rgba(206,138,57,.14); color: var(--sand); padding: .5rem .95rem; border-radius: 999px; }
.viz-result .r-ruta b { color: var(--gold); font-weight: 600; }
.viz-result .r-cta { margin-top: 1.7rem; display: flex; flex-wrap: wrap; gap: .7rem; }
.viz-reset { margin-top: 1.3rem; display: inline-block; font-size: .85rem; font-weight: 600; color: rgba(254,233,196,.6); transition: color .25s; }
.viz-reset:hover { color: var(--gold); }

/* ---------- Mobile menu ---------- */
.mobile-menu {
	position: fixed; inset: 0; z-index: 65; background: rgba(19,27,46,.97);
	backdrop-filter: blur(8px); display: flex; flex-direction: column;
	align-items: center; justify-content: center; gap: 1.4rem;
	opacity: 0; pointer-events: none; transition: opacity .35s;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a { font-family: var(--font-display); font-size: 1.8rem; color: var(--sand); }
.mobile-menu a:hover { color: var(--gold); }
.mobile-menu .close { position: absolute; top: 1.4rem; right: 1.6rem; color: var(--sand); font-size: 2rem; }
/* ============================================================
   CONÓCETE — inline deploy boxes (light, on the navy section)
   ============================================================ */
.lq-screen { display: none; }
.lq-screen.active { display: block; animation: fadeUp .45s var(--ease); }

/* level + potential test boxes keep their cream card look inside the grid */
.deploy .quiz-shell { margin-top: 0; width: 100%; }

/* disclaimer card (light) */
.quiz-disclaimer {
	display: flex; gap: .7rem; text-align: left;
	margin: 1.5rem auto 0; max-width: 46ch;
	background: rgba(206,138,57,.1); border: 1px solid rgba(206,138,57,.3);
	border-radius: 14px; padding: .9rem 1.05rem;
	font-size: .86rem; line-height: 1.5; color: var(--ink-70);
}
.quiz-disclaimer svg { width: 20px; height: 20px; flex: none; color: var(--gold); margin-top: .05rem; }

/* long quiz visuals (reuses .quiz-* classes; these are the extras) */
.pot-shell .quiz-top { justify-content: center; }
.pot-shell .quiz-q { text-align: center; }
.pot-shell .quiz-q .blank { color: var(--gold); }
.pot-scale { margin-top: 1.4rem; display: flex; gap: .3rem; justify-content: center; flex-wrap: wrap; }
.pot-scale span { display: grid; place-items: center; min-width: 40px; height: 26px; padding: 0 .35rem; border-radius: 7px; background: var(--ink-12); color: var(--ink-55); font-size: .72rem; font-weight: 600; letter-spacing: .04em; transition: background .4s, color .4s; }
.pot-scale span.on { background: var(--gold); color: var(--navy); }
.lq-disc { margin-top: .7rem; text-align: center; font-size: .76rem; letter-spacing: .02em; color: var(--ink-55); }


/* ============================================================
   LIGHT INVERSION — cream/white predominant, gold accents kept.
   Hero & footer stay dark (per the reference site). Only the three
   heavy navy sections (Visualízate/Conócete, Programs, Final) flip.
   ============================================================ */
.viz, .programs, .final { background: var(--white); color: var(--ink); }
.viz .hero-field, .programs .hero-field, .final .hero-field { display: none; }

/* --- Programs --- */
.programs .section-head h2 { color: var(--navy); }
.programs .section-head p { color: var(--ink-70); }
.prog-card { background: var(--cream); border: 1px solid var(--ink-12); box-shadow: 0 22px 55px -36px rgba(26,36,61,.4); }
.prog-card:hover { background: var(--cream); border-color: rgba(206,138,57,.5); }
.prog-card h3 { color: var(--navy); }
.prog-card p { color: var(--ink-70); }
.prog-write { border-left-color: var(--ink-12); }
.prog-meta span { border-color: var(--ink-12); color: var(--ink-70); }

/* --- Final CTA --- */
.final h2 { color: var(--navy); }
.final p { color: var(--ink-70); }
.final .btn--ghost { border-color: var(--ink-12); color: var(--navy); }
.final .btn--ghost:hover { border-color: rgba(26,36,61,.4); background: rgba(26,36,61,.03); }

/* --- Visualízate / Conócete --- */
.conocete-phrase { color: var(--ink-70); }
.path-card { background: var(--cream); border: 1px solid var(--ink-12); box-shadow: 0 22px 55px -36px rgba(26,36,61,.4); }
.path-card:hover, .path-card.open { background: var(--cream); border-color: rgba(206,138,57,.55); }
.path-card h3 { color: var(--navy); }
.path-card p { color: var(--ink-70); }
.conocete-sep span { background: linear-gradient(to var(--d, right), transparent, var(--ink-12)); }
.viz-title { color: var(--navy); }
.viz-sub { color: var(--ink-70); }
.viz-card { background: var(--cream); border: 1px solid var(--ink-12); box-shadow: 0 22px 55px -36px rgba(26,36,61,.4); }
.viz-btn { border-color: var(--ink-12); color: var(--navy); }
.viz-btn:hover { border-color: var(--gold); background: rgba(206,138,57,.1); }
.viz-result { border-top-color: var(--ink-12); }
.viz-ctx { color: var(--ink-55); }
.viz-benefit .b-stat { color: var(--navy); }
.viz-benefit .b-line { color: var(--ink-70); }
.viz-result .r-head { color: var(--navy); }
.viz-result .r-body { color: var(--ink-70); }
.viz-result .r-ruta { color: var(--earth); }
.viz-reset { color: var(--ink-55); }
.viz .btn--ghost { border-color: var(--ink-12); color: var(--navy); }
.viz .btn--ghost:hover { border-color: rgba(26,36,61,.4); background: rgba(26,36,61,.03); }

/* Projection — "Lo que vas a ganar" illustrative scenes */
.viz-foci-wrap { margin-top: 1.7rem; }
.viz-foci-wrap .vf-eyebrow { font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.viz-foci { margin-top: .95rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: .85rem; }
.viz-focus { text-align: center; display: flex; flex-direction: column; align-items: center; gap: .65rem; }
.viz-scene { width: 100%; max-width: 124px; aspect-ratio: 1 / 1; border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid var(--ink-12); transition: box-shadow .2s var(--ease); }
.viz-card:hover .viz-scene { box-shadow: 0 14px 30px -22px rgba(26,36,61,.5); }
.viz-scene svg { display: block; width: 100%; height: 100%; }
.viz-focus .vf-lbl { font-size: .82rem; font-weight: 600; line-height: 1.3; color: var(--navy); max-width: 16ch; }
@media (max-width: 520px) { .viz-foci { gap: .55rem; } .viz-focus .vf-lbl { font-size: .74rem; } }

/* Professional projection — big duotone benefit scenes (salary / jobs / role) */
.viz-pro-foci .pf-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.viz-pro-foci .pf-pop { font-size: .82rem; color: var(--ink-55); }
.viz-pro-foci .pf-pop b { font-family: var(--font-display); font-size: 1.3rem; color: var(--pf-accent, var(--gold)); }
.viz-pfoci { margin-top: 1.1rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; }
.viz-pfocus { text-align: center; display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.pf-scene { width: 100%; max-width: 132px; aspect-ratio: 1 / 1; border-radius: 18px; display: grid; place-items: center; background: color-mix(in srgb, var(--pf-accent) 9%, #fff); border: 1px solid var(--ink-12); transition: box-shadow .2s var(--ease); }
.viz-card:hover .pf-scene { box-shadow: 0 16px 34px -22px rgba(26,36,61,.55); }
.pf-scene svg { display: block; width: 74px; height: 74px; }
.pf-scene .st { fill: none; stroke: var(--pf-accent); stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; }
.pf-scene .fl { fill: var(--pf-accent); }
.pf-scene .fl-soft { fill: color-mix(in srgb, var(--pf-accent) 30%, #fff); }
.pf-val { font-family: var(--font-display); font-size: 1.7rem; line-height: 1; color: var(--navy); }
.pf-val small { font-size: .55em; color: var(--ink-55); }
.pf-val.role { font-family: var(--font-sans); font-size: 1.1rem; font-weight: 600; line-height: 1.15; }
.pf-lbl { font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; line-height: 1.3; color: var(--ink-55); max-width: 14ch; }
/* A1/A2 read as "the floor" — values take the muted slate accent, still legible */
.viz-pro-foci.floor .pf-val { color: var(--pf-accent); }
@media (max-width: 520px) { .viz-pfoci { gap: .55rem; } .pf-val { font-size: 1.35rem; } .pf-lbl { font-size: .64rem; } }
