/* Hero Section */
.hero-eventos {
    height: 350px;
    background: linear-gradient(135deg, #F7A600 0%, #F26522 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    text-align: center;
    color: white;
    z-index: 2;
}

.hero-eventos h1 {
    font-size: 48px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-eventos p {
    font-size: 20px;
    opacity: 0.95;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.underline {
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    margin: 0 auto 20px;
    border-radius: 2px;
}

.section-header p {
    font-size: 18px;
    color: var(--text-light);
}

/* Eventos Próximos */
.eventos-proximos-section {
    padding: 80px 0;
    background: white;
}

.no-eventos {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-light);
    border-radius: 15px;
}

.no-eventos i {
    font-size: 80px;
    color: var(--text-light);
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-eventos h3 {
    font-size: 28px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.no-eventos p {
    color: var(--text-light);
    font-size: 16px;
}

.eventos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 40px;
}

.evento-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.evento-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.evento-flyer {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.evento-flyer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.evento-card:hover .evento-flyer img {
    transform: scale(1.1);
}

.evento-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--accent-color);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.evento-info {
    display: flex;
    padding: 25px;
    gap: 20px;
}

.evento-fecha-box {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--green-color) 100%);
    color: white;
    padding: 15px;
    border-radius: 15px;
    text-align: center;
    min-width: 100px;
    height: fit-content;
}

.fecha-dia {
    display: block;
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
}

.fecha-mes {
    display: block;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 5px;
}

.fecha-anio {
    display: block;
    font-size: 14px;
    opacity: 0.9;
    margin-top: 2px;
}

.evento-detalles h3 {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.evento-detalles p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.evento-acciones {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-zoom, .btn-detalles {
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
}

.btn-zoom {
    background: #2D8CFF;
    color: white;
}

.btn-zoom:hover {
    background: #1a75d2;
    transform: scale(1.05);
}

.btn-detalles {
    background: var(--primary-color);
    color: white;
}

.btn-detalles:hover {
    background: var(--secondary-color);
}

/* Timeline Eventos Pasados */
.eventos-pasados-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--green-color) 100%);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: 0;
    margin-right: 50%;
    padding-right: 50px;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 50%;
    padding-left: 50px;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border: 4px solid white;
    border-radius: 50%;
    z-index: 10;
    box-shadow: 0 0 0 4px var(--primary-color);
}

.timeline-fecha {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-color);
    color: white;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
}

.timeline-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    display: flex;
    transition: all 0.3s ease;
}

.timeline-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.timeline-image {
    width: 200px;
    height: 150px;
    flex-shrink: 0;
}

.timeline-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.timeline-info {
    padding: 20px;
    flex: 1;
}

.timeline-info h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.timeline-info p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.btn-ver-mas {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-ver-mas:hover {
    background: var(--primary-color);
    transform: translateX(5px);
}

/* Galería Section */
.galeria-section {
    padding: 80px 0;
    background: white;
}

.galeria-filtros {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filtro-btn {
    padding: 12px 25px;
    border-radius: 25px;
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.filtro-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.filtro-btn.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(28, 58, 78, 0.3);
}

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.galeria-item {
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.galeria-item.oculto {
    display: none;
}

.galeria-foto {
    position: relative;
    height: 300px;
    cursor: pointer;
    overflow: hidden;
}

.galeria-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.galeria-foto:hover img {
    transform: scale(1.1);
}

.galeria-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
    padding: 30px 20px 20px;
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.galeria-foto:hover .galeria-overlay {
    transform: translateY(0);
}

.galeria-overlay h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.galeria-overlay p {
    font-size: 14px;
    opacity: 0.9;
}

.galeria-video-card {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(28, 58, 78, 0.18);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.galeria-video-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 45px rgba(28, 58, 78, 0.25);
}

.video-thumb {
    position: relative;
    padding-top: 56.25%;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-play-button {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s ease;
}

.video-thumb:hover .video-play-button {
    transform: scale(1.1);
    background: rgba(0, 0, 0, 0.8);
}

.video-info,
.galeria-video-meta {
    background: #ffffff;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.video-info h4,
.galeria-video-meta h6 {
    font-size: 18px;
    color: var(--primary-color);
    margin: 0;
}

.video-info p,
.galeria-video-meta p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 0;
}

.btn-ver-video {
    align-self: flex-start;
    border: none;
    background: var(--accent-color);
    color: #ffffff;
    padding: 10px 22px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-ver-video:hover {
    background: #e78900;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(247, 166, 0, 0.35);
}

.video-info p {
    font-size: 14px;
    color: var(--text-light);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 20px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 10000;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: none;
    color: var(--primary-color);
    font-size: 20px;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--primary-color);
    color: white;
    transform: rotate(90deg);
}

.modal-evento-body {
    display: flex;
    flex-direction: column;
}

.modal-evento-imagen {
    width: 100%;
    height: 350px;
    overflow: hidden;
}

.modal-evento-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-evento-info {
    padding: 40px;
}

.modal-evento-fecha {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
}

.modal-evento-info h2 {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.modal-evento-info p {
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 25px;
}

.modal-evento-link {
    margin-top: 20px;
}

.btn-zoom-modal {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #2D8CFF;
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-zoom-modal:hover {
    background: #1a75d2;
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(45, 140, 255, 0.4);
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
}

.lightbox img {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    z-index: 100000;
    border-radius: 10px;
    box-shadow: 0 10px 50px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: none;
    color: var(--primary-color);
    font-size: 24px;
    cursor: pointer;
    z-index: 100001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: var(--primary-color);
    color: white;
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: var(--primary-color);
    font-size: 24px;
    cursor: pointer;
    z-index: 100001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav.prev {
    left: 30px;
}

.lightbox-nav.next {
    right: 30px;
}

/* CTA Section */
.cta-eventos-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-align: center;
}

.cta-content i {
    font-size: 60px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.cta-content h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.cta-social-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-social {
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-social.facebook {
    background: #1877F2;
    color: white;
}

.btn-social.facebook:hover {
    background: #145dbf;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(24, 119, 242, 0.4);
}

.btn-social.instagram {
    background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF, #515BD4);
    color: white;
}

.btn-social.instagram:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(221, 42, 123, 0.4);
}

.btn-social.whatsapp {
    background: #25D366;
    color: white;
}

.btn-social.whatsapp:hover {
    background: #1da851;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .eventos-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 40px;
        margin-right: 0;
        padding-left: 30px;
        padding-right: 0;
    }
    
    .timeline::before {
        left: 0;
    }
    
    .timeline-marker {
        left: 0;
    }
}

@media (max-width: 768px) {
    .hero-eventos h1 {
        font-size: 36px;
    }
    
    .hero-eventos p {
        font-size: 16px;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .eventos-grid {
        grid-template-columns: 1fr;
    }
    
    .evento-info {
        flex-direction: column;
    }
    
    .evento-fecha-box {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 15px;
        padding: 15px;
    }
    
    .fecha-dia, .fecha-mes, .fecha-anio {
        display: inline;
        font-size: 24px;
    }
    
    .timeline-card {
        flex-direction: column;
    }
    
    .timeline-image {
        width: 100%;
        height: 200px;
    }
    
    .galeria-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .modal-evento-body {
        flex-direction: column;
    }
    
    .modal-evento-info {
        padding: 30px 20px;
    }
    
    .modal-evento-info h2 {
        font-size: 24px;
    }
    
    .cta-content h2 {
        font-size: 28px;
    }
    
    .cta-social-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-social {
        width: 250px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-eventos {
        height: 250px;
    }
    
    .hero-eventos h1 {
        font-size: 28px;
    }
    
    .eventos-proximos-section,
    .eventos-pasados-section,
    .galeria-section,
    .cta-eventos-section {
        padding: 50px 0;
    }
    
    .galeria-filtros {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filtro-btn {
        width: 100%;
        justify-content: center;
    }
    
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .lightbox-nav.prev {
        left: 10px;
    }
    
    .lightbox-nav.next {
        right: 10px;
    }
}
/* Botones de Compartir */
.modal-compartir {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid #f0f0f0;
}

.modal-compartir h4 {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-compartir h4 i {
    color: var(--accent-color);
}

.compartir-botones {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-compartir {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

.btn-compartir:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.25);
}

.btn-compartir.facebook {
    background: #1877f2;
}

.btn-compartir.facebook:hover {
    background: #145dbf;
}

.btn-compartir.twitter {
    background: #1da1f2;
}

.btn-compartir.twitter:hover {
    background: #0c85d0;
}

.btn-compartir.whatsapp {
    background: #25d366;
}

.btn-compartir.whatsapp:hover {
    background: #1eb855;
}

.btn-compartir.linkedin {
    background: #0077b5;
}

.btn-compartir.linkedin:hover {
    background: #005582;
}

.btn-compartir.copiar {
    background: #6c757d;
}

.btn-compartir.copiar:hover {
    background: #545b62;
}

.lightbox-video {
    z-index: 10002;
}

.lightbox-video .lightbox-video-content {
    position: relative;
    max-width: min(900px, 90vw);
    width: 100%;
    background: #000;
    border-radius: 20px;
    overflow: hidden;
}

.lightbox-video iframe,
.lightbox-video video {
    width: 100%;
    height: min(80vh, 520px);
    display: none;
    background: #000;
}

.lightbox-video video {
    object-fit: contain;
}

/* Animaciones para notificaciones */
@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideOutDown {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(100%);
        opacity: 0;
    }
}
