/* ========================================
   EVENTOS SECTION - Grid 3x3 con Paginación
   ======================================== */

/* Grid de eventos */
#eventosGrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Card de evento */
.evento-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
}

.evento-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* Media container */
.evento-media {
    position: relative;
    width: 100%;
    padding-bottom: 75%; /* Aspect ratio 4:3 */
    overflow: hidden;
    background: #000;
}

.evento-media img,
.evento-media video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* Video poster overlay */
.evento-video-poster {
    z-index: 1;
    transition: opacity 0.3s ease;
}

.evento-video {
    z-index: 0;
}

.evento-card:hover .evento-media img,
.evento-card:hover .evento-media video {
    transform: scale(1.1);
}

/* Video play overlay */
.evento-video-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(212, 175, 55, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.3s ease;
}

.evento-card:hover .evento-video-icon {
    background: rgba(212, 175, 55, 1);
    transform: translate(-50%, -50%) scale(1.15);
}

.evento-video-icon i {
    color: white;
    font-size: 1.5rem;
    margin-left: 3px; /* Centrado visual */
}

/* Badges */
.evento-badge-container {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    display: flex;
    justify-content: space-between;
    z-index: 3;
}

.evento-tipo-badge {
    background: rgba(255, 255, 255, 0.95);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-desfile { background: #4CAF50; color: white; }
.badge-casting { background: #2196F3; color: white; }
.badge-masterclass { background: #FF9800; color: white; }

.evento-destacado-badge {
    background: #FFD700;
    color: #000;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Contenido de la card */
.evento-content {
    padding: 1.5rem;
}

.evento-fecha {
    color: #D4AF37;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.evento-titulo {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    font-family: 'Cormorant Garamond', serif;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.evento-ubicacion {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.evento-ubicacion i {
    color: #D4AF37;
    margin-top: 2px;
    flex-shrink: 0;
}

.evento-descripcion {
    color: #888;
    font-size: 0.85rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1rem;
}

/* Botón ver más */
.evento-ver-mas {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #D4AF37;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.evento-ver-mas:hover {
    color: #C9A55C;
    gap: 0.8rem;
}

/* Paginación */
.eventos-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination-btn {
    background: transparent;
    border: 2px solid #ddd;
    color: #666;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
    border-color: #D4AF37;
    color: #D4AF37;
    transform: scale(1.1);
}

.pagination-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.pagination-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.pagination-dot:hover {
    background: #D4AF37;
    transform: scale(1.2);
}

.pagination-dot.active {
    background: #D4AF37;
    width: 32px;
    border-radius: 6px;
}

/* Estado vacío */
.eventos-empty {
    text-align: center;
    padding: 3rem;
    color: #999;
}

.eventos-empty i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 1rem;
}

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

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

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

/* Responsive - Tablet */
@media (max-width: 992px) {
    #eventosGrid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    #eventosGrid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .evento-content {
        padding: 1.2rem;
    }
    
    .evento-titulo {
        font-size: 1.1rem;
    }
    
    .eventos-pagination {
        flex-wrap: wrap;
        gap: 0.4rem;
    }
    
    .pagination-btn {
        width: 36px;
        height: 36px;
    }
}

/* ========================================
   MODAL DE EVENTO
   ======================================== */

#modalDetalleEvento .modal-content {
    border-radius: 12px;
    overflow: hidden;
}

#modalDetalleEvento .modal-header {
    background: #0a0a0a;
    color: white;
    border-bottom: 2px solid #D4AF37;
}

#modalDetalleEvento .modal-title {
    color: #D4AF37;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 700;
}

#modalDetalleEvento .btn-close {
    filter: invert(1);
}

/* Galería del modal */
.modal-galeria {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.modal-media-item {
    display: none;
    width: 100%;
}

.modal-media-item.active {
    display: block;
}

.modal-media-item img,
.modal-media-item video {
    width: 100%;
    height: auto;
    display: block;
}

.modal-media-item video {
    max-height: 500px;
    object-fit: contain;
}

/* Thumbnails de galería */
.modal-galeria-thumbs {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.modal-thumb {
    position: relative;
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.modal-thumb:hover {
    border-color: #D4AF37;
    transform: scale(1.05);
}

.modal-thumb.active {
    border-color: #D4AF37;
}

.modal-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-video-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    background: rgba(212, 175, 55, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.thumb-video-icon i {
    color: white;
    font-size: 0.6rem;
    margin-left: 2px;
}

/* Info del evento en modal */
.modal-evento-info h6 {
    color: #666;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.modal-evento-info p {
    color: #333;
    line-height: 1.6;
}

/* Badges en modal */
.modal-evento-info .badge {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    border-radius: 20px;
}

/* Placeholder para eventos sin media */
.evento-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e0e0e0, #f5f5f5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

/* Badge de video en card */
.evento-video-badge {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    z-index: 2;
}

.evento-video-badge i {
    color: #D4AF37;
}
