@import url("home.css?v=20261116-38");

:root {
    --home-green: #083c30;
    --home-accent: #A8CF45;
    --home-header-height: 88px;
}

/* Real home header (same markup as index.html) placed inside .box-a on internal pages. */
.box-a:has(> .home-header) {
    z-index: 1000 !important;
}

.box-a > .home-header {
    position: relative;
    inset: auto;
    width: 100%;
}

@media (max-width: 1400px) {
    :root { --home-header-height: 72px; }
}

@media (max-width: 600px) {
    :root { --home-header-height: 68px; }
}

/* Keep the header visible while scrolling, like on the home page. */
.box-a > .home-header {
    position: sticky;
    top: 0;
}

/* Same banner height in every internal section. */
.about-cofaco-banner,
.sust-hero,
.box-banner-sus {
    box-sizing: border-box;
    height: auto !important;
    min-height: clamp(480px, 40vw, 680px) !important;
}

.box-banner-sus {
    display: flex !important;
    align-items: center;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.box-banner-sus .caja-negra {
    margin-top: 0 !important;
}

.about-cofaco-banner--history {
    background:
        linear-gradient(270deg, rgba(3, 29, 23, .12) 0%, rgba(3, 29, 23, .32) 42%, rgba(3, 29, 23, .9) 100%),
        url("../img/cofaco-fabrica-textil.png") center center / cover no-repeat !important;
}

.about-cofaco-banner--strengths {
    background:
        linear-gradient(270deg, rgba(3, 29, 23, .12) 0%, rgba(3, 29, 23, .32) 42%, rgba(3, 29, 23, .9) 100%),
        url("../img/fotos%20portada/proceso-tejeduria.webp") center center / cover no-repeat !important;
}

@media (max-width: 700px) {
    .about-cofaco-banner,
    .sust-hero,
    .box-banner-sus {
        min-height: 400px !important;
    }
}

/* Banner text on the left, dark gradient behind it. */
.about-cofaco-banner {
    background:
        linear-gradient(270deg, rgba(3, 29, 23, .12) 0%, rgba(3, 29, 23, .32) 42%, rgba(3, 29, 23, .9) 100%),
        url("../img/personas.png") center center / cover no-repeat;
}

.about-cofaco-banner .about-cofaco-banner__content {
    margin-left: 0;
    margin-right: auto;
}

/* Banner text aligned to the same left margin as the home hero (14% / 10% / 7%). */
.about-cofaco-banner,
.sust-hero,
.box-banner-sus {
    padding-left: 14% !important;
    padding-right: 14% !important;
}

.sust-hero .sust-hero__inner {
    max-width: none;
    margin: 0;
}

@media (max-width: 1180px) {
    .about-cofaco-banner,
    .sust-hero,
    .box-banner-sus {
        padding-left: 10% !important;
        padding-right: 10% !important;
    }
}

@media (max-width: 600px) {
    .about-cofaco-banner,
    .sust-hero,
    .box-banner-sus {
        padding-left: 7% !important;
        padding-right: 7% !important;
    }
}

.sust-hero .sust-hero__title {
    transform: none !important;
}

/* Text inside the dark box lines up with the home margin. */
.box-banner-sus .caja-negra {
    margin-left: -20px;
}

/* Placeholder section for pages whose content is still being prepared. */
.page-pending {
    padding: 96px 14%;
    background: #f4f6f2;
    text-align: center;
}

.page-pending p {
    margin: 0;
    color: #083c30;
    font: 500 22px/1.4 "Satoshi Home", Arial, sans-serif;
}

/* ---------- Somos COFACO: banner title + subtitle ---------- */
.about-cofaco-banner .about-cofaco-banner__content {
    width: min(100%, 760px);
}

.about-cofaco-banner h2#somos-cofaco-title {
    font-family: "Satoshi Home", Arial, sans-serif;
    font-weight: 900;
    font-size: clamp(44px, 5.4vw, 88px);
    line-height: 1;
    letter-spacing: -.03em;
}

.about-cofaco-banner__subtitle {
    margin: 20px 0 0;
    color: #A8CF45;
    font: 500 clamp(20px, 1.9vw, 30px)/1.3 "Satoshi Home", Arial, sans-serif;
}

/* ---------- Somos COFACO: intro block (+40 años), bento layout ---------- */
.about-intro {
    padding: clamp(80px, 7.5vw, 140px) 14%;
    background:
        radial-gradient(ellipse at 0% 0%, rgba(168, 207, 69, .12), transparent 45%),
        #f5f6f1;
    color: #0a2a1e;
    font-family: "Satoshi Home", Arial, sans-serif;
}

.about-intro__grid {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.25fr);
    gap: 20px;
}

.about-intro__photo {
    position: relative;
    min-height: 560px;
    margin: 0;
    overflow: hidden;
    border-radius: 32px;
    box-shadow: 0 24px 50px rgba(8, 60, 48, .14);
}

.about-intro__photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    transition: transform 700ms ease;
}

.about-intro__photo:hover img {
    transform: scale(1.03);
}

.about-intro__photo figcaption {
    position: absolute;
    left: 24px;
    bottom: 24px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 20px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(8px);
    color: #083c30;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.about-intro__photo figcaption i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #A8CF45;
    box-shadow: 0 0 0 4px rgba(168, 207, 69, .3);
}

.about-intro__side {
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 20px;
}

.about-intro__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px;
}

.about-intro__card {
    border-radius: 32px;
    padding: clamp(28px, 2.6vw, 48px);
    background: #fff;
    box-shadow: 0 1px 0 rgba(8, 60, 48, .06), 0 18px 40px rgba(8, 60, 48, .06);
}

.about-intro__kicker {
    margin: 0 0 18px;
    color: #6b7a70;
    font-size: clamp(13px, .95vw, 15px);
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.about-intro__headline {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 8px 28px;
    margin: 0;
    font-weight: 400;
}

.about-intro__number {
    color: #083c30;
    font-size: clamp(72px, 7vw, 124px);
    font-weight: 900;
    line-height: .85;
    letter-spacing: -.05em;
}

.about-intro__number em {
    margin-left: .12em;
    color: #8dbb2c;
    font-size: .48em;
    font-style: normal;
    font-weight: 600;
    letter-spacing: -.02em;
}

.about-intro__rest {
    flex: 1 1 260px;
    max-width: 420px;
    padding-bottom: 6px;
    color: #0a2a1e;
    font-size: clamp(20px, 1.6vw, 28px);
    font-weight: 500;
    line-height: 1.22;
}

.about-intro__card--text {
    display: flex;
    align-items: center;
}

.about-intro__card--text p {
    margin: 0;
    color: #4f5b55;
    font-size: clamp(16px, 1.15vw, 19px);
    line-height: 1.7;
}

.about-intro__card--journey {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 28px;
    background: radial-gradient(ellipse at top left, #1b4a33 0%, #0a1f14 75%);
    color: #fff;
}

.about-intro__card--journey p {
    margin: 0;
    font-size: clamp(17px, 1.25vw, 21px);
    font-weight: 500;
    line-height: 1.45;
}

.about-intro__card--journey ol {
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.about-intro__card--journey li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, .12);
    font-size: clamp(16px, 1.15vw, 19px);
    font-weight: 700;
}

.about-intro__card--journey li span {
    color: #A8CF45;
    font-size: 13px;
    letter-spacing: .16em;
}

@media (max-width: 1180px) {
    .about-intro { padding-inline: 10%; }
    .about-intro__grid { grid-template-columns: minmax(0, 1fr); }
    .about-intro__photo { min-height: 0; aspect-ratio: 16 / 10; }
}

@media (max-width: 700px) {
    .about-intro { padding: 64px 7%; }
    .about-intro__row { grid-template-columns: minmax(0, 1fr); }
    .about-intro__photo { aspect-ratio: 4 / 5; border-radius: 24px; }
    .about-intro__card { border-radius: 24px; }
}

@media (prefers-reduced-motion: reduce) {
    .about-intro__photo img { transition: none; }
}

/* ---------- Somos COFACO: "Nuestro propósito" (animated) ---------- */
.purpose {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(96px, 9vw, 160px) 14%;
    background: linear-gradient(160deg, #0b2a1c 0%, #06140d 55%, #0a2418 100%);
    color: #fff;
    font-family: "Satoshi Home", Arial, sans-serif;
}

.purpose__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }

.purpose__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: .55;
    animation: purpose-float 18s ease-in-out infinite alternate;
}

.purpose__orb--1 { width: 520px; height: 520px; top: -180px; right: -120px; background: rgba(168, 207, 69, .35); }
.purpose__orb--2 { width: 420px; height: 420px; bottom: -200px; left: -140px; background: rgba(32, 120, 80, .55); animation-duration: 22s; animation-direction: alternate-reverse; }

.purpose__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse at 50% 40%, #000 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 0%, transparent 70%);
}

@keyframes purpose-float {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(-60px, 40px, 0) scale(1.12); }
}

.purpose__inner { max-width: 1340px; margin: 0 auto; }

.purpose__head { display: flex; flex-direction: column; gap: 14px; margin-bottom: clamp(36px, 3.5vw, 56px); }

.purpose__eyebrow {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0;
    color: #A8CF45;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .24em;
    text-transform: uppercase;
}

.purpose__eyebrow::before { content: ""; width: 48px; height: 2px; background: currentColor; }

.purpose__title {
    margin: 0;
    color: rgba(255, 255, 255, .55);
    font-size: clamp(20px, 1.6vw, 26px);
    font-weight: 500;
    letter-spacing: .02em;
}

.purpose__statement {
    max-width: 1200px;
    margin: 0 0 clamp(64px, 6vw, 104px);
    color: #fff;
    font-size: clamp(32px, 3.6vw, 64px);
    font-weight: 700;
    line-height: 1.14;
    letter-spacing: -.025em;
}

.purpose__word { display: inline-block; }

.purpose__statement mark {
    position: relative;
    background: none;
    color: #A8CF45;
}

.purpose__statement mark::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: .02em;
    height: .09em;
    border-radius: 99px;
    background: linear-gradient(90deg, #A8CF45, #d6f08a);
    transform-origin: left;
}

.purpose__pillars {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.purpose__pillar {
    --mx: 50%;
    --my: 0%;
    position: relative;
    overflow: hidden;
    padding: clamp(28px, 2.6vw, 44px);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 28px;
    background:
        radial-gradient(360px circle at var(--mx) var(--my), rgba(168, 207, 69, .14), transparent 60%),
        rgba(255, 255, 255, .035);
    backdrop-filter: blur(6px);
    transition: transform 350ms cubic-bezier(.2, .7, .2, 1), border-color 350ms ease, box-shadow 350ms ease;
}

.purpose__pillar:hover {
    transform: translateY(-8px);
    border-color: rgba(168, 207, 69, .55);
    box-shadow: 0 30px 60px rgba(0, 0, 0, .35), 0 0 0 1px rgba(168, 207, 69, .15) inset;
}

.purpose__num {
    position: absolute;
    top: 26px;
    right: 30px;
    color: rgba(255, 255, 255, .28);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .18em;
}

.purpose__icon {
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    margin-bottom: 28px;
    border-radius: 20px;
    background: rgba(168, 207, 69, .12);
    box-shadow: 0 0 0 1px rgba(168, 207, 69, .25) inset;
    transition: background 350ms ease, transform 350ms ease;
}

.purpose__icon svg {
    width: 34px;
    height: 34px;
    fill: none;
    stroke: #A8CF45;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.purpose__pillar:hover .purpose__icon { background: #A8CF45; transform: rotate(-6deg) scale(1.05); }
.purpose__pillar:hover .purpose__icon svg { stroke: #06140d; }

.purpose__pillar h3 {
    margin: 0 0 12px;
    color: #fff;
    font-size: clamp(22px, 1.7vw, 28px);
    font-weight: 700;
}

.purpose__pillar p {
    margin: 0;
    color: rgba(255, 255, 255, .7);
    font-size: clamp(16px, 1.1vw, 18px);
    line-height: 1.65;
}

.purpose__pillar strong { color: #d6f08a; font-weight: 600; }

/* ---- entrance animations (only when JS enabled them) ---- */
.purpose.is-animated .purpose__head,
.purpose.is-animated .purpose__pillar {
    opacity: 0;
    transform: translateY(40px);
}

.purpose.is-animated .purpose__word {
    opacity: .12;
    transform: translateY(.3em);
    filter: blur(6px);
}

.purpose.is-animated mark::after { transform: scaleX(0); }

.purpose.is-animated .purpose__icon path {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
}

.purpose.is-visible .purpose__head {
    opacity: 1;
    transform: none;
    transition: opacity 800ms ease, transform 800ms cubic-bezier(.2, .7, .2, 1);
}

.purpose.is-visible .purpose__word {
    opacity: 1;
    transform: none;
    filter: none;
    transition: opacity 600ms ease, transform 600ms cubic-bezier(.2, .7, .2, 1), filter 600ms ease;
    transition-delay: calc(250ms + var(--i) * 45ms);
}

.purpose.is-visible mark::after {
    transform: scaleX(1);
    transition: transform 700ms cubic-bezier(.2, .7, .2, 1) 1.5s;
}

.purpose.is-visible .purpose__pillar {
    opacity: 1;
    transform: none;
    transition: opacity 800ms ease, transform 800ms cubic-bezier(.2, .7, .2, 1), border-color 350ms ease, box-shadow 350ms ease;
    transition-delay: calc(1.3s + var(--d) * 160ms), calc(1.3s + var(--d) * 160ms), 0s, 0s;
}

.purpose.is-visible .purpose__pillar:hover { transform: translateY(-8px); }

.purpose.is-visible .purpose__icon path {
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1.4s ease;
    transition-delay: calc(1.6s + var(--d) * 160ms);
}

@media (max-width: 1100px) {
    .purpose { padding-inline: 10%; }
    .purpose__pillars { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 600px) {
    .purpose { padding: 80px 7%; }
    .purpose__pillar { border-radius: 22px; }
}

@media (prefers-reduced-motion: reduce) {
    .purpose__orb { animation: none; }
    .purpose__pillar, .purpose__icon { transition: none; }
}

/* ---------- Somos COFACO: Misión / Visión ---------- */
.mv {
    padding: clamp(96px, 8vw, 150px) 14% clamp(48px, 4vw, 72px);
    background: #fff;
    font-family: "Satoshi Home", Arial, sans-serif;
}

.mv__eyebrow,
.values__eyebrow {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 clamp(28px, 2.6vw, 44px);
    color: #79a924;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .24em;
    text-transform: uppercase;
}

.mv__eyebrow::before,
.values__eyebrow::before { content: ""; width: 48px; height: 2px; background: currentColor; }

.mv__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.mv__card {
    --mx: 50%;
    --my: 0%;
    position: relative;
    overflow: hidden;
    padding: clamp(36px, 3.4vw, 64px);
    border: 1px solid rgba(8, 60, 48, .1);
    border-radius: 32px;
    background:
        radial-gradient(420px circle at var(--mx) var(--my), rgba(168, 207, 69, .13), transparent 60%),
        linear-gradient(180deg, #fbfcf8, #f3f6ec);
    transition: transform 350ms cubic-bezier(.2, .7, .2, 1), box-shadow 350ms ease, border-color 350ms ease;
}

.mv__card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 4px;
    width: 100%;
    background: linear-gradient(90deg, #A8CF45, #2f8f5b);
    transform-origin: left;
}

.mv__card:hover {
    transform: translateY(-6px);
    border-color: rgba(168, 207, 69, .6);
    box-shadow: 0 30px 60px rgba(8, 60, 48, .12);
}

.mv__watermark {
    position: absolute;
    right: -.06em;
    bottom: -.22em;
    color: rgba(8, 60, 48, .045);
    font-size: clamp(110px, 11vw, 200px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -.05em;
    pointer-events: none;
    user-select: none;
}

.mv__icon {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    margin-bottom: 28px;
    border-radius: 22px;
    background: #083c30;
    box-shadow: 0 14px 30px rgba(8, 60, 48, .25);
    transition: transform 350ms ease, background 350ms ease;
}

.mv__icon svg,
.values__hex svg {
    width: 36px;
    height: 36px;
    fill: none;
    stroke: #A8CF45;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mv__card:hover .mv__icon { transform: rotate(-6deg) scale(1.06); }

.mv__card h2 {
    position: relative;
    margin: 0 0 18px;
    color: #083c30;
    font-size: clamp(30px, 2.6vw, 44px);
    font-weight: 800;
    letter-spacing: -.02em;
}

.mv__card p {
    position: relative;
    max-width: 560px;
    margin: 0;
    color: #3f4b45;
    font-size: clamp(19px, 1.5vw, 25px);
    font-weight: 400;
    line-height: 1.5;
}

.mv__card strong { color: #083c30; font-weight: 700; }

/* ---------- Somos COFACO: Valores ---------- */
.values {
    position: relative;
    padding: clamp(48px, 4vw, 72px) 14% clamp(96px, 8vw, 150px);
    background: #fff;
    font-family: "Satoshi Home", Arial, sans-serif;
}

.values__head { margin-bottom: clamp(40px, 3.6vw, 64px); }
.values__eyebrow { margin-bottom: 14px; }

.values__title {
    margin: 0;
    color: #0a2a1e;
    font-size: clamp(40px, 4.2vw, 72px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.035em;
}

.values__list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.values__item {
    --mx: 50%;
    --my: 0%;
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 32px 26px 34px;
    border: 1px solid rgba(8, 60, 48, .09);
    border-radius: 28px;
    background:
        radial-gradient(300px circle at var(--mx) var(--my), rgba(168, 207, 69, .16), transparent 60%),
        #f6f8f2;
    transition: transform 350ms cubic-bezier(.2, .7, .2, 1), box-shadow 350ms ease, border-color 350ms ease;
}

.values__item:hover {
    transform: translateY(-10px);
    border-color: rgba(168, 207, 69, .7);
    box-shadow: 0 28px 56px rgba(8, 60, 48, .14);
}

.values__hex {
    display: grid;
    place-items: center;
    width: 76px;
    height: 84px;
    margin-bottom: 26px;
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
    background: linear-gradient(160deg, #1b4a33, #06140d);
    transition: transform 500ms cubic-bezier(.2, .7, .2, 1), background 350ms ease;
}

.values__hex svg { transition: transform 500ms cubic-bezier(.2, .7, .2, 1), stroke 350ms ease; }

.values__item:hover .values__hex {
    transform: rotate(60deg);
    background: linear-gradient(160deg, #c7e86c, #A8CF45);
}

.values__item:hover .values__hex svg {
    stroke: #06140d;
    transform: rotate(-60deg);
}

.values__num {
    position: absolute;
    top: 30px;
    right: 26px;
    color: rgba(8, 60, 48, .25);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .16em;
}

.values__item h3 {
    margin: 0 0 12px;
    color: #083c30;
    font-size: clamp(20px, 1.45vw, 24px);
    font-weight: 800;
    line-height: 1.15;
}

.values__item p {
    margin: 0;
    color: #56625c;
    font-size: clamp(15px, 1vw, 17px);
    line-height: 1.6;
}

/* ---- entrance animations ---- */
.mv.is-animated .mv__eyebrow,
.values.is-animated .values__head { opacity: 0; transform: translateY(24px); }
.mv.is-animated .mv__card,
.values.is-animated .values__item { opacity: 0; transform: translateY(48px); }
.mv.is-animated .mv__card::before { transform: scaleX(0); }
.mv.is-animated .mv__icon path,
.mv.is-animated .mv__icon circle,
.values.is-animated .values__hex path,
.values.is-animated .values__hex circle { stroke-dasharray: 1; stroke-dashoffset: 1; }

.mv.is-visible .mv__eyebrow,
.values.is-visible .values__head {
    opacity: 1;
    transform: none;
    transition: opacity 700ms ease, transform 700ms cubic-bezier(.2, .7, .2, 1);
}

.mv.is-visible .mv__card,
.values.is-visible .values__item {
    opacity: 1;
    transform: none;
    transition: opacity 800ms ease, transform 800ms cubic-bezier(.2, .7, .2, 1), border-color 350ms ease, box-shadow 350ms ease;
    transition-delay: calc(200ms + var(--d) * 140ms), calc(200ms + var(--d) * 140ms), 0s, 0s;
}

.mv.is-visible .mv__card:hover { transform: translateY(-6px); }
.values.is-visible .values__item:hover { transform: translateY(-10px); }

.mv.is-visible .mv__card::before {
    transform: scaleX(1);
    transition: transform 1.1s cubic-bezier(.2, .7, .2, 1) calc(500ms + var(--d) * 140ms);
}

.mv.is-visible .mv__icon path,
.mv.is-visible .mv__icon circle,
.values.is-visible .values__hex path,
.values.is-visible .values__hex circle {
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1.4s ease calc(600ms + var(--d) * 140ms);
}

@media (max-width: 1280px) {
    .values__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1100px) {
    .mv, .values { padding-inline: 10%; }
}

@media (max-width: 900px) {
    .mv__grid { grid-template-columns: minmax(0, 1fr); }
    .values__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    .mv, .values { padding-inline: 7%; }
    .values__list { grid-template-columns: minmax(0, 1fr); }
    .mv__card, .values__item { border-radius: 22px; }
}

@media (prefers-reduced-motion: reduce) {
    .mv__card, .values__item, .values__hex, .values__hex svg, .mv__icon { transition: none; }
}

/* Somos COFACO banner: team collage photo */
.about-cofaco-banner--somos {
    background:
        linear-gradient(90deg, rgba(3, 29, 23, .88) 0%, rgba(3, 29, 23, .62) 38%, rgba(3, 29, 23, .18) 75%, rgba(3, 29, 23, .1) 100%),
        url("../img/somos-cofaco-banner.jpg") center 6% / cover no-repeat !important;
}

/* ---------- Nuestra historia: premium vertical timeline ---------- */
.timeline {
    position: relative;
    padding: clamp(96px, 8vw, 150px) 14%;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(168, 207, 69, .14), transparent 55%),
        linear-gradient(180deg, #f7f8f3 0%, #eef2e6 100%);
    font-family: "Satoshi Home", Arial, sans-serif;
    overflow: hidden;
}

.timeline__head {
    max-width: 760px;
    margin: 0 auto clamp(64px, 6vw, 104px);
    text-align: center;
}

.timeline__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 16px;
    color: #79a924;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .24em;
    text-transform: uppercase;
}

.timeline__eyebrow::before,
.timeline__eyebrow::after { content: ""; width: 40px; height: 2px; background: currentColor; }

.timeline__title {
    margin: 0 0 20px;
    color: #0a2a1e;
    font-size: clamp(40px, 4.4vw, 76px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.035em;
}

.timeline__title span { color: #8dbb2c; }

.timeline__intro {
    margin: 0;
    color: #56625c;
    font-size: clamp(17px, 1.3vw, 21px);
    line-height: 1.6;
}

.timeline__list {
    --progress: 0;
    position: relative;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.timeline__track {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    border-radius: 2px;
    background: rgba(8, 60, 48, .12);
}

.timeline__fill {
    position: absolute;
    inset: 0 0 auto;
    height: calc(var(--progress) * 100%);
    border-radius: inherit;
    background: linear-gradient(180deg, #A8CF45, #2f8f5b);
    box-shadow: 0 0 14px rgba(168, 207, 69, .6);
}

.timeline.is-static .timeline__fill { height: 100%; }

.timeline__item {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr);
    align-items: center;
}

.timeline__item + .timeline__item { margin-top: clamp(-40px, -2.5vw, -16px); }

.timeline__node {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    position: relative;
    z-index: 1;
    width: 22px;
    height: 22px;
    border: 2px solid rgba(8, 60, 48, .25);
    border-radius: 50%;
    background: #f4f6ef;
    transition: border-color 400ms ease, background 400ms ease, box-shadow 400ms ease, transform 400ms ease;
}

.timeline__item.is-active .timeline__node {
    border-color: #A8CF45;
    background: #083c30;
    box-shadow: 0 0 0 6px rgba(168, 207, 69, .25), 0 0 24px rgba(168, 207, 69, .55);
    transform: scale(1.15);
}

.timeline__card {
    --mx: 50%;
    --my: 0%;
    grid-row: 1;
    position: relative;
    padding: clamp(28px, 2.4vw, 40px);
    border: 1px solid rgba(8, 60, 48, .08);
    border-radius: 28px;
    background:
        radial-gradient(320px circle at var(--mx) var(--my), rgba(168, 207, 69, .12), transparent 60%),
        #fff;
    box-shadow: 0 18px 44px rgba(8, 60, 48, .08);
    transition: transform 350ms cubic-bezier(.2, .7, .2, 1), box-shadow 350ms ease, border-color 350ms ease;
}

.timeline__item--left .timeline__card { grid-column: 1; }
.timeline__item--right .timeline__card { grid-column: 3; }

/* small connector from card to the central line */
.timeline__card::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 36px;
    height: 2px;
    background: rgba(8, 60, 48, .12);
    transition: background 400ms ease;
}

.timeline__item--left .timeline__card::after { right: -37px; }
.timeline__item--right .timeline__card::after { left: -37px; }
.timeline__item.is-active .timeline__card::after { background: #A8CF45; }

.timeline__card:hover {
    transform: translateY(-6px);
    border-color: rgba(168, 207, 69, .6);
    box-shadow: 0 28px 56px rgba(8, 60, 48, .14);
}

.timeline__year {
    display: block;
    margin-bottom: 14px;
    background: linear-gradient(180deg, #0a2a1e 0%, #2f8f5b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: clamp(48px, 4.4vw, 76px);
    font-weight: 900;
    line-height: .9;
    letter-spacing: -.04em;
}

.timeline__item.is-active .timeline__year {
    background-image: linear-gradient(180deg, #8dbb2c 0%, #2f8f5b 100%);
}

.timeline__icon {
    position: absolute;
    top: clamp(24px, 2.2vw, 36px);
    right: clamp(24px, 2.2vw, 36px);
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: #f1f6e6;
    transition: transform 400ms cubic-bezier(.2, .7, .2, 1), background 400ms ease;
}

.timeline__icon img {
    display: block;
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.timeline__card:hover .timeline__icon {
    transform: rotate(-8deg) scale(1.08);
    background: #e3efc6;
}

.timeline__card h3 {
    margin: 0 0 10px;
    padding-right: 72px;
    color: #083c30;
    font-size: clamp(20px, 1.5vw, 26px);
    font-weight: 800;
    line-height: 1.2;
}

.timeline__card p,
.timeline__card li {
    margin: 0;
    color: #56625c;
    font-size: clamp(16px, 1.1vw, 18px);
    line-height: 1.6;
}

.timeline__card ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.timeline__card li {
    position: relative;
    padding-left: 22px;
}

.timeline__card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .62em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #A8CF45;
}

/* ---- entrance animations ---- */
.timeline.is-animated .timeline__head { opacity: 0; transform: translateY(28px); }
.timeline.is-animated .timeline__head.is-visible {
    opacity: 1;
    transform: none;
    transition: opacity 800ms ease, transform 800ms cubic-bezier(.2, .7, .2, 1);
}

.timeline.is-animated .timeline__item .timeline__card { opacity: 0; }
.timeline.is-animated .timeline__item--left .timeline__card { transform: translateX(-60px); }
.timeline.is-animated .timeline__item--right .timeline__card { transform: translateX(60px); }

.timeline.is-animated .timeline__item.is-visible .timeline__card {
    opacity: 1;
    transform: none;
    transition: opacity 800ms ease, transform 800ms cubic-bezier(.2, .7, .2, 1), border-color 350ms ease, box-shadow 350ms ease;
}

.timeline.is-animated .timeline__item.is-visible .timeline__card:hover { transform: translateY(-6px); }

/* ---- responsive: single column with line on the left ---- */
@media (max-width: 1100px) {
    .timeline { padding-inline: 10%; }
}

@media (max-width: 900px) {
    .timeline__track { left: 11px; transform: none; }
    .timeline__item { grid-template-columns: 22px minmax(0, 1fr); gap: 0 28px; }
    .timeline__item + .timeline__item { margin-top: 28px; }
    .timeline__node { grid-column: 1; }
    .timeline__item--left .timeline__card,
    .timeline__item--right .timeline__card { grid-column: 2; }
    .timeline__item--left .timeline__card::after,
    .timeline__item--right .timeline__card::after { left: -29px; right: auto; width: 28px; }
    .timeline.is-animated .timeline__item--left .timeline__card,
    .timeline.is-animated .timeline__item--right .timeline__card { transform: translateX(40px); }
}

@media (max-width: 600px) {
    .timeline { padding-inline: 7%; }
    .timeline__card { border-radius: 22px; }
    .timeline__icon { width: 52px; height: 52px; border-radius: 14px; }
    .timeline__icon img { width: 32px; height: 32px; }
    .timeline__card h3 { padding-right: 60px; }
}

@media (prefers-reduced-motion: reduce) {
    .timeline__card, .timeline__node, .timeline__icon { transition: none; }
}
