:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-color: #f8f9fa;
    --dark-color: #2c3e50;
    --text-color: #333;
    --text-light: #6c757d;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
}

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

.generalTitles {
    display: block;
    color: var(--secondary-color);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    font-family: 'Inter', sans-serif;
}



.section-header {
    text-align: center;
    position: relative;
}

.section-header h2 {
    font-size: 2rem;
    color: #1f2937;
    margin: 0.5rem 0 1.5rem;
    font-weight: 600;
    line-height: 1.25;
    font-family: 'Montserrat', sans-serif;
    position: relative;
    display: inline-block;
}


/* ===== Timeline Section ===== */

.background-section {
    padding: 3rem 0;
    background-color: #f9fafc;
    position: relative;
    overflow: hidden;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
}

.timeline-item {
    padding: 10px 30px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
    margin-bottom: 2rem;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-content {
    padding: 1.5rem;
    background: var(--white);
    border-radius: 0.8rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border-left: 4px solid var(--secondary-color);
    margin-bottom: 2rem;
}

.timeline-content::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--white);
    border: 4px solid var(--secondary-color);
    border-radius: 50%;
    top: 30px;
    right: -12px;
    z-index: 1;
}

.timeline-item:nth-child(even) .timeline-content::before {
    right: auto;
    left: -12px;
}

.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.5);
}

.timeline h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}


.timeline p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* ===== Sección Objetivos - Nuestra Red ===== */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem ;
}

.about-card {
    background: var(--white);
    border-radius: 1rem;
    padding: 1rem 2rem;
    box-shadow: 0 5px 30px rgba(44, 62, 80, 0.2);
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 5px 30px rgba(52, 152, 219, 0.5);
}

.about-card .card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 0.2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
    transition: all 0.9s ease;
}

.about-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

.about-card h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    position: relative;
    text-align: center;
}

.about-card h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--secondary-color);
    transition: var(--transition);
}

.about-card:hover h3::after {
    width: 60px;
}

.about-card p {
    color: var(--text-light);
    text-align: justify;
    
}

/* ===== Sección de Objetivos ===== */
.objectives-section {
    padding: 3rem 0;
    background-color: #f9fafc;
}

.objectives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.objective-card {
    background: var(--white);
    border-radius: 1rem;
    padding: 0.5rem 1rem;
    transition: var(--transition);
    box-shadow: 0 5px 20px var(--shadow);
}

.objective-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 5px 20px rgba(52, 152, 219, 0.2);
}

.objective-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-family: 'Montserrat', sans-serif;
    text-align: center;
}

.objective-card p {
    color: var(--text-light);
    margin-bottom: 0;
    line-height: 1.7;
    text-align: justify ;
}

/* ===== Sección de Aliados ===== */
.partners-section {
    padding: 3rem 0;
    background-color: var(--white);
    position: relative;
    overflow: hidden;
}

.partners-description {
    max-width: 700px;
    margin: 1rem auto 0;
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
}

.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin-top: 4rem;
    padding: 2rem 0;
}

.partner-logo {
    flex: 0 0 auto;
    max-width: 180px;
    padding: 1rem;
    opacity: 0.7;
    transition: var(--transition);
    filter: grayscale(100%);
}

.partner-logo:hover {
    opacity: 1;
    transform: translateY(-5px);
    filter: grayscale(0%);
}

.partner-logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* ===== Botón Volver Arriba ===== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* ===== Animaciones al hacer scroll ===== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Retrasos para animaciones escalonadas */
.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }

/* Efectos especiales para tarjetas */
.news-card.animate-on-scroll {
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.objective-card.animate-on-scroll {
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Estilos de imagenes */
.origenes-flex {
    display: flex;
    align-items: center;
    gap: 24rem;
}
.origenes-img {
    width: 100%;
    height: 14.3rem;
    border-radius: 8px;
    margin-top: -100%;
    margin-bottom: 5rem;
    box-shadow: var(--shadow);
}

/* Estilos responsivos */
@media (max-width: 768px) {
    .dual-container {
        flex-direction: column;
        gap: 2rem;
    }
    
    .dual-container > div {
        width: 100%;
        max-width: 100%;
    }
    
    
    .aboutSection {
        margin: 2rem 1rem 4rem;
        border-radius: 8px;
    }
    
    .container p {
        padding: 0 1rem;
    }
}

/* ===== Responsive Design ===== */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 4rem 1rem;
    }

    .hero-content {
        margin-bottom: 3rem;
        padding: 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        margin: 0 auto 2rem;
    }

    .timeline::before {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-content::before {
        left: 20px;
        right: auto;
    }

    .timeline-item:nth-child(even) .timeline-content::before {
        left: 20px;
    }

    .origenes-flex {
    display: flex;
    align-items: center;
    gap: 24rem;
    }

    .origenes-img {
        width: 100%;
        height: 14.3rem;
        border-radius: 8px;
        margin-top: 0%;
        margin-bottom: 5rem;
        box-shadow: var(--shadow);
    }
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-card.highlight {
        transform: none;
    }
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}
  