/* 11. TIMELINE Y EVOLUCIÓN (QUIÉNES SOMOS) */
.staggered-timeline-banner {
    display: flex;
    flex-wrap: wrap;
    background: var(--color-white);
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin: 40px 0;
}

.staggered-item {
    flex: 1;
    min-width: 300px;
    padding: 40px;
    background: var(--gradient-header);
    color: var(--color-white);
    position: relative;
    border-right: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.staggered-item:last-child {
    border-right: none;
}

.staggered-item:nth-child(even) {
    background: var(--color-primary);
}

.staggered-item:hover {
    background: var(--color-brand-green-strong);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    z-index: 2;
}

.staggered-year {
    font-family: var(--font-titles);
    font-size: 2rem;
    color: var(--color-brand-gold);
    margin-bottom: 15px;
    display: block;
}

.staggered-title {
    color: var(--color-white);
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.staggered-desc {
    color: rgba(255,255,255,0.8);
    font-size: 14.5px;
    line-height: 1.7;
}

/* HISTORIA WATERMARK */
.historia-watermark {
    position: absolute;
    top: -50px;
    right: -100px;
    width: 600px;
    height: 600px;
    background-image: url('../images/ISOTIPO.svg');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.04;
    z-index: 1;
    pointer-events: none;
    animation: spin-slow 120s linear infinite;
}

/* 12. PENSAMIENTO FILOSÓFICO (MISIÓN / VISIÓN) */
.mission-vision-banner {
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    padding: 140px 0;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.mission-vision-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 0;
}

.mission-vision-banner::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    backdrop-filter: blur(5px);
    z-index: 1;
    pointer-events: none;
}

.mission-banner::before {
    background-image: url('../images/mision-bg.webp');
}
.mission-banner::after {
    background: linear-gradient(90deg, rgba(13,34,24,0.92) 0%, rgba(26,58,36,0.6) 100%);
}

.vision-banner::before {
    background-image: url('../images/vision-bg.webp');
}
.vision-banner::after {
    background: linear-gradient(270deg, rgba(13,34,24,0.92) 0%, rgba(26,58,36,0.6) 100%);
}

.mv-content {
    position: relative;
    z-index: 2;
    color: var(--color-white);
    max-width: 800px;
}

.mv-content p {
    font-size: 1.25rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.9);
}

/* 13. TEAM CARDS */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.team-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    overflow: hidden;
    text-align: center;
    padding: 30px 20px;
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.team-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-soft-bg) 0%, #e8f5ec 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-family: var(--font-titles);
    font-size: 32px;
    color: var(--color-primary);
    font-weight: bold;
    border: 3px solid var(--color-white);
    box-shadow: 0 4px 15px rgba(26, 92, 46, 0.15);
    transition: all 0.3s ease;
}

.team-card:hover .team-avatar {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(26, 92, 46, 0.25);
    border-color: var(--color-brand-yellow-light);
    color: var(--color-brand-gold);
    background: linear-gradient(135deg, var(--color-brand-green-strong) 0%, var(--color-primary) 100%);
}

.team-name {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.team-role {
    font-size: 13px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}
/* ==========================================================================
   22. PÁGINA QUIÉNES SOMOS — REDISEÑO PREMIUM
   ========================================================================== */

/* Quiénes Somos — secciones full-width sin márgenes ni padding lateral */
.page-template-page-quienes-somos .section-padding {
    padding: 55px 0 !important;
}



/* --- 22.1. HISTORIA ASIMÉTRICA --- */
.historia-section {
    background: var(--color-white);
    position: relative;
    overflow: hidden;
}
.historia-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 50px;
    align-items: start;
}
.historia-badge-container {
    position: relative;
    width: 100%;
    margin-bottom: 24px;
}
.historia-main-img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 11;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: block;
    object-fit: cover;
    object-position: center;
}
.historia-badge-floating {
    position: absolute;
    top: -20px;
    left: -20px;
    background: #a2cf3d; /* Verde brillante del manual */
    color: #0b2814;
    border-radius: var(--radius-md);
    padding: 16px 20px;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--color-brand-gold);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    z-index: 10;
}
.badge-num {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    font-family: var(--font-titles);
}
.badge-txt {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.2;
    margin-top: 2px;
}
.historia-areas-box {
    background: var(--color-soft-bg);
    border-radius: var(--radius-md);
    padding: 24px;
    border-left: 3px solid var(--color-primary);
}
.areas-intro {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 14px;
}
.historia-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.historia-checklist li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--color-text-body);
    font-weight: 500;
}
.check-icon {
    width: 22px;
    height: 22px;
    background: #a2cf3d;
    color: #0b2814;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.historia-title {
    font-size: 3.2rem;
    color: var(--color-primary);
    margin-bottom: 24px;
    line-height: 1.1;
}
.historia-paragraphs p {
    font-size: 15.5px;
    line-height: 1.8;
    color: var(--color-text-muted);
    margin-bottom: 20px;
    text-align: justify;
}
.historia-paragraphs p strong {
    color: var(--color-text-dark);
}
.historia-img-wrapper-action {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-top: 30px;
    box-shadow: var(--shadow-md);
}
.historia-secondary-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.historia-img-wrapper-action:hover .historia-secondary-img {
    transform: scale(1.04);
}
.floating-action-circle {
    position: absolute;
    bottom: -5px;
    left: -5px;
    width: 80px;
    height: 80px;
    background: #a2cf3d;
    color: #0b2814;
    border-top-right-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
    z-index: 5;
    padding-right: 10px;
    padding-top: 10px;
}
.floating-action-circle:hover {
    background: var(--color-brand-gold);
    color: #fff;
    transform: scale(1.08);
}

/* --- 22.2. MISIÓN Y VISIÓN ASIMÉTRICA --- */
.mv-asymmetric-section {
    padding: 60px 0;
    background: #f8faf9;
    position: relative;
}
.mv-isotipo-watermark {
    position: absolute;
    width: 380px;
    height: 380px;
    opacity: 0.035;
    pointer-events: none;
    z-index: 1;
    animation: rotateIsotipo 50s linear infinite;
}
.mv-isotipo-watermark.left {
    top: 5%;
    left: -100px;
}
.mv-isotipo-watermark.right {
    bottom: 5%;
    right: -100px;
}
.mv-isotipo-watermark img {
    width: 100%;
    height: 100%;
}
@keyframes rotateIsotipo {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.mv-asymmetric-container {
    display: flex;
    flex-direction: column;
    gap: 35px;
    width: 100%;
    box-sizing: border-box;
}
.mv-card-wrapper {
    display: grid;
    width: 100%;
}
.mision-wrapper {
    grid-template-columns: 85% 15%;
}
.vision-wrapper {
    grid-template-columns: 15% 85%;
}
.mv-card-box {
    background-size: cover;
    background-position: center;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-lg);
    border: 3px solid rgba(162,207,61,0.45);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 300px;
    display: flex;
    align-items: center;
}
.mision-card {
    border-radius: var(--radius-xl);
}
.vision-card {
    border-radius: var(--radius-xl);
}
.mv-card-box:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}
.mv-card-content {
    padding: 60px 40px;
    max-width: 70%;
    position: relative;
    z-index: 3;
}
.mision-card .mv-card-content {
    padding: 60px 50px;
    max-width: 70%;
}
.vision-card .mv-card-content {
    padding: 60px 50px;
    max-width: 70%;
    margin-left: auto;
    text-align: right;
}
.mv-card-tag {
    display: inline-block;
    color: var(--color-brand-gold);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}
.mv-card-title {
    font-size: 2.8rem;
    color: #fff;
    margin-bottom: 18px;
}
.mv-card-title span {
    color: #a2cf3d;
}
.mv-card-desc {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255,255,255,0.9);
}

@media (max-width: 1280px) {
    .mision-card .mv-card-content {
        padding-left: 60px;
        max-width: 80%;
    }
    .vision-card .mv-card-content {
        padding-right: 60px;
        max-width: 80%;
    }
}

/* --- 22.3. CARRUSEL DE VALORES CON NAV LATERAL --- */
.values-carousel-wrapper {
    position: relative;
    width: 100%;
    margin-top: 30px;
    padding: 0 60px; /* Espacio para las flechas laterales */
}
.values-carousel-container {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 8px 20px;
    scrollbar-width: none; /* Firefox */
}
.values-carousel-container::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}
.value-carousel-slide {
    flex: 0 0 320px;
    scroll-snap-align: start;
}
.value-card-carousel {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s;
}
.value-card-carousel:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(26,92,46,0.15);
}
.value-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}
.value-title {
    font-size: 1.3rem;
    color: var(--color-text-dark);
    margin-bottom: 12px;
    font-family: var(--font-titles);
}
.value-desc {
    font-size: 13.5px;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin: 0;
}
.carousel-control-btn.side-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 15;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: var(--color-white);
    color: var(--color-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
}
.carousel-control-btn.side-nav:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}
.carousel-control-btn.side-nav.prev {
    left: 0;
}
.carousel-control-btn.side-nav.next {
    right: 0;
}

/* --- 22.4. EJES TRANSVERSALES Y ESTRATÉGICOS COLLAGE --- */
.ejes-transversales-section {
    background: var(--color-white);
}
.ejes-transversales-grid,
.ejes-estrategicos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    box-sizing: border-box;
}
.ejes-collage {
    width: 100%;
}
.collage-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 220px 220px;
    gap: 10px;
    width: 100%;
    height: auto;
}
.collage-img-box {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s;
}
.collage-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.collage-img-box:hover {
    transform: scale(1.02);
    z-index: 10;
}
/* img-1: large left, spans both rows */
.collage-img-box.img-1 {
    grid-column: 1;
    grid-row: 1 / span 2;
}
/* img-2: top right */
.collage-img-box.img-2 {
    grid-column: 2;
    grid-row: 1;
}
/* img-3: bottom right */
.collage-img-box.img-3 {
    grid-column: 2;
    grid-row: 2;
}
.ejes-title {
    font-size: 2.8rem;
    color: var(--color-primary);
    margin-bottom: 24px;
}
.ejes-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.eje-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.eje-icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}
.eje-icon-circle.gender {
    color: #c2185b;
    background: rgba(194,24,91,0.1);
}
.eje-icon-circle.environment {
    color: #2d8a4e;
    background: rgba(45,138,78,0.1);
}
.eje-icon-circle.knowledge {
    color: #008080;
    background: rgba(0,128,128,0.1);
}
.eje-icon-circle.strategic-cdmype {
    color: #008080;
    background: rgba(0,128,128,0.1);
}
.eje-icon-circle.strategic-agro {
    color: #f0a500;
    background: rgba(240,165,0,0.1);
}
.eje-icon-circle.strategic-inclusion {
    color: #2d8a4e;
    background: rgba(45,138,78,0.1);
}
.eje-body h3 {
    font-size: 1.15rem;
    font-family: var(--font-titles);
    color: var(--color-text-dark);
    margin-bottom: 6px;
}
.eje-body p {
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--color-text-muted);
    margin: 0;
    text-align: justify;
}

/* --- 22.5. MEMORIAS 3D BOOK COVERS --- */
.memorias-section {
    background: #f8faf9;
}
.books-showcase {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 20px;
}
.book-showcase-item {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    max-width: 350px;
    flex: 1 1 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.book-perspective-wrapper {
    perspective: 1000px;
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 180px;
    height: 250px;
}
.book-3d {
    width: 150px;
    height: 220px;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateY(-20deg) rotateX(10deg);
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.book-showcase-item:hover .book-3d {
    transform: rotateY(-3deg) rotateX(2deg) translateY(-5px);
}
.book-side {
    position: absolute;
    height: 100%;
    background: #fff;
}
.book-front {
    width: 150px;
    background: linear-gradient(135deg, var(--color-primary) 0%, #0d2814 100%);
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    border-left: 5px solid var(--color-brand-gold);
    transform: translateZ(10px);
    z-index: 10;
    box-shadow: 4px 4px 10px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 14px;
    color: #fff;
}
.book-cover-decor-top {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--color-brand-gold), transparent);
}
.book-cover-logo {
    width: 70px;
    margin: 8px auto 0;
}
.book-cover-logo img {
    width: 100%;
    height: auto;
    filter: brightness(1.2);
}
.book-cover-title {
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.3;
    font-family: var(--font-titles);
    text-align: center;
    margin: 10px 0 4px;
    color: rgba(255,255,255,0.9);
}
.book-cover-year {
    font-size: 28px;
    font-weight: 900;
    text-align: center;
    color: #a2cf3d;
    font-family: var(--font-titles);
}
.book-cover-seal {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    margin-bottom: 4px;
}
.book-cover-seal svg {
    width: 18px;
    height: 18px;
    color: var(--color-brand-gold);
}
.book-cover-seal span {
    font-size: 8px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: rgba(255,255,255,0.7);
}
.book-spine {
    width: 20px;
    transform: rotateY(-90deg) translateZ(10px);
    background: #0d2814;
    z-index: 9;
    box-shadow: inset -3px 0 5px rgba(0,0,0,0.3);
}
.spine-text {
    transform: rotate(90deg);
    display: block;
    width: 220px;
    height: 20px;
    color: rgba(255,255,255,0.5);
    font-size: 7px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 20px;
    transform-origin: 0 0;
    margin-left: 20px;
    white-space: nowrap;
}
.book-pages {
    width: 146px;
    transform: translateZ(0px);
    background: #fbfbf8;
    border: 1px solid #e0e0d8;
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;
    z-index: 1;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
}
.book-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.book-title {
    font-size: 1.15rem;
    font-family: var(--font-titles);
    color: var(--color-text-dark);
    margin-bottom: 8px;
}
.book-desc {
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 18px;
    flex-grow: 1;
}
.book-btn {
    width: 100%;
    font-size: 13.5px;
    padding: 10px 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* ====== QUIÉNES SOMOS RESPONSIVE ====== */
@media (max-width: 900px) {
    .historia-grid,
    .ejes-transversales-grid,
    .ejes-estrategicos-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .ejes-estrategicos-grid {
        direction: rtl; /* Hace que el collage colapse arriba y la lista abajo */
    }
    .ejes-estrategicos-grid > * {
        direction: ltr; /* Restaura dirección de lectura normal */
    }
    .historia-badge-floating {
        top: -10px;
        left: -10px;
        padding: 10px 14px;
    }
    .badge-num {
        font-size: 1.5rem;
    }
    .historia-title {
        font-size: 2.4rem;
        margin-top: 10px;
    }
    .mv-card-wrapper {
        grid-template-columns: 1fr !important;
    }
    .mv-card-content {
        max-width: 100% !important;
        padding: 30px 24px !important;
        text-align: left !important;
    }
    .mv-card-gap {
        display: none !important;
    }
    .ejes-collage {
    }
    .collage-container {
        grid-template-rows: 160px 160px;
        gap: 8px;
    }
}

