/*
Theme Name: Líderes 2030
Theme URI: https://lideres2030.org/
Author: Equipo Líderes 2030
Description: Tema propio para Líderes 2030, independiente de Elementor.
Version: 0.8.1
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: lideres2030
*/

:root {
  --ink: #261c31;
  --muted: #61586a;
  --paper: #fffdf8;
  --white: #fff;
  --brand: #b21669;
  --brand-dark: #7d124f;
  --lime: #1ddb27;
  --line: #ead9e3;
  --soft: #f8f1f5;
  --radius: 24px;
  --max: 1200px;
  --shadow: 0 18px 50px rgb(38 28 49 / 8%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.65 "Roboto", Arial, sans-serif; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -.045em; }
h1 { max-width: 11ch; font-size: clamp(3.8rem, 6.8vw, 6.6rem); font-weight: 850; }
h2 { max-width: 16ch; font-size: clamp(2.5rem, 4.5vw, 4.5rem); font-weight: 820; }
h3 { font-size: clamp(1.4rem, 1.8vw, 1.75rem); }
.wrap { width: min(calc(100% - 64px), var(--max)); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 200; padding: 10px 16px; background: var(--white); color: var(--ink); border-radius: 8px; }
.skip-link:focus { top: 16px; }
.eyebrow { display: inline-block; color: var(--brand); font-size: .78rem; font-weight: 850; letter-spacing: .15em; line-height: 1.3; text-transform: uppercase; }
.lead { font-size: clamp(1.17rem, 1.65vw, 1.42rem); line-height: 1.52; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .65rem; min-height: 54px; padding: 12px 24px; border: 2px solid transparent; border-radius: 999px; background: var(--lime); color: var(--ink); font-weight: 800; line-height: 1.2; text-align: center; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgb(10 55 13 / 20%); }
.button.secondary { background: transparent; border-color: currentColor; }
:is(.button, a, button, input, select, textarea, summary):focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; }

/* Navigation */
.site-header { position: sticky; isolation: isolate; top: 0; z-index: 30; margin-bottom: -36px; padding-bottom: 36px; border-bottom: 0; background: transparent; }
.site-header::before, .site-header::after { position: absolute; inset: 0; content: ""; pointer-events: none; -webkit-mask: url("assets/header-mask.svg") center / 100% 100% no-repeat; mask: url("assets/header-mask.svg") center / 100% 100% no-repeat; }
.site-header::before { z-index: 0; transform: translateY(2px); background: rgb(38 28 49 / 6%); filter: blur(18px); }
.site-header::after { z-index: 1; background: rgb(255 253 248 / 90%); backdrop-filter: blur(16px); }
body.admin-bar .site-header { top: 32px; }
.header-inner { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 82px; }
.brand { color: var(--ink); font-size: 1.28rem; font-weight: 900; letter-spacing: -.055em; white-space: nowrap; text-decoration: none; }
.brand strong { color: var(--brand); }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); }
.nav a { position: relative; padding-block: 12px; font-size: .94rem; font-weight: 740; text-decoration: none; transition: color .2s ease; }
.nav a:hover { color: var(--brand); }
.nav a:last-child { padding: 10px 20px; border: 2px solid var(--brand); border-radius: 999px; color: var(--brand); }
.nav a:last-child:hover { background: var(--brand); color: var(--white); }
.menu-toggle { display: none; place-items: center; width: 44px; height: 44px; padding: 8px; border: 0; border-radius: 0; background: transparent; color: var(--brand); }
.menu-toggle svg { display: block; width: 26px; height: 26px; fill: none; stroke: var(--brand); stroke-linecap: round; stroke-width: 2.6; }
.menu-toggle:hover { color: var(--brand); }

/* Hero */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--brand); color: var(--white); }
.hero::before { position: absolute; z-index: -1; right: -15%; top: -42%; width: 46vw; aspect-ratio: 1; border: 1px solid rgb(255 255 255 / 9%); border-radius: 50%; box-shadow: 0 0 0 76px rgb(255 255 255 / 2.5%), 0 0 0 152px rgb(255 255 255 / 1.2%); content: ""; pointer-events: none; }
.hero .eyebrow { color: var(--lime); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 6vw, 90px); align-items: center; min-height: 610px; padding-block: clamp(58px, 7vw, 92px); }
.hero h1 { margin: 20px 0 25px; text-wrap: balance; }
.hero .lead { max-width: 33rem; margin-bottom: 0; color: rgb(255 255 255 / 92%); }
.hero-actions { display: grid; grid-template-columns: max-content max-content; align-items: center; justify-content: start; gap: 16px 24px; margin-top: 36px; }
.hero-actions .button { grid-column: 1 / -1; justify-self: start; }
.hero :is(a, button):focus-visible { outline-color: var(--lime); }
.hero-meta { display: inline-flex; align-items: center; gap: 8px; font-size: .91rem; font-weight: 680; color: rgb(255 255 255 / 92%); }
.meta-gif { width: 29px; height: 29px; object-fit: contain; }
.meta-gif, .phase-heading img, .assist-button img { transform-origin: 50% 50%; will-change: transform; }
.hero-meta .meta-gif[src*="location"] { animation: icon-bob 2.8s ease-in-out infinite; }
.hero-meta .meta-gif[src*="date"] { animation: icon-sway 4.2s ease-in-out infinite; }
.hero-media { position: relative; min-height: 450px; overflow: hidden; border: 4px solid rgb(255 255 255 / 22%); border-radius: 220px 30px 180px 30px; background: var(--brand-dark); box-shadow: 0 28px 55px rgb(58 7 39 / 24%); }
.hero-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: hero-drift 18s ease-in-out infinite alternate; }
.hero-media::after { position: absolute; inset: 0; background: linear-gradient(155deg, rgb(178 22 105 / 25%), transparent 62%); content: ""; pointer-events: none; }
.hero-media .badge { position: absolute; z-index: 2; right: auto; bottom: 22px; left: 50%; display: block; width: max-content; max-width: calc(100% - 48px); padding: 12px 18px; transform: translateX(-50%); border-radius: 999px; background: var(--lime); color: var(--ink); font-size: .82rem; font-weight: 850; line-height: 1.35; text-align: center; white-space: normal; overflow-wrap: anywhere; box-shadow: 0 8px 20px rgb(0 0 0 / 15%); }

/* Partners and sections */
.partner-strip { padding: 30px 0 34px; border-bottom: 1px solid var(--line); background: var(--white); }
.partner-strip-inner { display: flex; align-items: center; justify-content: center; gap: 26px clamp(28px, 4vw, 62px); flex-wrap: wrap; }
.partner-strip-label { max-width: none; margin: 0 auto 22px; color: var(--brand-dark); text-align: center; }
.partner-strip img { max-width: 170px; max-height: 50px; object-fit: contain; filter: grayscale(1) brightness(.42); opacity: .78; }
section.content-section { padding: clamp(68px, 7vw, 100px) 0; }
.section-heading { max-width: 800px; margin-bottom: 42px; }
.section-heading h2 { margin: 14px 0 18px; }
.section-heading p { max-width: 660px; margin-bottom: 0; color: var(--muted); font-size: 1.1rem; }
.intro-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(30px, 7vw, 100px); align-items: start; margin-bottom: 52px; }
.intro-grid h2 { margin: 17px 0 0; }
.intro-grid .lead { margin-bottom: 20px; font-weight: 650; }
.intro-grid p:last-child { max-width: 620px; margin-bottom: 0; color: var(--muted); }
.phase-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.phase { display: flex; flex-direction: column; min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 12px 35px rgb(38 28 49 / 4%); }
.phase-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; color: var(--brand); font-size: .79rem; font-weight: 900; letter-spacing: .13em; }
.phase-heading img { width: 46px; height: 46px; object-fit: contain; }
.phase-heading img[src*="idea"] { animation: icon-pulse 3.2s ease-in-out infinite; }
.phase-heading img[src*="mentoring"] { animation: icon-bob 3.5s ease-in-out infinite; }
.phase-heading img[src*="award"] { animation: icon-sway 4s ease-in-out infinite; }
.phase img.phase-photo { width: 100%; aspect-ratio: 1.45; margin-bottom: 22px; border-radius: 14px; object-fit: cover; }
.phase h3 { margin-bottom: 12px; }
.phase p { margin-bottom: 0; color: var(--muted); font-size: .97rem; }
.alt { background: var(--soft); }

/* Challenges */
.challenge-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; padding: 6px; width: fit-content; max-width: 100%; border: 1px solid var(--line); border-radius: 999px; background: var(--white); }
.challenge-tabs button { min-height: 48px; padding: 10px 19px; border: 0; border-radius: 999px; background: transparent; color: var(--ink); font-size: .93rem; font-weight: 770; line-height: 1.2; }
.challenge-tabs button:hover { background: var(--soft); }
.challenge-tabs button[aria-selected="true"] { background: var(--ink); color: var(--white); }
.challenge-panel[hidden] { display: none; }
.challenge-intro { max-width: 800px; margin-bottom: 0; color: var(--muted); font-size: 1.07rem; }
.challenge-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; margin-top: 28px; }
.challenge-list details { min-width: 0; padding: 0 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); transition: border-color .2s ease, box-shadow .2s ease; }
.challenge-list details:hover, .challenge-list details[open] { border-color: rgb(178 22 105 / 48%); box-shadow: 0 8px 22px rgb(38 28 49 / 5%); }
.challenge-list summary { position: relative; padding: 21px 32px 21px 0; cursor: pointer; font-weight: 800; line-height: 1.35; list-style: none; }
.challenge-list summary::-webkit-details-marker { display: none; }
.challenge-list summary::after { position: absolute; right: 0; top: 18px; color: var(--brand); content: "+"; font-size: 1.5rem; font-weight: 500; line-height: 1; }
.challenge-list details[open] summary::after { content: "−"; }
.challenge-list details p { margin-bottom: 22px; color: var(--muted); }

/* Community, Agenda 2030 and gallery */
.logo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.logo-grid div { display: grid; place-items: center; min-height: 126px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.logo-grid img { max-width: 100%; max-height: 78px; object-fit: contain; }
.agenda { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(30px, 7vw, 100px); align-items: center; }
.agenda h2 { margin: 17px 0 0; }
.agenda > p { max-width: 670px; margin: 0; padding-left: 28px; border-left: 4px solid var(--brand); font-size: clamp(1.14rem, 1.7vw, 1.35rem); line-height: 1.6; }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.gallery a { display: block; aspect-ratio: 1.2; overflow: hidden; border-radius: 15px; background: var(--line); }
.gallery a:nth-child(1), .gallery a:nth-child(6) { grid-column: span 2; aspect-ratio: 2.44; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery a:hover img { transform: scale(1.055); }
.gallery-lightbox { position: fixed; width: min(1100px, calc(100vw - 32px)); max-width: none; height: min(88dvh, 860px); max-height: none; padding: 54px 68px 44px; overflow: visible; border: 1px solid rgb(255 255 255 / 18%); border-radius: 22px; background: var(--ink); color: var(--white); box-shadow: 0 24px 90px rgb(0 0 0 / 45%); }
.gallery-lightbox:not([open]) { display: none; }
.gallery-lightbox::backdrop { background: rgb(20 13 25 / 82%); backdrop-filter: blur(5px); }
.gallery-lightbox figure { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; margin: 0; gap: 15px; }
.gallery-lightbox .lightbox-image { display: block; width: 100%; height: calc(100% - 38px); object-fit: contain; }
.lightbox-caption { color: rgb(255 255 255 / 88%); font-size: .92rem; text-align: center; }
.lightbox-close, .lightbox-nav { position: absolute; display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 1px solid rgb(255 255 255 / 35%); border-radius: 50%; background: rgb(38 28 49 / 85%); color: var(--white); font-size: 1.8rem; line-height: 1; transition: background .2s ease, transform .2s ease; }
.lightbox-close:hover, .lightbox-nav:hover { transform: scale(1.06); background: var(--brand); }
.lightbox-close { top: 14px; right: 14px; z-index: 2; }
.lightbox-nav { top: 50%; transform: translateY(-50%); }
.lightbox-nav:hover { transform: translateY(-50%) scale(1.06); }
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }
.lightbox-count { position: absolute; right: 24px; bottom: 12px; margin: 0; color: rgb(255 255 255 / 72%); font-size: .83rem; font-variant-numeric: tabular-nums; }

/* Registration and press */
.registration { position: relative; overflow: hidden; background: var(--ink); color: var(--white); }
.registration::before { position: absolute; left: -150px; bottom: -270px; width: 550px; height: 550px; border: 1px solid rgb(255 255 255 / 10%); border-radius: 50%; box-shadow: 0 0 0 80px rgb(255 255 255 / 3%), 0 0 0 160px rgb(255 255 255 / 2%); content: ""; pointer-events: none; }
.registration .eyebrow { color: var(--lime); }
.registration-grid { position: relative; display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: clamp(32px, 7vw, 100px); align-items: start; }
.registration h2 { margin: 16px 0 24px; }
.registration p { color: #e8dce8; }
.registration a:not(.button) { text-underline-offset: 4px; }
.form-card { padding: clamp(26px, 3vw, 42px); border-radius: var(--radius); background: var(--white); color: var(--ink); box-shadow: var(--shadow); }
.form-card .eyebrow { color: var(--brand); }
.form-card h3 { margin: 16px 0 13px; font-size: clamp(1.65rem, 2.4vw, 2.2rem); }
.form-card p { color: var(--muted); }
.form-card .button { margin-top: 10px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.form-field.full { grid-column: 1 / -1; }
.form-field label, .form-field legend { font-size: .91rem; font-weight: 750; line-height: 1.4; }
.form-field input, .form-field select, .form-field textarea { width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid #b8adba; border-radius: 9px; background: var(--white); color: var(--ink); }
.form-field :is(input, select, textarea):hover { border-color: var(--brand); }
.form-field textarea { min-height: 100px; resize: vertical; }
.form-field fieldset { margin: 0; padding: 0; border: 0; }
.choice { display: flex; align-items: flex-start; gap: 10px; margin: 6px 0; }
.choice input { width: auto; min-height: 0; margin-top: 5px; accent-color: var(--brand); }
.form-actions { margin-top: 24px; }
.notice { padding: 14px 17px; border-radius: 10px; background: #fff2ca; color: #3f3200; }
.notice.success { background: #d9f8d2; color: #173a19; }
.press-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.press-list a { position: relative; display: flex; flex-direction: column; gap: 26px; min-height: 205px; padding: 27px 54px 27px 27px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); font-size: 1.12rem; font-weight: 780; line-height: 1.42; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.press-list a::after { position: absolute; right: 25px; bottom: 20px; color: var(--brand); content: "↗"; font-size: 1.4rem; }
.press-list a:hover { transform: translateY(-4px); border-color: rgb(178 22 105 / 50%); box-shadow: var(--shadow); }
.press-list a span { color: var(--brand); font-size: .77rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }

/* Footer and accessibility controls */
.site-footer { padding: 55px 0; background: #1d1627; color: var(--white); }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.site-footer .brand { color: var(--white); }
.site-footer nav { display: flex; align-items: start; gap: 16px 24px; flex-wrap: wrap; }
.site-footer a { color: var(--white); }
.site-footer nav a { font-size: .9rem; text-underline-offset: 4px; }
.small { color: var(--muted); font-size: .86rem; }
.site-footer .small { margin: 8px 0 0; color: #c9bfd0; }
.cookie-settings-open { padding: 4px 0; border: 0; background: transparent; color: var(--white); font-size: .9rem; text-decoration: underline; text-underline-offset: 4px; }
.cookie-dialog { position: fixed; inset: 0; z-index: 2000; width: min(540px, calc(100vw - 32px)); max-width: none; max-height: min(86dvh, 720px); margin: auto; padding: 0; overflow: auto; border: 1px solid var(--line); border-radius: 20px; background: var(--white); color: var(--ink); box-shadow: 0 24px 80px rgb(20 13 25 / 28%); }
.cookie-dialog:focus { outline: none; }
.cookie-dialog:not([open]) { display: none; }
.cookie-dialog::backdrop { background: rgb(38 28 49 / 42%); backdrop-filter: blur(3px); }
.cookie-card { padding: clamp(22px, 3vw, 30px); border-top: 5px solid var(--brand); border-radius: inherit; }
.cookie-card .eyebrow { margin-bottom: 10px; }
.cookie-card h2 { max-width: none; margin: 0 0 12px; font-size: clamp(1.5rem, 3vw, 1.9rem); letter-spacing: -.035em; }
.cookie-card > p { margin-bottom: 12px; color: var(--muted); font-size: .95rem; line-height: 1.5; }
.cookie-more { display: inline-block; margin-bottom: 18px; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--brand-dark); font-size: .88rem; font-weight: 750; text-decoration: underline; text-underline-offset: 3px; box-shadow: none; }
.cookie-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.cookie-actions button { min-height: 46px; padding: 9px 11px; border: 1.5px solid var(--brand); border-radius: 999px; background: var(--white); color: var(--brand-dark); font-size: .86rem; font-weight: 800; line-height: 1.25; }
.cookie-actions button:hover { background: var(--soft); }
.cookie-actions .cookie-accept { border-color: var(--lime); background: var(--lime); color: var(--ink); }
.cookie-actions .cookie-accept:hover { background: #19c922; }
.cookie-settings[hidden], .cookie-primary-actions[hidden], .cookie-config-actions[hidden] { display: none; }
.cookie-settings { display: grid; gap: 9px; margin: 6px 0 18px; padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.cookie-option { display: flex; align-items: flex-start; gap: 10px; color: var(--ink); font-size: .9rem; line-height: 1.4; }
.cookie-option input { flex: 0 0 auto; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--brand); }
.cookie-option small { display: block; color: var(--muted); font-size: .79rem; }
.cookie-config-actions { grid-template-columns: 1fr 1fr; }
.cookie-config-actions button:first-child { border-color: var(--line); color: var(--ink); }
.reveal-on-scroll { opacity: 0; transform: translateY(20px); transition: opacity .65s ease, transform .65s cubic-bezier(.2,.7,.25,1); transition-delay: var(--reveal-delay, 0ms); }
.reveal-on-scroll.is-visible { opacity: 1; transform: none; }
body.a11y-motion .reveal-on-scroll, html.a11y-motion .reveal-on-scroll { opacity: 1; transform: none; transition: none; }
.assist-tools { position: fixed; z-index: 100; right: 22px; bottom: 22px; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.assist-button { display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 2px solid var(--white); border-radius: 50%; background: var(--brand); box-shadow: 0 4px 18px #16071944; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s; }
#assist-toggle, #back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.assist-button:hover { background: var(--brand-dark); transform: translateY(-2px); }
.assist-button img { width: 38px; height: 38px; border-radius: 50%; }
#assist-toggle img { animation: icon-pulse 3.5s ease-in-out infinite; }
#back-to-top img { animation: icon-bob 2.4s ease-in-out infinite; }
.assist-button:focus-visible, .assist-panel button:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
.assist-panel { width: min(340px, calc(100vw - 32px)); margin-bottom: 3px; padding: 18px; border: 2px solid var(--brand); border-radius: 18px; background: var(--white); color: var(--ink); box-shadow: 0 12px 38px #16071940; }
.assist-panel[hidden] { display: none; }
.assist-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.assist-panel-head h2 { margin: 0; font-size: 1.3rem; }
.assist-close { padding: 4px 8px; border: 0; background: transparent; color: var(--ink); font-size: 1.7rem; line-height: 1; }
.assist-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.assist-actions button { min-height: 42px; padding: 8px; border: 1px solid var(--brand); border-radius: 9px; background: var(--white); color: var(--ink); font-size: .86rem; font-weight: 750; }
.assist-actions button:hover { background: #f8e5f0; }
.assist-note { margin: 12px 0 0; color: #51495a; font-size: .78rem; }
html.a11y-text-large { font-size: 118%; }
html.a11y-text-small { font-size: 92%; }
body.a11y-links a { text-decoration: underline !important; text-decoration-thickness: 3px !important; text-underline-offset: 3px !important; }
body.a11y-motion *, body.a11y-motion *::before, body.a11y-motion *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
html.a11y-motion { scroll-behavior: auto !important; }
body.a11y-contrast { background: #000 !important; color: #fff !important; }
body.a11y-contrast main section, body.a11y-contrast .site-header, body.a11y-contrast .site-footer { background: #000 !important; color: #fff !important; border-color: #fff !important; }
body.a11y-contrast .hero, body.a11y-contrast .registration { background: #000 !important; color: #fff !important; }
body.a11y-contrast .phase, body.a11y-contrast .challenge-list details, body.a11y-contrast .logo-grid div, body.a11y-contrast .form-card, body.a11y-contrast .press-list a { background: #111 !important; color: #fff !important; border-color: #fff !important; }
body.a11y-contrast a, body.a11y-contrast .eyebrow { color: #ff0 !important; }
body.a11y-contrast p, body.a11y-contrast h1, body.a11y-contrast h2, body.a11y-contrast h3, body.a11y-contrast label { color: #fff !important; }
body.a11y-contrast .assist-panel { background: #111 !important; color: #fff !important; }
body.a11y-contrast .assist-actions button { background: #111; color: #ff0; border-color: #ff0; }

@keyframes icon-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes icon-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes icon-sway { 0%, 88%, 100% { transform: rotate(0); } 92% { transform: rotate(-8deg); } 96% { transform: rotate(8deg); } }
@keyframes hero-drift { from { transform: scale(1.02) translate3d(0, 0, 0); } to { transform: scale(1.09) translate3d(-1.4%, 1%, 0); } }

@media (max-width: 1000px) {
  .partner-strip-inner { justify-content: flex-start; }
  .partner-strip .eyebrow { flex-basis: auto; max-width: none; }
  .hero-grid { gap: 35px; }
  .hero-media { min-height: 410px; }
  .phase-grid { gap: 12px; }
  .phase { padding: 18px; }
}
@media (max-width: 850px) {
  .site-header::before, .site-header::after { -webkit-mask-image: url("assets/header-mask-mobile.svg"); mask-image: url("assets/header-mask-mobile.svg"); }
  body.admin-bar .site-header { top: 46px; }
  .header-inner { min-height: 72px; }
  .menu-toggle { display: grid; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; align-items: stretch; flex-direction: column; gap: 0; padding: 12px 32px 24px; border-bottom: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow); }
  .nav[data-open="true"] { display: flex; }
  .nav a { padding: 13px 4px; }
  .nav a:last-child { align-self: flex-start; margin-top: 10px; }
  .hero-grid, .intro-grid, .agenda, .registration-grid { grid-template-columns: 1fr; }
  .hero-grid { padding-block: 70px; }
  .hero h1 { max-width: 13ch; }
  .hero-media { min-height: 400px; }
  .intro-grid { gap: 24px; }
  .phase-grid { grid-template-columns: 1fr; gap: 16px; }
  .phase { display: grid; grid-template-columns: 200px 1fr; gap: 0 24px; padding: 20px; }
  .phase-heading { grid-column: 1 / -1; margin-bottom: 12px; }
  .phase img.phase-photo { grid-row: span 2; aspect-ratio: 1.2; margin-bottom: 0; }
  .phase h3 { align-self: end; }
  .logo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .agenda { gap: 25px; }
  .press-list { grid-template-columns: 1fr; }
  .press-list a { min-height: 0; gap: 12px; }
}
@media (max-width: 600px) {
  html { scroll-padding-top: 74px; }
  body { font-size: 16px; }
  .wrap { width: min(calc(100% - 32px), var(--max)); }
  h1 { font-size: clamp(3rem, 13vw, 4rem); }
  h2 { font-size: clamp(2.3rem, 10vw, 3.1rem); }
  .hero-grid { gap: 38px; padding-block: 58px 46px; }
  .hero h1 { margin-block: 17px 22px; }
  .hero-actions { display: flex; align-items: flex-start; flex-direction: column; gap: 14px; margin-top: 26px; }
  .hero-media { min-height: 330px; border-radius: 115px 24px 115px 24px; }
  .hero-media .badge { bottom: 14px; max-width: calc(100% - 32px); padding: 10px 14px; font-size: .75rem; }
  .partner-strip { padding: 24px 0; }
  .partner-strip-inner { gap: 18px 24px; }
  .partner-strip img { max-width: 120px; max-height: 34px; }
  section.content-section { padding: 70px 0; }
  .section-heading { margin-bottom: 30px; }
  .intro-grid { margin-bottom: 34px; }
  .phase { display: flex; gap: 0; padding: 18px; }
  .phase-heading { margin-bottom: 16px; }
  .phase img.phase-photo { aspect-ratio: 1.45; margin-bottom: 20px; }
  .challenge-tabs { width: 100%; border-radius: 18px; }
  .challenge-tabs button { width: 100%; text-align: left; }
  .challenge-list, .form-grid { grid-template-columns: 1fr; }
  .logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .logo-grid div { min-height: 100px; padding: 12px; }
  .agenda > p { padding-left: 18px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .gallery a:nth-child(1), .gallery a:nth-child(6) { grid-column: auto; aspect-ratio: 1.2; }
  .gallery-lightbox { width: calc(100vw - 20px); height: min(82dvh, 720px); padding: 52px 42px 50px; border-radius: 16px; }
  .gallery-lightbox figure { gap: 10px; }
  .gallery-lightbox .lightbox-image { height: calc(100% - 44px); }
  .lightbox-close, .lightbox-nav { width: 40px; height: 40px; font-size: 1.55rem; }
  .lightbox-close { top: 9px; right: 9px; }
  .lightbox-prev { left: 3px; }
  .lightbox-next { right: 3px; }
  .lightbox-count { right: 16px; bottom: 10px; }
  .form-card { padding: 22px; }
  .form-field.full { grid-column: auto; }
  .assist-tools { right: 12px; bottom: 12px; }
  .assist-button { width: 44px; height: 44px; }
  .assist-button img { width: 36px; height: 36px; }
  .cookie-dialog { width: calc(100vw - 20px); max-height: min(88dvh, 690px); border-radius: 16px; }
  .cookie-card { padding: 21px; }
  .cookie-actions { grid-template-columns: 1fr; gap: 8px; }
  .cookie-actions button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal-on-scroll { opacity: 1 !important; transform: none !important; }
}

/* Contenido Líderes 2030 · Edición 2026 */
.hero-challenge { max-width: 36rem; margin: 21px 0 0; color: rgb(255 255 255 / 91%); font-size: 1rem; line-height: 1.5; }
.hero-challenge strong { color: var(--lime); font-size: .78rem; font-weight: 850; letter-spacing: .12em; }
.hero-actions .button { max-width: 100%; }
.partner-strip-inner > a { display: grid; place-items: center; }
.video-frame { max-width: 980px; aspect-ratio: 16 / 9; margin-inline: auto; overflow: hidden; border: 5px solid rgb(178 22 105 / 14%); border-radius: 30px; background: var(--ink); box-shadow: var(--shadow); }
.video-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.manifesto { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: clamp(32px,7vw,96px); align-items: start; }
.manifesto .section-heading { margin: 0; }
.manifesto-copy { max-width: 680px; font-size: clamp(1.05rem,1.4vw,1.2rem); line-height: 1.75; }
.manifesto-copy p { margin-bottom: 20px; }
.manifesto-copy p:last-child { margin-bottom: 0; }
.manifesto-copy strong { color: var(--brand-dark); }
.roadmap-details { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin-bottom: 44px; }
.roadmap-details article { padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); box-shadow: 0 12px 35px rgb(38 28 49 / 4%); }
.roadmap-details h3 { margin-bottom: 13px; color: var(--brand-dark); font-size: 1.28rem; }
.roadmap-details p, .roadmap-details li { color: var(--muted); font-size: .96rem; }
.roadmap-details p:last-child { margin-bottom: 0; }
.check-list { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 25px; }
.check-list li::before { position: absolute; left: 0; color: #1d664e; content: "✓"; font-weight: 900; }
.roadmap-phases { margin-top: 22px; }
.design-thinking { margin: 28px 0 0; color: var(--muted); text-align: center; }
.design-thinking a { color: var(--brand-dark); font-weight: 750; text-underline-offset: 3px; }
.mentor-heading h2 { color: #185541; }
.mentor-list { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.mentor-list li { display: grid; min-height: 74px; place-items: center; padding: 15px; border: 1px solid var(--line); border-radius: 15px; background: var(--white); color: var(--ink); font-weight: 720; line-height: 1.35; text-align: center; }
.faq-cta { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 34px; border: 1px solid var(--line); border-radius: 24px; background: var(--soft); }
.faq-cta .section-heading, .faq-cta h2 { margin-bottom: 0; }
.faq-cta h2 { margin: 10px 0; font-size: clamp(2rem,3.5vw,3rem); }
.faq-cta p { margin-bottom: 0; color: var(--muted); }
.footer-partners { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 18px 0 28px; border-bottom: 1px solid rgb(255 255 255 / 15%); }
.footer-partners a { display: grid; min-width: 0; place-items: center; }
.footer-partners img { max-width: 140px; max-height: 38px; object-fit: contain; filter: grayscale(1) brightness(0) invert(1); opacity: .83; }
.footer-social { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; margin: 14px 0 0; color: #c9bfd0; font-size: .85rem; }
.footer-social a { color: var(--white); }
@media (max-width: 850px) {
  .manifesto { grid-template-columns: 1fr; gap: 24px; }
  .roadmap-details { grid-template-columns: 1fr 1fr; }
  .roadmap-details article:last-child { grid-column: 1 / -1; }
  .mentor-list { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 600px) {
  .video-frame { border-width: 3px; border-radius: 18px; }
  .roadmap-details { grid-template-columns: 1fr; }
  .roadmap-details article:last-child { grid-column: auto; }
  .mentor-list { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .mentor-list li { min-height: 68px; padding: 11px 8px; font-size: .88rem; }
  .faq-cta { align-items: stretch; flex-direction: column; padding: 24px; }
  .footer-partners { justify-content: center; flex-wrap: wrap; gap: 18px 24px; }
  .footer-partners a { flex: 0 1 30%; }
  .footer-partners img { max-width: 105px; max-height: 30px; }
}
.roadmap-journey { margin: 8px 0 18px; color: var(--brand-dark); font-size: .82rem; font-weight: 900; letter-spacing: .12em; text-align: center; }

/* Preguntas frecuentes agrupadas por tema */
.faq-groups { display: grid; gap: 32px; }
.faq-group h3 { margin: 0 0 14px; color: var(--brand-dark); font-size: clamp(1.2rem, 2vw, 1.55rem); }
.faq-list { grid-template-columns: 1fr; }
.faq-list details p { max-width: 78ch; }

/* Páginas que aún usan Elementor: el kit global no debe cambiar la tipografía de cabecera, pie y paneles del tema */
.site-header, .site-footer, .cookie-dialog, .assist-tools { font: 400 17px/1.65 "Roboto", Arial, sans-serif; }
body .cookie-card h2, body .assist-panel-head h2 { font-family: inherit; font-weight: 820; line-height: 1.1; }
body .cookie-card h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); }
body .assist-panel-head h2 { font-size: 1.3rem; }

/* Formulario de inscripción 2026 */
.form-field[hidden] { display: none; }
.form-field legend { margin-bottom: 8px; padding: 0; }
.form-field fieldset .form-grid { gap: 12px 18px; }
.form-field fieldset .form-field label { font-weight: 500; }
.signup-summary { display: grid; gap: 0; margin: 0 0 20px; border-top: 1px solid var(--line); }
.signup-summary div { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.signup-summary dt { color: var(--muted); font-size: .9rem; font-weight: 750; }
.signup-summary dd { margin: 0; overflow-wrap: anywhere; }

/* Pie: enlaces legales alineados e iconos de redes */
.site-footer nav { align-items: baseline; }
.cookie-settings-open { padding: 0; line-height: inherit; }
.footer-social ul { display: flex; gap: 10px; margin: 0; padding: 0; list-style: none; }
.footer-social :is(a, .social-soon) { display: grid; place-items: center; width: 42px; height: 42px; border: 1.5px solid rgb(255 255 255 / 55%); border-radius: 50%; color: var(--white); transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.footer-social a:hover { transform: translateY(-2px); border-color: var(--brand); background: var(--brand); }
.footer-social .social-soon { border-style: dashed; opacity: .45; }
.footer-social svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }

/* Entidades mentoras con logo */
.mentor-list li { min-height: 132px; padding: 20px 22px; }
.mentor-list img { max-width: 100%; max-height: 88px; object-fit: contain; }
@media (max-width: 600px) {
  .mentor-list li { min-height: 104px; padding: 14px 12px; }
  .mentor-list img { max-height: 68px; }
}
