/* ===================================================
   CSS AGENDA EDUTIC 2026 - Diseño Compacto Mejorado
   Con formas geométricas, tarjetas optimizadas y botones icónicos
   ================================================== */

/* Hero Section con formas geométricas */
.hero-agenda {
    background: var(--edutic-blue);
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 350px;
    display: flex;
    align-items: center;
    padding: 60px 0 120px;
}

/* Formas geométricas decorativas en el fondo */
.hero-agenda::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50% 50% 0 50%;
    transform: rotate(25deg);
    z-index: 0;
}

.hero-agenda::after {
    content: '';
    position: absolute;
    bottom: -15%;
    left: -8%;
    width: 500px;
    height: 500px;
    background: rgba(29, 53, 87, 0.4);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    transform: rotate(-15deg);
    z-index: 0;
}

/* Formas geométricas adicionales */
.geometric-shape {
    position: absolute;
    z-index: 0;
}

.shape-triangle {
    top: 15%;
    left: 10%;
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 100px solid rgba(255, 255, 255, 0.04);
    transform: rotate(30deg);
}

.shape-circle {
    bottom: 20%;
    right: 15%;
    width: 180px;
    height: 180px;
    background: rgba(220, 71, 17, 0.08);
    border-radius: 50%;
}

.shape-hexagon {
    top: 40%;
    left: 5%;
    width: 100px;
    height: 57.74px;
    background: rgba(255, 255, 255, 0.03);
    clip-path: polygon(30% 0%, 70% 0%, 100% 50%, 70% 100%, 30% 100%, 0% 50%);
}

.shape-square {
    top: 25%;
    right: 25%;
    width: 120px;
    height: 120px;
    background: rgba(255, 193, 7, 0.06);
    border-radius: 15px;
    transform: rotate(45deg);
}

.hero-agenda .container {
    position: relative;
    z-index: 1;
}

.hero-agenda h1 {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.hero-agenda .lead {
    font-size: 1.25rem;
    opacity: 0.95;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
}

/* Grid de tarjetas compacto - 8 tarjetas */
.agenda-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: -120px;
    padding: 0 0 3rem;
    position: relative;
    z-index: 2;
}

/* Tarjetas de eventos - diseño compacto */
.agenda-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.agenda-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(95, 131, 232, 0.25);
    border-color: var(--edutic-blue);
}

/* Imagen del evento - más pequeña */
.agenda-card-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    position: relative;
}

.agenda-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.agenda-card:hover .agenda-card-image img {
    transform: scale(1.08);
}

/* Badge de ubicación sobre la imagen */
.location-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.location-badge .flag-icon {
    width: 20px;
}

/* Contenido de la tarjeta - compacto */
.agenda-card-content {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.agenda-card-content a{
    text-decoration: none;
}
/* Fecha */
.agenda-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--edutic-green);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.agenda-date i {
    font-size: 0.9rem;
}

/* Título del evento */
.agenda-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--edutic-dark);
    margin-bottom: 0.6rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Descripción */
.agenda-description {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.5;
    margin-bottom: 1rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Footer de la tarjeta con botón icónico */
.agenda-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.75rem;
    border-top: 1px solid #e9ecef;
}

/* Tipo de evento */
.event-type {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.event-type.green {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    color: var(--edutic-green);
    border: 1px solid #81c784;
}

/* Botón icónico - más compacto */
.btn-agenda-icon {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    color: white;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.btn-agenda-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: width 0.4s, height 0.4s, top 0.4s, left 0.4s;
}

.btn-agenda-icon:hover::before {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.btn-agenda-icon i {
    position: relative;
    z-index: 1;
}


.btn-agenda-icon.btn-green {
    background: linear-gradient(135deg, var(--edutic-green), var(--edutic-green));
    box-shadow: 0 4px 12px rgba(var(--edutic-green), 0.3);
}

.btn-agenda-icon.btn-green:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(var(--edutic-green), 0.4);
}


/* Responsive - Mobile First */
@media (max-width: 1199.98px) {
    .agenda-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 1.25rem;
    }
}

@media (max-width: 991.98px) {
    .hero-agenda {
        min-height: 400px;
        padding: 120px 0 60px;
    }

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

    .agenda-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        margin-top: -40px;
        gap: 1rem;
    }

    /* Ocultar algunas formas geométricas en tablets */
    .shape-hexagon,
    .shape-square {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .hero-agenda {
        min-height: 350px;
        padding: 100px 0 50px;
    }

    .hero-agenda h1 {
        font-size: 2rem;
    }

    .hero-agenda .lead {
        font-size: 1.1rem;
    }

    .agenda-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: -30px;
    }

    .agenda-card-image {
        height: 140px;
    }

    .agenda-card h3 {
        font-size: 1rem;
    }

    /* Ocultar más formas en móvil */
    .hero-agenda::before {
        width: 300px;
        height: 300px;
    }

    .shape-circle {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 575.98px) {
    .hero-agenda {
        padding: 90px 0 40px;
    }

    .agenda-card-content {
        padding: 1rem;
    }

    .btn-agenda-icon {
        width: 20px;
        height: 20px;
        font-size: 0.9rem;
    }
}

/* Animaciones de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.agenda-card {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

/* Escalonar animaciones */
.agenda-card:nth-child(1) { animation-delay: 0.1s; }
.agenda-card:nth-child(2) { animation-delay: 0.15s; }
.agenda-card:nth-child(3) { animation-delay: 0.2s; }
.agenda-card:nth-child(4) { animation-delay: 0.25s; }
.agenda-card:nth-child(5) { animation-delay: 0.3s; }
.agenda-card:nth-child(6) { animation-delay: 0.35s; }
.agenda-card:nth-child(7) { animation-delay: 0.4s; }
.agenda-card:nth-child(8) { animation-delay: 0.45s; }

/* Estados de carga */
.agenda-card.loading {
    pointer-events: none;
    opacity: 0.6;
}

.agenda-card.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.8) 50%,
        transparent 100%);
    animation: shimmer 1.5s infinite;
}

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


/* Hero Section con diseño editorial */
        .hero-about {
            background: linear-gradient(135deg, var(--edutic-dark) 0%, var(--edutic-blue) 100%);
            min-height: 65vh;
            display: flex;
            align-items: center;
            position: relative;
            overflow: hidden;
            padding: 140px 0 80px;
        }

        .hero-about::before {
            content: '2020';
            position: absolute;
            top: 10%;
            right: -5%;
            font-size: 18rem;
            font-weight: 700;
            font-family: 'Space Grotesk', sans-serif;
            color: rgba(255, 255, 255, 0.03);
            line-height: 1;
            z-index: 0;
        }

        .hero-about::after {
            content: '';
            position: absolute;
            bottom: -20%;
            left: -10%;
            width: 600px;
            height: 600px;
            background: radial-gradient(circle, rgba(255, 193, 7, 0.15) 0%, transparent 70%);
            border-radius: 50%;
        }

        .hero-content {
            position: relative;
            z-index: 2;
        }

        .hero-badge {
            display: inline-block;
            background: rgba(255, 255, 255, 0.15);
            backdrop-filter: blur(10px);
            padding: 0.6rem 1.5rem;
            border-radius: 50px;
            font-family: 'Space Grotesk', sans-serif;
            font-size: 0.85rem;
            font-weight: 600;
            color: white;
            text-transform: uppercase;
            letter-spacing: 2px;
            margin-bottom: 2rem;
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .hero-title {
            font-family: 'Space Grotesk', sans-serif;
            font-size: 4.5rem;
            font-weight: 700;
            color: white;
            line-height: 1.1;
            margin-bottom: 1.5rem;
            letter-spacing: -2px;
        }

        .hero-subtitle {
            font-size: 1.5rem;
            color: rgba(255, 255, 255, 0.9);
            max-width: 700px;
            margin-bottom: 2rem;
            font-weight: 400;
        }

        .hero-stats {
            display: flex;
            gap: 3rem;
            margin-top: 3rem;
        }

          .hero-stats .stat-number ,.hero-stats .stat-label{
            color: #fff;
          }

        /* Timeline Section */
        .timeline-section {
            padding: 100px 0;
            background: white;
            position: relative;
        }

        .section-header {
            text-align: center;
            margin-bottom: 80px;
        }

        .section-label {
            font-family: 'Space Grotesk', sans-serif;
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--edutic-orange);
            text-transform: uppercase;
            letter-spacing: 3px;
            margin-bottom: 1rem;
        }

        .section-title {
            font-family: 'Space Grotesk', sans-serif;
            font-size: 3.5rem;
            font-weight: 700;
            color: var(--edutic-dark);
            line-height: 1.2;
            margin-bottom: 1.5rem;
        }

        .section-description {
            font-size: 1.25rem;
            color: #6c757d;
            max-width: 700px;
            margin: 0 auto;
        }

        /* Timeline con diseño editorial */
        .timeline-section .timeline {
            position: relative;
            max-width: 1200px;
            margin: 0 auto;
        }

        .timeline-section .timeline::before {
            content: '';
            position: absolute;
            left: 50%;
            top: 0;
            bottom: 0;
            width: 3px;
            background: linear-gradient(to bottom, var(--edutic-blue), var(--edutic-green));
            transform: translateX(-50%);
        }

        .timeline-section .timeline-item {
            position: relative;
            margin-bottom: 100px;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 80px;
            align-items: center;
        }

        .timeline-section .timeline-item:nth-child(even) .timeline-content {
            order: 2;
        }

        .timeline-section .timeline-item:nth-child(even) .timeline-year {
            order: 1;
            text-align: left;
        }

        .timeline-section .timeline-dot {
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
            width: 30px;
            height: 30px;
            background: white;
            border: 5px solid var(--edutic-blue);
            border-radius: 50%;
            z-index: 10;
            box-shadow: 0 0 0 10px rgba(95, 131, 232, 0.1);
            transition: all 0.3s ease;
        }

        .timeline-section .timeline-item:hover .timeline-dot {
            transform: translate(-50%, -50%) scale(1.3);
            box-shadow: 0 0 0 15px rgba(95, 131, 232, 0.15);
        }

        .timeline-section .timeline-year {
            text-align: right;
        }

        .year-number {
            font-family: 'Space Grotesk', sans-serif;
            font-size: 6rem;
            font-weight: 700;
            color: var(--edutic-blue);
            line-height: 1;
            opacity: 0.1;
            position: relative;
        }

        .year-label {
            font-family: 'Space Grotesk', sans-serif;
            font-size: 2.5rem;
            font-weight: 700;
            color: var(--edutic-dark);
            margin-top: -2rem;
        }

        .timeline-content {
            background: white;
            padding: 2.5rem;
            border-radius: 20px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
            transition: all 0.3s ease;
            border-left: 4px solid var(--edutic-blue);
        }

        .timeline-item:hover .timeline-content {
            transform: translateY(-5px);
            box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
        }

        .timeline-section .timeline-edition {
            font-family: 'Space Grotesk', sans-serif;
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--edutic-orange);
            text-transform: uppercase;
            letter-spacing: 2px;
            margin-bottom: 1rem;
        }

        .timeline-section .timeline-theme {
            font-family: 'Space Grotesk', sans-serif;
            font-size: 1.8rem;
            font-weight: 700;
            color: var(--edutic-dark);
            margin-bottom: 1rem;
            line-height: 1.3;
        }

        .timeline-section .timeline-description {
            font-size: 1.1rem;
            color: #6c757d;
            margin-bottom: 1.5rem;
            line-height: 1.7;
        }

        .timeline-section .timeline-highlights {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-top: 1.5rem;
        }

        .highlight-tag {
            background: rgba(95, 131, 232, 0.1);
            color: var(--edutic-blue);
            padding: 0.4rem 1rem;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 600;
            font-family: 'Space Grotesk', sans-serif;
        }

        /* Valores Section con grid creativo */
        .valores-section {
            padding: 100px 0;
            background: linear-gradient(135deg, var(--edutic-dark) 0%, #2a4a7d 100%);
            position: relative;
            overflow: hidden;
        }

        .valores-section::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -20%;
            width: 800px;
            height: 800px;
            background: radial-gradient(circle, rgba(95, 131, 232, 0.1) 0%, transparent 70%);
            border-radius: 50%;
        }

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

        .valor-card {
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(10px);
            padding: 2.5rem;
            border-radius: 20px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .valor-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, var(--edutic-orange), var(--edutic-yellow));
            transform: scaleX(0);
            transition: transform 0.3s ease;
        }

        .valor-card:hover::before {
            transform: scaleX(1);
        }

        .valor-card:hover {
            transform: translateY(-10px);
            background: rgba(255, 255, 255, 0.08);
            border-color: rgba(255, 255, 255, 0.2);
        }

        .valor-icon {
            width: 70px;
            height: 70px;
            background: rgba(255, 193, 7, 0.15);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 1.5rem;
        }

        .valor-icon i {
            font-size: 2rem;
            color: var(--edutic-yellow);
        }

        .valor-title {
            font-family: 'Space Grotesk', sans-serif;
            font-size: 1.5rem;
            font-weight: 700;
            color: white;
            margin-bottom: 1rem;
        }

        .valor-description {
            color: rgba(255, 255, 255, 0.8);
            font-size: 1rem;
            line-height: 1.6;
        }

        /* Comunidad Section */
        .comunidad-section {
            padding: 100px 0;
            background: var(--bg-light);
        }

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

        .stat-card {
            background: white;
            padding: 3rem 2rem;
            border-radius: 20px;
            text-align: center;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
            transition: all 0.3s ease;
            border-top: 4px solid var(--edutic-blue);
        }

        .stat-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
        }

        .stat-card .stat-number {
            font-family: 'Space Grotesk', sans-serif;
            font-size: 4rem;
            font-weight: 700;
            background: linear-gradient(135deg, var(--edutic-blue), var(--edutic-green));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            line-height: 1;
            margin-bottom: 1rem;
        }

        .stat-card .stat-label {
            font-size: 1.1rem;
            color: var(--edutic-dark);
            font-weight: 600;
        }

        /* Mapa Latinoamericano */
        .mapa-section {
            padding: 100px 0;
            background: white;
        }

        .paises-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
            gap: 1.5rem;
            margin-top: 60px;
        }

        .pais-card {
            background: var(--bg-light);
            padding: 1.5rem;
            border-radius: 15px;
            text-align: center;
            transition: all 0.3s ease;
            border: 2px solid transparent;
        }

        .pais-card:hover {
            background: white;
            border-color: var(--edutic-blue);
            transform: scale(1.05);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        }

        .pais-flag {
            font-size: 3rem;
            margin-bottom: 0.5rem;
        }

        .pais-nombre {
            font-family: 'Space Grotesk', sans-serif;
            font-size: 1rem;
            font-weight: 600;
            color: var(--edutic-dark);
        }

        /* CTA Section */
        .cta-section {
            padding: 100px 0;
            background: linear-gradient(135deg, var(--edutic-orange) 0%, #b8360d 100%);
            position: relative;
            overflow: hidden;
        }

        .cta-section::before {
            content: '';
            position: absolute;
            top: -30%;
            left: -10%;
            width: 600px;
            height: 600px;
            background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
            border-radius: 50%;
        }

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

        .cta-title {
            font-family: 'Space Grotesk', sans-serif;
            font-size: 3.5rem;
            font-weight: 700;
            color: white;
            margin-bottom: 1.5rem;
        }

        .cta-subtitle {
            font-size: 1.5rem;
            color: rgba(255, 255, 255, 0.9);
            margin-bottom: 2.5rem;
        }

        .btn-cta {
            background: white;
            color: var(--edutic-orange);
            padding: 1.2rem 3rem;
            border-radius: 50px;
            font-family: 'Space Grotesk', sans-serif;
            font-size: 1.1rem;
            font-weight: 700;
            text-decoration: none;
            display: inline-block;
            transition: all 0.3s ease;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        }

        .btn-cta:hover {
            transform: translateY(-3px);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
            color: var(--edutic-orange);
        }

        /* Animaciones */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .fade-in-up {
            animation: fadeInUp 0.8s ease-out;
        }

        /* Responsive */
        @media (max-width: 968px) {
            .hero-title {
                font-size: 3rem;
            }

            .section-title {
                font-size: 2.5rem;
            }

            .timeline-section .timeline::before {
                left: 30px;
            }

            .timeline-section .timeline-item {
                grid-template-columns: 1fr;
                gap: 2rem;
                padding-left: 80px;
            }

            .timeline-section .timeline-item:nth-child(even) .timeline-content {
                order: 1;
            }

            .timeline-section .timeline-item:nth-child(even) .timeline-year {
                order: 2;
                text-align: left;
            }

            .timeline-section .timeline-dot {
                left: 30px;
            }

            .timeline-section .timeline-year {
                text-align: left;
            }

            .year-number {
                font-size: 4rem;
            }

            .year-label {
                font-size: 2rem;
            }
        }

        @media (max-width: 768px) {
            .hero-title {
                font-size: 2.2rem;
            }

            .hero-subtitle {
                font-size: 1.2rem;
            }

            .hero-stats {
                flex-direction: column;
                gap: 2rem;
            }

            .section-title {
                font-size: 2rem;
            }

            .cta-title {
                font-size: 2.2rem;
            }

           .timeline-section  .timeline-highlights {
                flex-direction: column;
            }
        }

          @media (max-width: 480px) {
            .paises-grid{
                gap:0.2rem;
            }
            .pais-flag img{
                width: 60px;
            }
            .pais-flag{
                padding: 0.5rem;
            }
          }
