/* =====================================================================
   Fundación OncoAyuda — hoja de estilos única del sitio
   Idea de layout: una "ruta de cuidado" (línea que recorre prevención →
   detección → tratamiento → seguimiento) organiza la navegación y las
   secciones; cada plataforma del ecosistema tiene un color propio.
   Tema único claro (decisión deliberada: público amplio, adultos mayores,
   pantallas de baja calidad). Tipografía de cuerpo Atkinson Hyperlegible,
   diseñada por el Braille Institute para lectores con baja visión.
   ===================================================================== */

:root {
  /* Color: marca OncoAyuda (verde bosque + oro del corazón del logo) */
  --ink: #15231c;          /* texto principal, verde casi negro */
  --ink-2: #3f5248;        /* texto secundario */
  --paper: #f5f7f3;        /* fondo general, gris con sesgo verde */
  --surface: #ffffff;      /* tarjetas */
  --forest: #1d5a41;       /* primario OncoAyuda */
  --forest-2: #134230;
  --gold: #e2ae35;         /* acento (corazón del logo) */
  --gold-soft: #fbefcc;
  --line: #d6ded8;

  /* Ecosistema */
  --c-fundacion: #1d5a41;
  --c-academia: #0b6374;   /* continuidad con piezas MOC */
  --c-academia-soft: #dff1f3;
  --c-epa: #5a4b3c;
  --c-epa-soft: #efe9e1;
  --c-eepro: #46566b;
  --c-eepro-soft: #e8edf3;
  --mint: #c9f2b4;

  /* Campaña cáncer de páncreas (morado, color internacional de la causa) */
  --purple: #5b2a86;
  --purple-2: #3f1c5e;
  --purple-soft: #f1e9f8;
  --lilac: #c9a8e8;

  /* Semántica */
  --alert: #a3342a;
  --alert-soft: #fbe9e6;

  /* Tipografía */
  --f-display: "Newsreader", "Georgia", "Times New Roman", serif;
  --f-body: "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, sans-serif;
  --fs-0: 1.0625rem;   /* 17px cuerpo */
  --fs-1: 1.1875rem;
  --fs-2: 1.5rem;
  --fs-3: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  --fs-4: clamp(2.25rem, 1.5rem + 3vw, 3.75rem);

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(21, 35, 28, .06), 0 8px 24px rgba(21, 35, 28, .06);
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

*, *::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(--f-body);
  font-size: var(--fs-0);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest); text-underline-offset: 3px; }
a:hover { color: var(--forest-2); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; line-height: 1.15; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: var(--fs-4); }
h2 { font-size: var(--fs-3); }
h3 { font-size: var(--fs-2); }
h4 { font-size: var(--fs-1); }
p { margin: 0; }
ul, ol { margin: 0; padding-left: 1.2em; }
.prose > * + * { margin-top: 1em; }
.prose { max-width: 68ch; }
.muted { color: var(--ink-2); }
.small { font-size: .9375rem; }
.num { font-variant-numeric: tabular-nums; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- Barra de ecosistema (arriba de todo) ---------- */
.eco-bar { background: var(--ink); color: #dfe8e2; font-size: .875rem; }
.eco-bar .wrap { display: flex; gap: 18px; align-items: center; justify-content: space-between; min-height: 38px; flex-wrap: wrap; }
.eco-bar nav { display: flex; gap: 4px 18px; flex-wrap: wrap; }
.eco-bar a { color: #dfe8e2; text-decoration: none; display: inline-flex; align-items: center; gap: 7px; }
.eco-bar a:hover { color: #fff; text-decoration: underline; }
.eco-bar a[aria-current="true"] { color: #fff; font-weight: 700; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
.dot.f { background: var(--gold); }
.dot.a { background: #5cc3d3; }
.dot.e { background: #c8b49a; }
.dot.p { background: #9fb0c6; }
.eco-bar .help { color: #fff; }
.eco-bar .help strong { color: var(--gold); }

/* ---------- Cabecera ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand svg { width: 46px; height: 46px; flex: none; }
.brand-name { font-family: var(--f-display); font-size: 1.5rem; font-weight: 700; color: var(--forest); line-height: 1; display: block; }
.brand-tag { font-size: .8125rem; color: var(--ink-2); display: block; margin-top: 3px; letter-spacing: .02em; }
.main-nav ul { list-style: none; display: flex; gap: 4px; padding: 0; align-items: center; }
.main-nav a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1rem; }
.main-nav a:hover { background: var(--paper); }
.main-nav a[aria-current="page"] { color: var(--forest); box-shadow: inset 0 -3px 0 var(--gold); border-radius: 0; }
.main-nav a.btn { color: #fff; padding: 11px 20px; border-radius: 999px; box-shadow: none; }
.main-nav a.btn:hover { background: var(--forest-2); color: #fff; }
.nav-toggle { display: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: var(--f-body); line-height: 1.2; transition: background-color .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--forest); color: #fff; }
.btn-primary:hover { background: var(--forest-2); color: #fff; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #cf9b22; color: var(--ink); }
.btn-ghost { border-color: currentColor; color: var(--forest); background: transparent; }
.btn-ghost:hover { background: var(--forest); color: #fff; border-color: var(--forest); }
.btn-light { background: #fff; color: var(--forest); }
.btn-light:hover { background: var(--gold-soft); color: var(--forest-2); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; font: 700 1rem var(--f-body); color: var(--ink); cursor: pointer; }
  .main-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); display: none; box-shadow: var(--shadow); }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 8px var(--gutter) 18px; gap: 0; }
  .main-nav a { padding: 14px 6px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .main-nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--gold); padding-left: 14px; }
  .main-nav li:last-child a { border-bottom: 0; margin-top: 12px; text-align: center; }
  .eco-bar .help { display: none; }
}

/* ---------- Secciones genéricas ---------- */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section.tight { padding-block: clamp(40px, 5vw, 64px); }
.section.alt { background: var(--surface); }
.section.dark { background: var(--forest-2); color: #eef4ef; }
.section.dark a { color: var(--gold); }
.section-head { display: grid; gap: 14px; max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.kicker { font-size: .8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--forest); display: inline-flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 26px; height: 3px; background: var(--gold); border-radius: 2px; }
.section.dark .kicker { color: var(--gold); }
.lead { font-size: var(--fs-1); color: var(--ink-2); max-width: 62ch; }
.section.dark .lead { color: #cfe0d5; }

/* ---------- Hero ---------- */
.hero { background: var(--surface); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding-block: clamp(40px, 6vw, 84px); }
.hero h1 em { font-style: italic; color: var(--forest); }
.hero .lead { margin-top: 18px; }
.hero .btn-row { margin-top: 28px; }
.hero-figure { position: relative; margin: 0; }
figure { margin: 0; }
.hero-figure img { border-radius: 22px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.hero-figure figcaption { position: absolute; left: 16px; bottom: 16px; right: 16px; background: rgba(255,255,255,.94); border-radius: 12px; padding: 12px 16px; font-size: .9375rem; box-shadow: var(--shadow); }
.hero-figure figcaption strong { color: var(--forest); }
.badge-cecan { margin-top: 26px; display: inline-flex; gap: 12px; align-items: center; padding: 10px 16px 10px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-size: .9375rem; }
.badge-cecan .seal { width: 38px; height: 38px; border-radius: 50%; background: var(--gold); display: grid; place-items: center; color: var(--ink); font-weight: 700; flex: none; }
.page-hero { background: var(--surface); border-bottom: 1px solid var(--line); }
.page-hero .wrap { padding-block: clamp(40px, 6vw, 76px); display: grid; gap: 16px; }
.breadcrumb { font-size: .875rem; color: var(--ink-2); }
.breadcrumb a { color: var(--ink-2); }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-figure { order: -1; }
  .hero-figure figcaption { position: static; box-shadow: none; padding: 10px 2px 0; background: none; }
}

/* ---------- Ruta de cuidado (motivo de marca) ---------- */
.route { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; counter-reset: step; }
.route::before { content: ""; position: absolute; left: 10%; right: 10%; top: 22px; height: 3px; background: linear-gradient(90deg, var(--gold), var(--forest)); border-radius: 2px; }
.route li { position: relative; text-align: center; padding: 0 10px; display: grid; justify-items: center; gap: 8px; }
.route li::before { counter-increment: step; content: counter(step); width: 46px; height: 46px; border-radius: 50%; background: var(--surface); border: 3px solid var(--forest); display: grid; place-items: center; font-weight: 700; color: var(--forest); position: relative; }
.route strong { font-family: var(--f-display); font-size: 1.25rem; }
.route span { font-size: .9375rem; color: var(--ink-2); max-width: 22ch; }
@media (max-width: 760px) {
  .route { grid-template-columns: 1fr; gap: 18px; }
  .route::before { left: 22px; right: auto; top: 10px; bottom: 10px; width: 3px; height: auto; background: linear-gradient(180deg, var(--gold), var(--forest)); }
  .route li { grid-template-columns: 46px 1fr; text-align: left; justify-items: start; column-gap: 16px; padding: 0; }
  .route li::before { grid-row: span 2; }
}

/* ---------- Rutas de entrada por audiencia ---------- */
.paths { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.path { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 12px; align-content: start; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; border-top: 5px solid var(--forest); }
.path:hover { border-color: var(--forest); transform: translateY(-2px); color: var(--ink); }
.path .who { font-size: .8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); }
.path h3 { font-size: 1.375rem; }
.path p { color: var(--ink-2); font-size: 1rem; }
.path .go { font-weight: 700; color: var(--forest); margin-top: 4px; }
.path.p2 { border-top-color: var(--gold); }
.path.p3 { border-top-color: var(--c-academia); }
.path.p4 { border-top-color: var(--c-epa); }
@media (max-width: 1000px) { .paths { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .paths { grid-template-columns: 1fr; } }

/* ---------- Cifras ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 26px 22px; border-left: 1px solid var(--line); display: grid; gap: 6px; }
.stat:first-child { border-left: 0; }
.stat .n { font-family: var(--f-display); font-size: clamp(2.25rem, 1.6rem + 2vw, 3.25rem); line-height: 1; color: var(--forest); font-variant-numeric: tabular-nums; }
.stat .l { font-size: .9375rem; color: var(--ink-2); }
.stat .src { font-size: .8125rem; color: var(--ink-2); opacity: .85; }
.section.dark .stats, .section.dark .stat { border-color: rgba(255,255,255,.18); }
.section.dark .stat .n { color: var(--gold); }
.section.dark .stat .l, .section.dark .stat .src { color: #cfe0d5; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } .stat:nth-child(3) { border-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 420px) { .stats { grid-template-columns: 1fr; } .stat { border-left: 0; border-top: 1px solid var(--line); } .stat:first-child { border-top: 0; } }

/* ---------- Ecosistema ---------- */
.eco { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.eco-card { background: var(--surface); border-radius: var(--radius); padding: 26px; display: grid; gap: 14px; align-content: start; border: 1px solid var(--line); position: relative; }
.eco-card .tag { display: inline-flex; align-items: center; gap: 8px; font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.eco-card h3 { font-size: 1.5rem; }
.eco-card ul { padding-left: 1.1em; display: grid; gap: 4px; font-size: 1rem; color: var(--ink-2); }
.eco-card .for { font-size: .9375rem; padding-top: 12px; border-top: 1px dashed var(--line); }
.eco-card.f { border-top: 6px solid var(--c-fundacion); }
.eco-card.f .tag { color: var(--c-fundacion); }
.eco-card.a { border-top: 6px solid var(--c-academia); background: linear-gradient(180deg, var(--c-academia-soft), var(--surface) 40%); }
.eco-card.a .tag { color: var(--c-academia); }
.eco-card.e { border-top: 6px solid var(--c-epa); background: linear-gradient(180deg, var(--c-epa-soft), var(--surface) 40%); }
.eco-card.e .tag { color: var(--c-epa); }
.eco-card.p { border: 2px dashed #a9b6c8; background: var(--c-eepro-soft); }
.eco-card.p .tag { color: var(--c-eepro); }
.pill { display: inline-block; font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--surface); border: 1px solid currentColor; letter-spacing: .04em; text-transform: none; }
.eco-card .cta { font-weight: 700; text-decoration: none; }
@media (max-width: 1060px) { .eco { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .eco { grid-template-columns: 1fr; } }

.eco-flow { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .9375rem; color: var(--ink-2); align-items: center; }
.eco-flow b { color: var(--ink); }

/* ---------- Divisiones a dos columnas ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split.top { align-items: start; }
.split img { border-radius: 18px; width: 100%; object-fit: cover; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ---------- Listas con marca ---------- */
.checks { list-style: none; padding: 0; display: grid; gap: 12px; }
.checks li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; }
.checks li::before { content: ""; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%; background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%231d5a41' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* ---------- Tarjetas genéricas ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 10px; align-content: start; }
.card h3 { font-size: 1.3125rem; }
.card p { color: var(--ink-2); }
.section.alt .card { background: var(--paper); }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards, .cards.two { grid-template-columns: 1fr; } }

/* ---------- Herramienta: ¿qué exámenes me corresponden? ---------- */
.finder { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; display: grid; grid-template-columns: 340px 1fr; }
.finder-form { background: var(--forest-2); color: #eef4ef; padding: 28px; display: grid; gap: 20px; align-content: start; }
.finder-form h3 { color: #fff; font-size: 1.5rem; }
.finder-form p { color: #cfe0d5; font-size: .9375rem; }
.field { display: grid; gap: 8px; }
.field label, .field legend { font-weight: 700; font-size: 1rem; }
.field input[type="number"] { font: 700 1.5rem var(--f-body); padding: 10px 14px; border-radius: 10px; border: 2px solid transparent; width: 140px; color: var(--ink); }
.field input:focus { outline: none; border-color: var(--gold); }
fieldset.field { border: 0; padding: 0; margin: 0; }
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { padding: 10px 16px; border-radius: 999px; border: 2px solid rgba(255,255,255,.4); cursor: pointer; font-weight: 700; }
.seg input:checked + label { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.seg input:focus-visible + label { outline: 3px solid #fff; outline-offset: 2px; }
.finder-out { padding: 28px; display: grid; gap: 14px; align-content: start; }
.finder-out .summary { font-size: 1.0625rem; color: var(--ink-2); }
.res { display: grid; grid-template-columns: 6px 1fr; gap: 16px; padding: 16px 18px 16px 0; border-bottom: 1px solid var(--line); }
.res:last-child { border-bottom: 0; }
.res::before { content: ""; border-radius: 3px; background: var(--forest); }
.res.vac::before { background: var(--c-academia); }
.res.talk::before { background: var(--gold); }
.res.habit::before { background: var(--mint); }
.res h4 { font-family: var(--f-body); font-size: 1.0625rem; font-weight: 700; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.res .when { font-size: .8125rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); color: var(--ink-2); }
.res p { color: var(--ink-2); font-size: 1rem; margin-top: 4px; }
.finder-note { font-size: .875rem; color: var(--ink-2); background: var(--paper); border-radius: 10px; padding: 12px 14px; }
@media (max-width: 860px) { .finder { grid-template-columns: 1fr; } }

/* ---------- Señales de alerta ---------- */
.alert-box { border: 2px solid var(--alert); background: var(--alert-soft); border-radius: var(--radius); padding: 24px; display: grid; gap: 14px; }
.alert-box h3 { color: var(--alert); }
.alert-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 28px; list-style: none; padding: 0; }
.alert-list li { padding-left: 22px; position: relative; }
.alert-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; border-radius: 2px; background: var(--alert); transform: rotate(45deg); }
@media (max-width: 640px) { .alert-list { grid-template-columns: 1fr; } }

/* ---------- Código LAC ---------- */
.code-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.code-group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 10px; align-content: start; }
.code-group h3 { font-size: 1.25rem; display: flex; gap: 10px; align-items: baseline; }
.code-group h3 .range { font-family: var(--f-body); font-size: .8125rem; font-weight: 700; color: var(--forest); background: var(--gold-soft); padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.code-group ul { display: grid; gap: 6px; color: var(--ink-2); font-size: 1rem; }
@media (max-width: 900px) { .code-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .code-grid { grid-template-columns: 1fr; } }

/* ---------- Malla curricular MOC ---------- */
.syllabus { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; font-size: 1rem; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.syllabus th, .syllabus td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.syllabus thead th { background: var(--forest-2); color: #fff; font-size: .875rem; letter-spacing: .04em; text-transform: uppercase; }
.syllabus td.h { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.syllabus tr.async td { color: var(--ink-2); background: var(--paper); }
.syllabus tfoot td { font-weight: 700; background: var(--gold-soft); }

/* ---------- Testimonios ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.quote { background: var(--mint); border-radius: 22px 22px 22px 4px; padding: 26px; display: grid; gap: 14px; align-content: space-between; }
.quote p { font-family: var(--f-display); font-size: 1.1875rem; line-height: 1.45; color: var(--ink); }
.quote footer { font-size: .9375rem; font-weight: 700; color: var(--forest-2); }
.quote footer span { display: block; font-weight: 400; color: var(--ink-2); }
.quote.alt { background: var(--gold-soft); }
.quote.dark { background: var(--c-academia); }
.quote.dark p, .quote.dark footer, .quote.dark footer span { color: #fff; }
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr; } }

/* ---------- Territorios ---------- */
.territories { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; }
.territories li { padding: 8px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 700; }
.territories li::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c-academia); margin-right: 8px; vertical-align: middle; }

/* ---------- Equipo ---------- */
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.member { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; grid-template-columns: 60px 1fr; gap: 16px; align-items: start; }
.avatar { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-display); font-weight: 700; font-size: 1.375rem; color: #fff; background: var(--forest); }
.avatar.t { background: var(--c-academia); }
.avatar.g { background: var(--gold); color: var(--ink); }
.avatar.b { background: var(--c-epa); }
.member h3 { font-size: 1.1875rem; }
.member .role { font-weight: 700; color: var(--forest); font-size: .9375rem; margin-top: 2px; }
.member p { font-size: .9375rem; color: var(--ink-2); margin-top: 6px; }

/* ---------- Noticias ---------- */
.news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.news-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: grid; grid-template-rows: auto 1fr; text-decoration: none; color: var(--ink); }
.news-card:hover { border-color: var(--forest); color: var(--ink); }
.news-card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.news-card .ph { aspect-ratio: 16 / 10; display: grid; place-items: center; padding: 24px; font-family: var(--f-display); font-size: 1.5rem; text-align: center; color: #fff; background: var(--forest); }
.news-card .ph.gold { background: var(--gold); color: var(--ink); }
.news-card .ph.teal { background: var(--c-academia); }
.news-card .body { padding: 20px 22px 24px; display: grid; gap: 8px; align-content: start; }
.meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; font-size: .875rem; color: var(--ink-2); }
.cat { font-weight: 700; color: var(--forest); background: var(--gold-soft); padding: 2px 10px; border-radius: 999px; }
.news-card h3 { font-size: 1.3125rem; }
.news-card p { color: var(--ink-2); font-size: 1rem; }
@media (max-width: 900px) { .news { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .news { grid-template-columns: 1fr; } }

.article { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: clamp(22px, 4vw, 44px); display: grid; gap: 18px; scroll-margin-top: 110px; }
.article + .article { margin-top: 24px; }
.article h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.25rem); }
.article figure { margin: 0; }
.article figure img { border-radius: 12px; width: 100%; max-height: 460px; object-fit: cover; }
.article figcaption { font-size: .875rem; color: var(--ink-2); margin-top: 8px; }
.article blockquote { margin: 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--gold); font-family: var(--f-display); font-size: 1.25rem; }
.article blockquote cite { display: block; font-family: var(--f-body); font-style: normal; font-size: .9375rem; color: var(--ink-2); margin-top: 8px; }
.news-layout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: start; }
.news-index { position: sticky; top: 110px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.news-index h2 { font-size: 1.125rem; margin-bottom: 10px; }
.news-index ol { padding-left: 1.1em; display: grid; gap: 8px; font-size: .9375rem; }
@media (max-width: 900px) { .news-layout { grid-template-columns: 1fr; } .news-index { position: static; } }

/* ---------- Formularios ---------- */
.form { display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { font-weight: 700; display: block; margin-bottom: 6px; }
.form input, .form select, .form textarea { width: 100%; font: 1.0625rem var(--f-body); padding: 12px 14px; border-radius: 10px; border: 1.5px solid #b9c6bd; background: #fff; color: var(--ink); }
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px rgba(226,174,53,.45); }
.form .hint { font-size: .875rem; color: var(--ink-2); }
.form-result { display: none; background: var(--mint); border-radius: 12px; padding: 16px 18px; }
.form-result.show { display: grid; gap: 10px; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }

.info-list { list-style: none; padding: 0; display: grid; gap: 18px; }
.info-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.info-list .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--gold-soft); display: grid; place-items: center; color: var(--forest); }
.info-list .ic svg { width: 22px; height: 22px; }
.info-list strong { display: block; }

/* ---------- Bandas / CTA ---------- */
.band { background: var(--forest); color: #fff; border-radius: 24px; padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: center; position: relative; overflow: hidden; }
.band::after { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; border: 36px solid rgba(226,174,53,.25); }
.band h2 { color: #fff; }
.band p { color: #d9e8de; margin-top: 12px; }
.band .btn-row { justify-content: flex-end; position: relative; z-index: 1; }
@media (max-width: 800px) { .band { grid-template-columns: 1fr; } .band .btn-row { justify-content: flex-start; } }

.notice { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; background: var(--gold-soft); border: 1px solid #ecd28a; border-radius: 12px; padding: 16px 18px; font-size: 1rem; }
.notice b { color: var(--ink); }

.sources { font-size: .9375rem; color: var(--ink-2); display: grid; gap: 6px; padding-left: 1.2em; }
.sources a { word-break: break-word; }

.timeline { list-style: none; padding: 0; display: grid; gap: 0; border-left: 3px solid var(--line); margin-left: 8px; }
.timeline li { position: relative; padding: 0 0 26px 26px; }
.timeline li::before { content: ""; position: absolute; left: -10px; top: 4px; width: 17px; height: 17px; border-radius: 50%; background: var(--surface); border: 3px solid var(--forest); }
.timeline li.now::before { background: var(--gold); border-color: var(--gold); }
.timeline .t { font-weight: 700; color: var(--forest); font-size: .9375rem; }
.timeline h3 { font-size: 1.25rem; margin: 2px 0 4px; }
.timeline p { color: var(--ink-2); }

/* ---------- Pie de página ---------- */
.site-footer { background: var(--ink); color: #c9d6cd; padding-top: 56px; font-size: .9375rem; }
.site-footer a { color: #e8efe9; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
.foot-grid h2 { font-family: var(--f-body); font-size: .8125rem; text-transform: uppercase; letter-spacing: .12em; color: var(--gold); margin-bottom: 14px; }
.foot-grid ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.foot-brand p { margin-top: 14px; max-width: 36ch; }
.foot-brand .brand-name { color: #fff; }
.foot-brand .brand-tag { color: #a9bbb0; }
.foot-legal { border-top: 1px solid rgba(255,255,255,.12); padding-block: 20px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: .8125rem; color: #a9bbb0; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- Movimiento: entrada suave desde estado visible ---------- */
.rise { animation: rise .6s ease-out both; }
@keyframes rise { from { transform: translateY(10px); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise { animation: none; }
  .path, .btn { transition: none; }
}

@media print {
  .eco-bar, .site-header, .site-footer, .btn-row, .finder-form { display: none !important; }
  body { background: #fff; }
}

/* ---------- Campaña páncreas ---------- */
.main-nav a.nav-purple { color: var(--purple); }
.main-nav a.nav-purple::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--purple); margin-right: 7px; vertical-align: middle; }
.main-nav a.nav-purple[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--purple); }
.ribbon { width: 1em; height: 1.3em; display: inline-block; vertical-align: -0.2em; }
.p-hero { background: radial-gradient(120% 140% at 85% 0%, #7a3fb0 0%, var(--purple) 38%, var(--purple-2) 100%); color: #fff; }
.p-hero .wrap { padding-block: clamp(44px, 7vw, 96px); display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.p-hero h1 { color: #fff; }
.p-hero h1 em { color: var(--lilac); font-style: italic; }
.p-hero .lead { color: #eadcf6; margin-top: 16px; }
.p-hero .kicker { color: var(--lilac); }
.p-hero .kicker::before { background: var(--lilac); }
.p-hero .breadcrumb, .p-hero .breadcrumb a { color: #d9c6ee; }
.p-hero .btn-row { margin-top: 26px; }
.btn-purple { background: var(--purple); color: #fff; }
.btn-purple:hover { background: var(--purple-2); color: #fff; }
.btn-lilac { background: var(--lilac); color: var(--purple-2); }
.btn-lilac:hover { background: #fff; color: var(--purple-2); }
.btn-ghost-light { border-color: rgba(255,255,255,.7); color: #fff; background: transparent; }
.btn-ghost-light:hover { background: #fff; color: var(--purple-2); }
.day-card { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); border-radius: 20px; padding: 24px; display: grid; gap: 10px; justify-items: start; }
.day-card .big { font-family: var(--f-display); font-size: clamp(3rem, 2rem + 4vw, 5rem); line-height: .9; color: #fff; }
.day-card .mon { font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--lilac); }
.day-card p { color: #eadcf6; }
@media (max-width: 860px) { .p-hero .wrap { grid-template-columns: 1fr; } }
.section.purple-soft { background: var(--purple-soft); }
.section.purple-soft .kicker, .p-page .kicker { color: var(--purple); }
.p-page .kicker::before { background: var(--purple); }
.p-page .stat .n { color: var(--purple); }
.p-page .checks li::before { background-color: var(--lilac); }
.p-page .card h3 { color: var(--purple-2); }
.p-page a:not(.btn) { color: var(--purple); }
.help-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.help-card { background: var(--surface); border: 1px solid #e0d2ee; border-radius: var(--radius); padding: 24px; display: grid; gap: 10px; align-content: start; border-top: 5px solid var(--purple); }
.help-card .status { justify-self: start; font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--purple-soft); color: var(--purple); }
.help-card h3 { font-size: 1.3125rem; }
.help-card p { color: var(--ink-2); }
@media (max-width: 1000px) { .help-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .help-grid { grid-template-columns: 1fr; } }
.ambassador { display: grid; grid-template-columns: 120px 1fr; gap: 24px; align-items: center; background: var(--surface); border: 1px solid #e0d2ee; border-radius: 20px; padding: 26px; }
.ambassador .avatar { width: 120px; height: 120px; font-size: 2.5rem; background: var(--purple); }
@media (max-width: 560px) { .ambassador { grid-template-columns: 1fr; } }
.campaign-strip { background: var(--purple); color: #fff; }
.campaign-strip .wrap { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; padding-block: 22px; }
.campaign-strip p { color: #eadcf6; }
.campaign-strip strong { color: #fff; font-family: var(--f-display); font-size: 1.375rem; display: block; }
.campaign-strip svg { width: 44px; height: 56px; }
@media (max-width: 760px) { .campaign-strip .wrap { grid-template-columns: 1fr; } }
.news-card .ph.purple { background: var(--purple); }
.board { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.board div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.board b { display: block; font-family: var(--f-display); font-size: 1.125rem; }
.board span { font-size: .875rem; color: var(--ink-2); }
@media (max-width: 900px) { .board { grid-template-columns: 1fr 1fr; } }
.partners { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; }
.partners li { padding: 10px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-weight: 700; }
.p-page .p-hero .kicker { color: var(--lilac); }
.p-page .p-hero .kicker::before { background: var(--lilac); }
.p-page .p-hero a:not(.btn) { color: #e6d6f5; }
.p-page .route::before { background: linear-gradient(90deg, var(--lilac), var(--purple)); }
.p-page .route li::before { border-color: var(--purple); color: var(--purple); }
@media (max-width: 760px) { .p-page .route::before { background: linear-gradient(180deg, var(--lilac), var(--purple)); } }
.help-grid.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .help-grid.three { grid-template-columns: 1fr; } }
.p-page .syllabus thead th { background: var(--purple-2); }
.p-page .syllabus tfoot td { background: var(--purple-soft); }
.p-page .timeline li::before { border-color: var(--purple); }
.p-page .timeline li.now::before { background: var(--purple); border-color: var(--purple); }
.p-page .timeline .t { color: var(--purple); }

/* ---------- Colaboradores ---------- */
.partner-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.partner { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 14px; align-content: start; }
.partner-logo { height: 72px; display: flex; align-items: center; }
.partner-logo img { max-height: 64px; max-width: 200px; width: auto; height: auto; object-fit: contain; }
.partner h3 { font-size: 1.125rem; }
.partner h3 a { color: var(--ink); text-decoration: none; }
.partner h3 a:hover { color: var(--forest); text-decoration: underline; }
.partner p { color: var(--ink-2); font-size: .9375rem; margin-top: 4px; }
.pdf-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding-top: 6px; }
.finder-form input[type="text"] { font: 1.0625rem var(--f-body); padding: 10px 14px; border-radius: 10px; border: 2px solid transparent; width: 100%; color: var(--ink); }
.finder-form input[type="text"]:focus { outline: none; border-color: var(--gold); }
@media print {
  body.print-plan .page-hero, body.print-plan #codigo, body.print-plan #senales, body.print-plan .section.alt, body.print-plan .section.tight, body.print-plan .table-scroll, body.print-plan .pdf-actions, body.print-plan .section-head .lead { display: none !important; }
  body.print-plan .finder { display: block; box-shadow: none; border: 0; }
}

.main-nav a { white-space: nowrap; }
.brand-tag { white-space: nowrap; }
@media (max-width: 1440px) { .site-header .tag-slogan { display: none; } }
.foot-brand .brand-tag { white-space: normal; }

.partner-cta { border: 2px dashed var(--line, #cfd8d2); background: transparent; text-decoration: none; color: inherit; transition: border-color .2s, background .2s; }
.partner-cta .partner-logo { font: 600 2.75rem/1 var(--f-display); color: var(--forest); }
.partner-cta:hover, .partner-cta:focus-visible { border-color: var(--gold); background: #fff; }

/* ---- Fundadores (v5) ---- */
.founders-intro { display: grid; grid-template-columns: 1.25fr 1fr; gap: 32px; align-items: center; margin-bottom: 24px; }
.founders-photo img { width: 100%; height: auto; border-radius: var(--radius); }
.founders-photo figcaption { font-size: .875rem; color: var(--ink-2); margin-top: 8px; }
.founders-signing { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.founders-signing img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.founders { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.founder { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: 14px; padding: 18px; display: grid; gap: 6px; align-content: start; text-align: center; }
.founder img { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; margin: 0 auto 6px; border: 3px solid var(--paper); box-shadow: 0 0 0 2px var(--forest); }
.founder h3 { font-size: 1.125rem; }
.founder .role { font-size: .875rem; font-weight: 700; color: var(--forest); }
.founder p:not(.role) { font-size: .875rem; color: var(--ink-2); }
img.avatar { object-fit: cover; padding: 0; }
@media (max-width: 1100px) { .founders { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .founders-intro { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .founders { grid-template-columns: 1fr 1fr; } }
/* ---- Noticias con medios ---- */
.media-split { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 28px; align-items: start; }
.media-split video { width: 100%; height: auto; border-radius: 14px; background: #000; aspect-ratio: 9 / 16; }
.gallery { display: grid; grid-template-columns: 1fr 1fr 0.75fr; gap: 12px; margin-top: 18px; }
.gallery img { width: 100%; height: 220px; object-fit: cover; border-radius: 12px; }
.gallery figcaption { font-size: .8125rem; color: var(--ink-2); margin-top: 6px; }
@media (max-width: 760px) { .media-split { grid-template-columns: 1fr; } .media-split video { max-width: 320px; } .gallery { grid-template-columns: 1fr; } .gallery img { height: auto; aspect-ratio: 4 / 3; } }
.news-card img { object-position: center 25%; }
.ambassador-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-position: center 20%; object-fit: cover; border-radius: 20px; border-bottom: 6px solid var(--purple); }

/* ---- Noticias en tarjetas (v6) ---- */
.news-all { margin-bottom: 8px; }
.news-all .news-card .more { font-weight: 700; color: var(--forest); font-size: .9375rem; margin-top: 4px; }
.news-all .news-card img { object-position: center 30%; }
.article-list .article { display: none; }
.article-list .article:target { display: grid; animation: fadein .25s ease; }
.news-page:has(.article:target) .news-all { display: none; }
.back-link { font-weight: 700; text-decoration: none; justify-self: start; }
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.photo-pair img { height: 300px !important; max-height: none; }
@media (max-width: 700px) { .photo-pair { grid-template-columns: 1fr; } .photo-pair img { height: auto !important; } }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .article-list .article:target { animation: none; } }
.news-card .ph.purple { background: var(--purple); }

/* ---- Tabla por edad (v6) ---- */
.age-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin: 40px 0 14px; }
.age-head h3 { font-size: 1.5rem; }
.age-table { width: 100%; min-width: 820px; border-collapse: collapse; background: var(--surface); font-size: .9375rem; }
.age-table thead th { background: var(--forest-2); color: #fff; padding: 12px 8px; text-align: center; font-size: .9375rem; position: sticky; top: 0; }
.age-table thead th.first { text-align: left; padding-left: 16px; }
.age-table thead th.d3 { background: #6f6420; } .age-table thead th.d4 { background: #a07c12; } .age-table thead th.d5 { background: #b5701a; } .age-table thead th.d6 { background: #a5541a; }
.age-table tbody th { text-align: left; font-weight: 400; padding: 12px 16px; border-top: 1px solid var(--line); min-width: 300px; }
.age-table .who { display: inline-block; font-size: .6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--forest); background: #e8f0ea; border-radius: 6px; padding: 1px 6px; margin-left: 4px; vertical-align: 2px; }
.age-table small { display: block; color: var(--ink-2); font-size: .8125rem; line-height: 1.4; margin-top: 4px; }
.age-table td { text-align: center; border-top: 1px solid var(--line); border-left: 1px solid #eef1ee; width: 9%; }
.age-table td.t-n { background: #eceeeb; }
.age-table .dot { color: var(--forest); font-size: 1.25rem; }
.age-table .talk { font-size: .6875rem; font-weight: 700; text-transform: uppercase; color: #8a6a12; }
.age-table tr.grp th { background: #f3efe2; color: var(--forest-2); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; padding: 8px 16px; font-weight: 700; }
.age-legend { font-size: .875rem; color: var(--ink-2); margin-top: 10px; }
.age-legend .dot { color: var(--forest); } .age-legend .talk { font-weight: 700; color: #8a6a12; }

/* ======== v7 · UX ======== */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* Barra de lectura */
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.read-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), #f0c75e); transform: scaleX(0); transform-origin: 0 50%; }

/* Cabecera compacta al hacer scroll */
.site-header { transition: box-shadow .2s ease, background-color .2s ease; }
.site-header.scrolled { box-shadow: 0 6px 24px -14px rgba(21, 35, 28, .35); background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(8px); }

/* Botones flotantes */
.float-actions { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 55; display: flex; flex-direction: column-reverse; align-items: center; gap: 12px; }
.fab { width: 54px; height: 54px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 26px -10px rgba(0, 0, 0, .45); transition: transform .2s ease, opacity .2s ease, box-shadow .2s; }
.fab:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .5); }
.fab-wa { background: #1f9d55; color: #fff; }
.fab-top { position: relative; background: var(--forest-2); color: #fff; opacity: 0; transform: translateY(10px) scale(.9); }
.fab-top.show { opacity: 1; transform: none; }
.fab-top .ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.fab-top .ring circle { fill: none; stroke: rgba(255, 255, 255, .18); stroke-width: 3; }
.fab-top .ring .ring-val { stroke: var(--gold); stroke-linecap: round; transition: stroke-dashoffset .1s linear; }
.fab-top .arrow { position: relative; }
@media (max-width: 600px) { .fab { width: 48px; height: 48px; } }
@media print { .float-actions, .read-progress, .toast { display: none !important; } }

/* Aviso breve */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 16px); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 700; z-index: 70; opacity: 0; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Aparición suave */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Enlaces externos en texto */
a.ext::after { content: "↗"; font-size: .8em; margin-left: .15em; text-decoration: none; display: inline-block; }

/* Colaboradores como tarjetas enlazadas */
.partner-link, .partner-cta { color: inherit; text-decoration: none; display: grid; grid-template-rows: auto 1fr auto; transition: border-color .2s, box-shadow .2s, transform .2s; }
.partner-link:hover, .partner-link:focus-visible { border-color: var(--forest); box-shadow: 0 14px 30px -20px rgba(29, 90, 65, .55); transform: translateY(-2px); }
.partner-go { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; font-weight: 700; color: var(--forest); font-size: .9375rem; border-top: 1px solid var(--line); padding-top: 12px; }
.partner-go small { font-weight: 400; color: var(--ink-2); font-size: .8125rem; margin-left: auto; }
.partner-link:hover .partner-go { text-decoration: underline; }

/* Lightbox */
img.zoomable { cursor: zoom-in; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(10, 18, 14, .88); }
.lightbox img { display: block; max-width: 100%; max-height: 82vh; border-radius: 10px; margin: 0 auto; }
.lightbox-cap { color: #e6efe9; text-align: center; margin: 10px 0 0; font-size: .9375rem; }
.lightbox-close { position: absolute; top: -14px; right: -14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); font-size: 1.5rem; line-height: 1; cursor: pointer; box-shadow: 0 6px 16px rgba(0,0,0,.4); }

/* Compartir noticia */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; border-top: 1px solid var(--line); padding-top: 16px; }
.share-label { font-weight: 700; color: var(--ink-2); margin-right: 4px; }
.share-btn { font: 700 .875rem var(--f-body); padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--forest); cursor: pointer; text-decoration: none; }
.share-btn:hover { border-color: var(--forest); }

/* 404 */
.notfound { padding-block: clamp(64px, 12vw, 140px); }
.paths-mini { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* Pulido general */
::selection { background: rgba(226, 174, 53, .35); }
.partner-go small { flex-basis: 100%; margin-left: 0; }
.foot-legal { padding-right: 76px; }
@media (max-width: 600px) { .foot-legal { padding-right: 0; padding-bottom: 64px; } }
