:root {
    --green-950: #003c2e;
    --green-900: #005442;
    --green-800: #006c53;
    --green-700: #087d60;
    --green-100: #dff3ec;
    --green-50: #f1f8f5;
    --ink: #17312a;
    --muted: #63736e;
    --line: #dce8e4;
    --white: #fff;
    --shadow: 0 18px 45px rgba(0, 38, 29, .2);
    --blue-bg: #e7f1fb; --blue-text: #0c447c;
    --amber-bg: #fdf3df; --amber-text: #855a06;
    --red-bg: #fbe9e7; --red-text: #a32d2d;
}

*, *::before, *::after { box-sizing: border-box; }

body.no-scroll { overflow: hidden; }

.special-modal { display: none; position: fixed; inset: 0; z-index: 999; }
.special-modal.is-open { display: block; }

.special-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 17, 13, .62);
}

.special-modal__card {
    position: relative;
    width: min(980px, calc(100% - 32px));
    margin: 3vh auto 0;
    max-height: 94vh;
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: 18px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, .4);
    overflow: hidden;
}

.special-modal__close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: transparent;
    border: 0;
    font-size: 26px;
    line-height: 1;
    color: var(--muted);
    cursor: pointer;
    z-index: 1;
}
.special-modal__close:hover { color: var(--ink); }

.special-modal__head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 28px 54px 16px 30px;
    color: #a32d2d;
}
.special-modal__head svg { flex: none; width: 28px; height: 28px; }
.special-modal__head h2 { margin: 0; font-size: 23px; }

.special-modal__list { overflow-y: auto; padding: 4px 26px 30px; display: grid; gap: 22px; }

.special-modal__item {
    display: block;
    border-radius: 14px;
    color: var(--ink);
    border: 1px solid var(--line);
    overflow: hidden;
    transition: box-shadow .15s ease, transform .15s ease;
}
.special-modal__item:hover { box-shadow: 0 12px 28px rgba(0, 38, 29, .12); transform: translateY(-2px); }
.special-modal__item > div { padding: 18px 20px; }
.special-modal__item strong { display: block; font-size: 17px; margin-bottom: 6px; }
.special-modal__item p { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.65; }

.special-modal__item-media {
    width: 100%;
    height: 420px;
    background-color: var(--green-50);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.special-modal__item-media--video {
    position: relative;
    background-color: #000;
}
.special-modal__item-media--video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

html { scroll-behavior: smooth; }

body {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    margin: 0;
    background: #fff;
    color: var(--ink);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; }

.container {
    width: min(1380px, calc(100% - 48px));
    margin-inline: auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Hero */
.hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    color: var(--white);
    background: url("../img/fondo-oruro.webp") center 54% / cover no-repeat;
}

.hero--home { min-height: 520px; }
.hero--internal { min-height: 430px; }

.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(2, 46, 58, .58), rgba(0, 25, 20, .52) 45%, rgba(0, 17, 13, .74)),
        linear-gradient(90deg, rgba(0, 36, 28, .18), transparent 65%);
}

.site-header {
    position: absolute;
    inset: 0 0 auto;
    z-index: 10;
}

.topbar {
    display: flex;
    min-height: 112px;
    align-items: center;
    justify-content: space-between;
    padding-block: 14px 10px;
}

.brand {
    width: 120px;
    transition: transform .18s ease;
}

.brand:hover { transform: translateY(-2px); }
.brand img { width: 100%; height: auto; }

.attention {
    display: grid;
    gap: 4px;
    justify-items: end;
    font-size: 14px;
    line-height: 1.3;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .45);
}

.attention p { margin: 0; }

.navbar {
    min-height: 78px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    background: rgba(0, 105, 80, .97);
    box-shadow: 0 15px 30px rgba(0, 28, 21, .42);
    backdrop-filter: blur(8px);
}

.navbar__mobile { display: none; }

.navbar__content {
    display: flex;
    min-height: 76px;
    align-items: stretch;
    justify-content: space-between;
    gap: 26px;
    padding-inline: 23px 16px;
}

.nav-links {
    display: flex;
    align-items: stretch;
}

.nav-link {
    position: relative;
    display: flex;
    min-height: 76px;
    align-items: center;
    gap: 5px;
    padding-inline: 26px;
    color: var(--white);
    font-size: 13px;
    font-weight: 800;
    transition: background-color .16s ease;
}

.nav-link::after {
    position: absolute;
    right: 26px;
    bottom: 12px;
    left: 26px;
    height: 2px;
    border-radius: 2px;
    background: #b3e9d7;
    content: "";
    opacity: 0;
    transform: scaleX(.3);
    transition: opacity .16s ease, transform .16s ease;
}

.nav-link:hover,
.nav-link.is-active,
.nav-dropdown:hover > .nav-link,
.nav-dropdown.is-active > .nav-link { background: rgba(255, 255, 255, .08); }

.nav-link:hover::after,
.nav-link.is-active::after,
.nav-dropdown:hover > .nav-link::after,
.nav-dropdown.is-active > .nav-link::after {
    opacity: 1;
    transform: scaleX(1);
}

.page-about .nav-link.is-active::after {
    background: #f5a23a;
}

.nav-link svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.nav-dropdown { position: relative; }

.nav-dropdown::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 9px;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 9px);
    left: 0;
    display: grid;
    width: 235px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--white);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity .16s ease, transform .16s ease;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.dropdown-menu a {
    padding: 13px 16px;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-size: 13px;
    font-weight: 650;
    transition: background-color .15s ease, padding-left .15s ease;
}

.dropdown-menu a:last-child { border-bottom: 0; }
.dropdown-menu a:hover { padding-left: 21px; background: var(--green-50); color: var(--green-700); }

.social-links {
    display: flex;
    align-items: center;
    gap: 11px;
    flex: none;
}

.social-links > span {
    margin-right: 8px;
    font-size: 15px;
    font-weight: 850;
}

.social-icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 50%;
    background: var(--white);
    color: var(--green-900);
    box-shadow: 0 5px 12px rgba(0, 35, 26, .25);
    transition: transform .16s ease, background-color .16s ease;
}

.social-icon:hover { background: var(--green-100); transform: translateY(-2px); }
.social-icon--facebook { padding-top: 3px; font-family: Arial, sans-serif; font-size: 27px; font-weight: 900; }

.social-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.2; }

.hero__title {
    margin-top: 175px;
    text-align: center;
}

.hero__title > span {
    display: block;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, .8);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.hero__title h1 {
    max-width: 1100px;
    margin: 0 auto;
    font-size: clamp(38px, 4.45vw, 64px);
    font-weight: 900;
    letter-spacing: -.035em;
    line-height: 1.05;
    text-shadow: 0 5px 28px rgba(0, 0, 0, .38);
    text-transform: uppercase;
}

.hero__title h1.hero__title--sentence {
    max-width: 780px;
    font-size: clamp(32px, 3.6vw, 52px);
    text-transform: none;
}

.hero--internal .hero__title { margin-top: 175px; }
.hero--internal .hero__title h1 { font-size: clamp(35px, 4.5vw, 55px); }

.hero__subtitle {
    max-width: 640px;
    margin: 18px auto 0;
    color: rgba(255, 255, 255, .85);
    font-size: 16px;
    line-height: 1.6;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .3);
}

.hero__actions {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 150px));
    justify-content: center;
    gap: 12px;
    max-width: 820px;
    margin: 30px auto 0;
}

.hero__action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 10px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .22);
    backdrop-filter: blur(6px);
    color: var(--white);
    font-size: 13px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: normal;
    transition: background-color .15s ease, transform .15s ease;
}

.hero__action svg { width: 24px; height: 24px; }
.hero__action:hover { background: rgba(255, 255, 255, .2); transform: translateY(-2px); }

.nav-meta { display: none; }

main {
    flex: 1 0 auto;
}

/* Main content */
.welcome, .content-page { padding-block: 82px 96px; }

.section-heading {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 70px;
    align-items: end;
    margin-bottom: 45px;
}

.section-heading span,
.content-page__intro span,
.institutional-band__content > div > span,
.empty-state > span {
    display: block;
    margin-bottom: 11px;
    color: var(--green-700);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.section-heading h2,
.content-page__intro h2,
.institutional-band h2 {
    margin: 0;
    font-size: clamp(31px, 4vw, 47px);
    font-weight: 850;
    letter-spacing: -.035em;
    line-height: 1.1;
}

.section-heading > p,
.content-page__intro p,
.institutional-band p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.8;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 21px;
}

.info-card {
    min-height: 260px;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--white);
    box-shadow: 0 12px 35px rgba(0, 69, 51, .06);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.info-card:hover {
    border-color: #abd7c8;
    box-shadow: 0 20px 45px rgba(0, 73, 55, .11);
    transform: translateY(-4px);
}

.info-card__number {
    display: block;
    margin-bottom: 38px;
    color: #9fbeb4;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .13em;
}

.info-card h3 { margin: 0 0 12px; font-size: 20px; letter-spacing: -.02em; }
.info-card p { margin: 0 0 22px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.info-card a { color: var(--green-700); font-size: 13px; font-weight: 800; }

.institutional-band {
    padding-block: 72px;
    background: var(--green-950);
    color: var(--white);
}

.institutional-band__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 45px;
}

.institutional-band__content > div { max-width: 720px; }
.institutional-band__content > div > span { color: #91dec5; }
.institutional-band h2 { color: var(--white); font-size: clamp(29px, 3.5vw, 43px); }
.institutional-band p { margin-top: 14px; color: rgba(255, 255, 255, .67); }

.how-it-works__intro { max-width: 640px; margin-bottom: 40px; }
.how-it-works__intro > span { color: #91dec5; }

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    flex: none;
    padding-inline: 20px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 800;
    transition: transform .16s ease, background-color .16s ease;
}

.button--light { background: var(--white); color: var(--green-900); }
.button--light:hover { background: var(--green-100); transform: translateY(-2px); }

.content-page__intro {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 80px;
    align-items: start;
    margin-bottom: 60px;
}

.content-page__intro p + p { margin-top: 17px; }
.card-grid--compact .info-card { min-height: 230px; }

.empty-state {
    padding: 55px;
    border: 1px dashed #a9cfc2;
    border-radius: 18px;
    background: var(--green-50);
    text-align: center;
}

.empty-state > span { margin-bottom: 14px; }
.empty-state h3 { max-width: 690px; margin: 0 auto; font-size: clamp(22px, 3vw, 31px); line-height: 1.25; }

/* Sobre nosotros */
.about-story {
    position: relative;
    isolation: isolate;
    min-height: 620px;
    padding-block: 26px 55px;
    overflow: hidden;
    background: url("../img/fondo-sobre-nosotros.webp") center 72% / cover no-repeat;
    color: var(--white);
}

.about-story__overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(4, 144, 112, .92), rgba(0, 105, 80, .78)),
        linear-gradient(90deg, rgba(0, 87, 66, .25), transparent);
}

.about-story__content h2 {
    margin: 0 0 42px;
    color: var(--white);
    font-size: clamp(36px, 4.2vw, 51px);
    font-weight: 900;
    letter-spacing: -.025em;
    text-align: center;
    text-transform: uppercase;
}

.about-story__history {
    max-width: 1370px;
    margin: 0 auto;
    color: rgba(255, 255, 255, .9);
    font-size: 16px;
    line-height: 1.52;
}

.about-pillars {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 46px;
    margin-top: 34px;
}

.about-pillars article {
    padding-inline: 1px;
}

.about-pillars h3 {
    margin: 0 0 7px;
    color: var(--white);
    font-size: 16px;
    font-weight: 900;
    letter-spacing: .02em;
    text-align: center;
    text-transform: uppercase;
}

.about-pillars p {
    margin: 0;
    color: rgba(255, 255, 255, .88);
    font-size: 14px;
    line-height: 1.52;
}

.administrative-team {
    min-height: 832px;
    padding-block: 17px 90px;
}

.administrative-team > h2 {
    margin: 0 0 53px;
    color: var(--green-800);
    font-size: clamp(36px, 4.2vw, 49px);
    font-weight: 900;
    letter-spacing: -.025em;
    text-align: center;
    text-transform: uppercase;
}

.team-lead {
    display: flex;
    justify-content: center;
    margin-bottom: 68px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 66px;
    max-width: 1020px;
    margin-inline: auto;
}

.team-card {
    width: 100%;
    max-width: 195px;
    margin: 0 auto;
    text-align: center;
}

.team-card__photo {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 7px;
    background: var(--green-800);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .04);
}

.team-card figcaption {
    display: grid;
    gap: 1px;
    margin-top: 2px;
    color: var(--green-800);
    font-size: 15px;
    font-weight: 850;
    line-height: 1.15;
}

.team-card figcaption strong {
    font: inherit;
}

/* Footer */
.footer {
    flex: none;
    background: var(--green-900);
    color: var(--white);
}

.footer__main {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 50px;
    padding-block: 56px 40px;
}

.footer__col--brand { padding-right: 20px; }

.footer__brand { display: block; width: 130px; margin-bottom: 18px; }
.footer__brand img { width: 100%; height: auto; }

.footer__tagline {
    margin: 0 0 22px;
    color: rgba(255, 255, 255, .68);
    font-size: 13.5px;
    line-height: 1.7;
    max-width: 320px;
}

.footer__social { display: flex; gap: 11px; }

.footer__heading {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, .9);
    font-size: 13px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer__links a {
    color: rgba(255, 255, 255, .68);
    font-size: 13.5px;
    transition: color .15s ease;
}
.footer__links a:hover { color: var(--white); }
.footer__links-sub { padding-left: 16px; }
.footer__links-sub a { font-size: 12.5px; color: rgba(255, 255, 255, .5); }
.footer__links-sub a:hover { color: rgba(255, 255, 255, .85); }

.footer__contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.footer__contact li {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    color: rgba(255, 255, 255, .68);
    font-size: 13.5px;
    line-height: 1.5;
}
.footer__contact svg { width: 17px; height: 17px; margin-top: 1px; color: #8fd6bd; flex: none; }
.footer__contact a { color: rgba(255, 255, 255, .68); transition: color .15s ease; }
.footer__contact a:hover { color: var(--white); }

.footer__bottom {
    display: grid;
    min-height: 76px;
    padding: 18px 20px;
    place-items: center;
    border-top: 1px solid rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .55);
    font-size: 10px;
    letter-spacing: .05em;
    text-align: center;
    text-transform: uppercase;
}

.menu-button {
    display: grid;
    width: 44px;
    height: 44px;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 9px;
    background: rgba(255, 255, 255, .08);
    color: var(--white);
    cursor: pointer;
}

.menu-button__lines,
.menu-button__lines::before,
.menu-button__lines::after {
    display: block;
    width: 21px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    content: "";
    transition: transform .16s ease, opacity .16s ease;
}

.menu-button__lines { position: relative; }
.menu-button__lines::before { position: absolute; top: -6px; }
.menu-button__lines::after { position: absolute; top: 6px; }
.navbar.is-open .menu-button__lines { background: transparent; }
.navbar.is-open .menu-button__lines::before { top: 0; transform: rotate(45deg); }
.navbar.is-open .menu-button__lines::after { top: 0; transform: rotate(-45deg); }

a:focus-visible, button:focus-visible { outline: 3px solid #a9ead5; outline-offset: 3px; }

@media (max-width: 1030px) {
    .container { width: min(920px, calc(100% - 40px)); }
    .navbar__content { padding-inline: 13px; }
    .nav-link { padding-inline: 13px; font-size: 12px; }
    .nav-link::after { right: 13px; left: 13px; }
    .social-links > span { display: none; }
}

@media (max-width: 820px) {
    .container { width: min(680px, calc(100% - 32px)); }
    .hero--home { min-height: 560px; }
    .hero--internal { min-height: 410px; }
    .topbar { display: none; }
    .attention { display: none; }

    .nav-container.container { width: 100%; margin: 0; }
    .navbar { min-height: 64px; border-radius: 0; border: 0; box-shadow: none; background: var(--green-900); backdrop-filter: none; }
    .navbar__mobile { display: flex; min-height: 62px; align-items: center; justify-content: space-between; padding: 9px 16px; font-size: 13px; font-weight: 800; }
    .navbar__mobile > span { display: none; }
    .navbar__mobile-brand { display: block; width: 88px; }
    .navbar__mobile-brand img { width: 100%; height: auto; }
    .navbar__mobile-actions { display: flex; align-items: center; gap: 8px; }
    .navbar__mobile-social { display: flex; align-items: center; gap: 6px; }
    .social-icon--compact {
        width: 34px;
        height: 34px;
        border: 0;
        border-radius: 50%;
        background: var(--white);
        color: var(--green-800);
        box-shadow: 0 3px 8px rgba(0, 20, 15, .3);
    }
    .social-icon--compact:hover { background: var(--green-100); }
    .social-icon--compact.social-icon--facebook { font-size: 19px; padding-top: 2px; }
    .social-icon--compact svg { width: 17px; height: 17px; }
    .navbar__content { position: absolute; top: calc(100% + 8px); right: 0; left: 0; display: none; max-height: 68vh; padding: 10px; overflow-y: auto; border-radius: 12px; background: var(--green-900); box-shadow: var(--shadow); }
    .navbar.is-open .navbar__content { display: block; }
    .nav-links { display: grid; }
    .nav-link { min-height: 46px; justify-content: space-between; border-radius: 7px; }
    .nav-link::after { display: none; }
    .dropdown-menu { position: static; display: none; width: auto; margin: 4px 7px 8px; border: 0; opacity: 1; pointer-events: auto; transform: none; }
    .nav-dropdown:focus-within .dropdown-menu,
    .nav-dropdown.is-open .dropdown-menu { display: grid; }
    .navbar__content .social-links { display: none; }
    .social-links > span { display: inline; margin-right: auto; font-size: 13px; }

    .hero__title, .hero--internal .hero__title { margin-top: 40px; }
    .hero--home { min-height: 560px; }
    .hero__overlay {
        background:
            linear-gradient(180deg, rgba(0, 84, 66, .55) 0, rgba(0, 25, 20, .5) 32px, rgba(0, 17, 13, .5) 30%, rgba(0, 17, 13, .78) 100%),
            linear-gradient(90deg, rgba(0, 36, 28, .18), transparent 65%);
    }
    .hero__actions { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 360px; margin-top: 22px; }
    .hero__action {
        flex-direction: row;
        justify-content: flex-start;
        gap: 10px;
        padding: 11px 12px;
        background: var(--white);
        border-color: var(--line);
        border-radius: 12px;
        color: var(--green-900);
        text-align: left;
    }
    .hero__action svg {
        width: 30px;
        height: 30px;
        padding: 6px;
        border-radius: 8px;
        background: var(--green-100);
        color: var(--green-800);
        flex: none;
    }
    .hero__action:hover { background: var(--green-50); }
    .hero__action:last-child {
        grid-column: 1 / -1;
        justify-content: center;
        background: var(--green-800);
        border-color: var(--green-800);
        color: var(--white);
    }
    .hero__action:last-child svg { background: rgba(255, 255, 255, .16); color: var(--white); }

    .nav-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 5px 16px;
        padding: 8px 16px 10px;
        background: var(--green-950);
        border-top: 1px solid rgba(255, 255, 255, .1);
    }
    .nav-meta-item { display: flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, .78); font-size: 11px; }
    .nav-meta-item svg { width: 13px; height: 13px; color: #8fd6bd; flex: none; }
    .section-heading, .content-page__intro { grid-template-columns: 1fr; gap: 27px; }
    .card-grid { grid-template-columns: 1fr; }
    .info-card { min-height: auto; }
    .institutional-band__content { align-items: flex-start; flex-direction: column; }

    .about-story {
        min-height: auto;
        padding-block: 48px 58px;
    }

    .about-story__content h2 {
        margin-bottom: 28px;
    }

    .about-pillars {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-pillars h3 {
        text-align: left;
    }

    .team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 45px 30px;
    }

    .footer__main { grid-template-columns: 1fr; gap: 36px; padding-block: 44px 30px; }
    .footer__col--brand { padding-right: 0; }
    .footer__tagline { max-width: none; }
}

@media (max-width: 540px) {
    .container { width: calc(100% - 24px); }
    .hero { background-position: 54% center; }
    .hero--home { min-height: 600px; }
    .hero--internal { min-height: 380px; }
    .navbar__mobile-brand { width: 76px; }
    .attention { display: none; }
    .hero__title, .hero--internal .hero__title { margin-top: 36px; }
    .hero__title h1 { font-size: clamp(32px, 11vw, 44px); }
    .hero__title > span { font-size: 9px; }
    .hero__subtitle { font-size: 14px; }
    .hero__actions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .hero__action { padding: 12px 6px; font-size: 12px; }
    .welcome, .content-page { padding-block: 62px 72px; }
    .info-card { padding: 25px; }
    .institutional-band { padding-block: 60px; }
    .empty-state { padding: 38px 24px; }

    .about-story__history,
    .about-pillars p {
        font-size: 13px;
        line-height: 1.65;
    }

    .administrative-team {
        min-height: auto;
        padding-block: 42px 70px;
    }

    .administrative-team > h2 {
        margin-bottom: 40px;
        font-size: 32px;
    }

    .team-lead {
        margin-bottom: 50px;
    }

    .team-grid {
        gap: 40px 20px;
    }
}

/* Noticias: grid de tarjetas */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.news-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--white);
    box-shadow: 0 12px 35px rgba(0, 69, 51, .06);
    transition: transform .18s ease, box-shadow .18s ease;
}

.news-card:hover { transform: translateY(-4px); box-shadow: 0 20px 45px rgba(0, 73, 55, .11); }

.news-card__media {
    height: 170px;
    background: linear-gradient(135deg, var(--green-800), var(--green-950)) center / cover no-repeat;
}

.news-card__media--video, .news-featured__media--video {
    position: relative;
    background: #000;
}
.news-card__media--video iframe, .news-featured__media--video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.news-card__body { padding: 22px; }

.news-card__date {
    display: block;
    margin-bottom: 8px;
    color: var(--green-700);
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.news-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .03em;
    margin-bottom: 8px;
}
.news-badge--green { background: var(--green-100); color: var(--green-800); }
.news-badge--blue { background: var(--blue-bg); color: var(--blue-text); }
.news-badge--amber { background: var(--amber-bg); color: var(--amber-text); }
.news-badge--red { background: var(--red-bg); color: var(--red-text); }

.news-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }

.news-filters__pill {
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.news-filters__pill:hover { background: var(--green-50); }
.news-filters__pill.is-active { background: var(--green-800); border-color: var(--green-800); color: var(--white); }

.news-search { position: relative; width: 260px; max-width: 100%; }
.news-search input {
    width: 100%;
    padding: 10px 14px 10px 38px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font: inherit;
    font-size: 14px;
}
.news-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); }

.news-pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 36px; }
.news-pagination a, .news-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 6px;
    border-radius: 8px;
    border: 1px solid var(--line);
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
    background: var(--white);
}
.news-pagination a:hover { background: var(--green-50); }
.news-pagination .is-active { background: var(--green-800); border-color: var(--green-800); color: var(--white); }
.news-pagination .is-disabled { opacity: .4; pointer-events: none; }

.news-card__body h3 { margin: 0 0 10px; font-size: 18px; letter-spacing: -.01em; line-height: 1.3; }
.news-card__body p { margin: 0 0 16px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.news-card__body a { color: var(--green-700); font-size: 13px; font-weight: 800; }

/* Noticia destacada (grande, arriba) */
.news-featured {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--white);
    box-shadow: 0 16px 45px rgba(0, 69, 51, .09);
    overflow: hidden;
    margin-bottom: 28px;
    transition: transform .18s ease, box-shadow .18s ease;
}

.news-featured:hover { transform: translateY(-3px); box-shadow: 0 22px 55px rgba(0, 73, 55, .14); }

.news-featured__media {
    min-height: 400px;
    background: linear-gradient(135deg, var(--green-800), var(--green-950)) center / cover no-repeat;
}

.news-featured__body { padding: 34px; display: flex; flex-direction: column; justify-content: center; }
.news-featured__body h3 { margin: 0 0 14px; font-size: 28px; line-height: 1.25; letter-spacing: -.01em; }
.news-featured__body p {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 15.5px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-featured__cta { color: var(--green-700); font-size: 14px; font-weight: 800; }

/* Noticias secundarias (todas visibles a la vez, más chicas que la
   destacada para mantener la jerarquía). */
.news-secondary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.news-card--compact .news-card__media { height: 130px; }
.news-card--compact .news-card__body { padding: 16px 18px; }
.news-card--compact .news-card__body h3 { font-size: 15.5px; margin-bottom: 6px; }
.news-card--compact .news-card__body p {
    font-size: 13px;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 820px) {
    .news-featured { grid-template-columns: 1fr; }
    .news-featured__media { min-height: 200px; }
    .news-featured__body { padding: 24px; }
    .news-featured__body h3 { font-size: 22px; }
}

/* Detalle de noticia / convocatoria */
.news-detail { max-width: 900px; margin: 0 auto 50px; }

.news-detail__image {
    width: 100%;
    max-height: 420px;
    margin: 14px 0 30px;
    border-radius: 16px;
    object-fit: cover;
}

.news-detail__video {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: 14px 0 30px;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 12px 35px rgba(0, 69, 51, .12);
}

.news-detail__video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.news-detail__gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    margin: 26px 0 10px;
}

.news-detail__gallery img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    transition: transform .15s ease, opacity .15s ease;
}

.news-detail__gallery a:hover img { transform: scale(1.03); opacity: .92; }

.news-detail__body { font-size: 16px; line-height: 1.8; color: var(--ink); }
.news-detail__body h3 { margin: 32px 0 12px; font-size: 21px; color: var(--green-800); }
.news-detail__body p { margin: 0 0 16px; }
.news-detail__body ul, .news-detail__body ol { margin: 0 0 16px; padding-left: 22px; }
.news-detail__body li { margin-bottom: 6px; }
.news-detail__body a { color: var(--green-700); font-weight: 700; text-decoration: underline; }

.badge-closed {
    display: inline-block;
    margin-bottom: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f3e6d8;
    color: #9a5f0d;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* Formulario de postulación (público) */
.application-card {
    max-width: 700px;
    margin: 0 auto;
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--green-50);
}

.application-card h3 { margin: 0 0 4px; font-size: 20px; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-size: 13.5px; font-weight: 750; color: var(--ink); }
.form-group .hint { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; }

.form-input, .form-textarea, .form-select {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid var(--line);
    border-radius: 9px;
    font: inherit;
    font-size: 14px;
    background: var(--white);
    color: var(--ink);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
    outline: 2px solid var(--green-700);
    outline-offset: 1px;
}

.form-textarea { resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-actions { margin-top: 6px; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 22px;
    border: 0;
    border-radius: 9px;
    background: var(--green-700);
    color: var(--white);
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: background-color .16s ease, transform .16s ease;
}

.btn:hover { background: var(--green-800); transform: translateY(-1px); }

.alert { padding: 13px 16px; border-radius: 10px; font-size: 14px; margin-bottom: 18px; }
.alert--success { background: #dff3ec; color: var(--green-900); }
.alert--error { background: #fbe9e7; color: #b3261e; }

.news-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 12px 35px rgba(0, 69, 51, .06);
    background: var(--white);
}

.news-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.news-table th, .news-table td { padding: 16px 20px; text-align: left; vertical-align: top; }
.news-table thead th {
    background: var(--green-50);
    color: var(--green-900);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    border-bottom: 1px solid var(--line);
}
.news-table tbody tr { border-bottom: 1px solid var(--line); }
.news-table tbody tr:last-child { border-bottom: 0; }
.news-table tbody tr:hover { background: var(--green-50); }
.news-table__date { white-space: nowrap; color: var(--muted); }
.news-table__title { font-weight: 750; color: var(--ink); }
.news-table__summary { color: var(--muted); max-width: 420px; }
.news-table__action { white-space: nowrap; text-align: right; }
.news-table__action a { color: var(--green-700); font-weight: 800; font-size: 13px; }

/* --------------------------------------------------------
   Servicios: tarjetas con icono + banda "cómo funciona"
   -------------------------------------------------------- */
.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 270px;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--white);
    box-shadow: 0 12px 35px rgba(0, 69, 51, .06);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.service-card:hover { border-color: #abd7c8; box-shadow: 0 20px 45px rgba(0, 73, 55, .11); transform: translateY(-4px); }
.service-card--live::after {
    content: "En línea";
    position: absolute;
    top: 22px;
    right: 22px;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--green-100);
    color: var(--green-800);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.service-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 26px;
    border-radius: 14px;
    background: var(--green-100);
    color: var(--green-800);
}
.service-card__icon svg { width: 26px; height: 26px; }
.service-card h3 { margin: 0 0 10px; font-size: 20px; letter-spacing: -.02em; }
.service-card p { margin: 0 0 18px; color: var(--muted); font-size: 14px; line-height: 1.7; flex: 1; }
.service-card__link { display: inline-flex; align-items: center; gap: 7px; color: var(--green-700); font-size: 13px; font-weight: 800; }
.service-card__link svg { width: 15px; height: 15px; transition: transform .15s ease; }
.service-card:hover .service-card__link svg { transform: translateX(3px); }

.service-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    margin-top: 26px;
}
.service-step { position: relative; padding-left: 44px; }
.service-step__num {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    font-size: 13px;
    font-weight: 850;
}
.service-step h4 { margin: 0 0 6px; color: #fff; font-size: 15.5px; }
.service-step p { margin: 0; color: rgba(255, 255, 255, .68); font-size: 13.5px; line-height: 1.65; }

/* --------------------------------------------------------
   Zonas / rutas: buscador y tarjetas de resultado
   -------------------------------------------------------- */
.zona-search {
    position: relative;
    width: 100%;
    max-width: 540px;
    margin: 0 auto 8px;
}
.zona-search input {
    width: 100%;
    padding: 16px 20px 16px 50px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--white);
    font: inherit;
    font-size: 15.5px;
    box-shadow: 0 10px 30px rgba(0, 69, 51, .07);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.zona-search input:focus { outline: none; border-color: var(--green-700); box-shadow: 0 10px 30px rgba(0, 69, 51, .14); }
.zona-search svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 19px; height: 19px; color: var(--muted); }
.zona-search__hint { text-align: center; color: var(--muted); font-size: 12.5px; margin: 0 0 40px; }

.zona-results { display: grid; gap: 22px; max-width: 720px; margin: 0 auto; }

.zona-card {
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--white);
    box-shadow: 0 14px 38px rgba(0, 69, 51, .07);
    overflow: hidden;
}
.zona-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 26px 28px 6px; }
.zona-card__title { margin: 0; font-size: 20px; letter-spacing: -.02em; }
.zona-card__meta { display: flex; flex-wrap: wrap; gap: 18px; padding: 10px 28px 22px; }
.zona-card__meta-item { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--ink); }
.zona-card__meta-item svg { width: 17px; height: 17px; color: var(--green-700); flex: none; }
.zona-card__meta-item strong { font-weight: 750; }

.zona-card__calles { padding: 0 28px 22px; display: flex; flex-wrap: wrap; gap: 7px; }
.zona-card__calle-chip {
    padding: 4px 11px;
    border-radius: 999px;
    background: var(--green-50);
    border: 1px solid var(--line);
    color: var(--green-900);
    font-size: 12px;
    font-weight: 650;
}
.zona-card__calle-chip--match { background: var(--green-800); border-color: var(--green-800); color: #fff; }

.zona-card__map { height: 300px; border-top: 1px solid var(--line); }
.zona-card__map .leaflet-container { background: var(--green-50); }

.zona-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 28px; border-top: 1px solid var(--line); background: var(--green-50); }
.zona-card__foot a { display: inline-flex; align-items: center; gap: 8px; color: var(--green-800); font-weight: 800; font-size: 13.5px; }
.zona-card__foot a svg { width: 16px; height: 16px; }
.zona-card__foot span { color: var(--muted); font-size: 12.5px; }

@media (max-width: 820px) {
    .news-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .application-card { padding: 24px; }
    .news-table__summary { display: none; }
    .service-steps { grid-template-columns: 1fr; }
    .zona-card__head { flex-direction: column; }
    .zona-card__foot { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
