:root {
    --rojo: #c41e26;
    --rojo-suave: #d64545;
    --verde: #2e8a4a;
    --verde-oscuro: #1b4d32;
    --tierra: #5c3a24;
    --crema: #f4efe7;
    --papel: #fbf8f3;
    --blanco: #fffdf9;
    --tinta: #1e1c1a;
    --muted: #6b655c;
    --linea: rgba(28, 26, 24, 0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 6rem; }

body {
    font-family: 'Outfit', sans-serif;
    color: var(--tinta);
    background: var(--papel);
    line-height: 1.65;
}

body.menu-open { overflow: hidden; }

img { max-width: 100%; display: block; }

a { color: inherit; }

.wrap {
    width: min(1180px, calc(100% - 2.5rem));
    margin-inline: auto;
}

.serif { font-family: 'Fraunces', serif; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--rojo);
}

.eyebrow::before {
    content: '';
    width: 1.6rem;
    height: 1px;
    background: currentColor;
}

/* Header */
.header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    background: rgba(251, 248, 243, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.header.is-scrolled {
    border-bottom-color: var(--linea);
    box-shadow: 0 8px 30px rgba(28, 26, 24, 0.06);
}

.header-inner {
    height: 5.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

.brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    line-height: 0;
}

.brand img {
    height: 78px;
    width: auto;
    max-width: none;
}

.nav { margin-left: auto; }

.nav-list {
    display: flex;
    align-items: center;
    gap: 0.35rem 1.5rem;
    list-style: none;
}

.nav-list > li > a,
.nav-trigger {
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--muted);
    background: none;
    border: 0;
    font-family: inherit;
    cursor: pointer;
    padding: 0.35rem 0;
}

.nav-list > li > a:hover,
.nav-trigger:hover,
.nav-list > li > a.is-active {
    color: var(--tinta);
}

.has-sub { position: relative; }

.has-sub::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 1.1rem;
}

.nav-trigger::after {
    content: '';
    display: inline-block;
    width: 0.4rem;
    height: 0.4rem;
    margin-left: 0.4rem;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
}

.subnav {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 50%;
    transform: translate(-50%, 6px);
    min-width: 240px;
    background: var(--blanco);
    border: 1px solid var(--linea);
    border-radius: 1rem;
    padding: 0.55rem;
    list-style: none;
    box-shadow: 0 16px 40px rgba(28, 26, 24, 0.1);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
    z-index: 20;
}

.has-sub:hover .subnav,
.has-sub:focus-within .subnav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.subnav a {
    display: block;
    text-decoration: none;
    padding: 0.6rem 0.85rem;
    border-radius: 0.7rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--muted);
}

.subnav a:hover,
.subnav a.is-active {
    background: var(--crema);
    color: var(--tinta);
}

.nav .btn,
.nav-list > li > a.btn,
.nav-list > li > a.btn.is-active {
    padding: 0.55rem 1.2rem;
    font-size: 0.88rem;
    background: var(--verde-oscuro);
    color: #fff;
    box-shadow: 0 8px 18px rgba(27, 77, 50, 0.18);
}

.nav .btn:hover,
.nav-list > li > a.btn:hover,
.nav-list > li > a.btn.is-active:hover {
    background: var(--verde);
    color: #fff;
}

.menu-btn {
    display: none;
    border: 0;
    background: none;
    width: 42px;
    height: 42px;
    cursor: pointer;
    z-index: 60;
}

.menu-btn span,
.menu-btn span::before,
.menu-btn span::after {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--tinta);
    position: relative;
    border-radius: 2px;
    margin-inline: auto;
    transition: transform 0.25s, opacity 0.25s, top 0.25s;
}

.menu-btn span::before,
.menu-btn span::after {
    content: '';
    position: absolute;
    left: 0;
}

.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }

.menu-btn.is-open span { background: transparent; }
.menu-btn.is-open span::before { top: 0; transform: rotate(45deg); }
.menu-btn.is-open span::after { top: 0; transform: rotate(-45deg); }

.card[id],
section[id] { scroll-margin-top: 5.5rem; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    font-weight: 600;
    border-radius: 999px;
    padding: 0.85rem 1.5rem;
    transition: transform 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s;
}

.btn:hover { transform: translateY(-1px); }

.btn-rojo {
    background: var(--rojo);
    color: #fff;
}

.btn-rojo:hover {
    background: var(--rojo-suave);
    box-shadow: 0 10px 24px rgba(196, 30, 38, 0.22);
}

.btn-blanco {
    background: #fff;
    color: var(--verde-oscuro);
}

.btn-line {
    border: 1px solid var(--tinta);
    color: var(--tinta);
    background: transparent;
}

.btn-line:hover {
    background: var(--tinta);
    color: #fff;
}

/* Hero */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: flex-end;
    color: #fff;
    overflow: hidden;
}

.hero-media,
.hero-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-media img { object-position: center 40%; }

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(27, 77, 50, 0.18) 0%, rgba(28, 26, 24, 0.38) 40%, rgba(28, 26, 24, 0.88) 100%);
}

.hero-copy {
    position: relative;
    z-index: 1;
    padding: 0 0 5.5rem;
    max-width: 760px;
}

.hero-copy .eyebrow { color: #f0d2b0; }

.hero h1 {
    font-family: 'Fraunces', serif;
    font-size: clamp(2.4rem, 6vw, 4.6rem);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin: 1rem 0 1.2rem;
}

.hero h1 em {
    font-style: italic;
    color: #f4c7a5;
}

.hero p {
    font-size: 1.12rem;
    color: rgba(255,255,255,0.84);
    max-width: 38rem;
    margin-bottom: 2rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

.hero-badge {
    position: absolute;
    right: max(1.25rem, calc((100% - 1180px) / 2));
    bottom: 5.5rem;
    z-index: 1;
    background: var(--rojo);
    color: #fff;
    border-radius: 1rem;
    padding: 1.1rem 1.3rem;
    text-align: center;
    min-width: 118px;
}

.hero-badge strong {
    display: block;
    font-family: 'Fraunces', serif;
    font-size: 1.85rem;
    line-height: 1.1;
}

.hero-badge span {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Vision */
.vision {
    background: var(--verde-oscuro);
    color: #fff;
    padding: 4.5rem 0;
    text-align: center;
}

.vision .eyebrow { color: #d7e8d4; justify-content: center; }

.vision .eyebrow::before { display: none; }

.vision blockquote {
    font-family: 'Fraunces', serif;
    font-size: clamp(1.4rem, 3vw, 2.15rem);
    font-weight: 500;
    font-style: italic;
    line-height: 1.45;
    max-width: 46rem;
    margin: 1rem auto 0;
}

/* Secciones */
section { padding: 6rem 0; }

h2 {
    font-family: 'Fraunces', serif;
    font-size: clamp(2rem, 4vw, 3.1rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-top: 0.7rem;
}

.lead {
    color: var(--muted);
    font-size: 1.08rem;
    max-width: 38rem;
    margin-top: 1rem;
}

.head { margin-bottom: 3rem; }

/* Valores */
.valores { background: var(--papel); }

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.4rem;
}

.valor {
    background: var(--blanco);
    border: 1px solid var(--linea);
    border-radius: 1.2rem;
    padding: 1.8rem;
}

.valor h3 {
    font-family: 'Fraunces', serif;
    font-size: 1.4rem;
    margin: 0.4rem 0 0.7rem;
}

.valor p { color: var(--muted); }

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--rojo);
}

.valor:nth-child(2) .dot { background: var(--verde); }
.valor:nth-child(3) .dot { background: var(--tierra); }

/* Programas */
.programas { background: var(--crema); }

.mision-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 1.4rem;
    margin-bottom: 4.5rem;
}

.equipo-bloque { margin-top: 4rem; }

.head-sm { margin-bottom: 1.8rem; }

.subhead {
    font-family: 'Fraunces', serif;
    font-size: 1.2rem;
    margin: 2rem 0 1rem;
    color: var(--tierra);
}

.people-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.people-grid .persona {
    flex: 0 1 180px;
    width: 100%;
    max-width: 210px;
}

.people-wide .persona {
    flex-basis: 260px;
    max-width: 300px;
}

.people-sm .persona {
    flex-basis: 210px;
    max-width: 240px;
}

.persona {
    background: var(--blanco);
    border: 1px solid var(--linea);
    border-radius: 1.1rem;
    overflow: hidden;
    padding: 0;
}

.persona-foto {
    width: 100%;
    height: 180px;
    object-fit: cover;
    object-position: center center;
}

.persona-body {
    padding: 1rem 1.1rem 1.2rem;
    text-align: center;
}

.persona h3 {
    font-family: 'Fraunces', serif;
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.persona p {
    color: var(--muted);
    font-size: 0.88rem;
}

.programas-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.card.programa .card-body {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    flex: 1;
}

.card.programa .btn {
    align-self: flex-start;
    margin-top: auto;
    padding: 0.65rem 1.15rem;
}

.logo-well.oscuro img {
    max-width: 100%;
    max-height: 120px;
}

.instagram { background: var(--crema); }

.instagram-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.5rem;
}

.ig-live {
    display: flex;
    justify-content: center;
}

.ig-crop {
    width: min(720px, 100%);
    height: 530px;
    overflow: hidden;
    border-radius: 1.2rem;
    background: #fff;
    border: 1px solid var(--linea);
}

.ig-crop iframe {
    display: block;
    width: 720px;
    max-width: none;
    height: 530px;
    border: 0;
    background: #fff;
}

.card {
    background: var(--blanco);
    border-radius: 1.3rem;
    overflow: hidden;
    border: 1px solid var(--linea);
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.card-photo {
    height: 210px;
    overflow: hidden;
}

.card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-body { padding: 1.5rem 1.5rem 1.7rem; }

.card h3 {
    font-family: 'Fraunces', serif;
    font-size: 1.45rem;
    margin-bottom: 0.45rem;
}

.card p { color: var(--muted); font-size: 0.98rem; }

.card.featured { grid-row: span 2; }

.card.featured .card-photo { height: 280px; }

.logo-well {
    height: 210px;
    display: grid;
    place-items: center;
    padding: 1.6rem;
    background: #fff;
}

.logo-well img {
    max-height: 150px;
    width: auto;
    max-width: 86%;
    object-fit: contain;
}

.logo-well.yvy,
.logo-well.gea,
.logo-well.viajes,
.logo-well.carbon,
.logo-well.bio,
.logo-well.oscuro { background: #fff; }

/* TTF */
.ttf {
    background: var(--papel);
    padding-top: 0;
}

.ttf-box {
    background: #111;
    border-radius: 1.4rem;
    padding: 2.5rem 2rem 2rem;
    color: #fff;
}

.ttf-box img {
    width: min(920px, 100%);
    margin: 0.4rem auto 1.4rem;
}

.ttf-box p {
    text-align: center;
    color: rgba(255,255,255,0.72);
    max-width: 42rem;
    margin: 0 auto;
}

.alianzas-grid { margin-top: 1.4rem; }

/* Premios */
.premios-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 3.5rem;
    align-items: center;
}

.premios-photo {
    border-radius: 1.3rem;
    overflow: hidden;
    height: 420px;
}

.premios-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.premios-grid p {
    color: var(--muted);
    margin: 1.1rem 0 1.8rem;
    font-size: 1.08rem;
}

/* Blog */
.blog { background: var(--crema); }

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}

.post {
    background: var(--blanco);
    border-radius: 1.2rem;
    overflow: hidden;
    border: 1px solid var(--linea);
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.post img {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.post-body { padding: 1.35rem 1.4rem 1.5rem; }

.tag {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--rojo);
}

.post h3 {
    font-family: 'Fraunces', serif;
    font-size: 1.28rem;
    margin: 0.45rem 0 0.6rem;
}

.post p { color: var(--muted); font-size: 0.95rem; }

/* Contacto */
.contacto {
    background: var(--verde-oscuro);
    color: #fff;
}

.contacto-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
}

.contacto .eyebrow { color: #d7e8d4; }

.contacto h2 { margin-bottom: 0.9rem; }

.contacto .lead { color: rgba(255,255,255,0.74); }

.info {
    margin-top: 2rem;
    display: grid;
    gap: 0.9rem;
}

.info a, .info p {
    display: block;
    text-decoration: none;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 0.9rem;
    padding: 1rem 1.15rem;
}

.info small {
    display: block;
    color: #f0d2b0;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.cta-panel {
    border-radius: 1.3rem;
    overflow: hidden;
    min-height: 340px;
    position: relative;
    display: flex;
    align-items: flex-end;
}

.cta-panel img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-panel .shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.05), rgba(27, 77, 50, 0.88));
}

.cta-copy {
    position: relative;
    padding: 2rem;
}

.cta-copy h3 {
    font-family: 'Fraunces', serif;
    font-size: 1.8rem;
    margin-bottom: 0.6rem;
}

.cta-copy p {
    color: rgba(255,255,255,0.82);
    margin-bottom: 1.2rem;
}

/* Footer */
footer {
    background: #141311;
    color: rgba(255,255,255,0.72);
    padding: 3.2rem 0 1.5rem;
}

.foot-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.foot-brand img { height: 72px; width: auto; max-width: none; margin-bottom: 0.9rem; }

footer h4 {
    color: #fff;
    font-size: 0.92rem;
    margin-bottom: 0.9rem;
}

footer ul { list-style: none; }

footer li { margin-bottom: 0.45rem; }

footer a { text-decoration: none; }

footer a:hover { color: #fff; }

.legal {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.2rem;
    font-size: 0.85rem;
    flex-wrap: wrap;
}

.sas {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-top: 1.1rem;
}

.sas img { height: 42px; }

@media (max-width: 980px) {
    .menu-btn { display: grid; place-items: center; }

    .header-inner { height: 5.2rem; }

    .brand img { height: 66px; }

    .nav {
        display: none;
        position: fixed;
        inset: 5.2rem 0 0;
        background: var(--papel);
        padding: 1.2rem 1.4rem 3rem;
        overflow: auto;
        border-top: 1px solid var(--linea);
    }

    .nav.is-open { display: block; }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0.2rem;
    }

    .nav-list > li > a,
    .nav-trigger {
        display: block;
        width: 100%;
        text-align: left;
        font-size: 1.3rem;
        font-weight: 600;
        color: var(--tinta);
        padding: 0.85rem 0.2rem;
    }

    .has-sub::after { display: none; }

    .has-sub:hover .subnav,
    .has-sub:focus-within .subnav {
        transform: none;
    }

    .subnav {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        box-shadow: none;
        border: 0;
        background: transparent;
        padding: 0 0 0.8rem 0.85rem;
        min-width: 0;
        left: auto;
    }

    .subnav a {
        font-size: 1rem;
        padding: 0.45rem 0;
    }

    .nav .btn,
    .nav-list > li > a.btn,
    .nav-list > li > a.btn.is-active {
        margin-top: 0.8rem;
        justify-content: center;
        width: 100%;
        background: var(--verde-oscuro);
        color: #fff;
    }

    .grid-3, .blog-grid, .premios-grid, .contacto-grid, .foot-grid,
    .mision-grid, .programas-grid {
        grid-template-columns: 1fr;
    }
    .instagram-head {
        flex-direction: column;
        align-items: flex-start;
    }
    .ig-crop {
        height: 480px;
    }
    .ig-crop iframe {
        width: 100%;
        height: 480px;
    }
    .card.featured { grid-row: auto; }
    .hero-badge { display: none; }
    .hero-copy { padding-bottom: 4rem; }
}

@media (max-width: 640px) {
    .people-grid .persona,
    .people-wide .persona,
    .people-sm .persona {
        flex-basis: 100%;
        max-width: 320px;
    }
}
