.sacha-header {
    height: 130px;
    min-height: 130px;
    max-height: 130px;
    padding: 12px clamp(20px, 4vw, 80px);
    color: var(--text-color);
    background-color: #fff;
    border-bottom: 1px solid #dfe6f2;
    font-family: 'Source Sans 3', sans-serif;
    position: relative;
    overflow: visible;
}

.sacha-header__inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sacha-header__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
    height: 100%;
}

.sacha-logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.sacha-logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.sacha-nav-area {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    position: relative;
}

.sacha-menu-toggle {
    border: 1px solid var(--color-main-light);
    background-color: #fff;
    color: var(--text-color);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
    border-radius: 6px;
    padding: 8px 14px;
    display: none;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.sacha-menu-toggle__icon {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
}

.sacha-menu-toggle__icon span {
    width: 20px;
    height: 2px;
    background-color: var(--text-color);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-menu-open .sacha-menu-toggle {
    background-color: var(--color-main-light);
    border-color: var(--color-main-light);
}

.mobile-menu-open .sacha-menu-toggle__icon span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.mobile-menu-open .sacha-menu-toggle__icon span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-open .sacha-menu-toggle__icon span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.sacha-nav {
    display: flex;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 15px;
    font-weight: 600;
    align-items: center;
    justify-content: flex-end;
}

.sacha-nav li {
    position: relative;
    display: flex;
    align-items: center;
}

.sacha-nav a,
.sacha-nav button {
    background: none;
    border: 0;
    text-decoration: none;
    color: var(--text-color);
    padding: 6px 12px;
    border-radius: 3px;
    text-transform: uppercase;
    font: inherit;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.sacha-nav a:hover,
.sacha-nav button:hover,
.sacha-nav a:focus-visible,
.sacha-nav button:focus-visible {
    background-color: rgba(169, 187, 228, 0.4);
    outline: none;
}

.sacha-nav li.is-active > a,
.sacha-nav li.is-active > button {
    background-color: var(--color-main-light);
}

.sacha-subnav {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding-top: 6px;
    display: flex;
    justify-content: flex-end;
    width: 100%;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.sacha-subnav.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.sacha-subnav__list {
    display: flex;
    gap: 32px;
    justify-content: flex-start;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 13px;
    font-weight: 600;
}

.sacha-subnav__list li {
    display: inline-flex;
}

.sacha-subnav__list a {
    color: var(--text-color);
    text-decoration: none;
    padding-bottom: 6px;
    text-transform: uppercase;
}

.sacha-subnav__list li.is-active > a {
    border-bottom: 2px solid var(--color-main);
}

.sacha-nav-area nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    transition: transform 0.25s ease;
}

.sacha-header.submenu-open .sacha-nav-area nav {
    transform: translateY(-14px);
}

.sacha-header.submenu-open .sacha-nav__toggle {
    background-color: var(--color-main-light);
}

@media (max-width: 780px) {
    .sacha-header {
        padding: 12px 16px;
        height: 80px;
        min-height: 80px;
        max-height: 80px;
        position: sticky;
        top: 0;
        z-index: 40;
    }

    .sacha-header__top {
        flex-direction: row;
        align-items: center;
        gap: 12px;
        flex-wrap: nowrap;
        height: 100%;
        width: 100%;
    }

    .sacha-logo {
        height: 100%;
        max-height: 56px;
        flex: 1 1 auto;
    }

    .sacha-logo img {
        height: 100%;
        max-height: 56px;
    }

    .sacha-menu-toggle {
        margin-left: auto;
        display: inline-flex;
    }

    .sacha-nav-area {
        width: 100%;
        align-items: flex-start;
        display: none;
        padding: 24px 20px 32px;
        margin-top: 0;
        border-top: 1px solid #dfe6f2;
        background-color: #fff;
        position: fixed;
        left: 0;
        right: 0;
        top: 80px;
        box-shadow: 0 20px 36px rgba(30, 43, 77, 0.18);
        z-index: 120;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }

    .sacha-nav-area.is-mobile-visible {
        display: flex;
    }

    .sacha-nav-area nav {
        width: 100%;
        justify-content: flex-start;
    }

    .sacha-nav {
        flex-direction: column;
        gap: 4px;
        width: 100%;
        align-items: stretch;
    }

    .sacha-nav li {
        width: 100%;
        justify-content: flex-start;
    }

    .sacha-nav a,
    .sacha-nav button {
        width: 100%;
        justify-content: flex-start;
        display: flex;
        align-items: center;
    }

    .sacha-subnav {
        position: static;
        width: 100%;
        opacity: 1;
        pointer-events: auto;
        transform: none;
        margin-top: 16px;
        justify-content: flex-start;
        padding-top: 12px;
        border-top: 1px solid #eef2fb;
    }

    .sacha-header.submenu-open .sacha-nav-area nav {
        transform: none;
    }

    .sacha-subnav__list {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }
}

.sacha-page {
    font-family: 'Source Sans 3', sans-serif;
    padding: 0 24px;
    max-width: 1300px;
    margin: 0 auto;
}

.page-padding {
    padding: 0px 24px;
    max-width: 1300px;
    margin: 0 auto;
}

.fc-main {
    color: var(--color-text);
}

.titulo {
    font-family: 'Source Serif 4', 'Source Sans 3', serif;
}

.hero {
    width: 100dvw;
    margin-left: calc(50% - 50vw);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    min-height: 600px;
    color: #fff;
    background-image: url('/images/home.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero__content {
    padding: 0px 24px;
    max-width: 1300px;
    /* width: 100dvw; */
}

.lista-fff {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    margin-right: 12px;
}

.hero__list li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero__list li::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.card {
    padding: 16px;
    border-radius: 5px;
    background: #f7f7fb;
}
.card h3 {
    margin: 0;
}

.backgradient {
    background: var(--sacha-gradient);
}

.w-100dvw {
    width: 100dvw;
    margin-left: calc(50% - 50vw);
}

.btn-main {
    width: fit-content;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: var(--color-main);
    color: #fff;
    padding: 0 2.5rem;
    font-size: 20px;
    border: none;
}

.btn-main:hover {
    filter: brightness(1.05);
}

.fc-text {
    color: var(--text-color);
}

@media (max-width: 768px) {
    .hero__content {
        position: static;
        max-width: none;
        margin: 0;
    }

    .hero {
        width: 100vw;
    }

    .hero__image {
        width: 100%;
    }

    .hero__content-inner {
        padding: 24px;
    }
}


.verticalCard {
    display: flex;
    flex-direction: column;
    border-radius: 5px;
    background-color: #E8F0FE;
}

ul {
    padding-left: 0;
    padding-inline-start: 0;
}


/* SVG responsive */
#mapSvg { width: 100%; height: auto; display:block; }

/* Polígonos interactivos */
.hotspot { fill: rgba(255,0,0,.15); stroke: #c00; stroke-width: 2; cursor: pointer; }
.hotspot:hover { fill: rgba(255,0,0,.25); }
.handles .handle     { fill: #fff; stroke:#111; stroke-width:1.5; r:6; cursor: grab; }
.handles .handle:active { cursor: grabbing; }
.handles .resizer    { fill:#111; stroke:#fff; stroke-width:1.5; r:7; cursor: nwse-resize; }
.editing { cursor: grabbing; }


.about-header {
    background-image: url('/images/about.png');
    background-size: contain;
    background-position: right;
    background-repeat: no-repeat;
}

.list li {
    list-style: none;
    position: relative;
    padding-left: 20px;
}

.list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.4em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-main);
}

/* === ABOUT: eligibility grid === */

.about-eligibility {
    background-color: #E8F0FE;
}

/* === ABOUT: eligibility grid === */

.about-eligibility-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 500px));
    justify-content: center;
    gap: 48px;
    align-items: center;
}

.about-eligibility-grid figure { margin: 0; }


.about-box {
    border: 1px solid #C8D2E3;
    width: 100%;
}


/* === ABOUT: timeline === */
.timeline {
    position: relative;
    display: grid;            /* allows vertical spacing */
    --timeline-row-gap: 32px;
    row-gap: var(--timeline-row-gap);
    --timeline-date-col: 140px;
    --timeline-marker-col: 40px;
    --timeline-gap: 24px;     /* gap between date and marker columns */
}



.timeline-item {
    display: grid;
    grid-template-columns: var(--timeline-date-col) var(--timeline-marker-col) 1fr; /* date | marker | content */
    column-gap: var(--timeline-gap);
    align-items: start;
}

.timeline-date { text-align: center; }
.timeline-month { font-size: 13px; color: #6c7aa6; }
.timeline-year { font-family: 'Source Serif 4', serif; font-size: 18px; color: var(--color-text); }

.timeline-marker { display: flex; align-items: center; justify-content: center; position: relative; }

.timeline-marker::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: calc((var(--timeline-row-gap) * -0.5) - 20px);   /* half gap + dot radius */
    bottom: calc((var(--timeline-row-gap) * -0.5) - 20px);/* half gap + dot radius */
    width: 3px;
    background: #C8D2E3;
    border-radius: 3px;
}

.timeline-item:first-child .timeline-marker::before { top: 7px; }
.timeline-item:last-child  .timeline-marker::before { bottom: 7px; }
.timeline-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--color-main); display: inline-block; position: relative; z-index: 1; }

.timeline-content p { margin: 0; }

@media (max-width: 900px) {
    .timeline { --timeline-date-col: 100px; --timeline-marker-col: 36px; --timeline-gap: 20px; --timeline-row-gap: 28px; }
}

@media (max-width: 600px) {
    .timeline { --timeline-date-col: 80px; --timeline-marker-col: 32px; --timeline-gap: 16px; --timeline-row-gap: 24px; }
}
/* === ABOUT: proof-of-concept === */
.proof-grid {
    display: grid;
    grid-template-columns: 1fr 420px; /* left content | right cards */
    gap: 40px;
    align-items: start;
}

.proof-total-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    align-items: center;
    gap: 24px;
    font-size: 22px;
    margin-top: 12px;
}

.proof-left .timeline { --timeline-date-col: 80px; --timeline-marker-col: 40px; --timeline-gap: 24px; --timeline-row-gap: 60px; }
.proof-left .timeline-year { font-size: 22px; }
.proof-left .timeline-content { font-size: 20px; }

.stat-cards { display: grid; gap: 18px; }

.stat-card {
    padding: 22px 24px;
    border-radius: 6px;
}

.stat-number { font-size: 44px; color: var(--text-color); line-height: 1; }
.stat-text { margin-top: 8px; color: var(--text-color); }
.stat-note { margin-top: 6px; color: #556; }

@media (max-width: 980px) {
    .proof-grid { grid-template-columns: 1fr; }
    .proof-right { order: 2; }
    .proof-left { order: 1; }
}



/* === PARTNERS page === */
.partners-list { display: flex; justify-content: flex-start; align-items: flex-start; flex-wrap: wrap; gap: 36px; }
.partner-item { display: flex; justify-content: flex-start; align-items: start; width: 100%; }
.partner-logo { height: auto; border: 1px solid #C3D4F2; border-radius: 5px; background: #fff; }
.partner-logo img { width: auto; height: 100%; object-fit: contain; }
.partner-body h3 { margin: 0; }


/* === ANCILLARY STUDIES page styles === */
.ancillary-header {
    background: #E8F0FE;
    border-radius: 8px;
    padding: 32px 28px 24px 28px;
    margin-top: 36px;
    margin-bottom: 32px;
}
/* === ANCILLARY: flat items list (card design) === */
.ancillary-item { border: 1px solid #C3D4F2; background: #fff; }
.anc-item-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.anc-right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; min-width: 280px; }
.anc-status { display: inline-block; padding: 8px 12px; border-radius: 4px; background: #E9F0FF; border: 1px solid #DFE6F2; font-weight: 600; }

@media (max-width: 820px) {
  .anc-item-row { flex-direction: column; }
  .anc-right { align-items: flex-start; min-width: 0; }
}

.text-underline {
    text-decoration: underline;
}
