/* Estilos para la página de eventos */

/* Hero Section */
.eventos-hero {
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.eventos-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../../utils/img/1223-img-apple-aesthetic.webp') center/cover;
    filter: brightness(0.5);
    z-index: 1;
}

.eventos-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.eventos-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.eventos-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Grid Section */
.eventos-grid-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.eventos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Event Cards */
.evento-card {
    background: white;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.evento-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Gallery Styles */
.evento-image-gallery {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.evento-images {
    position: relative;
    width: 100%;
    height: 100%;
}

.evento-images img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.3s ease;
}

.evento-images img.active {
    opacity: 1;
}

.evento-card:hover .evento-images img.active {
    transform: scale(1.05);
}

/* Gallery Navigation */
.gallery-nav {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(0, 0, 0, 0.2);
    padding: 8px 15px;
    border-radius: 20px;
}

/* Modal Lightbox */
.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.gallery-modal.active {
    display: flex;
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-gallery {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 400px;
}

.modal-images {
    position: relative;
    width: 100%;
    height: 100%;
}

.modal-images img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.modal-images img.active {
    opacity: 1;
}

.modal-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(0, 0, 0, 0.2);
    padding: 12px 20px;
    border-radius: 25px;
}

.modal-prev,
.modal-next {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.modal-prev:hover,
.modal-next:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.modal-dots {
    display: flex;
    gap: 10px;
}

.modal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.modal-dot.active {
    background: white;
    transform: scale(1.3);
}

.modal-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    z-index: 10001;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.9);
}

.modal-info {
    padding: 20px;
    background: white;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.modal-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.modal-details {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: #555;
}

/* Cursor pointer for clickable images */
.evento-images img {
    cursor: pointer;
}

.gallery-prev,
.gallery-next {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.gallery-prev:hover,
.gallery-next:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.gallery-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.dot.active {
    background: white;
    transform: scale(1.2);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.evento-content {
    padding: 25px;
    position: relative;
}

.evento-date {
    position: absolute;
    top: -30px;
    right: 5px;
    background: #1a1a1a;
    color: white;
    padding: 15px;
    border-radius: 3px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-width: 70px;
}

.evento-date .day {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
}

.evento-date .month {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 2px 0;
}

.evento-date .year {
    display: block;
    font-size: 0.8rem;
    opacity: 0.8;
}

.evento-title {
    max-width: 85%;
    font-size: 1.4rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 15px 0;
    line-height: 1.3;
}

.evento-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.evento-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 25px;
    font-size: 0.9rem;
    color: #555;
}

.evento-location,
.evento-time {
    display: flex;
    align-items: center;
    gap: 8px;
}

.evento-btn {
    display: inline-block;
    background: #1a1a1a;
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 1px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    border: 2px solid #1a1a1a;
}

.evento-btn:hover {
    background: transparent;
    color: #1a1a1a;
    transform: translateY(-2px);
}

/* CTA Section */
.eventos-cta {
    background: #1a1a1a;
    color: white;
    padding: 80px 0;
    text-align: center;
}

.eventos-cta h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.eventos-cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-btn {
    display: inline-block;
    background: white;
    color: #1a1a1a;
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid white;
}

.cta-btn:hover {
    background: transparent;
    color: white;
    transform: translateY(-2px);
}

/* Responsive Design */
@media screen and (max-width: 992px) {
    .eventos-hero {
        padding: 100px 0 60px;
    }
    
    .eventos-title {
        font-size: 2.8rem;
    }
    
    .eventos-subtitle {
        font-size: 1.1rem;
    }
    
    .eventos-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
    }
    
    .eventos-grid-section {
        padding: 60px 0;
    }
}

@media screen and (max-width: 768px) {
    .eventos-hero {
        padding: 80px 0 50px;
    }
    
    .eventos-title {
        font-size: 2.2rem;
    }
    
    .eventos-subtitle {
        font-size: 1rem;
    }
    
    .eventos-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .evento-card {
        margin: 0 10px;
    }
    
    .evento-content {
        padding: 20px;
    }
    
    .evento-date {
        right: 20px;
        padding: 12px;
        min-width: 60px;
    }
    
    .evento-date .day {
        font-size: 1.5rem;
    }
    
    .eventos-cta h2 {
        font-size: 2rem;
    }
    
    .eventos-cta p {
        font-size: 1rem;
    }
}

@media screen and (max-width: 576px) {
    .eventos-container {
        padding: 0 15px;
    }
    
    .eventos-hero {
        padding: 60px 0 40px;
    }
    
    .eventos-title {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }
    
    .eventos-subtitle {
        font-size: 0.9rem;
    }
    
    .eventos-grid-section {
        padding: 40px 0;
    }
    
    .evento-image-gallery {
        height: 180px;
    }
    
    .gallery-nav {
        bottom: 10px;
        padding: 6px 12px;
    }
    
    .gallery-prev,
    .gallery-next {
        width: 25px;
        height: 25px;
        font-size: 14px;
    }
    
    .dot {
        width: 6px;
        height: 6px;
    }
    
    .evento-title {
        font-size: 1.2rem;
    }
    
    .evento-description {
        font-size: 0.9rem;
    }
    
    .eventos-cta {
        padding: 60px 0;
    }
    
    .eventos-cta h2 {
        font-size: 1.6rem;
    }
    
    .cta-btn {
        padding: 12px 25px;
        font-size: 0.8rem;
    }
}

/* Animation for cards on scroll */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.evento-card {
    animation: fadeInUp 0.6s ease forwards;
}

.evento-card:nth-child(1) { animation-delay: 0.1s; }
.evento-card:nth-child(2) { animation-delay: 0.2s; }
.evento-card:nth-child(3) { animation-delay: 0.3s; }
.evento-card:nth-child(4) { animation-delay: 0.4s; }
.evento-card:nth-child(5) { animation-delay: 0.5s; }
.evento-card:nth-child(6) { animation-delay: 0.6s; }

/* Hover effects for better interactivity */
.evento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(26, 26, 26, 0.05), rgba(26, 26, 26, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.evento-card:hover::before {
    opacity: 1;
}