/* ===== PRESENTACIONES DINÁMICAS CSS ===== */

/* Hero Section */
.presentaciones-hero {
    background: linear-gradient(135deg, #003366 0%, #0066cc 100%);
    color: #fff;
    padding: 80px 0 60px 0;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
}

.presentaciones-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    pointer-events: none;
}

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

.presentaciones-main-title i {
    color: #00cc99;
    margin-right: 15px;
}

.presentaciones-main-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* Estadísticas */
.stats-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    min-width: 120px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #00cc99;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Filtros Section */
.filtros-section {
    background: #f8f9fa;
    padding: 30px 0;
    border-bottom: 1px solid #e9ecef;
}

.filtros-container {
    text-align: center;
}

.filtros-container h3 {
    color: #003366;
    margin-bottom: 20px;
    font-weight: 600;
}

.filtros-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filtro-btn {
    background: #fff;
    border: 2px solid #e9ecef;
    color: #666;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.filtro-btn:hover,
.filtro-btn.active {
    background: #003366;
    color: #fff;
    border-color: #003366;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,51,102,0.3);
}

.filtro-btn i {
    margin-right: 8px;
}

/* Grid de Presentaciones */
.presentaciones-grid-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.presentacion-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.presentacion-item.show {
    opacity: 1;
    transform: translateY(0);
}

.presentacion-item.hide {
    display: none;
}

/* Tarjetas de Presentación */
.presentacion-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
}

.presentacion-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.card-header {
    position: relative;
    padding: 0;
}

.ponente-foto {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.semblanza-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.presentacion-card:hover .semblanza-img {
    transform: scale(1.05);
}

.foto-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,51,102,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.foto-overlay i {
    color: #fff;
    font-size: 2rem;
}

.presentacion-card:hover .foto-overlay {
    opacity: 1;
}

/* Badges de Institución */
.institucion-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}

.institucion-badge.asf {
    background: #28a745;
    color: #fff;
}

.institucion-badge.indetec {
    background: #007bff;
    color: #fff;
}

.institucion-badge.otros {
    background: #6f42c1;
    color: #fff;
}

/* Card Body */
.card-body {
    padding: 25px;
}

.ponente-nombre {
    color: #003366;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 10px;
    line-height: 1.3;
}

.ponente-tema {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 20px;
    height: 60px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* Botones de Acción */
.card-actions {
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.btn-semblanza,
.btn-descarga {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    cursor: pointer;
}

.btn-semblanza {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: #fff;
}

.btn-semblanza:hover {
    background: linear-gradient(135deg, #495057, #343a40);
    transform: translateY(-2px);
    color: #fff;
}

.btn-descarga {
    background: linear-gradient(135deg, #003366, #0066cc);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-descarga:hover {
    background: linear-gradient(135deg, #0066cc, #0080ff);
    transform: translateY(-2px);
    color: #fff;
    text-decoration: none;
}

/* Modal Customization */
.modal-content {
    border-radius: 20px;
    border: none;
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, #003366, #0066cc);
    color: #fff;
    border-bottom: none;
    padding: 8px 20px;
}

.modal-title {
    font-weight: 700;
    font-size: 0.9rem;
}

.modal-body {
    padding: 30px;
}

.modal-body img {
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

.close {
    color: #fff;
    opacity: 0.8;
    font-size: 2rem;
}

.close:hover {
    opacity: 1;
    color: #fff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .presentaciones-main-title {
        font-size: 2rem;
    }
    
    .stats-container {
        gap: 20px;
    }
    
    .stat-item {
        min-width: 100px;
        padding: 15px;
    }
    
    .filtros-buttons {
        gap: 10px;
    }
    
    .filtro-btn {
        padding: 10px 16px;
        font-size: 0.8rem;
    }
    
    .card-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .ponente-foto {
        height: 200px;
    }
}

@media (max-width: 576px) {
    .presentaciones-hero {
        padding: 60px 0 40px 0;
    }
    
    .presentaciones-main-title {
        font-size: 1.8rem;
    }
    
    .filtros-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .filtro-btn {
        width: 200px;
    }
}

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

.presentacion-item.animate {
    animation: fadeInUp 0.6s ease forwards;
}

/* Loading State */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #003366;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}
