/* ==========================================================================
   PEU · OEFA
   Colores: paleta oficial OEFA (colores web). Tipografía de marca: Gotham Rounded.
   ========================================================================== */

@font-face {
	font-family: 'Gotham';
	src: url('../fonts/GothamRounded-Bold/GothamRounded-Bold.woff') format('woff'),
	     url('../fonts/GothamRounded-Bold/GothamRounded-Bold.ttf') format('truetype');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Gotham';
	src: url('../fonts/GothamRounded-Book/GothamRounded-Book.woff') format('woff'),
	     url('../fonts/GothamRounded-Book/GothamRounded-Book.ttf') format('truetype');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

:root {
	/* Paleta oficial OEFA (colores web) */
	--blue: #144AA7;
	--sky: #1D85BF;
	--cyan: #0BC7E0;
	--teal: #44BFB5;
	--green: #8CCD3A;
	--gray: #696A6A;

	--blue-deep: var(--sky);
	--ink: var(--blue);
	--text: var(--gray);
	--muted: var(--gray);
	--white: #fff;
	--mist: rgba(20, 74, 167, .06);
	--line: rgba(105, 106, 106, .28);
	--grad: linear-gradient(100deg, var(--cyan), var(--teal), var(--green));
	--radius: 18px;
	--radius-sm: 12px;
	--shadow: 0 1px 2px rgba(20, 74, 167, .08), 0 10px 30px -12px rgba(20, 74, 167, .3);
	--header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: 'Gotham', 'Nunito', 'Segoe UI', system-ui, sans-serif;
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--text);
	background: var(--white);
	text-align: left;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--sky); }
h1, h2, h3, h4 { font-weight: 700; color: var(--ink); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
::selection { background: var(--blue); color: #fff; }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.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; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 2000; background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.skip-link:focus { top: 12px; color: #fff; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.wrap--narrow { width: min(860px, 100% - 40px); }

/* ---------- Botones ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center;
	font: inherit; font-weight: 700; font-size: 1rem; line-height: 1;
	padding: 15px 26px; border-radius: 999px; border: 2px solid transparent;
	text-decoration: none; cursor: pointer;
	transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px -8px rgba(20, 74, 167, .7); }
.btn--primary:hover { background: var(--blue-deep); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 24px -8px rgba(20, 74, 167, .8); }
.btn--ghost { background: rgba(255,255,255,.7); color: var(--blue); border-color: var(--blue); }
.btn--ghost:hover { background: var(--blue); color: #fff; }
.btn--ghost-dark { background: transparent; color: var(--blue); border-color: var(--line); }
.btn--ghost-dark:hover { border-color: var(--blue); background: var(--mist); color: var(--blue); }
.btn--small { padding: 10px 16px; font-size: .875rem; background: var(--white); color: var(--blue); border-color: var(--line); }
.btn--small:hover { border-color: var(--blue); background: var(--mist); }

/* ---------- Cabecera ---------- */
.site-header {
	position: sticky; top: 0; z-index: 1000;
	background: rgba(255,255,255,.92);
	-webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
	border-bottom: 1px solid transparent;
	transition: border-color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 24px -16px rgba(20, 74, 167,.35); }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--grad); }
.site-header__row { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.brand { display: block; flex: none; }
.brand__peu { height: 46px; width: auto; }
.brand-oefa { flex: none; margin-left: 4px; }
.brand-oefa img { height: 40px; width: auto; }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.site-nav a {
	display: block; padding: 10px 16px; border-radius: 999px;
	font-weight: 700; font-size: .95rem; color: var(--blue); text-decoration: none;
	transition: background-color .18s ease, color .18s ease;
}
.site-nav a:hover { background: var(--mist); color: var(--blue-deep); }
.site-nav a.is-active { background: var(--blue); color: #fff; }
.is-home .brand__peu { display: none; }
.is-home .brand { width: 0; }

.nav-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 20px; height: 2px; background: var(--blue); border-radius: 2px; transition: transform .22s ease, opacity .22s ease; }
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
	.nav-toggle { display: inline-flex; }
	.brand-oefa { order: 3; display: none; }
	.is-home .brand { width: auto; }
	.is-home .brand__peu { display: block; }
	.site-nav {
		position: absolute; left: 0; right: 0; top: 100%;
		background: #fff; border-bottom: 1px solid var(--line);
		box-shadow: 0 20px 30px -20px rgba(20, 74, 167,.4);
		padding: 8px 20px 18px; display: none;
	}
	.site-nav.is-open { display: block; }
	.site-nav ul { flex-direction: column; }
	.site-nav a { padding: 14px 16px; font-size: 1.05rem; }
}

/* ---------- Contornos topográficos (canvas) ---------- */
.contour { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }

/* ---------- Hero de inicio ---------- */
.hero {
	position: relative; overflow: hidden; isolation: isolate;
	background: radial-gradient(1200px 600px at 85% 10%, rgba(11, 199, 224, .14) 0%, rgba(11, 199, 224, 0) 60%), linear-gradient(180deg, rgba(11, 199, 224, .06) 0%, #ffffff 100%);
	padding: clamp(36px, 6vw, 84px) 0 clamp(44px, 7vw, 96px);
}
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .85fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero__logo { margin: 0 0 22px; width: min(580px, 100%); }
.hero__lead { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.55; color: var(--ink); max-width: 34em; margin-bottom: 28px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn--lg { font-size: 1.15rem; padding: 19px 38px; }
.btn--lg::after { content: ""; width: 9px; height: 9px; margin-left: 12px; border-right: 3px solid currentColor; border-top: 3px solid currentColor; transform: rotate(45deg); transition: transform .2s ease; }
.btn--lg:hover::after { transform: translateX(4px) rotate(45deg); }

/* Cuenta regresiva */
.countdown {
	background: var(--blue);
	color: #fff; border-radius: 24px; padding: 28px 26px 24px;
	box-shadow: 0 30px 60px -28px rgba(20, 74, 167, .8);
	position: relative; overflow: hidden;
}
.countdown::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--grad); }
.countdown__title { font-weight: 700; font-size: 1.35rem; margin: 6px 0 4px; color: #fff; }
.countdown__label { margin: 0 0 18px; color: rgba(255, 255, 255, .85); font-size: .98rem; }
.countdown__cells { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 18px; }
.countdown__cells[hidden] { display: none; }
.cell { background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.16); border-radius: 14px; padding: 12px 4px 10px; text-align: center; }
.cell__num { display: block; font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.15rem); line-height: 1.1; font-variant-numeric: tabular-nums; }
.cell__cap { display: block; font-size: .72rem; color: rgba(255, 255, 255, .75); margin-top: 4px; }
.countdown__note { margin: 0; font-size: .9rem; color: rgba(255, 255, 255, .85); border-top: 1px solid rgba(255,255,255,.18); padding-top: 14px; }
.countdown.is-closed .countdown__title { color: #fff; }
.countdown.is-open .countdown__label { color: #fff; }

/* Entrada del hero: una sola secuencia al cargar */
@media (prefers-reduced-motion: no-preference) {
	.hero__logo, .hero__lead, .hero__actions, .countdown { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
	.hero__lead { animation-delay: .12s; }
	.hero__actions { animation-delay: .22s; }
	.countdown { animation-delay: .32s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
	.hero__grid { grid-template-columns: 1fr; }
	.hero__logo { width: min(460px, 100%); }
}

/* ---------- Cifras ---------- */
.stats { background: var(--blue); color: #fff; position: relative; }
.stats::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--grad); }
.stats__row { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 28px 16px 30px; text-align: center; border-left: 1px solid rgba(255,255,255,.16); }
.stat:first-child { border-left: 0; }
.stat__num { display: block; font-weight: 700; font-size: clamp(2rem, 4vw, 3rem); line-height: 1; font-variant-numeric: tabular-nums; }
.stat__txt { display: block; margin-top: 8px; font-size: .95rem; color: rgba(255, 255, 255, .85); }
@media (max-width: 640px) {
	.stats__row { grid-template-columns: 1fr 1fr; }
	.stat:nth-child(3) { border-left: 0; }
	.stat:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.16); }
}

/* ---------- Secciones ---------- */
.section { padding: clamp(48px, 7vw, 92px) 0; }
.section--mist { background: var(--mist); }
.section__title { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 1.1em; }

/* Tarjetas de acceso */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tile {
	--mx: 50%; --my: 50%;
	position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
	text-decoration: none; color: var(--text);
	background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box;
	border: 8px solid transparent;
	border-radius: var(--radius);
	padding: 28px 24px 26px; overflow: hidden;
	transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.tile::before {
	content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .25s ease;
	background: radial-gradient(260px circle at var(--mx) var(--my), rgba(11, 199, 224,.16), transparent 70%);
}
.tile:hover { transform: translateY(-5px); border-color: var(--cyan); box-shadow: var(--shadow); color: var(--text); }
.tile:hover::before { opacity: 1; }
.tile__icon { width: 96px; height: 96px; margin: 0 auto 18px; transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.tile:hover .tile__icon { transform: scale(1.08) rotate(-4deg); }
.tile h3 { font-size: 1.2rem; margin: 0; color: var(--blue); }
.tile p { margin: 0; font-size: .97rem; color: var(--muted); }
@media (max-width: 960px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .tiles { grid-template-columns: 1fr; } }

/* Público objetivo */
.audience { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.audience p { max-width: 34em; margin-bottom: 1.4em; }
.chips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.chip { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px; display: flex; align-items: baseline; gap: 12px; transition: transform .2s ease, border-color .2s ease; }
.chip:hover { transform: translateY(-3px); border-color: var(--green); }
.chip strong { font-size: 2rem; line-height: 1; color: var(--blue); font-variant-numeric: tabular-nums; }
.chip span { font-weight: 700; color: var(--ink); font-size: .98rem; }
@media (max-width: 860px) { .audience { grid-template-columns: 1fr; } }

/* ---------- Cabecera de páginas internas ---------- */
.page-hero {
	position: relative; overflow: hidden; isolation: isolate;
	background: linear-gradient(120deg, var(--blue) 0%, var(--blue) 60%, var(--sky) 100%);
	color: #fff; padding: clamp(40px, 6vw, 76px) 0 clamp(36px, 5vw, 64px);
}
.page-hero .wrap { position: relative; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.6vw, 3.3rem); margin-bottom: .3em; }
.page-hero__sub { font-size: clamp(1.02rem, 1.5vw, 1.2rem); color: rgba(255, 255, 255, .88); margin: 0; max-width: 36em; }

/* ---------- Texto largo ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(28px, 5vw, 64px); align-items: start; }
.prose { max-width: 46em; }
.prose--wide { max-width: 52em; margin-inline: auto; }
.prose h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin: 1.9em 0 .6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.12rem; color: var(--blue); margin-bottom: .3em; }
.prose__lead { font-size: 1.22rem; line-height: 1.6; color: var(--ink); }
.prose__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2.2em; }
.note { font-size: .9rem; color: var(--muted); }

.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding: 0 0 .75em 34px; }
.checklist li::before {
	content: ""; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 50%;
	background: var(--grad);
}
.checklist li::after {
	content: ""; position: absolute; left: 6.5px; top: calc(.3em + 6.5px); width: 7px; height: 4px;
	border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(-45deg);
}

.facts { position: sticky; top: calc(var(--header-h) + 20px); background: var(--mist); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 24px 12px; }
.facts h2 { font-size: 1.15rem; margin-bottom: .8em; }
.facts dl { margin: 0; }
.facts dl > div { padding: 12px 0; border-top: 1px solid var(--line); }
.facts dt { font-size: .8rem; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 700; color: var(--ink); }
@media (max-width: 900px) { .layout { grid-template-columns: 1fr; } .facts { position: static; order: -1; } }

/* Pasos del proceso */
.steps { list-style: none; padding: 0; margin: 0 0 1.5em; counter-reset: step; }
.steps > li { position: relative; padding: 0 0 1.4em 64px; counter-increment: step; }
.steps > li::before {
	content: counter(step); position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%;
	background: var(--blue); color: #fff; font-weight: 700; display: grid; place-items: center;
}
.steps > li::after { content: ""; position: absolute; left: 21px; top: 50px; bottom: 6px; width: 2px; background: var(--line); }
.steps > li:last-child::after { display: none; }
.steps h3 { padding-top: 8px; margin-bottom: .35em; }

/* Tabla con barras */
.table-wrap { overflow-x: auto; margin-bottom: 1em; }
table.bars { width: 100%; border-collapse: collapse; min-width: 420px; }
.bars th, .bars td { padding: 14px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.bars thead th { font-size: .82rem; color: var(--muted); border-bottom: 2px solid var(--ink); }
.bars tbody th { font-weight: 700; color: var(--ink); width: 34%; }
.bars__bar { display: inline-block; width: calc(100% - 3.4em); height: 12px; margin-right: 10px; vertical-align: middle; border-radius: 999px; background: var(--mist); position: relative; overflow: hidden; }
.bars__bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--v) / 65 * 100%); background: var(--grad); border-radius: 999px; transform-origin: left; transform: scaleX(0); transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.bars.is-in .bars__bar::after { transform: scaleX(1); }
.bars__n { display: inline-block; vertical-align: middle; font-weight: 700; color: var(--blue); min-width: 2.2em; font-variant-numeric: tabular-nums; }
.bars tfoot th, .bars tfoot td { border-bottom: 0; font-weight: 700; color: var(--ink); }

/* Línea de tiempo */
.timeline { list-style: none; margin: 0 0 1em; padding: 0 0 0 28px; border-left: 3px solid var(--line); }
.timeline li { position: relative; padding: 0 0 22px 18px; display: grid; gap: 2px; }
.timeline li::before { content: ""; position: absolute; left: -38px; top: 6px; width: 15px; height: 15px; border-radius: 50%; background: #fff; border: 3px solid var(--sky); }
.timeline__what { font-weight: 700; color: var(--ink); }
.timeline__when { color: var(--muted); font-size: .97rem; }
.timeline li.is-next::before { background: var(--green); border-color: var(--green); box-shadow: 0 0 0 6px rgba(140, 205, 58,.25); }
.timeline li.is-next .timeline__what::after { content: "Próxima fecha"; margin-left: 10px; font-size: .72rem; background: rgba(140, 205, 58, .3); color: var(--blue); padding: 3px 10px; border-radius: 999px; vertical-align: middle; }

/* ---------- Herramientas de búsqueda ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 20px; }
.search { flex: 1 1 280px; position: relative; }
.search input {
	width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
	padding: 14px 18px 14px 48px; border: 2px solid var(--line); border-radius: 999px; background: #fff
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23144aa7' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E")
		no-repeat 18px center;
	transition: border-color .18s ease, box-shadow .18s ease;
}
.search input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(11, 199, 224,.25); }
.toolbar__btns { display: flex; gap: 8px; }
.empty { padding: 18px 20px; background: var(--mist); border-radius: var(--radius-sm); }
mark { background: rgba(140, 205, 58,.45); color: inherit; border-radius: 3px; padding: 0 2px; }

/* ---------- Acordeón ---------- */
.accordion { display: grid; gap: 12px; }
.acc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); transition: border-color .2s ease, box-shadow .2s ease; }
.acc[open] { border-color: var(--sky); box-shadow: var(--shadow); }
.acc > summary {
	list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px;
	padding: 18px 20px; font-weight: 700; color: var(--ink); border-radius: var(--radius-sm);
	transition: background-color .18s ease;
}
.acc > summary::-webkit-details-marker { display: none; }
.acc > summary::after {
	content: ""; flex: none; margin-left: auto; width: 12px; height: 12px;
	border-right: 3px solid var(--blue); border-bottom: 3px solid var(--blue);
	transform: rotate(45deg) translate(-2px, -2px); transition: transform .25s ease;
}
.acc[open] > summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.acc > summary:hover { background: var(--mist); }
.acc[open] > summary { color: var(--blue); }
.acc__body { padding: 4px 22px 20px; }
.acc__body h3 { font-size: 1.05rem; color: var(--blue); margin: 1.2em 0 .5em; }
.acc__body h3:first-child { margin-top: .4em; }
.acc__body h4 { font-size: 1rem; margin: 0 0 .3em; }
.acc__body ul ul { margin-top: .4em; margin-bottom: 0; }
.acc__body li { margin-bottom: .35em; }
.acc.is-hidden { display: none; }

/* En el temario las listas ya llevan a), b), c) en el título: sin números 1., 2., 3. */
#modulos .acc__body ol { list-style: none; padding-left: 0; }
#modulos .acc__body ol > li { margin-bottom: .9em; }

@media (prefers-reduced-motion: no-preference) {
	.acc[open] > .acc__body { animation: reveal .28s ease both; }
}
@keyframes reveal { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Preguntas numeradas automáticamente */
.accordion--faq { counter-reset: faq; }
.accordion--faq > .acc { counter-increment: faq; }
.accordion--faq > .acc > summary::before {
	content: counter(faq); flex: none; width: 34px; height: 34px; border-radius: 50%;
	background: var(--mist); color: var(--blue); display: grid; place-items: center; font-size: .9rem;
}
.accordion--faq > .acc[open] > summary::before { background: var(--blue); color: #fff; }

.acc--inner { border-color: var(--line); margin-top: 10px; }
.acc--inner > summary { padding: 14px 16px; font-size: .97rem; }

/* ---------- Pestañas ---------- */
.tabs__list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.tabs__tab {
	font: inherit; font-weight: 700; font-size: .93rem; cursor: pointer;
	padding: 10px 18px; border-radius: 999px; border: 2px solid var(--line); background: #fff; color: var(--blue);
	transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.tabs__tab:hover { border-color: var(--blue); }
.tabs__tab[aria-selected="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.tabs__intro { color: var(--muted); margin-bottom: .6em; }
.tabs__panel[hidden] { display: none; }

/* ---------- Imagen ampliable ---------- */
.zoom-figure { margin: 0 0 32px; }
.zoom { position: relative; display: block; width: min(820px, 100%); margin-inline: auto; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; cursor: zoom-in; overflow: hidden; transition: box-shadow .2s ease, transform .2s ease; }
.zoom:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.zoom img { width: 100%; }
.zoom__hint { position: absolute; right: 12px; bottom: 12px; background: var(--blue); color: #fff; font-weight: 700; font-size: .8rem; padding: 7px 14px; border-radius: 999px; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(20, 74, 167, .82); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.lightbox img { max-height: 88vh; width: auto; margin-inline: auto; border-radius: 14px; background: #fff; }
.lightbox form { position: absolute; right: -6px; top: -16px; z-index: 2; margin: 0; }
.lightbox__close { width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: var(--blue); font-size: 1.8rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow); }

/* ---------- Pie ---------- */
.site-footer { background: var(--blue); color: #fff; padding: 36px 0 30px; position: relative; }
/*.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--grad); }*/
.site-footer__row { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.logo-plate { display: inline-block; background: #fff; border-radius: 8px; padding: 2px 2px; line-height: 0; }
.logo-plate img { height: 54px; width: auto; }
.site-footer__info { text-align: right; }
.site-footer__info p { margin: 0 0 .3em; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--green); }
.site-footer__legal { font-size: .85rem; color: rgba(255, 255, 255, .75); }
@media (max-width: 640px) { .site-footer__info { text-align: left; } }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
	.bars__bar::after { transform: scaleX(1); }
}

main p, main li, main dd { text-align: justify; text-justify: inter-word; hyphens: auto; -webkit-hyphens: auto; }
.countdown p, .tile p, .stat, .page-hero p, .empty, .site-footer p { text-align: left; hyphens: manual; }
.tile, .tile p, .stat { text-align: center; }
.chip span { text-align: left; }

.chips .chip-btn { display: flex; }
.btn--bases { width: 100%; text-align: center; }
.facts .btn--bases { margin: 8px 0 12px; }

.split { display: grid; grid-template-columns: 1fr 1fr; background: var(--mist); }
.split__img { position: relative; overflow: hidden; min-height: 460px; background: #f1f4fa; }
.split__img img { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); height: 94%; width: auto; max-width: 92%; object-fit: contain; object-position: bottom center; }
.split__content { display: flex; flex-direction: column; justify-content: center; padding: clamp(40px, 6vw, 80px) max(24px, calc((100vw - 1120px) / 2)) clamp(40px, 6vw, 80px) clamp(32px, 5vw, 64px); }
.split__content p { max-width: 34em; margin-bottom: 1.6em; }
@media (max-width: 860px) {
	.split { grid-template-columns: 1fr; }
	.split__img { min-height: 320px; }
	.split__content { padding: 40px 24px; }
}

/* ---------- Botón "Inscríbete": aparece solo desde la fecha indicada ---------- */
.btn[hidden] { display: none; }
.btn--accent { background: var(--green); color: var(--blue); box-shadow: 0 8px 20px -8px rgba(140, 205, 58, .9); }
.btn--accent:hover { background: var(--teal); color: var(--blue); transform: translateY(-2px); }
@media (prefers-reduced-motion: no-preference) {
	.btn--reveal.is-revealed { animation: pop .6s cubic-bezier(.2,.8,.2,1) both; }
}
@keyframes pop { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
