/* Xpert Academy — estilos comunes.
   Marca tomada del logo oficial: morado profundo + degradado cian→violeta de la "X",
   y el amarillo de los cabezotes del sitio anterior como acento puntual. */

:root {
  --ink: #1b1033;          /* fondo oscuro */
  --ink-2: #261749;
  --purple: #3d2474;       /* texto de marca del logo */
  --violet: #5b2a93;
  --cyan: #19d9cf;         /* solo sobre fondos oscuros o como decoración */
  --cyan-text: #0a7d78;    /* cian con contraste AA sobre blanco */
  --yellow: #f2df4a;
  --paper: #ffffff;
  --mist: #f4f1fa;
  --line: #e3dcef;
  --text: #251f33;
  --muted: #5d566d;
  --grad: linear-gradient(135deg, var(--cyan) 0%, #5c7fd8 45%, var(--violet) 100%);
  --radius: 18px;
  --shadow: 0 18px 40px -22px rgba(27, 16, 51, .45);
  --font-head: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--violet); }
a:hover { color: var(--purple); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0 0 .6em; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; }
.lead { font-size: 1.25rem; color: var(--muted); }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--cyan-text); outline-offset: 3px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Texto provisional que Andrés debe confirmar o reemplazar */
.draft, .pendiente { background: #fff3a6; color: #4a3b00; border-radius: 4px; padding: 0 .25em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 50px; padding: .75rem 1.5rem; border-radius: 999px;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--violet); color: #fff; }
.btn-primary:hover { background: var(--purple); color: #fff; }
.btn-cyan { background: var(--cyan); color: var(--ink); }
.btn-cyan:hover { background: #4ee6de; color: var(--ink); }
.btn-ghost { border-color: currentColor; color: var(--violet); background: transparent; }
.btn-ghost-light { border-color: rgba(255,255,255,.55); color: #fff; background: transparent; }
.btn-ghost-light:hover { border-color: #fff; color: #fff; }
.btn-donate { background: var(--yellow); color: var(--ink); }
.btn-donate:hover { background: #f7e977; color: var(--ink); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.link-arrow { font-family: var(--font-head); font-weight: 700; text-decoration: none; color: var(--violet); }
.link-arrow::after { content: ' →'; }

/* ---------- Encabezado ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 1.5rem; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--purple); }
.brand img { width: 40px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; font-family: var(--font-head); }
.brand-text strong { font-size: 1.3rem; font-weight: 800; letter-spacing: .06em; color: var(--purple); }
.brand-text small { font-size: .62rem; letter-spacing: .42em; font-weight: 700; color: var(--purple); margin-top: 4px; }
.main-nav { display: flex; align-items: center; gap: .25rem; margin-left: auto; }
.main-nav > a, .has-sub > button {
  font: 600 1rem var(--font-head); color: var(--text); text-decoration: none; padding: .55rem .8rem; border-radius: 10px; background: none; border: 0; cursor: pointer;
}
.main-nav > a:hover, .has-sub > button:hover, .main-nav a[aria-current="page"] { color: var(--violet); background: var(--mist); }
.has-sub { position: relative; }
.has-sub > button::after { content: ''; display: inline-block; width: .45em; height: .45em; margin-left: .45em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); }
.submenu { position: absolute; top: calc(100% + 8px); left: -8px; min-width: 300px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: .5rem; display: none; }
.has-sub.open .submenu, .has-sub:hover .submenu, .has-sub:focus-within .submenu { display: block; }
.submenu a { display: block; padding: .65rem .8rem; border-radius: 10px; text-decoration: none; color: var(--text); font-weight: 600; line-height: 1.3; }
.submenu a small { display: block; font-weight: 400; color: var(--muted); font-size: .9rem; }
.submenu a:hover { background: var(--mist); color: var(--violet); }
.header-actions { display: flex; gap: .6rem; }
.header-actions .btn { min-height: 44px; padding: .55rem 1.15rem; }
.menu-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.mobile-panel { display: none; }

@media (max-width: 1060px) {
  .main-nav, .header-actions { display: none; }
  .menu-toggle { display: inline-flex; }
  .mobile-panel { position: fixed; inset: 76px 0 0; background: #fff; z-index: 49; padding: 1.25rem 16px 2rem; overflow-y: auto; flex-direction: column; gap: .25rem; }
  .mobile-panel.open { display: flex; }
  .mobile-panel a:not(.btn) { padding: .85rem .5rem; font: 600 1.15rem var(--font-head); color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line); }
  .mobile-panel .sub { padding-left: 1.25rem; font-size: 1.02rem; font-weight: 500; }
  .mobile-panel .btn { margin-top: .75rem; }
}

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; isolation: isolate; }
.hero::before, .hero::after { content: ''; position: absolute; z-index: -1; width: 220px; height: 160%; top: -30%; border-radius: 120px; }
.hero::before { right: 18%; background: var(--grad); transform: rotate(32deg); opacity: .95; }
.hero::after { right: 6%; background: linear-gradient(180deg, #4a2385, #2a1656); transform: rotate(-32deg); opacity: .9; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { color: #d9d2ea; max-width: 38em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero-note { margin-top: 1.25rem; font-size: .98rem; color: #bdb3d6; }
.route-card { background: rgba(255,255,255,.96); color: var(--text); border-radius: 24px; padding: 1.75rem; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.route-card h2 { font-size: 1.25rem; margin-bottom: 1rem; }
.route { list-style: none; margin: 0; padding: 0; counter-reset: paso; }
.route li { counter-increment: paso; display: grid; grid-template-columns: 44px 1fr; gap: .9rem; padding: .8rem 0; border-top: 1px solid var(--line); }
.route li:first-child { border-top: 0; }
.route li::before { content: counter(paso); width: 44px; height: 44px; border-radius: 50%; background: var(--grad); color: #fff; font: 800 1.1rem var(--font-head); display: grid; place-items: center; }
.route strong { display: block; font-family: var(--font-head); color: var(--ink); }
.route span { display: block; font-size: 1rem; color: var(--muted); line-height: 1.45; }

/* Encabezado de páginas internas */
.page-hero { background: var(--ink); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.page-hero::before { content: ''; position: absolute; z-index: -1; right: -60px; top: -40%; width: 180px; height: 180%; border-radius: 100px; background: var(--grad); transform: rotate(32deg); opacity: .9; }
.page-hero .wrap { padding-block: clamp(3rem, 7vw, 5rem); max-width: var(--wrap); }
.page-hero h1 { color: #fff; max-width: 18em; }
.page-hero .lead { color: #d9d2ea; max-width: 40em; }
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0 0 1.25rem; font-size: .95rem; color: #bdb3d6; }
.breadcrumb li + li::before { content: '/'; margin-right: .4rem; opacity: .6; }
.breadcrumb a { color: #e9e3f7; }

/* ---------- Secciones ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section-mist { background: var(--mist); }
.section-ink { background: var(--ink); color: #e9e3f7; }
.section-ink h2, .section-ink h3 { color: #fff; }
.section-head { max-width: 46rem; margin-bottom: 2.5rem; }
.section-head p { color: var(--muted); font-size: 1.2rem; }
.section-ink .section-head p { color: #cfc6e4; }
.center { text-align: center; margin-inline: auto; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; margin-top: -2.5rem; position: relative; z-index: 2; box-shadow: var(--shadow); }
.stat { background: #fff; padding: 1.6rem 1.5rem; }
.stat strong { display: block; font: 800 clamp(1.8rem, 3.5vw, 2.4rem) var(--font-head); color: var(--purple); line-height: 1.1; }
.stat span { color: var(--muted); font-size: 1rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.checks { list-style: none; padding: 0; margin: 1.25rem 0 1.75rem; display: grid; gap: .75rem; }
.checks li { position: relative; padding-left: 2.1rem; }
.checks li::before { content: ''; position: absolute; left: 0; top: .3em; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--grad); }
.checks li::after { content: ''; position: absolute; left: .42rem; top: .58em; width: .45rem; height: .28rem; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }
.pain-list { display: grid; gap: 1rem; }
.pain { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--violet); border-radius: 14px; padding: 1.1rem 1.25rem; }
.pain strong { font-family: var(--font-head); color: var(--ink); display: block; }
.pain p { margin: .25rem 0 0; color: var(--muted); font-size: 1.02rem; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.9rem; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card .num { font: 800 .95rem var(--font-head); color: var(--cyan-text); letter-spacing: .08em; margin-bottom: .75rem; }
.card h3 { font-size: 1.4rem; }
.card p { color: var(--muted); }
.card .link-arrow { margin-top: auto; }
.icon { width: 52px; height: 52px; border-radius: 14px; background: var(--mist); color: var(--violet); display: grid; place-items: center; margin-bottom: 1.1rem; }
.icon svg { width: 28px; height: 28px; }

.method { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.method article { background: var(--ink-2); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 1.75rem; }
.method h3 { font-size: 1.6rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; display: inline-block; }
.method p { margin: 0; color: #cfc6e4; }

.founder { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.portrait { aspect-ratio: 4 / 5; border-radius: 28px; background: var(--grad); position: relative; overflow: hidden; display: grid; place-items: center; color: #fff; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait .initials { font: 800 5rem var(--font-head); letter-spacing: .04em; }
.portrait .ph-note { position: absolute; bottom: 14px; left: 14px; right: 14px; background: rgba(27,16,51,.75); border-radius: 10px; padding: .5rem .75rem; font-size: .9rem; text-align: center; }
.quote { font: 600 1.35rem/1.45 var(--font-head); color: var(--purple); border-left: 4px solid var(--cyan); padding-left: 1.1rem; margin: 1.25rem 0; }

.allies-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
.allies-list li > span, .allies-list li > a { display: inline-flex; align-items: center; min-height: 56px; padding: .6rem 1.1rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; font: 600 1rem var(--font-head); color: var(--purple); text-decoration: none; }
.allies-list img { max-height: 48px; width: auto; }

.testimonials { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.testimonial { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; }
.testimonial blockquote { margin: 0 0 1rem; font-size: 1.15rem; }
.testimonial figcaption { font-family: var(--font-head); font-weight: 700; color: var(--ink); }
.testimonial figcaption span { display: block; font-weight: 400; font-family: var(--font-body); color: var(--muted); }

.academy-band { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2rem; align-items: center; background: var(--grad); border-radius: 28px; padding: clamp(2rem, 5vw, 3.5rem); color: #fff; }
.academy-band h2 { color: #fff; }
.academy-band p { color: #f2eefb; }
.course-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.course-list li { background: rgba(27,16,51,.35); border-radius: 14px; padding: .9rem 1.1rem; font-family: var(--font-head); font-weight: 600; }

.faq { max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.faq summary { cursor: pointer; font: 700 1.15rem var(--font-head); color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.5rem; line-height: 1; color: var(--violet); }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: .75rem 0 0; color: var(--muted); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; counter-reset: paso; }
.steps li { counter-increment: paso; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.steps li::before { content: '0' counter(paso); display: block; font: 800 1.6rem var(--font-head); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: .4rem; }
.steps strong { display: block; font-family: var(--font-head); color: var(--ink); margin-bottom: .25rem; }
.steps span { color: var(--muted); font-size: 1rem; }

.deliverables { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; list-style: none; padding: 0; margin: 0; }
.deliverables li { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.2rem; }
.deliverables strong { display: block; font-family: var(--font-head); color: var(--ink); }
.deliverables span { color: var(--muted); font-size: 1rem; }

/* ---------- Boletín ---------- */
.newsletter { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; background: var(--mist); border-radius: 24px; padding: clamp(1.75rem, 4vw, 2.75rem); }
.newsletter h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.newsletter p { color: var(--muted); margin: 0; }
.inline-form { display: flex; gap: .6rem; flex-wrap: wrap; }
.inline-form input { flex: 1 1 220px; min-height: 52px; border: 1px solid var(--line); border-radius: 999px; padding: 0 1.25rem; font: inherit; background: #fff; }
.form-note { flex-basis: 100%; font-size: .95rem; color: var(--muted); margin: .25rem 0 0; min-height: 1.4em; }

/* ---------- Donación ---------- */
.donate { background: var(--ink); color: #e9e3f7; padding-block: clamp(3.5rem, 8vw, 6rem); position: relative; overflow: hidden; isolation: isolate; }
.donate::before { content: ''; position: absolute; z-index: -1; left: -80px; bottom: -50%; width: 200px; height: 200%; border-radius: 100px; background: var(--grad); transform: rotate(32deg); opacity: .35; }
.donate h2 { color: #fff; }
.donate .lead { color: #cfc6e4; }
.donate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.donate-card { background: #fff; color: var(--text); border-radius: 24px; padding: 1.75rem; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.donate-card fieldset { border: 0; padding: 0; margin: 0 0 1rem; }
.donate-card legend { font: 700 1.05rem var(--font-head); color: var(--ink); margin-bottom: .75rem; }
.amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.amount { min-height: 52px; border: 2px solid var(--line); background: #fff; border-radius: 12px; font: 700 1rem var(--font-head); color: var(--ink); cursor: pointer; }
.amount[aria-pressed="true"] { border-color: var(--violet); background: var(--mist); color: var(--violet); }
.impact { min-height: 3em; margin: .25rem 0 1rem; font-size: 1rem; color: var(--muted); }
.amount-other { display: flex; align-items: center; gap: .5rem; border: 2px solid var(--line); border-radius: 12px; padding: 0 1rem; min-height: 52px; margin-bottom: 1rem; color: var(--muted); }
.amount-other input { flex: 1; border: 0; font: inherit; min-width: 0; color: var(--text); background: transparent; }
.amount-other input:focus { outline: none; }
.amount-other:focus-within { border-color: var(--violet); }
.donate-card .btn { width: 100%; }
.form-error { color: #b42318; font-weight: 600; margin: .75rem 0 0; }
.donate-note { font-size: .92rem; color: var(--muted); margin: 1rem 0 0; }
.uses { display: grid; gap: .9rem; margin-top: 1.5rem; }
.uses div { display: grid; grid-template-columns: auto 1fr; gap: .9rem; align-items: start; }
.uses b { font: 800 1.1rem var(--font-head); color: var(--cyan); min-width: 6.5rem; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.contact-card h2 { font-size: 1.2rem; }
.contact-card p { color: var(--muted); margin-bottom: .75rem; }

/* ---------- Legales y resultado ---------- */
.prose { max-width: 48rem; }
.prose h2 { font-size: 1.5rem; margin-top: 2.25rem; }
.prose li { margin-bottom: .4rem; }
.result { min-height: 55vh; display: grid; place-items: center; text-align: center; padding-block: 4rem; }
.result .lead { max-width: 34rem; margin-inline: auto; }
.icon-big { width: 76px; height: 76px; border-radius: 50%; background: var(--mist); color: var(--violet); display: grid; place-items: center; margin: 0 auto 1.25rem; }
.icon-big svg { width: 38px; height: 38px; }

/* ---------- CTA final ---------- */
.cta-final { text-align: center; }
.cta-final .lead { max-width: 36rem; margin-inline: auto; }
.cta-final .hero-ctas { justify-content: center; }

/* ---------- Pie ---------- */
.site-footer { background: #140b27; color: #c9c0dd; padding-top: 3.5rem; font-size: 1rem; }
.site-footer a { color: #e9e3f7; text-decoration: none; }
.site-footer a:hover { color: var(--cyan); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; }
.site-footer .brand-text strong, .site-footer .brand-text small { color: #fff; }
.footer-brand p { margin-top: 1rem; }
.footer-legal { font-size: .95rem; color: #a99fc2; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.socials { display: flex; gap: .6rem; margin-top: 1rem; }
.socials a { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; }
.socials svg { width: 20px; height: 20px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; border-top: 1px solid rgba(255,255,255,.1); padding-block: 1.25rem; font-size: .92rem; }
.footer-bottom p { margin: 0; }
.footer-bottom nav { display: flex; gap: 1.25rem; }
.footer__credit { margin: 0 auto; padding-bottom: 1.5rem; font-size: .88rem; color: #8f86a8; }

/* ---------- Botones flotantes ---------- */
.float-btn { position: fixed; right: 18px; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 10px 25px -8px rgba(0,0,0,.45); z-index: 40; transition: transform .15s; }
.float-btn:hover { transform: scale(1.06); }
.float-btn svg { width: 28px; height: 28px; }
.float-whatsapp { bottom: 18px; background: #25d366; color: #fff; }
.float-donate { bottom: 86px; background: var(--yellow); color: var(--purple); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .split, .founder, .donate-grid, .newsletter, .academy-band { grid-template-columns: 1fr; }
  .cards, .method, .contact-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero::before { right: -40px; } .hero::after { right: -130px; }
  .founder .portrait { max-width: 360px; }
}
@media (max-width: 640px) {
  body { font-size: 1.06rem; }
  .stats { grid-template-columns: 1fr; margin-top: -1.5rem; }
  .testimonials, .deliverables, .steps { grid-template-columns: 1fr; }
  .amounts { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-ctas .btn { width: 100%; }
  .hero::before, .hero::after { opacity: .35; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card, .float-btn { transition: none; }
}
.contact-card .socials a { background: var(--mist); }

/* ---------- Franja de organizaciones (debajo de las cifras) ---------- */
.allies-band { padding: 3rem 0 1rem; text-align: center; }
.allies-band h2 { font-size: clamp(1.15rem, 2vw, 1.4rem); color: var(--muted); font-weight: 700; margin-bottom: 1.5rem; }
.allies-list li > a { display: inline-flex; padding: 0; border: 0; background: none; min-height: 0; text-decoration: none; }
.allies-list .ally { display: inline-flex; align-items: center; gap: .6rem; min-height: 60px; padding: .6rem 1.1rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; font: 700 .98rem var(--font-head); color: var(--purple); transition: border-color .2s, box-shadow .2s; }
a .ally:hover { border-color: var(--violet); box-shadow: var(--shadow); }
.ally img { height: 40px; width: auto; }
.allies-note { margin-top: 1rem; font-size: .9rem; }

/* ---------- Blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; transition: box-shadow .2s, transform .2s; }
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); color: inherit; }
.post-cover { aspect-ratio: 16 / 9; background: var(--ink); position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: 1.1rem; }
.post-cover::before { content: ''; position: absolute; right: -30px; top: -40%; width: 90px; height: 180%; border-radius: 60px; background: var(--grad); transform: rotate(32deg); }
.post-cover span { position: relative; font: 700 .8rem var(--font-head); letter-spacing: .08em; text-transform: uppercase; color: var(--cyan); }
.post-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.post-body h3 { font-size: 1.25rem; }
.post-body p { color: var(--muted); font-size: 1.02rem; }
.post-meta { font-size: .92rem; color: var(--muted); margin-top: auto; }
.page-hero .post-meta { color: #bdb3d6; margin-top: 1rem; }
.article { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 3rem; align-items: start; }
.article .prose { max-width: 44rem; }
.article .prose h2 { font-size: 1.6rem; margin-top: 2.5rem; }
.article .prose h3 { margin-top: 1.75rem; }
.article .prose ul, .article .prose ol { padding-left: 1.3rem; }
.article .prose blockquote { margin: 1.5rem 0; padding: 1rem 1.25rem; border-left: 4px solid var(--cyan); background: var(--mist); border-radius: 0 12px 12px 0; }
.article aside { position: sticky; top: 100px; background: var(--ink); color: #e9e3f7; border-radius: var(--radius); padding: 1.6rem; }
.article aside h2 { color: #fff; font-size: 1.2rem; }
.article aside p { color: #cfc6e4; font-size: 1rem; }
.article aside .btn { width: 100%; }
@media (max-width: 960px) {
  .post-grid, .article { grid-template-columns: 1fr; }
  .article aside { position: static; }
}

.allies-list .ally { min-height: 88px; }
.allies-list .ally img { height: auto; max-height: 56px; max-width: 150px; }
.allies-list .ally--logo { padding: .75rem 1.25rem; }
.allies-list .ally--logo img { max-height: 64px; max-width: 170px; }
@media (max-width: 640px) { .allies-list .ally { min-height: 72px; } .allies-list .ally--logo img { max-height: 48px; max-width: 120px; } }

/* ---------- Enfoque institucional (presentación nov. 2026) ---------- */
.context-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.context-stats > div { background: #fff; padding: 1.5rem; display: flex; flex-direction: column; gap: .4rem; }
.context-stats strong { font: 800 clamp(1.5rem, 2.6vw, 2rem) var(--font-head); color: var(--purple); line-height: 1.1; }
.context-stats span { color: var(--text); font-size: 1rem; line-height: 1.5; }
.context-stats small { color: var(--muted); font-size: .85rem; margin-top: auto; }
.thesis { margin: 2rem 0 0; padding: 1.5rem 1.75rem; background: var(--ink); color: #e9e3f7; border-radius: var(--radius); font-size: 1.2rem; line-height: 1.55; border-left: 6px solid var(--cyan); }
.thesis strong { color: var(--cyan); font-family: var(--font-head); }
.route-dark { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; counter-reset: etapa; }
.route-dark li { counter-increment: etapa; background: var(--ink-2); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 1.4rem 1.5rem; }
.route-dark li::before { content: '0' counter(etapa); display: block; font: 800 1.5rem var(--font-head); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: .35rem; }
.route-dark strong { display: block; font-family: var(--font-head); color: #fff; margin-bottom: .3rem; }
.route-dark span { color: #cfc6e4; font-size: 1rem; line-height: 1.5; }
.stats-flat { margin-top: 0; box-shadow: none; }
.stages { display: grid; gap: 1.5rem; }
.stage { background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; scroll-margin-top: 100px; }
.stage header { background: var(--ink); color: #e9e3f7; padding: 1.5rem 1.75rem; position: relative; overflow: hidden; }
.stage header::after { content: ''; position: absolute; right: -20px; top: -60%; width: 70px; height: 220%; border-radius: 40px; background: var(--grad); transform: rotate(32deg); opacity: .8; }
.stage header h2 { color: #fff; font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin: .2rem 0 .4rem; max-width: 90%; }
.stage header p { margin: 0; color: #cfc6e4; max-width: 46rem; }
.stage-num { font: 800 .85rem var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: var(--cyan); }
.stage-cols { display: grid; grid-template-columns: repeat(3, 1fr); }
.stage-cols > div { padding: 1.4rem 1.6rem; border-top: 1px solid var(--line); }
.stage-cols > div + div { border-left: 1px solid var(--line); }
.stage-cols h3 { font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; color: var(--violet); }
.stage-cols ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .45rem; font-size: 1rem; line-height: 1.5; }
.stage-cols .goals { list-style: none; padding: 0; }
.stage-cols .goals li { background: var(--mist); border-radius: 10px; padding: .55rem .75rem; }
.note { color: var(--muted); font-size: 1rem; margin-top: 1rem; }
.toc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.toc > div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.toc b { display: block; font: 800 1.4rem var(--font-head); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: .4rem; text-transform: uppercase; letter-spacing: .04em; }
.toc p { margin: 0; color: var(--text); }
.fuentes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; counter-reset: fuente; }
.fuentes li { counter-increment: fuente; background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--c); border-radius: 14px; padding: 1rem 1.1rem; font: 700 1rem/1.35 var(--font-head); color: var(--ink); }
.fuentes li::before { content: counter(fuente, decimal-leading-zero); display: block; font-size: .85rem; color: var(--c); margin-bottom: .3rem; }
.f-personas { --c: #0a7d78; } .f-privado { --c: #5b2a93; } .f-filantropia { --c: #2f5fc4; } .f-propia { --c: #b7791f; }
.fuentes-leyenda { list-style: none; padding: 0; margin: 1.25rem 0 0; display: flex; flex-wrap: wrap; gap: 1.25rem; font-size: .95rem; color: var(--muted); }
.fuentes-leyenda li::before { content: ''; display: inline-block; width: .8rem; height: .8rem; border-radius: 3px; background: var(--c); margin-right: .45rem; vertical-align: -1px; }
.method-4 { grid-template-columns: repeat(4, 1fr); }
.steps-plain { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.steps-plain > div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.steps-plain strong { display: block; font-family: var(--font-head); color: var(--ink); margin-bottom: .3rem; }
.steps-plain span { color: var(--muted); font-size: 1rem; }
@media (max-width: 960px) {
  .context-stats, .route-dark, .toc, .method-4 { grid-template-columns: 1fr 1fr; }
  .stage-cols { grid-template-columns: 1fr; }
  .stage-cols > div + div { border-left: 0; }
  .fuentes, .steps-plain { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .context-stats, .route-dark, .toc, .method-4, .steps-plain { grid-template-columns: 1fr; }
}

/* =====================================================================
   Rediseño visual v3 (2026-11-17): referencia wvi.org pedida por el cliente.
   Más imagen que texto, formas orgánicas en lugar de cuadrículas.
   ===================================================================== */

/* ---------- Encabezado en dos franjas ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: none; backdrop-filter: none; border: 0; box-shadow: 0 6px 24px -18px rgba(27,16,51,.6); }
.topbar { background: var(--purple); }
.topbar-row { display: flex; align-items: center; gap: 1rem; min-height: 78px; }
.topbar .brand-text strong, .topbar .brand-text small { color: #fff; }
.brand-text sup { font-size: .75em; letter-spacing: 0; margin-left: .05em; vertical-align: .35em; }
.topbar .header-actions { margin-left: auto; display: flex; gap: .75rem; }
.btn-light-solid { background: #fff; color: var(--purple); }
.btn-light-solid:hover { background: var(--mist); color: var(--purple); }
.navbar { background: #fff; border-bottom: 1px solid var(--line); }
.navbar-row { display: flex; justify-content: flex-end; min-height: 54px; align-items: center; }
.navbar .main-nav { margin-left: 0; gap: .4rem; }
.navbar .main-nav > a, .navbar .has-sub > button { font: 700 .86rem var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); padding: .6rem .85rem; }
.navbar .submenu { right: 0; left: auto; }
.donate-mobile { display: none; margin-left: auto; }
.btn-sm { min-height: 40px; padding: .45rem 1rem; font-size: .92rem; }
.topbar .menu-toggle { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
@media (max-width: 1060px) {
  .navbar, .topbar .header-actions { display: none; }
  .donate-mobile { display: inline-flex; }
  .topbar .menu-toggle { display: inline-flex; margin-left: .5rem; }
  .topbar-row { min-height: 70px; }
  .mobile-panel { inset: 70px 0 0; }
}

/* ---------- Hero con foto y panel translúcido ---------- */
.hero-photo { position: relative; min-height: min(82vh, 720px); display: flex; align-items: center; background: var(--img) center right / cover no-repeat, var(--ink); isolation: isolate; overflow: hidden; }
.hero-photo::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(27,16,51,.25) 0%, rgba(27,16,51,0) 60%); }
.hero-panel { position: relative; max-width: 590px; margin: 3rem 0; padding: clamp(1.75rem, 4vw, 3rem); background: rgba(255,255,255,.9); backdrop-filter: blur(6px); border-radius: 8px 48px 8px 48px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.5); }
.hero-panel::before { content: ''; position: absolute; left: 0; top: 2.2rem; bottom: 2.2rem; width: 6px; border-radius: 0 6px 6px 0; background: var(--grad); }
.hero-panel h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); text-transform: uppercase; color: var(--purple); line-height: 1.02; letter-spacing: -.01em; margin-bottom: 1rem; }
.hero-panel p { font-size: 1.2rem; color: var(--text); margin-bottom: 0; }

/* ---------- Franja de cifras que se monta sobre el hero ---------- */
.impact-strip { position: relative; z-index: 2; margin: -3.25rem 0 0 auto; width: min(100%, 860px); display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border-radius: 999px; box-shadow: var(--shadow); padding: 1.25rem 2rem; }
.impact-strip div { text-align: center; padding: 0 .5rem; }
.impact-strip div + div { border-left: 1px solid var(--line); }
.impact-strip strong { display: block; font: 800 clamp(1.5rem, 3vw, 2.2rem) var(--font-head); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.1; }
.impact-strip span { font-size: .95rem; color: var(--muted); }

/* ---------- Formas orgánicas ---------- */
.blob { margin: 0; overflow: hidden; background: var(--mist); }
.blob img { width: 100%; height: 100%; object-fit: cover; }
.blob-a { border-radius: 62% 38% 46% 54% / 48% 40% 60% 52%; }
.blob-b { border-radius: 42% 58% 60% 40% / 55% 45% 55% 45%; }
.blob-c { border-radius: 55% 45% 38% 62% / 42% 58% 42% 58%; }
.blob-tall { border-radius: 46% 54% 40% 60% / 36% 40% 60% 64%; aspect-ratio: 11 / 13; }
.blob-portrait { border-radius: 50% 50% 46% 54% / 44% 44% 56% 56%; aspect-ratio: 9 / 11; }
.title-center, .sub-center { text-align: center; }
.sub-center { color: var(--muted); font-size: 1.2rem; margin-top: -.25rem; }
.section-ink .sub-center { color: #cfc6e4; }

/* ---------- Pilares (escalonados, sin rejilla rígida) ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); margin-top: 2.5rem; align-items: start; }
.pillar { text-decoration: none; color: inherit; text-align: center; }
.pillar .blob { aspect-ratio: 9 / 11; transition: transform .35s, border-radius .6s; }
.pillar:hover .blob { transform: translateY(-6px) rotate(-1deg); border-radius: 50%; }
.pillar h3 { margin: 1.25rem 0 .3rem; font-size: 1.35rem; }
.pillar p { color: var(--muted); margin: 0; }
.pillar-down { margin-top: 4rem; }

/* ---------- Logos en movimiento ---------- */
.allies-band { padding: 2.5rem 0 3rem; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee .allies-list { flex-wrap: nowrap; width: max-content; animation: deslizar 60s linear infinite; justify-content: flex-start; }
.marquee:hover .allies-list { animation-play-state: paused; }
@keyframes deslizar { to { transform: translateX(-50%); } }

/* ---------- Bloque imagen + texto ---------- */
.feature { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.feature-rev { grid-template-columns: 1fr 1.05fr; }
.big-figures { display: grid; gap: 1.1rem; margin: 1.75rem 0; }
.big-figures div { display: grid; grid-template-columns: auto 1fr; column-gap: 1.1rem; align-items: baseline; }
.big-figures strong { grid-row: span 2; font: 800 clamp(1.7rem, 3.4vw, 2.6rem) var(--font-head); color: var(--purple); min-width: 7ch; }
.big-figures span { font-size: 1.05rem; }
.big-figures small { color: var(--muted); font-size: .82rem; }

/* ---------- Ruta Xpert como recorrido ---------- */
.route-section { overflow: hidden; }
.route-path { list-style: none; padding: 0; margin: 3rem 0 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: .5rem; position: relative; }
.route-path::before { content: ''; position: absolute; left: 8%; right: 8%; top: 46px; height: 4px; border-radius: 4px; background: var(--grad); opacity: .7; }
.route-path li { text-align: center; position: relative; }
.route-path li:nth-child(even) { margin-top: 3.5rem; }
.route-path a { display: flex; flex-direction: column; align-items: center; gap: .45rem; text-decoration: none; color: #fff; }
.route-path .node { width: 92px; height: 92px; border-radius: 50%; border: 3px solid transparent; background-image: linear-gradient(var(--ink-2), var(--ink-2)), var(--grad); background-origin: border-box; background-clip: padding-box, border-box; display: grid; place-items: center; color: var(--cyan); transition: transform .25s; }
.route-path a:hover .node { transform: scale(1.08); }
.route-path .node svg { width: 38px; height: 38px; }
.route-path b { font: 800 .9rem var(--font-head); color: var(--cyan); letter-spacing: .1em; }
.route-path .label { font: 700 1rem/1.25 var(--font-head); max-width: 12ch; }

/* ---------- Fundador ---------- */
.founder-v { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.founder-v h2 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); margin-bottom: .2rem; }
.role { color: var(--violet); font-weight: 600; }
.chips { list-style: none; padding: 0; margin: 1.25rem 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li { border: 1px solid var(--line); border-radius: 999px; padding: .4rem 1rem; font: 700 .95rem var(--font-head); color: var(--purple); background: #fff; }

/* ---------- Collage de formación ---------- */
.collage { position: relative; aspect-ratio: 1 / .9; }
.collage img { position: absolute; object-fit: cover; box-shadow: var(--shadow); }
.collage .c1 { left: 0; top: 6%; width: 72%; height: 58%; border-radius: 34px 34px 34px 6px; }
.collage .c2 { right: 0; top: 0; width: 38%; aspect-ratio: 1; height: auto; border-radius: 50%; border: 6px solid var(--mist); }
.collage .c3 { right: 8%; bottom: 0; width: 52%; height: 44%; border-radius: 6px 34px 34px 34px; border: 6px solid var(--mist); }

/* ---------- Banda de meta con foto ---------- */
.goal-band { position: relative; isolation: isolate; color: #fff; text-align: center; padding-block: clamp(4rem, 9vw, 7rem); background: var(--img) center / cover no-repeat, var(--ink); clip-path: polygon(0 6%, 100% 0, 100% 94%, 0 100%); }
.goal-band::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(135deg, rgba(61,36,116,.88), rgba(27,16,51,.82)); }
.goal-band h2 { color: #fff; }
.goal-figures { display: flex; justify-content: center; flex-wrap: wrap; gap: clamp(2rem, 7vw, 6rem); margin-top: 1.5rem; }
.goal-figures strong { display: block; font: 800 clamp(2.8rem, 7vw, 4.8rem) var(--font-head); line-height: 1; background: linear-gradient(135deg, #fff, var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.goal-figures span { font-size: 1.1rem; color: #e9e3f7; }

/* ---------- Donación con foto ---------- */
.donate-visual { position: relative; }
.donate-visual .blob { max-width: 420px; }
.donate-visual h2 { position: absolute; left: 45%; bottom: 8%; right: -4%; background: var(--yellow); color: var(--ink); padding: 1.1rem 1.4rem; border-radius: 6px 28px 6px 28px; font-size: clamp(1.25rem, 2.4vw, 1.7rem); margin: 0; box-shadow: var(--shadow); }

/* ---------- Portadas del blog con foto ---------- */
.post-cover { padding: 0; }
.post-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.post-cover::before { z-index: 1; opacity: .85; }
.post-cover span { position: absolute; left: 1rem; bottom: 1rem; z-index: 2; background: var(--ink); padding: .3rem .7rem; border-radius: 999px; }
.post-card { border-radius: 8px 28px 8px 28px; }

/* ---------- Encabezado de páginas internas con foto ---------- */
.page-hero { background: linear-gradient(100deg, rgba(27,16,51,.95) 0%, rgba(27,16,51,.82) 45%, rgba(27,16,51,.45) 100%), url("/assets/img/ia/pagina-servicios.jpg") center / cover no-repeat, var(--ink); }
.page-hero::before { opacity: .55; }

@media (max-width: 960px) {
  .pillars, .feature, .feature-rev, .founder-v { grid-template-columns: 1fr; }
  .pillar-down { margin-top: 0; }
  .pillars { gap: 2.5rem; }
  .pillar .blob { max-width: 340px; margin-inline: auto; }
  .route-path { grid-template-columns: repeat(3, 1fr); row-gap: 2rem; }
  .route-path::before { display: none; }
  .route-path li:nth-child(even) { margin-top: 0; }
  .founder-v .blob { max-width: 320px; }
  .donate-visual h2 { position: relative; left: auto; right: auto; bottom: auto; margin-top: -2rem; }
}
@media (max-width: 640px) {
  .hero-photo { min-height: 0; background-position: 70% center; align-items: flex-end; padding-top: 14rem; }
  .hero-panel { margin: 0 0 2rem; }
  .impact-strip { grid-template-columns: 1fr; border-radius: 28px; margin-top: 0; padding: 1rem; gap: .75rem; }
  .impact-strip div + div { border-left: 0; border-top: 1px solid var(--line); padding-top: .75rem; }
  .route-path { grid-template-columns: repeat(2, 1fr); }
  .collage { aspect-ratio: 1 / 1; }
  .goal-band { clip-path: polygon(0 3%, 100% 0, 100% 97%, 0 100%); }
}
@media (prefers-reduced-motion: reduce) { .marquee .allies-list { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } }

/* =====================================================================
   v4 (2026-11-17): las fotos son las protagonistas (pedido del cliente).
   ===================================================================== */

/* Hero más alto y panel más compacto */
.hero-photo { min-height: min(92vh, 860px); }
.hero-panel { max-width: 520px; padding: clamp(1.5rem, 3vw, 2.4rem); background: rgba(255,255,255,.88); }
.hero-panel h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.hero-panel p { font-size: 1.1rem; }

/* Pilares: fotos grandes con el texto encima */
.pillars-section { padding-bottom: 0; }
.photo-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 2rem; padding: 0 10px; }
.photo-card { position: relative; display: block; height: min(78vh, 680px); overflow: hidden; border-radius: 6px; text-decoration: none; isolation: isolate; }
.photo-card:first-child { border-radius: 6px 6px 6px 60px; }
.photo-card:last-child { border-radius: 6px 60px 6px 6px; }
.photo-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; z-index: -2; }
.photo-card::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(27,16,51,0) 45%, rgba(27,16,51,.88) 100%); }
.photo-card:hover img { transform: scale(1.06); }
.pc-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.75rem; color: #fff; display: flex; flex-direction: column; gap: .3rem; }
.pc-text b { font: 800 clamp(1.4rem, 2.4vw, 1.9rem)/1.1 var(--font-head); }
.pc-text span { color: #e9e3f7; font-size: 1.02rem; }
.pc-text::after { content: '→'; font: 800 1.4rem var(--font-head); color: var(--cyan); margin-top: .3rem; transition: transform .25s; }
.photo-card:hover .pc-text::after { transform: translateX(6px); }

/* Bloques con foto a media pantalla, de borde a borde */
.bleed { display: grid; grid-template-columns: 1fr 1fr; min-height: min(90vh, 820px); background: var(--mist); }
.bleed-img { margin: 0; position: relative; overflow: hidden; border-radius: 0 120px 0 0; }
.bleed-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bleed-text { align-self: center; padding: clamp(2.5rem, 6vw, 5rem) clamp(16px, 6vw, 6rem); max-width: 680px; }
.bleed-rev { background: #fff; }
.bleed-rev .bleed-text { justify-self: end; }
.bleed-mosaic { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; padding: 10px 10px 10px 0; }
.bleed-mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.bleed-mosaic .m1 { grid-row: span 2; border-radius: 120px 6px 6px 6px; }
.bleed-mosaic .m3 { border-radius: 6px 6px 60px 6px; }

/* Banda de meta: la foto se ve más */
.goal-band { padding-block: clamp(6rem, 14vw, 10rem); }
.goal-band::before { background: linear-gradient(135deg, rgba(61,36,116,.62), rgba(27,16,51,.55)); }
.goal-figures strong { background: none; color: #fff; -webkit-background-clip: initial; background-clip: initial; text-shadow: 0 4px 24px rgba(0,0,0,.35); }
.goal-band h2 { text-shadow: 0 2px 16px rgba(0,0,0,.35); }

/* Donación con foto de fondo */
.donate-hero { position: relative; isolation: isolate; background: var(--img) center / cover no-repeat, var(--ink); padding-block: clamp(5rem, 11vw, 8rem); }
.donate-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(27,16,51,.7) 0%, rgba(27,16,51,.25) 55%, rgba(27,16,51,.1) 100%); }
.donate-hero h2 { color: #fff; font-size: clamp(2rem, 4.2vw, 3.2rem); max-width: 13em; text-shadow: 0 2px 18px rgba(0,0,0,.35); }

/* Blog: portadas grandes, sin adorno encima de la foto */
.post-cover { aspect-ratio: 4 / 3; }
.post-cover::before { display: none; }

@media (max-width: 960px) {
  .photo-cards { grid-template-columns: 1fr; }
  .photo-card { height: 70vh; border-radius: 6px !important; }
  .bleed, .bleed-rev { grid-template-columns: 1fr; min-height: 0; }
  .bleed-img { aspect-ratio: 4 / 3; border-radius: 0 80px 0 0; }
  .bleed-rev .bleed-mosaic { order: -1; padding: 10px; aspect-ratio: 1 / 1; }
  .bleed-rev .bleed-text { justify-self: start; }
}

/* ---------- Transparencia (accountability) ---------- */
.footer-bottom .link-transparencia { color: var(--cyan); font-weight: 700; }
.doc-head { background: var(--mist); border-radius: 6px 28px 6px 28px; padding: 1.1rem 1.4rem; margin-bottom: 1.75rem; }
.doc-head p { margin: 0; }
.docs { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.docs li { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: 6px 22px 6px 22px; padding: 1.25rem 1.4rem; }
.doc-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--mist); color: var(--violet); display: grid; place-items: center; }
.doc-icon svg { width: 24px; height: 24px; }
.docs h2 { font-size: 1.12rem; margin: 0 0 .25rem; }
.docs p { margin: 0 0 .6rem; color: var(--muted); font-size: 1rem; }
.doc-estado { display: inline-block; font: 700 .85rem var(--font-head); border-radius: 999px; padding: .25rem .75rem; text-decoration: none; }
.doc-estado.listo { background: var(--violet); color: #fff; }
.doc-estado.listo:hover { background: var(--purple); color: #fff; }
.doc-estado.pendiente-doc { background: #fff3a6; color: #4a3b00; }
@media (max-width: 760px) { .docs { grid-template-columns: 1fr; } }

/* ---------- Revisión 1 de Andrés (2026-11-17): logo oficial, menú nuevo, cursos ---------- */
/* Banda superior blanca con el logo oficial (fondo claro: el logo lleva morado oscuro) */
.topbar { background: #fff; border-bottom: 1px solid var(--line); }
.topbar-row { min-height: 92px; }
.brand img { width: auto; height: 68px; }
.topbar .menu-toggle { background: #fff; color: var(--purple); border-color: var(--line); }
.topbar .header-actions .btn-primary { white-space: nowrap; }
/* Banda del menú en morado */
.navbar { background: var(--purple); border-bottom: 0; }
.navbar-row { justify-content: center; }
.navbar .main-nav { gap: .1rem; }
.navbar .main-nav > a, .navbar .has-sub > button { color: #fff; font-size: .8rem; letter-spacing: .07em; padding: .7rem .8rem; background: transparent; }
.navbar .main-nav > a:hover, .navbar .has-sub > button:hover, .navbar .main-nav a[aria-current="page"] { color: var(--purple); background: #fff; }
.navbar .submenu { left: 0; right: auto; }
@media (max-width: 1100px) { .navbar .main-nav > a, .navbar .has-sub > button { font-size: .74rem; padding: .65rem .55rem; letter-spacing: .04em; } }
@media (max-width: 980px) { .topbar-row { min-height: 74px; } .brand img { height: 52px; } }
/* Pie: el logo va sobre una placa blanca para conservar sus colores oficiales */
.site-footer .brand { background: #fff; border-radius: 6px 22px 6px 22px; padding: .7rem 1.1rem; }
.site-footer .brand img { height: 64px; }

/* Cifras personales del fundador */
.impact-strip { flex-wrap: wrap; }
.impact-caption { flex-basis: 100%; width: 100%; grid-column: 1 / -1; margin: 0 0 .25rem; text-align: center; font: 700 .85rem var(--font-head); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.impact-caption a { color: var(--violet); }

/* Cifras de contexto con fuente enlazada */
.big-figures small a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* Aprende haciendo: dos formas de acompañar */
.two-ways { display: grid; gap: .9rem; margin: 1.25rem 0 1.5rem; }
.two-ways > div { background: rgba(255,255,255,.75); border-left: 5px solid var(--cyan); border-radius: 4px 18px 4px 18px; padding: 1rem 1.2rem; }
.two-ways b { display: block; font: 800 1.08rem var(--font-head); color: var(--purple); margin-bottom: .25rem; }
.two-ways span { color: var(--text); }
.two-ways-light { grid-template-columns: repeat(2, 1fr); }
.two-ways-light > div { background: #fff; }
@media (max-width: 760px) { .two-ways-light { grid-template-columns: 1fr; } }

/* Cursos */
.course-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.course { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 6px 26px 6px 26px; padding: 1.4rem 1.4rem 1.3rem; }
.course .num { display: inline-block; font: 800 .8rem var(--font-head); letter-spacing: .1em; color: #fff; background: var(--grad); border-radius: 999px; padding: .2rem .65rem; margin-bottom: .7rem; }
.course h2, .course h3 { font-size: 1.15rem; margin: 0 0 .4rem; color: var(--purple); }
.course p { margin: 0; color: var(--muted); font-size: 1rem; }
.impact-strip:has(.impact-caption) { border-radius: 28px; padding-top: 1rem; }
.hero-panel h1 { font-size: clamp(1.9rem, 3.5vw, 3rem); line-height: 1.05; }
.brand img { height: 76px; }
@media (max-width: 980px) { .brand img { height: 54px; } }
/* Cifras de contexto: número arriba, texto debajo (los números largos aplastaban la columna de texto) */
.big-figures { gap: 1.6rem; }
.big-figures div { display: block; border-left: 4px solid var(--cyan); padding-left: 1rem; }
.big-figures strong { display: block; min-width: 0; line-height: 1.05; margin-bottom: .3rem; }
.big-figures span { display: block; max-width: 46ch; }
.big-figures small { display: block; margin-top: .3rem; }
/* Fotos de fondo como <img> (editables desde /mi-sitio; antes eran background-image por variable CSS) */
.hero-photo, .goal-band, .donate-hero { background: var(--ink); }
.bg-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-photo .bg-photo { object-position: center right; }
@media (max-width: 760px) { .hero-photo { padding-top: calc(56.25vw - 1.5rem); } .hero-photo .bg-photo { height: 56.25vw; bottom: auto; object-position: center top; } }
/* Equipo (lista editable desde /mi-sitio) */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.5rem; }
.member { background: #fff; border: 1px solid var(--line); border-radius: 6px 26px 6px 26px; padding: 1.4rem; }
.member img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px 20px 4px 20px; margin-bottom: .9rem; }
.member-avatar { width: 72px; height: 72px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font: 800 1.7rem var(--font-head); margin-bottom: .9rem; }
.member h3 { font-size: 1.15rem; color: var(--purple); margin: 0 0 .3rem; }
.member p { color: var(--muted); font-size: 1rem; margin: 0; white-space: pre-line; }
/* Equipo (lista editable desde /mi-sitio) */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.5rem; }
.member { background: #fff; border: 1px solid var(--line); border-radius: 6px 26px 6px 26px; padding: 1.4rem; }
.member img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px 20px 4px 20px; margin-bottom: .9rem; }
.member-avatar { width: 72px; height: 72px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font: 800 1.7rem var(--font-head); margin-bottom: .9rem; }
.member h3 { font-size: 1.15rem; color: var(--purple); margin: 0 0 .3rem; }
.member p { color: var(--muted); font-size: 1rem; margin: 0; white-space: pre-line; }
/* Encabezado de páginas internas: foto como <img> (editable en /mi-sitio) + velo morado encima */
.page-hero { background: var(--ink); }
.page-hero .bg-photo { z-index: -3; }
.page-hero::after { content: ''; position: absolute; inset: 0; z-index: -2; background: linear-gradient(100deg, rgba(27,16,51,.95) 0%, rgba(27,16,51,.82) 45%, rgba(27,16,51,.45) 100%); }
/* Vista previa del editor /mi-sitio: cinta de aliados quieta y atajos para abrir listas */
.marquee--quieta { mask-image: none; -webkit-mask-image: none; }
.marquee--quieta .allies-list { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
.editar-chip { display: inline-flex; align-items: center; gap: .4rem; margin: 0 0 1rem; padding: .45rem .9rem; border: 2px dashed #2563eb; border-radius: 999px; background: #eff4ff; color: #1d4ed8; font: 700 .9rem var(--font-head); cursor: pointer; }
/* Perfil con la foto a la derecha (segunda persona del equipo) */
@media (min-width: 961px) { .founder-v--rev { grid-template-columns: 1.25fr .75fr; } .founder-v--rev > figure { order: 2; } }
#lina-marulanda { padding-top: clamp(2rem, 5vw, 4rem); }

/* ---------- Selector de idioma ES / EN (2026-11-20) ---------- */
.lang-switch { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 .7rem; border: 1.5px solid currentColor; border-radius: 999px; color: var(--purple); font: 700 .85rem var(--font-head); letter-spacing: .08em; text-decoration: none; align-self: center; }
.lang-switch:hover, .lang-switch:focus-visible { background: var(--purple); color: #fff; border-color: var(--purple); }
.lang-switch--movil { display: none; }
@media (max-width: 1060px) {
  .lang-switch--movil { display: inline-flex; margin-left: auto; min-height: 40px; min-width: 40px; }
  .lang-switch--movil + .donate-mobile { margin-left: .5rem; }
}
.lang-switch { gap: .4rem; }
.lang-switch .flag { width: 22px; height: 15px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(27,16,51,.18); flex: none; }
