/*
Theme Name: Fundación ACEN
Theme URI: https://fundacionacen.cl
Author: GeekDev · Diego Catalán
Author URI: https://geekdev.cl
Description: Tema a medida para Fundación ACEN. El contenido se administra con formularios propios (libros, equipo, transparencia, informes e historias de impacto) desde el menú "Fundación ACEN".
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: Privada
Text Domain: acen
*/

/* ---------- Tokens ---------- */
:root {
	--paper: #F4F1EA;
	--white: #FFFFFF;
	--navy: #1B2A41;
	--ink: #1B2A41;
	--body: #3A4658;
	--muted: #5B6576;
	--teal: #0E6F7A;
	--teal-dark: #0A525A;
	--teal-soft: #E3EEEE;
	--teal-light: #8FD0D6;
	--line: #DDD6C8;
	--line-strong: #CFC7B8;
	--navy-line: #3C5170;
	--on-navy: #C9D3DF;
	--font-display: "Roboto Condensed", "Arial Narrow", sans-serif;
	--font-body: "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;
	--radius: 20px;
	--radius-lg: 28px;
	--shadow: 0 24px 60px -30px rgba(27, 42, 65, .35);
	--gutter: clamp(20px, 6.6vw, 96px);
	--section: clamp(64px, 8vw, 104px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-dark); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 700; color: var(--ink); }
[hidden] { display: none !important; }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { left: 8px; }

.container { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 880px; }

.section { padding: var(--section) 0; }
.section--white { background: var(--white); }
.section--navy { background: var(--navy); color: #fff; }
.section--tight { padding-top: clamp(48px, 6vw, 80px); }
.section--head { padding-bottom: 56px; }
.section--flush { padding-top: 0; padding-bottom: 56px; }

/* ---------- Tipografía ---------- */
.eyebrow { margin: 0 0 14px; font-size: 14px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--teal); }
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow--light { color: var(--teal-light); }
.display { font-size: clamp(40px, 5.2vw, 68px); line-height: 1.04; letter-spacing: -.01em; margin-bottom: 24px; }
.display--md { font-size: clamp(36px, 4.4vw, 60px); line-height: 1.06; }
.h2 { font-size: clamp(32px, 3.4vw, 46px); line-height: 1.1; }
.h2--sm { font-size: clamp(28px, 2.6vw, 36px); }
.h2--light { color: #fff; }
.h3 { font-size: 28px; line-height: 1.15; }
.h3--sm { font-size: 24px; }
.h3 a, .h2 a { color: inherit; text-decoration: none; }
.h3 a:hover { color: var(--teal); }
.lead { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.6; color: var(--body); max-width: 640px; }
.lead-sm { font-size: 18px; color: var(--body); }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.link-strong { font-weight: 700; }

/* ---------- Botones ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 48px; padding: 13px 28px; border-radius: 999px; border: 1.5px solid transparent;
	font: 700 16px/1.2 var(--font-body); text-decoration: none; cursor: pointer;
	transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn--sm { min-height: 44px; padding: 10px 24px; }
.btn--lg { min-height: 58px; padding: 16px 32px; font-size: 17px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--teal); color: #fff; }
.btn--primary:hover { background: var(--teal-dark); color: #fff; }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: #0F1A2B; color: #fff; }
.btn--outline { border-color: var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--white { background: #fff; color: var(--teal-dark); }
.btn--white:hover { background: var(--paper); color: var(--navy); }
.btn--ghost-light { border-color: #fff; color: #fff; }
.btn--ghost-light:hover { background: #fff; color: var(--teal-dark); }
.btn--dashed { border: 1.5px dashed #B9B09F; color: var(--muted); cursor: default; }
.btn--dashed:hover { transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 8px; }
.btn-row--center { justify-content: center; }
.pill { display: inline-block; background: var(--teal-soft); color: var(--teal-dark); padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; letter-spacing: 0; text-transform: none; }

/* ---------- Cabecera ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(244, 241, 234, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.admin-bar .site-header { top: 32px; }
.site-header__inner { height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header__logo img { height: 48px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 36px; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-size: 16px; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"]:not(.btn) { color: var(--teal); }
.site-nav a[aria-current="page"]:not(.btn) { font-weight: 700; }
.nav-toggle { display: none; width: 48px; height: 48px; border: 0; background: transparent; color: var(--navy); border-radius: 12px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle__close { display: none; }

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 7vw, 96px) 0 clamp(64px, 7vw, 104px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: center; }
.hero__art { display: flex; justify-content: center; }
.hero__circle { width: min(440px, 100%); aspect-ratio: 1; border-radius: 50%; background: var(--teal-soft); display: flex; align-items: center; justify-content: center; position: relative; }
.hero__circle::before { content: ""; position: absolute; inset: 6.5%; border-radius: 50%; border: 1.5px dashed #9CC3C7; }
.hero__circle img { width: 68%; position: relative; }

/* ---------- Secciones ---------- */
.section-head { margin-bottom: 48px; }
.section-head--split { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px 48px; flex-wrap: wrap; }
.section-head__aside { max-width: 460px; margin: 0; font-size: 18px; color: var(--body); }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.two-col { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; }
.two-col > * { display: flex; flex-direction: column; gap: 20px; }

.pillar { background: var(--paper); border-radius: var(--radius); padding: 40px; display: flex; flex-direction: column; gap: 16px; }
.pillar__icon { color: var(--teal); }
.pillar p { color: var(--body); margin: 0; }

.vm { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 80px; }
.vm__col--divider { border-left: 1px solid var(--navy-line); padding-left: 80px; }
.vm__quote { font-family: var(--font-display); font-weight: 500; font-size: clamp(24px, 2.2vw, 32px); line-height: 1.3; color: #fff; margin: 0; }

.stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 36px; display: flex; flex-direction: column; gap: 8px; }
.stat__value { font-family: var(--font-display); font-weight: 700; font-size: clamp(36px, 3.4vw, 50px); line-height: 1.1; color: var(--ink); }
.stat__value--accent { color: var(--teal); }
.stat__label { font-size: 16px; color: var(--muted); }
.stat--navy { background: var(--navy); border-color: var(--navy); }
.stat--navy .stat__value { color: #fff; }
.stat--navy .stat__label { color: var(--on-navy); }

.notice-card { display: flex; gap: 20px; align-items: center; background: var(--white); border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 32px 36px; color: var(--body); }
.notice-card .icon { color: var(--teal); flex-shrink: 0; }
.notice-card p { margin: 0; font-size: 18px; }

/* ---------- Libros ---------- */
.book-feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: center; }
.book-feature__cover { display: flex; justify-content: center; }
.book-feature__text { display: flex; flex-direction: column; gap: 18px; max-width: 580px; }
.book-feature__text .display, .book-feature__text .h2 { margin-bottom: 0; }
.book-cover { width: 320px; max-width: 100%; aspect-ratio: 32 / 44; border-radius: 6px 14px 14px 6px; background: var(--navy); border-left: 10px solid var(--teal); padding: 36px 30px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 30px 60px -20px rgba(27, 42, 65, .45); }
.book-cover--soon { border-left-color: #7C8797; }
.book-cover--img { padding: 0; border: 0; object-fit: cover; }
.book-cover__vol { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--teal-light); }
.book-cover__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 2.8vw, 42px); line-height: 1.03; color: #fff; }
.book-cover__brand { font-size: 13px; color: var(--on-navy); }
.book { background: var(--white); border-radius: 24px; padding: 44px; display: flex; gap: 40px; align-items: flex-start; }
.book__cover { flex-shrink: 0; width: 210px; }
.book__cover .book-cover { width: 210px; padding: 24px 20px; border-left-width: 8px; }
.book__cover .book-cover__title { font-size: 28px; }
.book__body { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.book__body p { color: var(--body); margin: 0; }
.book__meta { display: flex; gap: 10px; align-items: center; }
.book__vol { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); font-weight: 700; }
.book__actions { padding-top: 6px; }
.facts { margin: 0; display: grid; gap: 10px; }
.facts div { display: flex; gap: 12px; }
.facts dt { font-weight: 700; min-width: 150px; }
.facts dd { margin: 0; color: var(--body); }

/* ---------- Equipo ---------- */
.person { background: var(--white); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.person__photo { aspect-ratio: 16 / 13; background: var(--teal-soft); display: flex; align-items: center; justify-content: center; }
.person__photo img { width: 100%; height: 100%; object-fit: cover; }
.person__initials { width: 112px; height: 112px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 40px; font-weight: 700; }
.person__body { padding: 32px; display: flex; flex-direction: column; gap: 8px; }
.person__role { margin: 0; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); font-weight: 700; }
.person__degree { margin: 0; font-size: 15px; color: var(--muted); }
.person__bio { margin: 8px 0 0; font-style: italic; color: var(--body); }
.person__links { display: flex; gap: 12px; margin: 8px 0 0; }
.person__links a { color: var(--navy); display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 50%; background: var(--paper); }
.person__links a:hover { background: var(--teal); color: #fff; }

/* ---------- Llamado ---------- */
.cta { border-radius: var(--radius-lg); background: var(--teal); padding: clamp(40px, 5vw, 72px) clamp(28px, 5.5vw, 80px); display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; }
.cta--navy { background: var(--navy); }
.cta__text { max-width: 640px; display: flex; flex-direction: column; gap: 14px; }
.cta__text p { color: #E3F2F3; font-size: 18px; margin: 0; }
.cta--navy .cta__text p { color: var(--on-navy); }
.cta__actions { display: flex; flex-direction: column; gap: 14px; min-width: 280px; }

/* ---------- Donar ---------- */
.donate__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.benefits { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-direction: column; gap: 18px; }
.benefits li { display: flex; gap: 16px; align-items: flex-start; color: var(--body); }
.benefits .icon { color: var(--teal); flex-shrink: 0; }
.benefits strong { color: var(--ink); }
.donate-form { background: var(--white); border-radius: 24px; padding: clamp(28px, 3.2vw, 44px); display: flex; flex-direction: column; gap: 26px; box-shadow: var(--shadow); }
.field-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.field-group legend { font-weight: 700; font-size: 15px; padding: 0; margin-bottom: 12px; }
.segmented { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; background: var(--paper); padding: 6px; border-radius: 14px; }
.segmented input, .choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.segmented span { display: flex; align-items: center; justify-content: center; height: 48px; border-radius: 10px; font-weight: 700; color: var(--muted); cursor: pointer; }
.segmented input:checked + span { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(27, 42, 65, .12); }
.segmented input:focus-visible + span, .choice input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: 2px; }
.choice-grid { display: grid; gap: 12px; }
.choice-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.choice { position: relative; }
.choice span { display: flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 10px; border-radius: 12px; border: 1.5px solid var(--line-strong); font-weight: 700; font-size: 17px; cursor: pointer; background: #fff; text-align: center; }
.choice input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 700; margin-top: 14px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field-row .field { margin-top: 0; }
.field input { height: 52px; border: 1.5px solid var(--line-strong); border-radius: 12px; padding: 0 16px; font: 400 16px var(--font-body); color: var(--ink); background: #fff; width: 100%; }
.field input:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px rgba(14, 111, 122, .18); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--body); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--teal); flex-shrink: 0; }
.donate-form__notice { background: var(--teal-soft); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 14px; color: var(--teal-dark); font-weight: 700; }
.donate-form__notice p { margin: 0; }
.donate-form__secure { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; color: var(--muted); margin: 0; text-align: center; }
.form-alert { background: #FBEDE6; color: #8A3B12; border-radius: 12px; padding: 14px 16px; font-weight: 700; margin: 0; }

/* ---------- Transparencia ---------- */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px 48px; flex-wrap: wrap; }
.page-head .display { margin-bottom: 20px; }
.tabs { display: flex; gap: 6px; background: #fff; padding: 6px; border-radius: 14px; border: 1px solid var(--line); flex-wrap: wrap; }
.tabs a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 10px; font-weight: 700; font-size: 15px; color: var(--muted); text-decoration: none; }
.tabs a[aria-current="page"] { background: var(--navy); color: #fff; }
.panel { background: var(--white); border-radius: 24px; padding: clamp(28px, 4vw, 56px); }
.spend { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 48px; }
.spend__intro p { color: var(--body); margin-top: 14px; }
.bars { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 26px; }
.bar { display: flex; flex-direction: column; gap: 10px; }
.bar__label { display: flex; justify-content: space-between; gap: 16px; font-size: 17px; }
.bar__label span { color: var(--muted); white-space: nowrap; }
.bar__track { height: 14px; background: #EEE9DF; border-radius: 999px; overflow: hidden; }
.bar__track span { display: block; height: 100%; border-radius: 999px; }
.reports { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.report { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px 24px; display: flex; align-items: center; gap: 18px; text-decoration: none; color: var(--ink); }
.report:hover { border-color: var(--teal); color: var(--ink); }
.report .icon { color: var(--teal); flex-shrink: 0; }
.report__text { flex-grow: 1; display: flex; flex-direction: column; gap: 2px; }
.report__text span { font-size: 14px; color: var(--muted); }
.report__cta { font-weight: 700; font-size: 15px; color: var(--teal); }
.table-wrap { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.data-table th, .data-table td { text-align: left; padding: 14px 20px; border-top: 1px solid #EEE9DF; white-space: nowrap; }
.data-table thead th { background: var(--navy); color: #fff; border-top: 0; }
.data-table tbody th { font-weight: 700; }
.data-table td { color: var(--body); }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card__media { aspect-ratio: 8 / 5; background: var(--teal-soft); color: var(--teal-dark); display: flex; align-items: center; justify-content: center; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.card__body p { color: var(--body); margin: 0; }
.card__tag { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--teal) !important; font-weight: 700; }

/* ---------- Contenido largo ---------- */
.prose { font-size: 18px; color: var(--body); }
.prose h2, .prose h3 { margin: 1.6em 0 .5em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.story .display { margin-bottom: 12px; }
.story__media { margin: 32px 0; border-radius: var(--radius); overflow: hidden; }
.story__result { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin: 40px 0; }
.thanks { text-align: center; display: flex; flex-direction: column; align-items: center; }
.thanks .lead { margin-left: auto; margin-right: auto; }
.thanks__icon { width: 88px; height: 88px; border-radius: 50%; background: var(--teal-soft); color: var(--teal); display: flex; align-items: center; justify-content: center; margin-bottom: 24px; }

/* ---------- Pie ---------- */
.site-footer { background: var(--navy); color: var(--on-navy); padding: 72px 0 40px; font-size: 15px; }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr 1fr; gap: 40px; }
.site-footer__brand img { width: 150px; margin-bottom: 18px; }
.site-footer__title { font-family: var(--font-body); font-size: 15px; color: #fff; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer a { color: var(--on-navy); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__social { display: inline-flex; align-items: center; gap: 8px; }
.site-footer__bottom { border-top: 1px solid var(--navy-line); margin-top: 56px; padding-top: 28px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.site-nav { gap: 24px; }
	.grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.book { flex-direction: column; }
	.spend { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 900px) {
	.nav-toggle { display: inline-flex; }
	.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 24px; border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -20px rgba(27, 42, 65, .3); }
	.site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
	.site-nav .btn { margin-top: 16px; }
	.nav-open .site-nav { display: flex; }
	.nav-open .nav-toggle__open { display: none; }
	.nav-open .nav-toggle__close { display: block; }
	.site-header__inner { height: 76px; }
	.site-header__logo img { height: 42px; }
	.hero__grid, .book-feature, .donate__grid, .two-col { grid-template-columns: 1fr; }
	.hero__art { order: -1; }
	.hero__circle { width: min(280px, 70vw); }
	.grid-3 { grid-template-columns: 1fr; }
	.grid-2 { grid-template-columns: 1fr; }
	.vm { grid-template-columns: 1fr; gap: 48px; }
	.vm__col--divider { border-left: 0; padding-left: 0; border-top: 1px solid var(--navy-line); padding-top: 48px; }
	.site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cta__actions { min-width: 0; width: 100%; }
	.book-feature { gap: 40px; }
}

@media (max-width: 782px) {
	.admin-bar .site-header { top: 0; }
}

@media (max-width: 560px) {
	body { font-size: 16px; }
	.grid-4 { grid-template-columns: 1fr; }
	.choice-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.field-row { grid-template-columns: 1fr; }
	.site-footer__grid { grid-template-columns: 1fr; }
	.book { padding: 28px; }
	.pillar { padding: 32px 28px; }
	.story__result { grid-template-columns: 1fr; }
	.facts div { flex-direction: column; gap: 2px; }
	.btn--lg { width: 100%; }
	.notice-card { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.btn { transition: none; }
	.btn:hover { transform: none; }
}

.two-col > :only-child { grid-column: 1 / -1; }
.two-col > :only-child .table-wrap { max-width: 880px; }
@media (max-width: 560px) {
	.segmented span { font-size: 14px; height: 46px; }
	.choice span { font-size: 16px; }
}

/* ---------- Transparencia: saldo, proyectos y movimientos ---------- */
.stat__hint { font-size: 14px; color: var(--muted); line-height: 1.4; }
.stat--navy .stat__hint { color: var(--on-navy); }
.flow { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap; }
.flow__item { display: flex; flex-direction: column; gap: 2px; min-width: 150px; }
.flow__item span { font-size: 14px; color: var(--muted); }
.flow__item strong { font-family: var(--font-display); font-size: 26px; color: var(--ink); }
.flow__item--in strong { color: var(--teal); }
.flow__item--out strong { color: #8A4B2A; }
.flow__item--total { margin-left: auto; background: var(--teal-soft); border-radius: 14px; padding: 10px 18px; }
.flow__op { font-family: var(--font-display); font-size: 28px; color: var(--muted); }
.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.project { background: #fff; border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.project__head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.project__desc { color: var(--body); margin: 0; font-size: 16px; }
.project__nums { margin: 0; display: grid; gap: 8px; }
.project__nums div { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.project__nums dt { color: var(--muted); }
.project__nums dd { margin: 0; font-weight: 700; text-align: right; }
.pill--muted { background: #EEE9DF; color: var(--muted); }
.two-col--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.num-in { color: var(--teal-dark) !important; }
.num-out { color: #8A4B2A !important; }
.moves { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.move { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; grid-template-areas: "date label amount" "date label balance"; gap: 2px 16px; padding: 14px 20px; border-top: 1px solid #EEE9DF; align-items: center; }
.move:first-child { border-top: 0; }
.move__date { grid-area: date; font-size: 14px; color: var(--muted); }
.move__label { grid-area: label; font-weight: 700; font-size: 15px; display: flex; flex-direction: column; }
.move__label small { font-weight: 400; color: var(--muted); font-size: 13px; }
.move__amount { grid-area: amount; font-weight: 700; text-align: right; }
.move--in .move__amount { color: var(--teal-dark); }
.move--out .move__amount { color: #8A4B2A; }
.move__balance { grid-area: balance; font-size: 13px; color: var(--muted); text-align: right; }
.reports--grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1100px) { .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .projects, .two-col--even, .reports--grid { grid-template-columns: 1fr; } .flow__item--total { margin-left: 0; } }
@media (max-width: 560px) { .flow__op { display: none; } .flow { gap: 14px; } .move { grid-template-columns: 1fr auto; grid-template-areas: "label amount" "date balance"; } }

.person__photo.person__photo--logo img { width: 58%; height: auto; object-fit: contain; }

/* ---------- Libros: portadas 3D, estantería y animaciones ---------- */
.book3d { --bw: 260px; --d: 30px; --ry: 24deg; --rx: 4deg; --lift: 0px; position: relative; width: var(--bw); max-width: 100%; aspect-ratio: 32 / 44; perspective: 1400px; margin: 0 auto; }
.book3d--lg { --bw: 320px; --d: 38px; }
.book3d--md { --bw: 200px; --d: 26px; }
.book3d--sm { --bw: 76px; --d: 12px; --ry: 20deg; }
.book3d__inner { position: absolute; inset: 0; transform-style: preserve-3d; transform: translateY(var(--lift)) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .6s cubic-bezier(.2, .8, .2, 1); will-change: transform; }
.book3d__front, .book3d__back { position: absolute; inset: 0; border-radius: 2px 8px 8px 2px; overflow: hidden; backface-visibility: hidden; }
.book3d__front { transform: translateZ(calc(var(--d) / 2)); background: var(--navy); box-shadow: inset 6px 0 10px -6px rgba(0, 0, 0, .5); }
.book3d__back { transform: rotateY(180deg) translateZ(calc(var(--d) / 2)); background: #121C2C; }
.book3d__spine { position: absolute; top: 0; bottom: 0; left: calc(var(--d) / -2); width: var(--d); transform: rotateY(-90deg); background: linear-gradient(90deg, #0B4E56, var(--teal) 45%, #0B4E56); border-radius: 2px 0 0 2px; }
.book3d--soon .book3d__spine { background: linear-gradient(90deg, #4F5968, #7C8797 45%, #4F5968); }
.book3d__pages { position: absolute; top: 3px; bottom: 3px; right: calc(var(--d) / -2 + 3px); width: calc(var(--d) - 4px); transform: rotateY(90deg); background: repeating-linear-gradient(90deg, #FBF9F4 0 2px, #E4DED1 2px 3px); }
.book3d__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.book3d .book-cover { width: 100%; height: 100%; max-width: none; aspect-ratio: auto; border: 0; border-radius: 0; box-shadow: none; padding: 11% 10%; }
.book3d--sm .book-cover { padding: 8px 6px; }
.book3d--sm .book-cover__title { font-size: 11px; }
.book3d--sm .book-cover__vol, .book3d--sm .book-cover__brand { display: none; }
.book3d--md .book-cover__title { font-size: 26px; }
.book3d__sheen { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .22) 46%, transparent 60%); background-size: 250% 100%; background-position: var(--sx, 100%) 0; transition: background-position .6s ease; mix-blend-mode: screen; }
.book3d__shadow { position: absolute; left: 8%; right: -4%; bottom: -26px; height: 26px; background: radial-gradient(closest-side, rgba(27, 42, 65, .38), transparent); filter: blur(4px); transition: transform .6s cubic-bezier(.2, .8, .2, 1), opacity .6s; transform: scaleX(.95); }
.book3d:hover, .book3d.is-tilting, a:focus-visible .book3d, .shelf__book:hover .book3d, .shelf__book.is-active .book3d { --ry: 8deg; --rx: 2deg; --lift: -8px; --sx: 0%; }
.book3d:hover .book3d__shadow, .shelf__book.is-active .book3d__shadow { transform: scaleX(.8); opacity: .7; }
.book-feature__cover .book3d, .books-home__slide .book3d { animation: book-float 6s ease-in-out infinite; }
@keyframes book-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }

/* Tarjetas del catálogo */
.book__cover { width: 200px; padding: 6px 18px 26px 6px; }

/* Portada: escenario + estantería */
.books-home { position: relative; overflow: hidden; }
.books-home__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.books-home__stage { position: relative; display: grid; place-items: center; min-height: 520px; }
.books-home__stage::before { content: ""; position: absolute; width: min(460px, 92%); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, var(--teal-soft) 0 58%, transparent 59%); }
.books-home__stage::after { content: ""; position: absolute; width: min(520px, 100%); aspect-ratio: 1; border-radius: 50%; border: 1.5px dashed #9CC3C7; animation: spin 60s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }
.books-home__slide { grid-area: 1 / 1; position: relative; z-index: 1; }
.books-home__slide.is-entering { animation: book-in .7s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes book-in { from { opacity: 0; transform: translateX(-40px) rotate(-4deg); } to { opacity: 1; transform: none; } }
.books-home__info { display: flex; flex-direction: column; gap: 18px; }
.books-home__panel { display: flex; flex-direction: column; gap: 16px; }
.books-home__panel.is-entering { animation: panel-in .5s ease both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.books-home__panel .lead-sm, .books-home__panel p { margin: 0; }
.books-home__title { font-size: clamp(32px, 3.4vw, 46px); line-height: 1.08; }
.books-home__all { align-self: flex-start; }
.shelf { display: flex; gap: 18px; align-items: flex-end; padding: 22px 4px 14px; margin-top: 10px; border-bottom: 6px solid #D9D1C1; box-shadow: 0 10px 14px -12px rgba(27, 42, 65, .4); }
.shelf__book { background: none; border: 0; padding: 0 0 8px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 10px; font: inherit; color: var(--muted); border-radius: 8px; }
.shelf__book .book3d { --lift: 0px; }
.shelf__book.is-active { color: var(--ink); }
.shelf__book.is-active .book3d { --lift: -10px; }
.shelf__label { font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.shelf__book.is-active .shelf__label { color: var(--teal); }
.shelf__book .book3d__shadow { display: none; }

/* Aparición al hacer scroll */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
	.books-home__grid { grid-template-columns: 1fr; }
	.books-home__stage { min-height: 420px; }
	.book3d--lg { --bw: 250px; --d: 30px; }
	.book__cover { width: 180px; }
	.book3d--md { --bw: 170px; }
}
@media (prefers-reduced-motion: reduce) {
	.book3d__inner, .book3d__shadow, .book3d__sheen { transition: none; }
	.book-feature__cover .book3d, .books-home__slide .book3d, .books-home__stage::after, .books-home__slide.is-entering, .books-home__panel.is-entering { animation: none; }
	.js [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- Ficha de libro: datos destacados ---------- */
.facts--card { grid-template-columns: 1fr 1fr; gap: 12px; margin: 8px 0 28px; }
.facts--card .facts__item { display: block; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; position: relative; overflow: hidden; }
.facts--card .facts__item::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 3px; border-radius: 0 3px 3px 0; background: var(--teal); }
.facts--card .facts__item--wide { grid-column: 1 / -1; }
.facts--card dt { min-width: 0; margin-bottom: 8px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
.facts--card dd { color: var(--ink); }
.facts--card .facts__big { font-family: var(--font-display); font-size: 28px; font-weight: 700; line-height: 1.1; }
.facts--card .facts__big small { font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: .04em; }
.facts--card dd:has(.facts__chip) { display: flex; flex-wrap: wrap; gap: 8px; }
.facts__chip { display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 999px; background: var(--teal-soft); color: var(--teal-dark); font-weight: 700; font-size: 15px; line-height: 1.3; }
@media (max-width: 720px) {
	.facts--card div.facts__item { display: block; }
	.facts--card .facts__big { font-size: 24px; }
}

/* ---------- Transparencia: cortina de próximamente + aviso por correo ---------- */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.curtain { position: relative; overflow: hidden; padding-top: clamp(48px, 6vw, 88px); }
.curtain__ghost { position: absolute; inset: 24px var(--gutter) 24px; display: grid; grid-template-rows: auto 1fr auto; gap: 24px; filter: blur(7px); opacity: .55; pointer-events: none; user-select: none; }
.ghost-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ghost-stats span { height: 120px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.ghost-chart { display: flex; align-items: flex-end; gap: 2%; padding: 32px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); min-height: 260px; }
.ghost-chart i { flex: 1; height: var(--h); border-radius: 8px 8px 2px 2px; background: linear-gradient(180deg, var(--teal-light), var(--teal)); transform-origin: bottom; animation: ghostBar 3.6s ease-in-out var(--d) infinite alternate; }
.ghost-chart i:nth-child(3n) { background: linear-gradient(180deg, #8094B0, var(--navy)); }
.ghost-rows { display: grid; gap: 12px; }
.ghost-rows span { height: 44px; border-radius: 12px; background: var(--white); border: 1px solid var(--line); }
@keyframes ghostBar { from { transform: scaleY(.55); } to { transform: scaleY(1); } }
.curtain::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 40%, rgba(244, 241, 234, .55), rgba(244, 241, 234, .92) 70%); pointer-events: none; }
.curtain__inner { position: relative; z-index: 1; display: flex; justify-content: center; }
.curtain__card { width: 100%; max-width: 780px; background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid rgba(255, 255, 255, .9); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: clamp(28px, 5vw, 56px); }
.curtain__card .display { margin: 0 0 16px; }
.curtain__badge { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 7px 16px 7px 12px; border-radius: 999px; background: var(--navy); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.curtain__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--teal-light); box-shadow: 0 0 0 0 rgba(143, 208, 214, .7); animation: curtainPulse 1.8s ease-out infinite; }
@keyframes curtainPulse { 0% { box-shadow: 0 0 0 0 rgba(143, 208, 214, .7); } 100% { box-shadow: 0 0 0 10px rgba(143, 208, 214, 0); } }
.curtain__list { list-style: none; margin: 28px 0 32px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.curtain__list li { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 16px; background: var(--paper); font-size: 15px; color: var(--body); line-height: 1.45; }
.curtain__list strong { display: block; color: var(--ink); font-size: 16px; margin-bottom: 2px; }
.curtain__ico { width: 40px; height: 40px; border-radius: 12px; background: var(--teal-soft); color: var(--teal); display: inline-flex; align-items: center; justify-content: center; }

.subscribe { display: flex; gap: 20px; align-items: flex-start; padding: 28px; border-radius: var(--radius); background: var(--navy); color: var(--on-navy); position: relative; overflow: hidden; }
.subscribe::before { content: ""; position: absolute; width: 260px; height: 260px; right: -90px; top: -120px; border-radius: 50%; border: 1.5px dashed var(--navy-line); pointer-events: none; }
.subscribe__icon { flex-shrink: 0; width: 52px; height: 52px; border-radius: 16px; background: var(--teal); color: #fff; display: flex; align-items: center; justify-content: center; }
.subscribe__body { flex: 1; min-width: 0; position: relative; }
.subscribe__title { margin: 0 0 6px; font-family: var(--font-display); font-size: 24px; line-height: 1.15; color: #fff; }
.subscribe__text { margin: 0 0 16px; font-size: 16px; }
.subscribe__form { display: flex; gap: 10px; }
.subscribe__form input[type="email"] { flex: 1; min-width: 0; height: 52px; border: 1.5px solid transparent; border-radius: 999px; padding: 0 20px; font: 400 16px var(--font-body); color: var(--ink); background: #fff; }
.subscribe__form input[type="email"]:focus { outline: none; border-color: var(--teal-light); box-shadow: 0 0 0 3px rgba(143, 208, 214, .35); }
.subscribe__form .btn { min-height: 52px; flex-shrink: 0; }
.subscribe__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.subscribe__fine { margin: 10px 0 0; font-size: 13px; color: #9FB0C4; }
.subscribe__msg { margin: 0 0 12px; padding: 12px 16px; border-radius: 12px; font-weight: 700; font-size: 15px; }
.subscribe__msg--ok { background: rgba(143, 208, 214, .16); color: #CFEFF2; }
.subscribe__msg--error { background: #FBEDE6; color: #8A3B12; }

.transp-teaser { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-lg); background: var(--paper); }
.transp-teaser .lead-sm { margin: 0; font-size: 20px; }

@media (max-width: 860px) {
	.curtain__list { grid-template-columns: 1fr; }
	.curtain__list li { flex-direction: row; align-items: flex-start; }
	.curtain__ico { flex-shrink: 0; }
	.transp-teaser { grid-template-columns: 1fr; }
	.ghost-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
	.subscribe { flex-direction: column; padding: 24px; }
	.subscribe__form { flex-direction: column; }
	.subscribe__form input[type="email"] { flex: none; width: 100%; }
	.subscribe__form .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.ghost-chart i, .curtain__dot { animation: none; }
}

/* Insignia Próximamente sin punto */
.curtain__dot { display: none; }
.curtain__badge { padding: 7px 16px; }

/* Equipo: fotos recortadas sobre blanco con el logo detrás */
.person__photo.person__photo--logo { background: var(--white); border-bottom: 1px solid var(--line); }
.person__photo.person__photo--cutout { position: relative; background: var(--white); align-items: flex-end; overflow: hidden; border-bottom: 1px solid var(--line); }
.person__photo .person__mark { position: absolute; left: 61%; top: 28%; width: 72%; height: auto; transform: translate(-50%, -50%); opacity: .2; object-fit: contain; pointer-events: none; }
.person__photo .person__cut { position: absolute; left: 0; right: 0; bottom: 0; top: 8%; width: 100%; height: 92%; object-fit: cover; object-position: center top; }

/* Equipo: foto cuadrada para que el recorte llene el ancho (todas las tarjetas iguales) */
.person .person__photo { aspect-ratio: 1 / 1; }
.person__photo .person__cut { top: 0; height: 100%; object-position: center bottom; }

/* Donar: aviso de modo prueba */
.form-alert.form-alert--test { background: #FFF6D6; color: #6B4E00; }

/* Donar: opción USD bloqueada */
.segmented__off span { flex-direction: column; gap: 2px; line-height: 1.1; opacity: .55; cursor: not-allowed; }
.segmented__off small { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); }

/* Inicio: foto de la directiva sobre el equipo */
.board { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; margin-bottom: clamp(32px, 4vw, 48px); background: var(--white); border-radius: var(--radius-lg); padding: clamp(14px, 1.6vw, 20px); }
.board__photo { margin: 0; border-radius: calc(var(--radius-lg) - 8px); overflow: hidden; aspect-ratio: 4 / 3; background: var(--teal-soft); }
.board__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; transition: transform .8s ease; }
.board:hover .board__photo img { transform: scale(1.03); }
.board__text { padding: clamp(4px, 2vw, 24px) clamp(8px, 2vw, 24px) clamp(8px, 2vw, 24px) 0; }
.board__title { margin: 0 0 14px; font-family: var(--font-display); font-size: clamp(26px, 2.6vw, 36px); line-height: 1.1; color: var(--ink); }
.board__text p:not(.eyebrow) { margin: 0 0 20px; font-size: 18px; color: var(--body); }
@media (max-width: 860px) {
	.board { grid-template-columns: 1fr; }
	.board__text { padding: 4px 8px 12px; }
}
@media (prefers-reduced-motion: reduce) { .board__photo img { transition: none; } }

/* ---------- Movimiento (scroll e interacción) ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--teal), var(--teal-light)); transform: scaleX(0); transform-origin: 0 50%; z-index: 100; pointer-events: none; }
@media (min-width: 783px) { .admin-bar .scroll-progress { top: 32px; } }
.site-header { transition: transform .4s cubic-bezier(.2, .7, .1, 1), box-shadow .4s ease, background-color .4s ease; }
.site-header.is-scrolled { box-shadow: 0 12px 30px -20px rgba(27, 42, 65, .45); background: rgba(244, 241, 234, .97); }
.site-header.is-hidden { transform: translateY(-105%); }

@media (prefers-reduced-motion: no-preference) { .js body { animation: acenPageIn .7s ease both; } }
@keyframes acenPageIn { from { opacity: 0; } }
body.is-leaving { opacity: 0; transition: opacity .25s ease; }

.m-split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.m-split .w__i { display: inline-block; transform: translateY(105%); transition: transform .95s cubic-bezier(.2, .7, .1, 1); transition-delay: calc(var(--i) * 45ms); }
.m-split.is-in .w__i { transform: none; }

.m-up { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .95s cubic-bezier(.2, .7, .1, 1), translate .45s cubic-bezier(.2, .7, .1, 1), box-shadow .45s ease; transition-delay: var(--d, 0ms), var(--d, 0ms), 0ms, 0ms; }
.m-up.is-in { opacity: 1; transform: none; }

.m-img { clip-path: inset(8% 6% 8% 6% round 24px); transition: clip-path 1.2s cubic-bezier(.2, .7, .1, 1); }
.m-img.is-in { clip-path: inset(0 0 0 0 round 0); }
.m-img img { scale: 1.12; transition: scale 1.5s cubic-bezier(.2, .7, .1, 1); }
.m-img.is-in img { scale: 1; }
.board:hover .board__photo img { transform: scale(1.03); }

.pillar, .stat, .person, .story-card { transition: translate .45s cubic-bezier(.2, .7, .1, 1), box-shadow .45s ease; }
.pillar:hover, .stat:hover, .person:hover, .story-card:hover { translate: 0 -6px; box-shadow: 0 24px 50px -30px rgba(27, 42, 65, .4); }
.pillar__icon { transition: transform .5s cubic-bezier(.2, .7, .1, 1); }
.pillar:hover .pillar__icon { transform: rotate(-8deg) scale(1.08); }

.hero__circle { translate: 0 var(--py, 0); }
.hero__circle::before { animation: acenSpin 80s linear infinite; }
@keyframes acenSpin { to { transform: rotate(360deg); } }

.btn { translate: var(--mx, 0) var(--my, 0); transition: translate .35s cubic-bezier(.2, .7, .1, 1), background-color .25s, color .25s, border-color .25s, transform .2s; }
.site-nav a:not(.btn) { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; padding-bottom: 3px; transition: background-size .35s cubic-bezier(.2, .7, .1, 1), color .2s; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"]:not(.btn) { background-size: 100% 1.5px; }
.link-strong { display: inline-flex; align-items: center; gap: 8px; }
.link-strong::after { content: "→"; transition: transform .35s cubic-bezier(.2, .7, .1, 1); }
.link-strong:hover::after { transform: translateX(5px); }

@media (max-width: 860px) {
	.site-nav a:not(.btn) { background: none; padding-bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) {
	.site-header.is-hidden { transform: none; }
	.hero__circle::before { animation: none; }
	.pillar:hover, .stat:hover, .person:hover, .story-card:hover { translate: none; }
}

/* ---------- Lúdico: red neuronal, test de reacción y datos curiosos ---------- */
.hero { position: relative; overflow: hidden; }
.hero > .container { position: relative; z-index: 1; }
.neural { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.6) 40%, #000 70%); mask-image: linear-gradient(90deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.6) 40%, #000 70%); }
@media (max-width: 860px) { .neural { -webkit-mask-image: none; mask-image: none; opacity: .7; } }

.reflex { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--navy); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: clamp(40px, 5vw, 64px); }
.reflex__stage { padding: clamp(24px, 4vw, 48px); display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 50%, #26405F 0%, var(--navy) 70%); }
.reflex__pad { width: min(320px, 100%); aspect-ratio: 1; border-radius: 50%; border: 1.5px dashed var(--navy-line); background: rgba(255, 255, 255, .03); color: #5F7696; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 28px; cursor: pointer; font: 700 15px/1.35 var(--font-body); text-align: center; touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; transition: background-color .2s, border-color .2s, color .2s, transform .15s; }
.reflex__pad:active { transform: scale(.98); }
.reflex__neuron { width: 52%; height: auto; transition: color .12s, filter .12s, transform .12s; }
.reflex__ring { opacity: 0; transform-origin: 100px 100px; }
.reflex__msg { color: var(--on-navy); max-width: 230px; }
[data-state="wait"] .reflex__neuron { animation: reflexBreath 1.4s ease-in-out infinite; }
@keyframes reflexBreath { 50% { opacity: .55; } }
[data-state="go"] .reflex__pad { background: rgba(14, 111, 122, .28); border: 1.5px solid var(--teal-light); }
[data-state="go"] .reflex__neuron { color: var(--teal-light); filter: drop-shadow(0 0 16px rgba(143, 208, 214, .9)); transform: scale(1.06); }
[data-state="go"] .reflex__ring { animation: reflexRing .8s ease-out infinite; }
@keyframes reflexRing { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(2.2); } }
[data-state="go"] .reflex__msg { color: #fff; font-size: 20px; }
[data-state="early"] .reflex__pad { border-color: #E9A07A; }
[data-state="early"] .reflex__msg { color: #F6C9B3; }
[data-state="result"] .reflex__neuron { color: var(--teal-light); }
[data-state="result"] .reflex__msg { color: #fff; }
.reflex__info { padding: clamp(28px, 4vw, 56px); color: var(--on-navy); display: flex; flex-direction: column; justify-content: center; }
.reflex__info p { margin: 0 0 8px; }
.reflex__title { margin: 0 0 12px; font-family: var(--font-display); font-size: clamp(26px, 2.6vw, 36px); line-height: 1.1; color: #fff; }
.reflex__score { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0; }
.reflex__score div { background: rgba(255, 255, 255, .06); border-radius: 14px; padding: 14px 18px; min-width: 140px; }
.reflex__score dt { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #9FB0C4; }
.reflex__score dd { margin: 4px 0 0; font-family: var(--font-display); font-size: 30px; font-weight: 700; color: #fff; }
.reflex__explain { font-size: 15px; color: #9FB0C4; }

.facts-title { margin: 0 0 20px; font-family: var(--font-display); font-size: clamp(24px, 2.2vw, 30px); color: var(--ink); }
.facts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.fact { display: block; width: 100%; min-height: 200px; padding: 0; border: 0; background: none; font: inherit; text-align: left; color: inherit; cursor: pointer; perspective: 1000px; -webkit-tap-highlight-color: transparent; }
.fact__inner { position: relative; display: block; min-height: 200px; height: 100%; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.2, .7, .1, 1); }
.fact.is-flipped .fact__inner { transform: rotateY(180deg); }
.fact__front, .fact__back { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; padding: 24px 26px; border-radius: var(--radius); -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.fact__front { background: var(--paper); border: 1px solid var(--line); }
.fact__back { background: var(--teal); color: #fff; transform: rotateY(180deg); justify-content: center; font-size: 16px; line-height: 1.5; }
.fact__q { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }
.fact__big { font-family: var(--font-display); font-size: clamp(26px, 2.4vw, 34px); line-height: 1.1; color: var(--ink); }
.fact__hint { font-size: 13px; color: var(--muted); }
@media (hover: hover) { .fact:not(.is-flipped):hover .fact__inner { transform: rotateY(12deg); } }
.fact:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; border-radius: var(--radius); }

@media (max-width: 860px) {
	.reflex { grid-template-columns: 1fr; }
	.facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
	.facts-grid { grid-template-columns: 1fr; }
	.fact, .fact__inner { min-height: 170px; }
}
@media (prefers-reduced-motion: reduce) {
	.fact__inner { transition: none; }
	[data-state="wait"] .reflex__neuron, [data-state="go"] .reflex__ring { animation: none; }
}

/* ---------- Red neuronal en todo el sitio + Laboratorio en ventana ---------- */
.neural { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; -webkit-mask-image: none; mask-image: none; opacity: 1; }
#contenido .container, .site-footer .container { position: relative; z-index: 1; }
@media (max-width: 860px) { .neural { opacity: .75; } }

.lab-fab { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: inline-flex; align-items: center; gap: 10px; padding: 8px 20px 8px 8px; border: 0; border-radius: 999px; background: var(--navy); color: #fff; font: 700 15px/1.2 var(--font-body); cursor: pointer; box-shadow: 0 18px 40px -16px rgba(27, 42, 65, .6); opacity: 0; transform: translateY(20px) scale(.9); transition: opacity .5s ease, transform .5s cubic-bezier(.2, .7, .1, 1), background-color .2s; }
.lab-fab.is-in { opacity: 1; transform: none; }
.lab-fab:hover { background: var(--teal-dark); }
.lab-fab__icon { position: relative; width: 44px; height: 44px; border-radius: 50%; background: var(--teal); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.lab-fab__icon svg { width: 26px; height: 26px; }
.lab-fab__icon::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--teal-light); animation: labFabPulse 2s ease-out infinite; }
@keyframes labFabPulse { from { transform: scale(1); opacity: .9; } to { transform: scale(1.7); opacity: 0; } }
.lab-open .lab-fab { opacity: 0; pointer-events: none; }
html.lab-open { overflow: hidden; }

.lab-modal { width: min(860px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: var(--radius-lg); background: var(--white); color: var(--ink); box-shadow: 0 40px 90px -30px rgba(27, 42, 65, .6); overflow: auto; overscroll-behavior: contain; }
.lab-modal::backdrop { background: rgba(27, 42, 65, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.lab-modal[open] { animation: labIn .5s cubic-bezier(.2, .7, .1, 1); }
.lab-modal.is-closing { animation: labOut .22s ease forwards; }
@keyframes labIn { from { opacity: 0; transform: translateY(28px) scale(.98); } }
@keyframes labOut { to { opacity: 0; transform: translateY(16px); } }
.lab-modal__box { position: relative; padding: clamp(22px, 4vw, 40px); }
.lab-modal__close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--paper); color: var(--ink); font-size: 28px; line-height: 1; cursor: pointer; transition: background-color .2s, transform .3s; }
.lab-modal__close:hover { background: var(--teal-soft); transform: rotate(90deg); }
.lab-modal__head { margin: 0 52px 24px 0; }
.lab-modal__title { margin: 0 0 8px; font-family: var(--font-display); font-size: clamp(28px, 3.2vw, 42px); line-height: 1.05; color: var(--ink); }
.lab-modal__lead { margin: 0; font-size: 17px; color: var(--body); }
.lab-modal .reflex { margin-bottom: 32px; }
.lab-modal .reflex__pad { width: min(250px, 100%); }
.lab-modal .reflex__info { padding: clamp(22px, 3vw, 36px); }
.lab-modal .reflex__title { font-size: clamp(22px, 2.2vw, 28px); }
.lab-modal .fact, .lab-modal .fact__inner { min-height: 175px; }
.lab-modal__cta { margin-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px 28px; flex-wrap: wrap; padding: clamp(22px, 3vw, 32px); border-radius: var(--radius); background: var(--teal); color: #DDEFF0; }
.lab-modal__cta p { margin: 0; }
.lab-modal__cta-title { margin: 0 0 6px !important; font-family: var(--font-display); font-size: clamp(22px, 2.2vw, 28px); line-height: 1.15; color: #fff; }

/* Tarjetas "¿Sabías que…?" con fondos propios en la paleta de la fundación */
.fact__front { border: 0; overflow: hidden; }
.fact__front::after { content: ""; position: absolute; width: 140px; height: 140px; right: -40px; bottom: -50px; border-radius: 50%; border: 1.5px dashed currentColor; opacity: .18; pointer-events: none; }
.fact:nth-child(3n+1) .fact__front { background: linear-gradient(150deg, #DCEBEC 0%, #F1F7F7 100%); color: var(--teal); }
.fact:nth-child(3n+2) .fact__front { background: linear-gradient(150deg, #E1E7F0 0%, #F4F6FA 100%); color: var(--navy); }
.fact:nth-child(3n+3) .fact__front { background: linear-gradient(150deg, #EEE6D7 0%, #F8F4EC 100%); color: #8A6A3B; }
.fact__front .fact__big { color: var(--ink); }
.fact:nth-child(3n+2) .fact__q { color: var(--navy); }
.fact:nth-child(3n+3) .fact__q { color: #8A6A3B; }
.fact:nth-child(3n+1) .fact__back { background: var(--teal); }
.fact:nth-child(3n+2) .fact__back { background: var(--navy); }
.fact:nth-child(3n+3) .fact__back { background: #6E5530; }

@media (max-width: 560px) {
	.lab-fab { right: 14px; bottom: 14px; padding: 6px; }
	.lab-fab__label { display: none; }
	.lab-modal { width: calc(100% - 16px); max-height: calc(100dvh - 16px); }
	.lab-modal__cta .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.lab-fab__icon::after, .lab-modal[open], .lab-modal.is-closing { animation: none; }
}
.lab-modal .reflex { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.lab-modal .fact__big { font-size: clamp(22px, 2.1vw, 28px); overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
@media (max-width: 860px) { .lab-modal .reflex { grid-template-columns: 1fr; } }
