
/* ===== HERO DE EVENTOS ===== */
.eventos-hero {
    position: relative;
    height: 100vh;
    min-height: 500px;
    background: linear-gradient(135deg, rgba(8, 1, 148, 0.92) 0%, rgba(6, 71, 222, 0.85) 100%);
    display: flex;
    align-items: center;
    color: white;
    overflow: hidden;
}

.eventos-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/img/fondos/eventos.webp');
    background-size: cover;
    background-position: center;
    opacity: 0.30;
    z-index: 0;
}

.eventos-hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: floatParticle 15s infinite linear;
}

@keyframes floatParticle {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 0.8;
    }

    90% {
        opacity: 0.8;
    }
100% {
    transform: translateY(-100vh) translateX(20px);
    opacity: 0;
}
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    width: 100%;
    color: white;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 500;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: 6rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-title span {
    color: var(--accent);
    position: relative;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.3rem;
    max-width: 600px;
    opacity: 0.9;
    margin-bottom: 50px;
    animation: fadeInUp 1s ease 0.4s both;
}
@keyframes expandWidth {
    from {
        width: 0;
        opacity: 0;
    }

    to {
        width: 120px;
        opacity: 1;
    }
}

/* ===== SECCIÓN GENERAL ===== */
.eventos-section {
    padding: 100px 5%;
    position: relative;
}

.eventos-container {
    max-width: 1400px;
    margin: 0 auto;
}

.eventos-section-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.eventos-section-title span {
    color: var(--accent-color);
    font-weight: 800;
}

.eventos-section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--gray-color);
    margin-bottom: 50px;
    max-width: 700px;
    line-height: 1.6;
}

/* ===== FILTROS DE EVENTOS ===== */
.eventos-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.evento-filter-btn {
    padding: 12px 28px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    font-weight: 600;
    color: var(--dark-color);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    letter-spacing: 1px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.evento-filter-btn i {
    margin-right: 8px;
}

.evento-filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(9, 0, 185, 0.3);
}

.evento-filter-btn:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

/* ===== GRID DE EVENTOS ===== */
.eventos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 35px;
    margin-top: 20px;
}

.evento-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.evento-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 45px rgba(9, 0, 185, 0.12);
}

.evento-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
}

.evento-badge.proximo {
    background: #00b09b;
    background: linear-gradient(135deg, #00b09b, #96c93d);
}

.evento-badge.pasado {
    background: #7f8c8d;
    background: linear-gradient(135deg, #7f8c8d, #95a5a6);
}

.evento-badge.destacado {
    background: #f39c12;
    background: linear-gradient(135deg, #f39c12, #f1c40f);
}

.evento-flyer {
    position: relative;
    height: 260px;
    overflow: hidden;
    cursor: pointer;
}

.evento-flyer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.evento-card:hover .evento-flyer img {
    transform: scale(1.08);
}

.evento-flyer-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(9, 0, 185, 0.9), transparent);
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.evento-card:hover .evento-flyer-overlay {
    opacity: 1;
}

.btn-ver-flyer {
    background: white;
    color: var(--primary-color);
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-ver-flyer:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
}

.evento-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.evento-fecha {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.evento-fecha i {
    font-size: 1rem;
}

.evento-titulo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 10px;
    line-height: 1.3;
}

.evento-descripcion {
    color: var(--gray-color);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.evento-metadata {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.evento-metadata-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--dark-color);
}

.evento-metadata-item i {
    color: var(--accent-color);
    width: 16px;
}

.evento-acciones {
    display: flex;
    gap: 12px;
    margin-top: auto;
}

.btn-evento {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-registro {
    background: var(--primary-color);
    color: white;
}

.btn-registro:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(58, 114, 246, 0.4);
}

.btn-detalle {
    background: white;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-detalle:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-pasado {
    background: #ecf0f1;
    color: #7f8c8d;
    border: none;
    cursor: default;
    pointer-events: none;
}

/* ===== CALENDARIO CREATIVO ===== */
.calendario-section {
    background: linear-gradient(145deg, #f8faff, #ffffff);
    position: relative;
    overflow: hidden;
}

.calendario-section::before {
    content: '2026';
    position: absolute;
    bottom: -20px;
    right: 20px;
    font-size: 12rem;
    font-weight: 900;
    color: rgba(9, 0, 185, 0.03);
    font-family: 'Poppins', sans-serif;
    z-index: 0;
}

.calendario-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.calendario-mensual {
    background: white;
    border-radius: 30px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(9, 0, 185, 0.08);
}

.calendario-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.calendario-mes {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.calendario-nav {
    display: flex;
    gap: 10px;
}

.cal-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #e0e0e0;
    background: white;
    color: var(--dark-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.cal-nav-btn:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.dias-semana {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 600;
    color: var(--gray-color);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.dias-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.dia {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    border-radius: 50%;
    cursor: default;
    transition: all 0.2s ease;
    position: relative;
}

.dia.evento {
    background: rgba(58, 114, 246, 0.1);
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    position: relative;
}

.dia.evento::after {
    content: '';
    position: absolute;
    bottom: 5px;
    width: 5px;
    height: 5px;
    background: var(--accent-color);
    border-radius: 50%;
}

.dia.evento:hover {
    background: var(--accent-color);
    color: white;
}

.dia.evento:hover::after {
    background: white;
}

.calendario-eventos-lista {
    background: #f8faff;
    border-radius: 20px;
    padding: 30px;
}

.lista-titulo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.evento-mini {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.evento-mini:last-child {
    border-bottom: none;
}

.evento-mini-fecha {
    background: white;
    min-width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.03);
}

.evento-mini-dia {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.evento-mini-mes {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--gray-color);
}

.evento-mini-info {
    flex: 1;
}

.evento-mini-titulo {
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.evento-mini-ubicacion {
    font-size: 0.8rem;
    color: var(--gray-color);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ===== MOMENTOS DESTACADOS ===== */
.momentos-section {
    background: #0b0b0b;
    color: white;
    position: relative;
    overflow: hidden;
}

.momentos-section .eventos-section-title {
    color: white;
}

.momentos-section .eventos-section-title span {
    color: var(--accent-color);
}

.momentos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.momento-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
}

.momento-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.momento-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(9, 0, 185, 0.95), rgba(58, 114, 246, 0.7));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.momento-card:hover .momento-img {
    transform: scale(1.1);
}

.momento-card:hover .momento-overlay {
    opacity: 1;
}

.momento-fecha {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
    opacity: 0.9;
}

.momento-titulo {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.momento-evento {
    font-size: 0.9rem;
    opacity: 0.9;
}

.btn-ver-mas-momentos {
    text-align: center;
    margin-top: 50px;
}

/* ===== MODAL  ===== */
.flyer-modal-minimal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 10002;
    cursor: pointer;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.flyer-modal-minimal-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    cursor: default;
}

.flyer-modal-minimal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 3rem;
    font-weight: 300;
    cursor: pointer;
    z-index: 10003;
    transition: transform 0.3s ease;
    line-height: 1;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.flyer-modal-minimal-close:hover {
    transform: rotate(90deg);
    color: var(--accent-color);
}

.flyer-modal-download-btn {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: var(--accent-color);
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    z-index: 10003;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.flyer-modal-download-btn:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(58, 114, 246, 0.4);
}

.flyer-modal-download-btn i {
    font-size: 1.1rem;
}

body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .flyer-modal-minimal-close {
        top: 15px;
        right: 20px;
        font-size: 2.5rem;
    }

    .flyer-modal-download-btn {
        bottom: 20px;
        right: 20px;
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .flyer-modal-minimal-close {
        top: 10px;
        right: 15px;
        font-size: 2rem;
    }

    .flyer-modal-download-btn {
        bottom: 15px;
        right: 15px;
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .eventos-hero h1 {
        font-size: 4rem;
    }

    .momentos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .calendario-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .eventos-grid {
        grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    }
}

@media (max-width: 768px) {
    .eventos-hero {
        height: 100vh;
        min-height: 400px;
    }

    .eventos-hero h1 {
        font-size: 2.8rem;
        letter-spacing: 2px;
    }

    .eventos-hero p {
        font-size: 1.2rem;
    }

    .eventos-section-title {
        font-size: 2.2rem;
    }

    .eventos-grid {
        grid-template-columns: 1fr;
    }

    .momentos-grid {
        grid-template-columns: 1fr;
    }

    .flyer-modal-content {
        top: 0;
        transform: none;
        margin-top: 40px;
    }
}

@media (max-width: 480px) {
    .eventos-hero h1 {
        font-size: 2.2rem;
    }

    .evento-flyer {
        height: 200px;
    }

    .evento-acciones {
        flex-direction: column;
    }

    .flyer-modal {
        padding: 20px;
    }

    .flyer-modal-close {
        top: 10px;
        right: 10px;
    }
}