/* ===== SOSTENIBILIDAD PAGE - SIN MARGIN TOP ===== */
.sostenibilidad-page {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* ===== BANNER SIN FILTRO Y SIN BORDER-RADIUS ===== */
.sost-banner {
    position: relative;
    width: 100%;
    height: 768px;
    background: url('../img/banner-sostenibilidad.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 0 !important;
    border-radius: 0;
}

.sost-banner-overlay {
    position: absolute;
    inset: 0;
    background: transparent; /* Sin filtro oscuro */
}

.sost-banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.sost-banner-title {
    font-size: 3.5rem;
    font-weight: 300;
    color: #ffffff;
    letter-spacing: -1px;
    margin: 0;
    margin-bottom: 30px;
}

.sost-banner-title strong {
    font-weight: 700;
}

.hero-animate {
    opacity: 0;
    animation: heroReveal 0.8s ease-out forwards;
}

@keyframes heroReveal {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 991.98px) {
    .sost-banner {
        height: 520px;
    }
    
    .sost-banner-title {
        font-size: 2.75rem;
    }
}

@media (max-width: 575.98px) {
    .sost-banner {
        height: 340px;
    }
    
    .sost-banner-title {
        font-size: 2rem;
    }
}

/* Wrapper unificado con patrón de fondo */
.sostenibilidad-pattern-wrapper {
    background: #e6756d;
    background-image: url('/static/img/PANTALLA PATTERN 2.0.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    min-height: 100vh;
    padding-bottom: 80px;
}

@media (min-width: 769px) {
    .sostenibilidad-pattern-wrapper {
        background-attachment: fixed;
    }
}

/* ===== SECCIÓN PILARES - DISEÑO LIMPIO ===== */
.pillars-section-new {
    background: transparent;
    padding: 80px 20px 80px;
    margin-bottom: 0 !important;
}

/* Intro Box */
.pillars-intro-box {
    max-width: 950px;
    margin: 0 auto 60px;
    text-align: center;
    padding: 80px 40px 50px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(89, 34, 57, 0.1);
}

.pillars-logo-wrap {
    margin-bottom: 30px;
}

.pillars-logo-wrap img {
    width: 160px;
    height: auto;
}

.pillars-main-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2c2c2c;
    margin-bottom: 25px;
    letter-spacing: 0.5px;
    text-transform: none;
}

.pillars-intro-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2c2c2c;
    margin: 0;
    opacity: 0.95;
}

/* Grid de Cards */
.pillars-cards-grid {
    max-width: 1200px;
    margin: 0 auto 60px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 0;
}

/* Card Individual */
.pillar-single-card {
    position: relative;
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.pillar-single-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

/* Imagen de fondo */
.pillar-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

/* Overlay oscuro */
.pillar-dark-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 2;
    transition: background 0.4s ease;
}

.pillar-single-card:hover .pillar-dark-overlay {
    background: rgba(0, 0, 0, 0.1);
}

/* Contenido de texto */
.pillar-text-wrap {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 35px;
    z-index: 3;
}

.pillar-card-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 15px 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.pillar-card-desc {
    font-size: 1rem;
    line-height: 1.7;
    color: #ffffff;
    margin: 0;
    opacity: 0.95;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* Closing Box */
.pillars-closing-box {
    max-width: 950px;
    margin: 0 auto;
    text-align: center;
    padding: 50px 40px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(89, 34, 57, 0.1);
    position: relative;
    overflow: hidden;
}

.pillars-colibri-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.06;
    z-index: 1;
    pointer-events: none;
}

.pillars-colibri-bg img {
    width: 300px;
    height: auto;
    filter: sepia(1) saturate(3) hue-rotate(320deg) brightness(0.8);
}

.pillars-closing-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2c2c2c;
    margin: 0;
    opacity: 0.95;
    font-weight: 500;
    position: relative;
    z-index: 2;
}

/* Responsive Tablet */
@media (max-width: 991.98px) {
    .pillars-section-new {
        padding: 0 20px 60px;
        margin-top: -30px;
    }
    
    .pillars-intro-box,
    .pillars-closing-box {
        padding: 60px 35px 40px;
    }
    
    .pillars-logo-wrap img {
        width: 140px;
    }
    
    .pillars-main-title {
        font-size: 1.8rem;
    }
    
    .pillars-intro-text,
    .pillars-closing-text {
        font-size: 1rem;
    }
    
    .pillars-cards-grid {
        gap: 25px;
        margin-bottom: 50px;
    }
    
    .pillar-single-card {
        height: 380px;
    }
    
    .pillar-text-wrap {
        padding: 30px;
    }
    
    .pillar-card-title {
        font-size: 1.6rem;
    }
    
    .pillar-card-desc {
        font-size: 0.95rem;
    }
    
    .pillars-colibri-bg img {
        width: 250px;
    }
}

/* Responsive Mobile */
@media (max-width: 767.98px) {
    .pillars-section-new {
        padding: 30px 15px 50px;
        margin-top: 0;
    }
    
    .pillars-intro-box {
        padding: 50px 25px 35px;
        margin-bottom: 40px;
    }
    
    .pillars-logo-wrap img {
        width: 120px;
    }
    
    .pillars-main-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .pillars-intro-text {
        font-size: 0.95rem;
    }
    
    .pillars-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 40px;
    }
    
    .pillar-single-card {
        height: 350px;
    }
    
    .pillar-text-wrap {
        padding: 25px;
    }
    
    .pillar-card-title {
        font-size: 1.4rem;
        margin-bottom: 12px;
    }
    
    .pillar-card-desc {
        font-size: 0.9rem;
    }
    
    .pillars-closing-box {
        padding: 40px 25px;
    }
    
    .pillars-closing-text {
        font-size: 0.95rem;
    }
    
    .pillars-colibri-bg img {
        width: 180px;
    }
}

/* ===== SECCIÓN ODS - GRID INTERACTIVO CON MODAL ===== */
.ods-section {
    background: #f8f9fa;
    padding: 100px 20px;
}

.ods-main-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    color: #592239;
    margin-bottom: 70px;
    padding-top: 40px;
    letter-spacing: 0.5px;
    text-transform: none;
}

.ods-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.ods-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 35px 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-align: center;
    opacity: 0;
    transform: translateY(30px) scale(0.95);
}

.ods-card.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Delays escalonados */
.ods-card:nth-child(1) { transition-delay: 0s; }
.ods-card:nth-child(2) { transition-delay: 0.1s; }
.ods-card:nth-child(3) { transition-delay: 0.2s; }
.ods-card:nth-child(4) { transition-delay: 0.3s; }
.ods-card:nth-child(5) { transition-delay: 0.4s; }
.ods-card:nth-child(6) { transition-delay: 0.5s; }
.ods-card:nth-child(7) { transition-delay: 0.6s; }
.ods-card:nth-child(8) { transition-delay: 0.7s; }
.ods-card:nth-child(9) { transition-delay: 0.8s; }

.ods-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.ods-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ods-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ods-number {
    display: none;
}

.ods-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.4;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ods-hover-text {
    font-size: 0.9rem;
    color: #7f8c8d;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.ods-card:hover .ods-hover-text {
    opacity: 1;
    transform: translateY(0);
}

/* Modal ODS */
.ods-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ods-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.ods-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.ods-modal-content {
    position: relative;
    background: #ffffff;
    border-radius: 24px;
    max-width: 1100px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35);
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ods-modal-content::-webkit-scrollbar {
    width: 10px;
}

.ods-modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 0 24px 24px 0;
}

.ods-modal-content::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 10px;
}

.ods-modal-content::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.ods-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    color: #2c3e50;
    font-size: 1.8rem;
    line-height: 1;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ods-modal-close:hover {
    background: #ffffff;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.ods-modal-header {
    background: linear-gradient(135deg, #592239 0%, #7a3050 100%);
    padding: 40px 50px;
    border-radius: 24px 24px 0 0;
    display: flex;
    align-items: center;
    gap: 30px;
}

.ods-modal-icon {
    flex: 0 0 120px;
}

.ods-modal-icon img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.ods-modal-header-text {
    flex: 1;
}

.ods-modal-number {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.ods-modal-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
}

.ods-modal-body {
    padding: 45px 50px 50px;
}

.ods-modal-description {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #4a5568;
    margin: 0 0 40px 0;
    padding-bottom: 30px;
    border-bottom: 2px solid #e2e8f0;
}

/* Proyectos en el modal */
.ods-proyectos-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #592239;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ods-proyectos-title i {
    color: #e6756d;
}

.ods-proyectos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.ods-proyecto-card {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 25px;
    border-left: 4px solid #e6756d;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.ods-proyecto-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(230, 117, 109, 0.2);
    border-left-width: 6px;
}

.ods-proyecto-card h5 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #592239;
    margin-bottom: 12px;
    line-height: 1.3;
}

.ods-proyecto-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #4a5568;
    margin: 0;
}

.ods-proyecto-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #e6756d, #f59489);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(230, 117, 109, 0.25);
}

.ods-proyecto-icon i {
    font-size: 1.5rem;
    color: #ffffff;
}

.ods-modal-text {
    flex: 1;
}

/* Responsive Tablet */
@media (max-width: 991.98px) {
    .ods-modal-content {
        max-width: 95%;
        width: 95%;
    }
    
    .ods-modal-header {
        padding: 30px 35px;
        flex-direction: column;
        text-align: center;
    }
    
    .ods-modal-icon {
        flex: 0 0 100px;
    }
    
    .ods-modal-title {
        font-size: 1.8rem;
    }
    
    .ods-modal-body {
        padding: 35px 30px 40px;
    }
    
    .ods-modal-description {
        font-size: 1rem;
    }
    
    .ods-proyectos-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .ods-section {
        padding: 80px 20px;
    }
    
    .ods-main-title {
        font-size: 1.8rem;
        margin-bottom: 50px;
        padding-top: 30px;
    }
    
    .ods-grid {
        gap: 30px;
    }
    
    .ods-modal-body {
        padding: 40px;
        gap: 30px;
    }
    
    .ods-modal-icon {
        flex: 0 0 140px;
    }
    
    .ods-modal-title {
        font-size: 1.7rem;
    }
    
    .ods-modal-description {
        font-size: 1rem;
    }
}

/* Responsive Mobile */
@media (max-width: 767.98px) {
    .ods-section {
        padding: 60px 15px;
    }
    
    .ods-main-title {
        font-size: 1.5rem;
        margin-bottom: 40px;
        padding-top: 20px;
    }
    
    .ods-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .ods-card {
        padding: 25px 15px;
    }
    
    .ods-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 15px;
    }
    
    .ods-title {
        font-size: 1rem;
        min-height: 40px;
    }
    
    .ods-modal-body {
        flex-direction: column;
        padding: 30px 25px;
        gap: 25px;
    }
    
    .ods-modal-icon {
        flex: 0 0 auto;
        max-width: 150px;
        margin: 0 auto;
    }
    
    .ods-modal-title {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .ods-modal-description {
        font-size: 0.95rem;
        text-align: center;
    }
    
    .ods-modal-close {
        width: 35px;
        height: 35px;
        font-size: 1.7rem;
        top: 15px;
        right: 15px;
    }
}

/* ===== MEDIO AMBIENTE - CARD BLANCO EN FONDO CORAL ===== */
.medio-card {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: 80px 0;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    background: transparent;
}

.card-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 60px;
    background: #ffffff !important;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.medio-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    color: #592239 !important;
    letter-spacing: 0.5px;
    margin-bottom: 40px;
    text-transform: none;
}

.medio-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 40px;
}

.medio-tab {
    background: #f5f5f5;
    border: 2px solid #e0e0e0;
    color: #592239 !important;
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.medio-tab:hover {
    background: #ebebeb;
    border-color: #e6756d;
    transform: translateY(-2px);
}

.medio-tab.active {
    background: #e6756d;
    border-color: #e6756d;
    color: #ffffff !important;
}

.medio-content {
    color: #4a5568 !important;
    line-height: 1.8;
    font-size: 1rem;
    min-height: 180px;
    text-align: center;
    overflow-y: auto;
    max-height: none;
}

.medio-pane {
    display: none;
    opacity: 0;
}

.medio-pane.active {
    display: block;
    opacity: 1;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.medio-pane p {
    margin: 0;
    color: #4a5568 !important;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 991.98px) {
    .medio-card {
        padding: 60px 0;
    }
    
    .card-inner {
        padding: 40px;
    }
    
    .medio-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
}

@media (max-width: 575.98px) {
    .medio-card {
        padding: 50px 0;
    }
    
    .card-inner {
        padding: 30px 20px;
    }
    
    .medio-title {
        font-size: 1.5rem;
        margin-bottom: 25px;
    }
    
    .medio-tabs {
        flex-direction: column;
        gap: 8px;
    }
    
    .medio-tab {
        width: 100%;
        text-align: center;
    }
    
    .medio-content {
        font-size: 0.9rem;
        min-height: 350px;
        max-height: 500px;
        overflow-y: auto;
        padding: 20px 15px;
    }
    
    .medio-pane p {
        text-align: left;
        line-height: 1.7;
    }
}

/* ===== PROGRAMAS Y PROYECTOS - CON ANIMACIÓN DE APARICIÓN ===== */
.programs-simple {
    background: #ffffff;
    padding: 80px 0;
}

.programs-simple-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.programs-simple-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 800;
    color: #142029;
    letter-spacing: 2px;
    margin-bottom: 60px;
    text-transform: uppercase;
}

.programs-grid-three {
    display: flex !important;
    flex-direction: column;
    gap: 60px;
}

.programs-grid-three .programs-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: center;
    gap: 40px;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.programs-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Delays para aparecer progresivamente */
.programs-item:nth-child(1) { transition-delay: 0.1s; }
.programs-item:nth-child(2) { transition-delay: 0.2s; }
.programs-item:nth-child(3) { transition-delay: 0.3s; }
.programs-item:nth-child(4) { transition-delay: 0.4s; }
.programs-item:nth-child(5) { transition-delay: 0.5s; }

/* Sobrescribir reglas de nth-child de style.css */
.programs-grid-three .programs-item:nth-child(odd),
.programs-grid-three .programs-item:nth-child(even) {
    background: transparent !important;
    color: inherit !important;
}

.programs-grid-three .programs-item.single {
    flex-direction: column !important;
    text-align: center;
    grid-template-columns: unset !important;
}

.programs-grid-three .pi-text {
    flex: 1;
    padding: 25px;
    background: transparent !important;
    border-radius: 16px;
    box-shadow: none !important;
    color: #142029 !important;
}

.programs-grid-three .pi-text h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #142029 !important;
    margin-bottom: 12px;
}

.programs-grid-three .pi-text p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #142029 !important;
    margin: 0;
}

.pi-single {
    max-width: 700px;
}

.programs-grid-three .pi-image {
    width: 200px;
    height: 200px;
    flex-shrink: 0;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.programs-grid-three .pi-img {
    width: 100% !important;
    height: 100% !important;
    max-width: 200px !important;
    object-fit: contain;
    display: block;
}

@media (max-width: 991.98px) {
    .programs-simple {
        padding: 60px 0;
    }
    
    .programs-simple-title {
        font-size: 1.8rem;
        margin-bottom: 50px;
    }
    
    .programs-grid-three .programs-item {
        flex-direction: column !important;
        gap: 25px;
        text-align: center;
    }
    
    .programs-grid-three .pi-image {
        width: 150px;
        height: 150px;
    }
    
    .programs-grid-three .pi-img {
        max-width: 150px !important;
    }
}

@media (max-width: 575.98px) {
    .programs-simple {
        padding: 50px 0;
    }
    
    .programs-simple-inner {
        padding: 0 20px;
    }
    
    .programs-simple-title {
        font-size: 1.5rem;
        margin-bottom: 40px;
    }
    
    .programs-grid-three {
        gap: 40px;
    }
    
    .pi-text {
        padding: 20px;
    }
    
    .pi-text h4 {
        font-size: 1rem;
    }
    
    .pi-text p {
        font-size: 0.9rem;
    }
}

/* ===== PROGRAMAS Y PROYECTOS - GRID MODERNO CON ICONOS GEOMÉTRICOS ===== */
.programs-modern {
    background: #f8f9fa;
    padding: 80px 0;
}

.programs-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.programs-modern-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 800;
    color: #592239;
    letter-spacing: 2px;
    margin-bottom: 60px;
    text-transform: none;
}

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

.program-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 35px 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(184, 165, 214, 0.25);
    border-color: #b8a5d6;
}

.program-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Iconos geométricos en CSS puro */
.program-icon .icon-shape {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #b8a5d6, #c4b3e3);
    opacity: 0.15;
    position: absolute;
}

/* Ciclo - círculos concéntricos */
.program-icon.cycle .icon-shape {
    border-radius: 50%;
    border: 4px solid #b8a5d6;
    opacity: 1;
    background: transparent;
}

.program-icon.cycle::before {
    content: '';
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid #c4b3e3;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Personas - figuras humanas simplificadas */
.program-icon.people .icon-shape {
    border-radius: 50% 50% 0 0;
}

.program-icon.people::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: #b8a5d6;
    border-radius: 50%;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
}

/* Agricultura - cuadrícula */
.program-icon.agriculture .icon-shape {
    background: linear-gradient(90deg, #b8a5d6 2px, transparent 2px),
                linear-gradient(#b8a5d6 2px, transparent 2px);
    background-size: 20px 20px;
    opacity: 1;
}

/* Biodiversidad - hexágonos */
.program-icon.biodiversity .icon-shape {
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: linear-gradient(135deg, #b8a5d6, #c4b3e3);
    opacity: 1;
}

/* Carbono - círculo con flechas */
.program-icon.carbon .icon-shape {
    border-radius: 50%;
    border: 4px solid #b8a5d6;
    background: transparent;
    opacity: 1;
}

.program-icon.carbon::before,
.program-icon.carbon::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
}

.program-icon.carbon::before {
    border-width: 0 8px 12px 8px;
    border-color: transparent transparent #b8a5d6 transparent;
    top: 10px;
    right: 15px;
}

.program-icon.carbon::after {
    border-width: 12px 8px 0 8px;
    border-color: #b8a5d6 transparent transparent transparent;
    bottom: 10px;
    left: 15px;
}

/* Agua - ondas */
.program-icon.water .icon-shape {
    background: transparent;
    border-bottom: 4px solid #b8a5d6;
    border-radius: 0 0 50% 50%;
    opacity: 1;
}

.program-icon.water::before,
.program-icon.water::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 20px;
    border-bottom: 3px solid #c4b3e3;
    border-radius: 0 0 50% 50%;
}

.program-icon.water::before {
    top: 20px;
}

.program-icon.water::after {
    top: 35px;
}

/* Reciclaje - flechas circulares */
.program-icon.recycling .icon-shape {
    border-radius: 50%;
    border: 3px dashed #b8a5d6;
    background: transparent;
    opacity: 1;
}

.program-icon.recycling::before {
    content: '♻';
    position: absolute;
    font-size: 35px;
    color: #b8a5d6;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Alimentación - cuadrícula de puntos */
.program-icon.food .icon-shape {
    background-image: radial-gradient(circle, #b8a5d6 3px, transparent 3px);
    background-size: 18px 18px;
    background-position: 0 0, 9px 9px;
    opacity: 1;
}

/* Educación - libro abierto */
.program-icon.education .icon-shape {
    background: transparent;
    border-left: 3px solid #b8a5d6;
    border-right: 3px solid #b8a5d6;
    border-bottom: 4px solid #b8a5d6;
    border-radius: 0 0 20px 20px;
    opacity: 1;
}

.program-icon.education::before {
    content: '';
    position: absolute;
    width: 2px;
    height: 40px;
    background: #c4b3e3;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
}

.program-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #ffffff;
}

.program-badge.ods-2 { background: #d4a036; }
.program-badge.ods-4 { background: #c31f33; }
.program-badge.ods-6 { background: #00aed9; }
.program-badge.ods-8 { background: #8f1838; }
.program-badge.ods-12 { background: #cf8d2a; }
.program-badge.ods-13 { background: #48773e; }
.program-badge.ods-15 { background: #3eb049; }

.program-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #592239;
    margin-bottom: 15px;
    line-height: 1.3;
}

.program-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #4a5568;
    margin: 0;
}

/* Responsive */
@media (max-width: 991.98px) {
    .programs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .programs-modern-title {
        font-size: 1.8rem;
        margin-bottom: 45px;
    }
    
    .program-card {
        padding: 30px 24px;
    }
}

@media (max-width: 575.98px) {
    .programs-container {
        padding: 0 20px;
    }
    
    .programs-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .programs-modern-title {
        font-size: 1.5rem;
        margin-bottom: 35px;
    }
    
    .program-card {
        padding: 25px 20px;
    }
    
    .program-icon {
        width: 60px;
        height: 60px;
    }
    
    .program-title {
        font-size: 1.05rem;
    }
    
    .program-description {
        font-size: 0.9rem;
    }
}
