/* ===================================================================
 * theme-noche / main.css
 * Paleta "Encuentro Cálido" activa (Pantone 7526C/289C/7507C/9183C/2768C).
 * Vanilla CSS replica de la landing React+Tailwind en web2/.
 * =================================================================== */

/* === LEGACY — paleta anterior (ya no activa) ====================
 * :root {
 *   --color-brand-orange: #FF4D00;
 *   --color-brand-blue:   #0056B3;
 *   --color-brand-dark:   #1A1A1A;
 * }
 * ============================================================== */

:root {
	/* === PALETA "ENCUENTRO CÁLIDO" === */
	--color-brand-orange: #C26A35;   /* Naranja Tostado — Pantone 7526C */
	--color-brand-blue:   #0C2340;   /* Azul Medianoche — Pantone 289C */
	--color-brand-gold:   #D4A853;   /* Arena Dorada — Pantone 7507C */
	--color-brand-ivory:  #F2E6D0;   /* Marfil Cálido — Pantone 9183C */
	--color-brand-night:  #1C2856;   /* Noche Intensa — Pantone 2768C */
	--color-brand-dark:   var(--color-brand-night);

	/* Derivados útiles */
	--color-brand-orange-light: rgba(194, 106, 53, 0.1);
	--color-brand-orange-hover: #A85A2D;
	--color-brand-blue-90:      rgba(12, 35, 64, 0.9);
	--color-brand-night-80:     rgba(28, 40, 86, 0.8);
	--color-brand-ivory-50:     rgba(242, 230, 208, 0.5);
	--color-brand-gold-15:      rgba(212, 168, 83, 0.15);
	--color-brand-gold-30:      rgba(212, 168, 83, 0.3);

	--color-white: #FFFFFF;
	--color-gray-50: #F9FAFB;
	--color-gray-100: #F3F4F6;
	--color-gray-200: #E5E7EB;
	--color-gray-400: #9CA3AF;
	--color-gray-500: #6B7280;
	--color-gray-600: #4B5563;
	--color-gray-700: #374151;
	--color-gray-900: #111827;

	--font-sans: "Oswald", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-display: "Montserrat", "Oswald", sans-serif;

	--shadow-sm: 0 1px 2px 0 rgba(0,0,0,.05);
	--shadow-md: 0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -2px rgba(0,0,0,.06);
	--shadow-lg: 0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -4px rgba(0,0,0,.05);
	--shadow-xl: 0 20px 25px -5px rgba(0,0,0,.10), 0 8px 10px -6px rgba(0,0,0,.06);
	--shadow-2xl: 0 25px 50px -12px rgba(0,0,0,.25);

	--radius-sm: 8px;
	--radius-md: 12px;
	--radius-lg: 16px;
	--radius-xl: 20px;
	--radius-2xl: 24px;
	--radius-3xl: 28px;
	--radius-pill: 9999px;

	--container-max: 1280px;
	--container-narrow: 768px;
	--section-pad: clamp(64px, 8vw, 96px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--font-sans);
	color: var(--color-brand-dark);
	background: var(--color-white);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	line-height: 1.5;
}
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; cursor: pointer; background: none; border: 0; padding: 0; color: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.1;
	margin: 0;
	text-wrap: balance;
}
p { margin: 0; }
ol, ul { padding: 0; margin: 0; list-style: none; }

/* ---------- Layout helpers ---------- */
.container {
	width: 100%;
	max-width: var(--container-max);
	margin-inline: auto;
	padding-inline: 24px;
}
.container--narrow { max-width: var(--container-narrow); }
.text-center { text-align: center; }

.main { display: block; }

.section {
	padding-block: var(--section-pad);
	background: var(--color-white);
}
.section--muted   { background: rgba(249, 250, 251, 0.5); }
.section--ivory   { background: var(--color-brand-ivory); color: var(--color-brand-dark); }
.section--intro   { background: var(--color-brand-ivory); }
.section--narrow  { max-width: var(--container-narrow); margin-inline: auto; padding-inline: 24px; }

.section__head {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-bottom: 64px;
	max-width: 640px;
}
.section__head--light { color: var(--color-white); }
.section__title { font-size: clamp(2rem, 3.5vw, 2.5rem); margin: 0; color: var(--color-brand-blue); }
.section__head--light .section__title { color: var(--color-white); }
.section__eyebrow {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--color-brand-orange);
	background: var(--color-brand-orange-light);
	padding: 6px 14px;
	border-radius: var(--radius-pill);
	margin-bottom: 16px;
	align-self: center;
}
.text-center .section__head { align-items: center; margin-inline: auto; }
.section__sub { color: var(--color-gray-600); font-size: 1.125rem; }
.section__head--light .section__sub { color: var(--color-brand-gold); }
.section__heading { font-size: clamp(1.75rem, 3vw, 2.25rem); color: var(--color-brand-blue); margin-bottom: 32px; }
.section__lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--color-gray-600); line-height: 1.7; margin-bottom: 48px; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-weight: 700;
	transition: all .25s ease;
	cursor: pointer;
	text-align: center;
}
.btn--primary {
	background: var(--color-brand-orange);
	color: var(--color-white);
	box-shadow: 0 10px 20px -8px rgba(194, 106, 53, 0.40);
}
.btn--primary:hover { background: var(--color-brand-orange-hover); transform: translateY(-1px); }
.btn--ghost {
	background: rgba(242, 230, 208, 0.10);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid var(--color-brand-ivory);
	color: var(--color-brand-ivory);
}
.btn--ghost:hover { background: rgba(242, 230, 208, 0.18); color: var(--color-white); }
.btn--xl { padding: 16px 28px; border-radius: var(--radius-md); font-size: 1.05rem; }
.btn--sm { padding: 8px 18px;  border-radius: var(--radius-pill); font-size: 0.875rem; }

/* ---------- Navbar ---------- */
.nav {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 50;
	border-bottom: 1px solid transparent;
	transition: background-color .3s ease, border-color .3s ease, color .3s ease, backdrop-filter .3s ease;
	color: var(--color-white);
}
.nav.is-scrolled {
	background: var(--color-brand-blue-90);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom-color: var(--color-brand-gold-15);
	color: var(--color-brand-ivory);
}
.nav__inner {
	max-width: var(--container-max);
	margin-inline: auto;
	padding-inline: 24px;
	height: var(--nav-height, 80px);
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.nav__brand { display: flex; align-items: center; gap: 10px; }
.nav__logo {
	width: var(--nav-logo-size, 40px); height: var(--nav-logo-size, 40px);
	background: var(--color-brand-orange);
	color: var(--color-white);
	font-family: var(--font-display); font-weight: 800;
	font-size: calc(var(--nav-logo-size, 40px) * 0.42);
	border-radius: 10px;
	display: inline-flex; align-items: center; justify-content: center;
}
.nav.is-scrolled .nav__logo { background: var(--color-brand-gold); color: var(--color-brand-blue); }
.nav__logo--lg { width: 48px; height: 48px; font-size: 1.25rem; }
.nav__brand-image {
	height: var(--nav-logo-size, 40px);
	width: auto;
	max-height: calc(var(--nav-height, 80px) - 16px);
	display: block;
	object-fit: contain;
}
.nav__brand-text {
	font-family: var(--font-display);
	font-weight: 800;
	letter-spacing: -0.02em;
	font-size: 1.05rem;
	display: none;
}
@media (min-width: 640px) { .nav__brand-text { display: inline; } }
.nav__brand-accent { color: var(--color-brand-gold); }

.nav__links { display: none; align-items: center; gap: 28px; font-size: 0.92rem; font-weight: 500; }
@media (min-width: 900px) { .nav__links { display: flex; } }
.nav__menu { display: flex; gap: 28px; }
.nav__menu a { transition: color .2s; }
.nav__menu a:hover { color: var(--color-brand-gold); }

.nav__cta {
	background: var(--color-brand-orange);
	color: var(--color-white);
	padding: 10px 20px;
	border-radius: var(--radius-pill);
	font-weight: 600;
	transition: box-shadow .25s, transform .25s, background-color .25s;
}
.nav__cta:hover { background: var(--color-brand-orange-hover); box-shadow: 0 10px 20px -6px rgba(194, 106, 53, 0.40); transform: translateY(-1px); }

.nav__alt-link {
	display: inline-flex;
	align-items: center;
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.78);
	padding: 6px 10px;
	border-radius: var(--radius-pill);
	transition: color .2s, background-color .2s;
	white-space: nowrap;
}
.nav__alt-link:hover { color: var(--color-brand-gold); background: rgba(255, 255, 255, 0.06); }
.nav.is-scrolled .nav__alt-link { color: var(--color-brand-ivory); }
.nav.is-scrolled .nav__alt-link:hover { color: var(--color-brand-gold); background: rgba(255, 255, 255, 0.08); }

/* ---------- Hero ---------- */
.hero {
	position: relative;
	min-height: 600px;
	height: 100vh;
	display: flex;
	align-items: center;
	overflow: hidden;
	padding-top: 80px;
	color: var(--color-white);
}
.hero__slides { position: absolute; inset: 0; z-index: 0; }
.hero__slide {
	position: absolute; inset: 0;
	opacity: 0;
	transition: opacity 2s ease-in-out;
}
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
	position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(28, 40, 86, 0.6) 0%, rgba(12, 35, 64, 0.85) 100%);
}

.hero__content {
	position: relative; z-index: 10;
	max-width: var(--container-max);
	margin-inline: auto;
	padding-inline: 24px;
	width: 100%;
}
.hero__content > * {
	max-width: 640px;
	animation: heroIn .9s ease-out both;
}
@keyframes heroIn {
	from { opacity: 0; transform: translateY(20px); }
	to   { opacity: 1; transform: translateY(0); }
}
.hero__badge {
	display: inline-block;
	background: var(--color-brand-gold);
	color: var(--color-brand-night);
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	padding: 6px 14px;
	border-radius: var(--radius-pill);
	margin-bottom: 24px;
}
.hero__title {
	font-size: clamp(2.5rem, 6vw, 4.5rem);
	line-height: 1.05;
	margin-bottom: 24px;
	font-weight: 800;
	color: var(--color-white);
}
.hero__title-accent {
	color: var(--color-white);
	text-decoration: underline;
	text-decoration-color: var(--color-brand-gold);
	text-decoration-thickness: 4px;
	text-underline-offset: 8px;
}
.hero-logo {
	display: block;
	width: 100%;
	max-width: 420px;
	height: auto;
	margin-bottom: 24px;
}
@media (max-width: 768px) {
	.hero-logo { max-width: 280px; }
}
@media (max-width: 480px) {
	.hero-logo { max-width: 220px; }
}
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.hero__subtitle {
	font-size: clamp(1.05rem, 1.6vw, 1.3rem);
	font-weight: 300;
	color: var(--color-brand-ivory);
	line-height: 1.55;
	margin-bottom: 40px;
}
.hero__ctas { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 640px) { .hero__ctas { flex-direction: row; } }
.hero__dots {
	position: absolute;
	bottom: 36px; left: 50%;
	transform: translateX(-50%);
	z-index: 10;
	display: flex; gap: 8px;
}
.hero__dot {
	width: 48px; height: 4px;
	border-radius: var(--radius-pill);
	background: rgba(255,255,255,0.5);
	transition: background-color .3s;
}
.hero__dot.is-active { background: var(--color-brand-gold); }

/* ---------- Stats (cards con counter animado) ---------- */
.stats {
	display: grid;
	grid-template-columns: repeat(2, 1fr);  /* mobile: 2x2 */
	gap: 16px;
	align-items: stretch;
}
.stats__item {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	max-width: 100%;
	min-width: 0;
	background: rgba(255, 255, 255, 0.6);
	border: 1px solid rgba(212, 168, 83, 0.25);
	border-radius: 12px;
	padding: 28px 20px;
	transition: background-color .3s ease, transform .3s ease;
}
.stats__item:hover {
	background: rgba(255, 255, 255, 0.85);
	transform: translateY(-2px);
}
.stats__value {
	display: block;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(2.25rem, 3.4vw, 2.75rem);
	color: var(--color-brand-gold);
	margin-bottom: 10px;
	line-height: 1;
	font-variant-numeric: tabular-nums;  /* dígitos de ancho fijo: evita "saltos" durante el counter */
}
.stats__label {
	display: block;
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--color-brand-blue);
	letter-spacing: 0.10em;
	text-transform: uppercase;
	line-height: 1.35;
	word-wrap: break-word;
}
.stats__sep { display: none; }  /* obsoleto: separators removidos del template */

/* ---------- Grid + cards ---------- */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) {
	.grid--3 { grid-template-columns: repeat(3, 1fr); }
	.grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
	background: var(--color-white);
	padding: 32px;
	border-radius: var(--radius-3xl);
	border: 1px solid var(--color-gray-100);
	box-shadow: var(--shadow-sm);
	transition: box-shadow .3s, transform .3s, border-color .3s;
}
.card:hover {
	box-shadow: var(--shadow-xl);
	transform: translateY(-4px);
}
.card__icon {
	width: 56px; height: 56px;
	background: var(--color-brand-orange-light);
	color: var(--color-brand-orange);
	border-radius: var(--radius-lg);
	display: inline-flex; align-items: center; justify-content: center;
	margin-bottom: 24px;
	transition: background-color .3s, color .3s;
}
.card:hover .card__icon { background: var(--color-brand-orange); color: var(--color-white); }
.card__icon--sm { width: 48px; height: 48px; border-radius: var(--radius-md); margin-bottom: 0; }
.card__thumb { width: 56px; height: 56px; flex-shrink: 0; }
.card__thumb img { width: 100%; height: 100%; object-fit: contain; }
.card__title { font-size: 1.25rem; color: var(--color-brand-blue); margin-bottom: 16px; }
.card__text { color: var(--color-gray-600); line-height: 1.55; }

/* Cards de participación (Empresas) */
.card--participate {
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 20px;
	color: var(--color-brand-dark);
	border-color: rgba(194, 106, 53, 0.15);
}
.card--participate:hover { border-color: var(--color-brand-orange); }
.card--participate .card__title { color: var(--color-brand-blue); margin-bottom: 12px; }
.card--participate .card__text  { font-size: 0.875rem; color: var(--color-gray-600); }
.card__number {
	position: absolute;
	top: 8px; right: 8px;
	font-family: var(--font-display);
	font-weight: 900;
	font-size: 6rem;
	color: rgba(212, 168, 83, 0.22);
	line-height: 1;
}
.card__badge {
	display: inline-block;
	font-size: 0.625rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--color-brand-orange);
	background: var(--color-brand-orange-light);
	padding: 4px 10px;
	border-radius: var(--radius-pill);
	margin-bottom: 12px;
}

/* ---------- Cronograma ---------- */
.cronograma {
	display: grid;
	grid-template-columns: 1fr;
	gap: 64px;
	align-items: start;
}
@media (min-width: 1024px) { .cronograma { grid-template-columns: repeat(2, 1fr); } }
.cronograma__col .section__title { margin-bottom: 48px; }

.timeline { position: relative; }
.timeline__item {
	position: relative;
	padding-left: 32px;
	padding-bottom: 48px;
	border-left: 2px solid var(--color-brand-gold-30);
}
.timeline__item.is-last { border-left: 0; padding-bottom: 0; }
.timeline__dot {
	position: absolute;
	left: -9px; top: 0;
	width: 16px; height: 16px;
	border-radius: 50%;
	background: var(--color-brand-orange);
	box-shadow: 0 0 0 4px rgba(194, 106, 53, 0.15);
}
.timeline__time {
	display: inline-block;
	font-weight: 700;
	font-size: 0.78rem;
	background: var(--color-brand-orange-light);
	color: var(--color-brand-orange);
	padding: 4px 12px;
	border-radius: var(--radius-pill);
	margin-bottom: 12px;
}
.timeline__title { font-size: 1.25rem; color: var(--color-brand-blue); margin-bottom: 4px; }
.timeline__subtitle { color: rgba(28, 40, 86, 0.75); font-weight: 500; margin-bottom: 12px; }
.timeline__desc { color: var(--color-gray-600); font-size: 0.92rem; max-width: 520px; }

.cronograma__media { position: relative; }
.cronograma__media-bg {
	position: absolute;
	inset: 0;
	background: var(--color-brand-blue);
	border-radius: var(--radius-3xl);
	transform: rotate(2deg);
	opacity: 0.10;
	transition: transform .3s;
}
.cronograma__media:hover .cronograma__media-bg { transform: rotate(1deg); }
.cronograma__video {
	position: relative;
	z-index: 10;
	width: 100%;
	height: 500px;
	border: 0;
	border-radius: var(--radius-3xl);
	background: #000;
	box-shadow: var(--shadow-2xl);
}
.cronograma__badge {
	position: absolute;
	bottom: -24px; right: -24px;
	width: 128px; height: 128px;
	background: var(--color-brand-orange);
	border-radius: var(--radius-xl);
	z-index: 20;
	display: flex; align-items: center; justify-content: center;
	padding: 20px;
	color: var(--color-white);
	text-align: center;
	font-weight: 700;
	font-size: 0.72rem;
	line-height: 1.2;
}

/* ---------- Footer (invertido a fondo blue + texto ivory) ---------- */
.footer {
	background: var(--color-brand-blue);
	color: var(--color-brand-ivory);
	padding-top: var(--section-pad);
	padding-bottom: 48px;
}
.footer__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 48px;
	margin-bottom: 80px;
}
@media (min-width: 768px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: repeat(3, 1fr); } }
.footer__brand-row { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.footer .nav__logo { background: var(--color-brand-gold); color: var(--color-brand-blue); width: var(--footer-logo-size, 48px); height: var(--footer-logo-size, 48px); font-size: calc(var(--footer-logo-size, 48px) * 0.42); }
.footer__brand-text { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; letter-spacing: -0.02em; color: var(--color-brand-ivory); }
.footer__brand-image {
	height: var(--footer-logo-size, 48px);
	width: auto;
	max-width: 100%;
	display: block;
	object-fit: contain;
}
.footer__intro { color: rgba(242, 230, 208, 0.85); max-width: 380px; margin-bottom: 24px; line-height: 1.55; }
.footer__social { display: flex; gap: 12px; }
.footer__social-icon {
	width: 40px; height: 40px;
	background: rgba(242, 230, 208, 0.10);
	border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	color: var(--color-brand-ivory);
	transition: background-color .25s, color .25s;
}
.footer__social-icon:hover { background: var(--color-brand-gold); color: var(--color-brand-blue); }

.footer__contact-label {
	font-size: 0.7rem; font-weight: 900;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--color-brand-gold);
	margin-bottom: 24px;
}
.footer__contact-name { font-size: 1.1rem; font-weight: 700; color: var(--color-brand-ivory); margin-bottom: 4px; }
.footer__contact-role { font-size: 0.875rem; color: rgba(242, 230, 208, 0.7); margin-bottom: 16px; }
.footer__contact-link {
	display: flex; align-items: center; gap: 12px;
	color: var(--color-brand-gold);
	font-weight: 600;
	padding: 4px 0;
	transition: color .2s;
}
.footer__contact-link:hover { color: var(--color-brand-ivory); text-decoration: underline; }
.footer__contact-link--muted { color: rgba(242, 230, 208, 0.85); }
.footer__contact-link--muted:hover { color: var(--color-brand-ivory); text-decoration: none; }

.footer__bottom {
	border-top: 1px solid rgba(212, 168, 83, 0.22);
	padding-top: 48px;
	display: flex;
	flex-direction: column;
	gap: 24px;
	align-items: center;
	justify-content: space-between;
}
@media (min-width: 768px) { .footer__bottom { flex-direction: row; } }
.footer__logos {
	display: flex; align-items: center; gap: 48px;
	flex-wrap: wrap;
	justify-content: center;
	filter: brightness(0) invert(1);  /* logos oscuros se vuelven ivory sobre fondo blue */
	opacity: 0.7;
	transition: opacity .3s;
}
.footer__logos:hover { opacity: 1; }
.footer__logos img { max-height: 48px; width: auto; }
.footer__logos--text { filter: none; opacity: 1; }
.footer__logos--text span {
	font-family: var(--font-display);
	font-weight: 900;
	font-size: 1.25rem;
	color: var(--color-brand-ivory);
}
.footer__copy { font-size: 0.875rem; color: rgba(242, 230, 208, 0.55); }
.footer__copy-sep { margin: 0 8px; color: rgba(242, 230, 208, 0.35); }
.footer__main-link {
	color: var(--color-brand-gold);
	transition: color .2s, text-decoration-color .2s;
	text-decoration: underline;
	text-decoration-color: rgba(212, 168, 83, 0.35);
	text-underline-offset: 3px;
}
.footer__main-link:hover { color: var(--color-brand-ivory); text-decoration-color: var(--color-brand-ivory); }

.footer__cofinanciamiento {
	background: #000;
	color: #fff;
	padding-block: 18px;
	margin-top: 32px;
	font-size: 0.875rem;
	line-height: 1.55;
	text-align: center;
}
.footer__cofinanciamiento p {
	margin: 0;
	max-width: 56em;
	margin-inline: auto;
	color: #fff;
}

/* ---------- Reveal animations ---------- */
.reveal {
	opacity: 0;
	transform: translateY(30px);
	transition: opacity .6s ease-out, transform .6s ease-out;
	transition-delay: var(--delay, 0ms);
}
.reveal.is-revealed {
	opacity: 1;
	transform: translateY(0);
}

/* ---------- Hero — modo video ---------- */
.hero--video .hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__video {
	width: 100%; height: 100%;
	object-fit: cover;
	display: block;
}

/* ---------- Stats: cantidad-aware ≥ 640px ---------- */
@media (min-width: 640px) {
	.stats--count-3 { grid-template-columns: repeat(3, 1fr); gap: 20px; }
	.stats--count-4 { grid-template-columns: repeat(4, 1fr); gap: 20px; }
}
@media (max-width: 480px) {
	.stats { gap: 12px; }
	.stats__item { padding: 20px 14px; }
}

/* ---------- Sección Propósito (variantes con/sin imagen) ---------- */
.section--proposito {
	position: relative;
	overflow: hidden;
	padding-block: clamp(96px, 12vw, 144px);
}
.section--proposito .section__title { font-size: clamp(2.5rem, 4.5vw, 3.25rem); }
.section--proposito-blue {
	background: linear-gradient(135deg, var(--color-brand-blue) 0%, var(--color-brand-night) 100%);
	color: var(--color-white);
}
.section--imaged {
	background-size: cover;
	background-position: center;
	background-attachment: fixed;
	color: var(--color-white);
}
.section__slides { position: absolute; inset: 0; z-index: 0; }
.section__slide {
	position: absolute; inset: 0;
	opacity: 0;
	transition: opacity 2s ease-in-out;
}
.section__slide.is-active { opacity: 1; }
.section__slide img { width: 100%; height: 100%; object-fit: cover; }
.section__overlay {
	position: absolute; inset: 0;
	background: var(--color-brand-night-80);
	z-index: 1;
}
.section--imaged > .container,
.section--proposito > .container { position: relative; z-index: 2; }

/* Cards de propósito sobre fondo oscuro: glassy */
.section--proposito-blue .card--purpose,
.section--imaged .card--purpose {
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.15);
	color: var(--color-white);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	box-shadow: var(--shadow-lg);
}
.section--proposito-blue .card--purpose .card__title,
.section--imaged .card--purpose .card__title { color: var(--color-white); }
.section--proposito-blue .card--purpose .card__text,
.section--imaged .card--purpose .card__text  { color: rgba(255, 255, 255, 0.90); }
.section--proposito-blue .card--purpose .card__icon,
.section--imaged .card--purpose .card__icon {
	background: rgba(212, 168, 83, 0.18);
	color: var(--color-brand-gold);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}
.section--proposito-blue .card--purpose:hover .card__icon,
.section--imaged .card--purpose:hover .card__icon {
	background: var(--color-brand-gold);
	color: var(--color-brand-blue);
}

/* ---------- Card con imagen de fondo individual ---------- */
.card--imaged {
	position: relative;
	overflow: hidden;
	color: var(--color-white);
	background-size: cover;
	background-position: center;
	min-height: 320px;
	display: flex;
	align-items: flex-end;
	border: 0;
	box-shadow: var(--shadow-xl);
}
.card--imaged .card__overlay {
	position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(12, 35, 64, 0.20) 0%, rgba(12, 35, 64, 0.85) 100%);
	z-index: 0;
}
.card--imaged .card__inner { position: relative; z-index: 1; }
.card--imaged .card__icon {
	background: rgba(212, 168, 83, 0.20);
	color: var(--color-brand-gold);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}
.card--imaged:hover .card__icon { background: var(--color-brand-gold); color: var(--color-brand-blue); }
.card--imaged .card__title { color: var(--color-white); }
.card--imaged .card__text  { color: rgba(255, 255, 255, 0.92); }

/* ---------- Sección CTA (botón centrado) ---------- */
.section__cta {
	margin-top: 56px;
	display: flex;
	justify-content: center;
}

/* ---------- Sección Acompañan ---------- */
.section--acompanan {
	background: linear-gradient(135deg, var(--color-brand-night) 0%, var(--color-brand-blue) 100%);
	color: var(--color-white);
	padding-block: clamp(64px, 8vw, 96px);
}
.section--acompanan .section__title,
.section--acompanan .section__heading {
	font-size: clamp(2.5rem, 4.5vw, 3.25rem);
	font-weight: 800;
	color: var(--color-white);
}
.section--acompanan .section__lead { color: var(--color-brand-ivory); }
.section--acompanan .section__eyebrow { color: var(--color-brand-gold); }
.acompanan__grupo + .acompanan__grupo {
	margin-top: 56px;
	padding-top: 56px;
	border-top: 1px solid rgba(255,255,255,0.15);
}
.acompanan__placeholder {
	text-align: center;
	color: rgba(255,255,255,0.5);
	font-style: italic;
	padding: 24px 0;
	margin: 0;
}
.acompanan__title {
	font-size: 0.78rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--color-brand-gold);
	text-align: center;
	margin-bottom: 32px;
	font-family: var(--font-sans);
	font-weight: 700;
}
.acompanan__logos {
	display: flex;
	flex-wrap: wrap;
	gap: 48px;
	align-items: center;
	justify-content: center;
}
.acompanan__logo img {
	max-height: 80px;
	width: auto;
	max-width: 200px;
	object-fit: contain;
	transition: transform .25s;
}
.acompanan__logo:hover img { transform: translateY(-2px); }

/* ---------- Marquee (colaboran) ---------- */
.acompanan__grupo--marquee .marquee {
	background: transparent;
	border-radius: var(--radius-xl);
	padding-block: 24px;
}
.marquee {
	overflow: hidden;
	width: 100%;
	mask-image: linear-gradient(90deg, transparent 0%, black 6%, black 94%, transparent 100%);
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, black 6%, black 94%, transparent 100%);
}
.marquee__track {
	display: flex;
	width: max-content;
	gap: 64px;
	align-items: center;
	animation: marqueeScroll 60s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 140px;
}
.marquee__item img {
	max-height: 64px;
	width: auto;
	max-width: 160px;
	object-fit: contain;
}
@keyframes marqueeScroll {
	from { transform: translate3d(0, 0, 0); }
	to   { transform: translate3d(-50%, 0, 0); }
}

/* ---------- Sección Inscripción ---------- */
.section--inscripcion {
	background: var(--color-brand-ivory);
	color: var(--color-brand-dark);
	padding-block: clamp(80px, 10vw, 128px);
}
.section--inscripcion--split .section__head { text-align: left; max-width: none; }
.section--inscripcion--split .section__cta--start { justify-content: flex-start; }

.inscripcion__title {
	font-family: var(--font-display);
	font-size: clamp(2.25rem, 5vw, 3.5rem);
	line-height: 1.05;
	letter-spacing: -0.01em;
	margin: 0 0 16px;
	color: var(--color-brand-blue);
	text-transform: uppercase;
}
.inscripcion__title-strong { font-weight: 800; color: var(--color-brand-blue); }
.inscripcion__title-light  { font-weight: 400; color: var(--color-brand-blue); letter-spacing: 0; }

.inscripcion__subtitle {
	font-family: var(--font-display);
	color: var(--color-brand-orange);
	font-weight: 600;
	font-size: clamp(1.1rem, 1.4vw, 1.3rem);
	letter-spacing: 0.01em;
	margin: 0 0 24px;
}

.section--inscripcion .inscripcion__text,
.section--inscripcion .section__sub.inscripcion__text {
	color: var(--color-brand-blue);
	font-size: clamp(1rem, 1.2vw, 1.15rem);
	line-height: 1.65;
	max-width: 38em;
}
.section--inscripcion:not(.section--inscripcion--split) .inscripcion__text { margin-inline: auto; }
.inscripcion__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(32px, 5vw, 64px);
	align-items: center;
}
@media (min-width: 900px) {
	.inscripcion__grid { grid-template-columns: 1.05fr 1fr; }
}
.inscripcion__body { display: flex; flex-direction: column; gap: 24px; }
.inscripcion__media {
	background: transparent;
}
.inscripcion__media img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: contain;
	background: transparent;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	.hero__slide { transition: none; }
	.reveal { opacity: 1; transform: none; transition: none; }
	.marquee__track { animation: none; }
	* { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
