:root {
    --green-900: #303723;
    --green-700: #51603b;
    --green-100: #e7ead8;
    --cream: #f6f1e6;
    --paper: #fffaf0;
    --rose: #C3CD7F;
    --ink: #171812;
    --muted: #5f6256;
    --line: rgba(48, 55, 35, 0.16);
    --shadow: 0 18px 50px rgba(29, 32, 23, 0.14);
    --container: 1180px;
}

@font-face {
    font-family: "Pangea";
    src: url("../assets/fonts/PangeaTrial-Regular.otf") format("opentype");
    font-weight: 400;
}

@font-face {
    font-family: "Pangea";
    src: url("../assets/fonts/PangeaTrial-Bold.otf") format("opentype");
    font-weight: 700;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--cream);
    font-family: "Pangea", Arial, sans-serif;
    line-height: 1.5;
}

body.menu-open {
    overflow: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(100% - 40px, var(--container));
    margin: 0 auto;
}

.site-header {
    position: fixed;
    z-index: 10;
    top: 0;
    left: 0;
    width: 100%;
    padding: 18px 0;
    background: transparent;
    transition: background 180ms ease, box-shadow 180ms ease, padding 180ms ease, backdrop-filter 180ms ease;
}

.site-header.scrolled,
.site-header.menu-active {
    background: rgba(70, 73, 56, 0.95); /* Verde oscuro header.jpeg con transparencia */
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 10px 30px rgba(23, 24, 18, 0.08);
    padding: 10px 0;
}

.nav-container {
    width: min(100% - 40px, var(--container));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    display: flex;
    align-items: center;
}

.brand img {
    width: 180px;
    height: auto;
    filter: brightness(0) invert(1);
    transition: filter 180ms ease;
}

.site-header.scrolled .brand img,
.site-header.menu-active .brand img {
    filter: brightness(0) invert(1);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    color: #fff;
    font-weight: 700;
    transition: color 180ms ease;
}

.site-nav a {
    transition: color 180ms ease;
}

.site-nav a:hover {
    color: var(--rose);
}

.site-header.scrolled .site-nav,
.site-header.menu-active .site-nav {
    color: var(--paper);
}

.site-header.scrolled .site-nav a:hover,
.site-header.menu-active .site-nav a:hover {
    color: var(--rose);
}

.site-nav a {
    position: relative;
}

.site-nav a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -7px;
    left: 0;
    height: 2px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 160ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
    transform: scaleX(1);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    background: var(--paper);
    border-radius: 8px;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 5px 0;
    background: var(--green-900);
}

.hero {
    position: relative;
    min-height: 94vh;
    display: grid;
    align-items: end;
    overflow: hidden;
    color: #fff;
    padding: 150px 0 86px;
}

.hero-media {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(23, 24, 18, 0.78), rgba(23, 24, 18, 0.36) 48%, rgba(23, 24, 18, 0.14)),
        url("../assets/images/hero-bg-opcion1.jpg") center / cover;
    transform: scale(1.03);
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(100% - 40px, var(--container));
    margin: 0 auto;
    max-width: 810px;
}

.eyebrow {
    margin: 0 0 20px;
    color: var(--rose);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero .eyebrow {
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    letter-spacing: 0.12em;
    margin-bottom: 24px;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 780px;
    margin-bottom: 22px;
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.05;
}

h2 {
    margin-bottom: 20px;
    color: var(--green-900);
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 1;
}

h3 {
    margin-bottom: 16px;
    color: var(--green-900);
    font-size: 1.35rem;
    line-height: 1.3;
}

.hero-copy {
    max-width: 650px;
    margin-bottom: 34px;
    font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.hero-actions,
.footer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 20px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 700;
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--rose);
    color: var(--ink);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background: #d2db92;
}

.btn-secondary {
    border-color: rgba(255, 255, 255, 0.62);
    color: #fff;
}

.section {
    padding: 96px 0;
}

.intro-band {
    background: var(--paper);
}

.split,
.feature-grid,
.impact-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 62px;
    align-items: center;
}

.intro-copy {
    color: var(--muted);
    font-size: 1.15rem;
}

.feature-image {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.feature-image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.feature-copy p:not(.eyebrow) {
    color: var(--muted);
    font-size: 1.12rem;
}

.pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 24px;
}

.pill-list span {
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
    color: var(--green-900);
    font-size: 0.92rem;
    font-weight: 700;
}

.services {
    background: var(--green-100);
}

.section-heading {
    max-width: 820px;
    margin-bottom: 40px;
}

.section-heading.compact {
    max-width: 640px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.service-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 12px 34px rgba(48, 55, 35, 0.08);
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(48, 55, 35, 0.16);
}

.service-card:focus-visible {
    outline: 3px solid var(--rose);
    outline-offset: -4px;
}

.service-card img {
    width: 100%;
    aspect-ratio: 1.1 / 1;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover img {
    transform: scale(1.03);
}

.service-card div {
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-label {
    margin-bottom: 10px;
    color: var(--rose);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.card-action-text {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--rose);
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: auto;
    padding-top: 16px;
    transition: gap 0.2s ease;
}

.service-card:hover .card-action-text {
    gap: 10px;
}

.service-card p,
.impact p {
    color: var(--muted);
}

.impact {
    background: var(--paper);
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.metric-grid div {
    min-height: 145px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--green-900);
    border-radius: 8px;
    color: #fff;
}

.metric-grid strong {
    color: var(--rose);
    font-size: 2.4rem;
    line-height: 1;
}

.metric-grid span {
    font-weight: 700;
}

.gallery {
    background: var(--cream);
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.8fr 0.95fr;
    grid-auto-rows: 260px;
    gap: 14px;
}

.gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 300ms ease, filter 300ms ease, box-shadow 300ms ease;
}

.gallery-grid img:hover {
    transform: translateY(-4px) scale(1.02);
    filter: brightness(1.05);
    box-shadow: 0 10px 25px rgba(23, 24, 18, 0.12);
}

.gallery-grid img.img-tall {
    grid-row: span 2;
}

.gallery-grid img.img-wide {
    grid-column: span 2;
}

.footer {
    background: var(--green-900);
    color: #fff;
    padding: 76px 0 26px;
}

.footer-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: end;
}

.footer-logo {
    width: 250px;
    margin-bottom: 28px;
    filter: brightness(0) invert(1);
}

.footer h2 {
    max-width: 760px;
    margin-bottom: 0;
    color: #fff;
}

.social-link {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    color: var(--rose);
    font-weight: 700;
}

.copyright {
    width: min(100% - 40px, var(--container));
    margin: 56px auto 0;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.92rem;
}

@media (max-width: 920px) {
    .menu-toggle {
        display: block;
    }

    .site-nav {
        position: fixed;
        top: 74px;
        right: 20px;
        left: 20px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px;
        background: var(--paper);
        border: 1px solid var(--line);
        border-radius: 8px;
        color: var(--green-900);
        box-shadow: var(--shadow);
    }

    .site-header.scrolled .site-nav,
    .site-header.menu-active .site-nav {
        color: var(--green-900);
    }

    .site-header.scrolled .site-nav a:hover,
    .site-header.menu-active .site-nav a:hover {
        color: var(--rose);
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a {
        padding: 14px 10px;
    }

    .split,
    .feature-grid,
    .impact-layout,
    .footer-layout {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .services-grid,
    .metric-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 210px;
    }
}

@media (max-width: 640px) {
    .container,
    .nav-container,
    .hero-content,
    .copyright {
        width: min(100% - 28px, var(--container));
    }

    .brand img {
        width: 175px;
    }

    .hero {
        min-height: 88vh;
        padding: 126px 0 54px;
    }

    h1 {
        font-size: clamp(1.8rem, 10vw, 2.8rem);
    }

    h2 {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .section {
        padding: 68px 0;
    }

    .hero-actions,
    .footer-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid img:first-child {
        grid-row: auto;
    }
}

/* ==========================================================================
   MODAL PARA DETALLE DE SERVICIOS
   ========================================================================== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    padding: 20px;
}

.modal.is-active {
    opacity: 1;
    pointer-events: all;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(23, 24, 18, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-container {
    position: relative;
    z-index: 1001;
    width: min(100%, 880px);
    max-height: 90vh;
    background: var(--paper);
    border-radius: 12px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    overflow-y: auto;
    transform: scale(0.95) translateY(10px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    scrollbar-width: thin;
    scrollbar-color: var(--rose) transparent;
}

.modal.is-active .modal-container {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--cream);
    color: var(--green-900);
    font-size: 26px;
    font-weight: 400;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1005;
    padding: 0 0 4px 0;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.modal-close:hover {
    background: var(--rose);
    border-color: var(--rose);
    color: var(--ink);
    transform: rotate(90deg);
}

.modal-body {
    display: grid;
    grid-template-columns: 1.1fr 1.3fr;
    min-height: 520px;
}

.modal-image-side {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 300px;
}

.modal-image-side img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-content-side {
    padding: 46px 40px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.modal-content-side .service-label {
    margin-bottom: 0;
}

.modal-content-side h3 {
    font-size: 2.1rem;
    margin-bottom: 6px;
    color: var(--green-900);
    line-height: 1.1;
}

.modal-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.modal-section h4 {
    margin: 0;
    color: var(--green-900);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.modal-section p {
    margin: 0;
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.5;
}

.modal-section ul {
    margin: 0;
    padding-left: 20px;
}

.modal-section li {
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.4;
}

.modal-section li::marker {
    color: var(--rose);
}

.modal-footer {
    margin-top: 8px;
}

.modal-footer .btn {
    width: 100%;
}

body.modal-open {
    overflow: hidden;
}

/* Responsividad para el modal */
@media (max-width: 820px) {
    .modal-body {
        grid-template-columns: 1fr;
    }
    
    .modal-image-side {
        height: 240px;
        min-height: auto;
    }
    
    .modal-image-side img {
        position: relative;
    }
    
    .modal-content-side {
        padding: 32px 24px;
    }
    
    .modal-container {
        max-height: 85vh;
    }
    
    .modal-close {
        background: rgba(246, 241, 230, 0.9);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }
}

/* ==========================================================================
   Partners Banner (Logo Marquee)
   ========================================================================== */
/* ==========================================================================
   Interactive Venn Diagram
   ========================================================================== */
.venn-diagram-container {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 32px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    width: 100%;
}

.venn-diagram {
    position: relative;
    width: 100%;
    max-width: 320px;
}

.venn-svg {
    width: 100%;
    height: auto;
    overflow: visible;
}

.venn-circle {
    mix-blend-mode: multiply;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.circle-tecnico {
    fill: rgba(195, 205, 127, 0.45); /* var(--rose) light */
    stroke: var(--rose);
    stroke-width: 1.5;
}

.circle-cientifico {
    fill: rgba(81, 96, 59, 0.45); /* var(--green-700) light */
    stroke: var(--green-700);
    stroke-width: 1.5;
}

.circle-vivencial {
    fill: rgba(70, 73, 56, 0.45); /* var(--green-900) light */
    stroke: var(--green-900);
    stroke-width: 1.5;
}

.venn-center-trigger {
    fill: transparent;
    cursor: pointer;
}

.venn-area {
    outline: none;
}

.venn-area:hover .venn-circle,
.venn-area:focus-visible .venn-circle {
    fill-opacity: 0.82;
    stroke-width: 2.5;
    transform: scale(1.02);
    transform-origin: center;
}

.venn-label {
    font-size: 11px;
    font-weight: 700;
    fill: var(--green-900);
    text-anchor: middle;
    pointer-events: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.venn-label-center {
    font-size: 13px;
    font-weight: 700;
    fill: #fff;
    text-anchor: middle;
    pointer-events: none;
    letter-spacing: 0.1em;
    filter: drop-shadow(0 2px 4px rgba(23, 24, 18, 0.3));
}

.venn-info {
    width: 100%;
    min-height: 125px;
    padding: 20px;
    background: rgba(48, 55, 35, 0.03);
    border-radius: 8px;
    border-left: 4px solid var(--rose);
    transition: all 0.3s ease;
}

.venn-info-title {
    margin: 0 0 8px 0;
    color: var(--green-900);
    font-size: 1.05rem;
    font-weight: 700;
}

.venn-info-text {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.highlight-title {
    background: linear-gradient(120deg, rgba(195, 205, 127, 0.22) 0%, rgba(195, 205, 127, 0.22) 100%);
    background-repeat: no-repeat;
    background-size: 100% 0.35em;
    background-position: 0 85%;
    padding: 0 4px;
    display: inline;
}

/* ==========================================================================
   Team Section (Quiénes Somos)
   ========================================================================== */
.team-section {
    background: var(--cream);
    padding: 96px 0;
    border-top: 1px solid var(--line);
}

.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin-top: 48px;
}

.team-card {
    width: calc((100% - 48px) / 3);
    min-width: 280px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(48, 55, 35, 0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(48, 55, 35, 0.12);
}

.team-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1.15;
    overflow: hidden;
    background: var(--green-100);
}

.team-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.team-card:hover .team-card-image img {
    transform: scale(1.04);
}

.team-card-info {
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.team-card-info h3 {
    font-size: 1.15rem;
    color: var(--green-900);
    margin-bottom: 4px;
    line-height: 1.2;
}

.team-role {
    font-size: 0.78rem;
    color: var(--rose);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.team-bio {
    margin: 0 0 20px 0;
    padding-left: 16px;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.4;
}

.team-bio li {
    margin-bottom: 8px;
}

.team-bio li::marker {
    color: var(--rose);
}

.team-contact {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.82rem;
    color: var(--muted);
}

.team-contact a {
    color: var(--green-900);
    font-weight: 700;
    transition: color 0.15s ease;
}

.team-contact a:hover {
    color: var(--rose);
}

@media (max-width: 1024px) {
    .team-grid {
        gap: 20px;
    }
    .team-card {
        width: calc((100% - 20px) / 2);
    }
}

@media (max-width: 640px) {
    .team-grid {
        gap: 20px;
    }
    .team-card {
        width: 100%;
    }
}

/* ==========================================================================
   Trust & Allies Section (Marquee Refactored)
   ========================================================================== */
.trust-section {
    background: var(--paper);
    padding: 96px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}

.partners-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 16px 0;
    margin-bottom: 56px;
}

.partners-slider::before,
.partners-slider::after {
    content: "";
    position: absolute;
    top: 0;
    width: 160px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.partners-slider::before {
    left: 0;
    background: linear-gradient(to right, var(--paper) 0%, transparent 100%);
}

.partners-slider::after {
    right: 0;
    background: linear-gradient(to left, var(--paper) 0%, transparent 100%);
}

.partners-track {
    display: flex;
    width: max-content;
    gap: 70px;
    align-items: center;
    animation: scrollMarquee 36s linear infinite;
}

.partners-track:hover {
    animation-play-state: paused;
}

.partner-logo-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    opacity: 0.6;
    filter: grayscale(1);
    transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1), opacity 200ms ease, filter 200ms ease;
}

.partner-logo-item:hover {
    opacity: 1;
    filter: grayscale(0);
    transform: scale(1.06);
}

.partner-logo-item img {
    height: 100%;
    width: auto;
    max-width: 160px;
    display: block;
    object-fit: contain;
}

@keyframes scrollMarquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.allies-grid-centered {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    max-width: 920px;
    margin: 0 auto;
}

.client-card {
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 20px 24px;
    text-align: center;
    font-weight: 700;
    color: var(--green-900);
    font-size: 0.92rem;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), 
                background-color 0.2s ease, 
                border-color 0.2s ease, 
                box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    box-shadow: 0 4px 12px rgba(48, 55, 35, 0.02);
}

.client-card img {
    max-height: 100px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.client-card:hover {
    background: var(--paper);
    border-color: var(--rose);
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(48, 55, 35, 0.09);
}

.allies-grid-centered .client-card {
    border-top: 3px solid var(--rose);
}

@media (max-width: 920px) {
    .allies-grid-centered {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .allies-grid-centered {
        grid-template-columns: 1fr;
    }
}

.como-responde-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.img-top {
    object-position: center 20%;
}

/* ==========================================================================
   Service Detail Pages Custom Styling
   ========================================================================== */
.detail-hero-section {
    background: var(--cream);
    padding: 80px 0 60px 0;
}

.detail-hero-content {
    display: flex;
    flex-direction: column;
}

.detail-title {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--green-900);
}

.detail-objective {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 24px;
}

.detail-target-box {
    background: rgba(48, 55, 35, 0.04);
    padding: 20px 24px;
    border-left: 4px solid var(--rose);
    border-radius: 8px;
    margin-bottom: 32px;
}

.detail-target-box strong {
    display: block;
    color: var(--green-900);
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}

.detail-target-box p {
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.5;
}

.detail-hero-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: block;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.detail-features-section {
    background: var(--green-100);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

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

.detail-feature-card {
    background: var(--paper);
    padding: 36px 32px;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(48, 55, 35, 0.04);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.detail-feature-card.span-2 {
    grid-column: span 2;
}

.detail-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(48, 55, 35, 0.1);
}

.detail-feature-card .card-icon {
    font-size: 2.2rem;
    margin-bottom: 18px;
    line-height: 1;
}

.detail-feature-card h3 {
    font-size: 1.28rem;
    color: var(--green-900);
    margin-bottom: 10px;
    line-height: 1.3;
}

.detail-feature-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.5;
}

@media (max-width: 820px) {
    .detail-hero-section {
        padding: 50px 0 40px 0;
    }
    .detail-features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .detail-hero-image img {
        aspect-ratio: 16 / 10;
    }
    .detail-feature-card.span-2 {
        grid-column: span 1;
    }
}

/* tecnico.html Content Custom Additions */
#acompanamiento {
    background: var(--paper);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

#plataforma {
    background: var(--green-100);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.collaboration-box {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 40px;
    padding: 24px 44px;
    background: var(--paper);
    border-radius: 12px;
    border: 2.5px solid var(--rose);
    box-shadow: 0 12px 30px rgba(48, 55, 35, 0.06);
    font-size: 1.05rem;
    color: var(--green-900);
    font-weight: 700;
}

.collaboration-box img {
    max-height: 350px;
    width: auto;
    object-fit: contain;
}

.acompanamiento-img-container {
    width: 100%;
    max-width: 1180px;
    margin: 40px auto 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
    background: #fff;
    padding: 24px;
}

.acompanamiento-img-container img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.manglai-logo {
    height: 300px;
    width: auto;
    margin-top: 16px;
    object-fit: contain;
    display: block;
}

.distinciones-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.distincion-card {
    background: var(--paper);
    padding: 28px;
    border-radius: 10px;
    border: 1px solid var(--line);
    box-shadow: 0 6px 18px rgba(48, 55, 35, 0.02);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.distincion-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(48, 55, 35, 0.05);
}

.distincion-card strong {
    display: block;
    color: var(--rose);
    font-size: 1.45rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.2;
}

.distincion-card span {
    color: var(--green-900);
    font-weight: 700;
    font-size: 0.94rem;
    line-height: 1.4;
}

@media (max-width: 820px) {
    .distinciones-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .acompanamiento-img-container {
        padding: 12px;
        margin-top: 24px;
    }
}

/* cientifico.html Content Custom Additions */
#mural-clima {
    background: var(--paper);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

#dos-toneladas {
    background: var(--green-100);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

#conferencias {
    background: var(--paper);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.workshop-graphic-box {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 28px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.workshop-graphic-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(48, 55, 35, 0.12);
}

.workshop-infographic {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

.workshop-logos-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    width: 100%;
    border-top: 1px solid var(--line);
    padding-top: 24px;
    flex-wrap: wrap;
}

.workshop-logo-item {
    height: 120px; /* Large size to compensate for white space and transparent padding */
    max-width: 180px;
    width: auto;
    object-fit: contain;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.workshop-logo-item:hover {
    transform: scale(1.05);
}

.workshop-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 28px 0;
}

.step-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px;
    background: rgba(48, 55, 35, 0.02);
    border-radius: 8px;
    border-left: 3px solid transparent;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.step-item:hover {
    background: rgba(48, 55, 35, 0.04);
    border-left-color: var(--rose);
    transform: translateX(4px);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    background: var(--green-900);
    color: var(--rose);
    border-radius: 50%;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(48, 55, 35, 0.15);
}

.step-text {
    flex-grow: 1;
}

.step-title {
    font-weight: 700;
    color: var(--green-900);
    margin-bottom: 4px;
    font-size: 1.05rem;
}

.step-desc {
    margin: 0;
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.5;
}

.three-column-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.conference-card {
    background: var(--paper);
    padding: 36px 32px;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(48, 55, 35, 0.04);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.conference-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(48, 55, 35, 0.1);
    border-color: var(--rose);
}

.conference-card .card-icon {
    font-size: 2.2rem;
    margin-bottom: 18px;
    line-height: 1;
}

.conference-card h3 {
    font-size: 1.25rem;
    color: var(--green-900);
    margin-bottom: 12px;
    line-height: 1.3;
}

.conference-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.96rem;
    line-height: 1.5;
}

@media (max-width: 920px) {
    .three-column-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 640px) {
    .three-column-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Workshop Supporting Galleries */
.workshop-gallery {
    grid-column: span 2;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 40px;
}

.workshop-gallery-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(48, 55, 35, 0.05);
    border: 1px solid var(--line);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.workshop-gallery-img:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 24px rgba(48, 55, 35, 0.12);
}

@media (max-width: 820px) {
    .workshop-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-top: 28px;
    }
}

@media (max-width: 480px) {
    .workshop-gallery {
        grid-template-columns: 1fr;
    }
}

/* vivencial.html Content Custom Additions */
#teambuilding {
    background: var(--paper);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

#voluntariado {
    background: var(--green-100);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

#eventos {
    background: var(--paper);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

#aliados {
    background: var(--green-100);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

#galeria-vivencial {
    background: var(--paper);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.vivencial-list {
    list-style: none;
    padding: 0;
    margin: 24px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vivencial-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.05rem;
    color: var(--green-900);
    font-weight: 700;
    transition: transform 0.2s ease;
}

.vivencial-list li:hover {
    transform: translateX(6px);
}

.vivencial-list li::before {
    content: "✓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    background: var(--rose);
    color: var(--green-900);
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 900;
    box-shadow: 0 2px 6px rgba(195, 205, 127, 0.4);
}

.allies-six-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    max-width: 1180px;
    margin: 0 auto;
}

.allies-six-grid .client-card {
    border-top: 3px solid var(--rose);
    background: rgba(255, 255, 255, 0.45);
    border-radius: 8px;
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 20px 24px;
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(48, 55, 35, 0.02);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), 
                background-color 0.2s ease, 
                border-color 0.2s ease, 
                box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.allies-six-grid .client-card img {
    max-height: 90px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.allies-six-grid .client-card:hover {
    background: var(--paper);
    border-color: var(--rose);
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(48, 55, 35, 0.09);
}

@media (max-width: 920px) {
    .allies-six-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .allies-six-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Floating Kaleidoscopio Badge/Watermark */
.kaleido-badge {
    position: fixed;
    right: 0;
    bottom: 12px; /* Posicionado más abajo */
    z-index: 9999;
    background: var(--green-900); /* Verde Micelio oscuro */
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-right: none;
    border-radius: 6px 0 0 6px;
    padding: 6px 10px; /* Un poco más pequeño */
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.kaleido-badge span {
    color: rgba(255, 255, 255, 0.95);
    font-size: 10px; /* Un poco más pequeño */
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.kaleido-badge img {
    height: 13px; /* Logo más pequeño */
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1); /* Forces white logo for contrast */
    transition: transform 0.3s ease;
}

.kaleido-badge:hover {
    background: var(--green-700); /* Verde Micelio medio en hover */
    transform: translateX(-4px); /* Desplazamiento a la izquierda en hover */
    border-color: var(--rose);
}

.kaleido-badge:hover span {
    color: #ffffff;
}

.kaleido-badge:hover img {
    transform: scale(1.08);
}

@media (max-width: 640px) {
    .kaleido-badge {
        padding: 5px 8px;
    }
    .kaleido-badge span {
        display: none; /* Hide text on mobile to save screen real estate */
    }
}

/* Combined subpage eyebrow header style */
.detail-eyebrow-combined {
    margin: 0 0 20px 0;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.detail-eyebrow-combined .eyebrow-accent {
    color: var(--rose);
    font-size: 1.05rem; /* Ligeramente más grande */
    letter-spacing: 0.08em;
}

/* Subpage Infographics Stacked Layout styles */
.workshop-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.workshop-container .workshop-details {
    max-width: 860px;
    margin: 0 auto;
    width: 100%;
}

.workshop-container .workshop-graphic-box {
    max-width: 860px;
    width: 100%;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 32px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Taller 2 Toneladas diagram size override (more compact to fit vertically on screen) */
#dos-toneladas .workshop-graphic-box {
    max-width: 500px;
    padding: 24px;
}

.workshop-container .workshop-graphic-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(48, 55, 35, 0.12);
}

.workshop-container .workshop-infographic {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.workshop-container .workshop-gallery {
    margin-top: 40px;
    grid-column: auto; /* Override grid-column span 2 */
}

/* Inline title logos for workshops */
.workshop-title-container {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.workshop-title-container h2 {
    margin-bottom: 0;
}

.workshop-title-logos {
    display: flex;
    align-items: center;
    gap: 16px;
}

.workshop-logo-inline {
    height: 48px;
    width: auto;
    object-fit: contain;
}




