/* ===== ESTILOS PARA CARDS DE AUTORES ===== */

/* Card base del autor */
.author-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 2px solid #e9ecef;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

/* Efecto de brillo deslizante */
.author-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.author-card:hover::before {
    left: 100%;
}

/* Estado hover de la card */
.author-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(12, 36, 75, 0.15);
    border-color: #0C244B;
}

/* Estado activo de la card */
.author-card.active {
    border-color: #0C244B;
    background: linear-gradient(145deg, #0C244B 0%, #1a3a6b 100%);
    color: white;
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 25px 50px rgba(12, 36, 75, 0.25);
}

.author-card.active .author-name {
    color: white;
}

.author-card.active .event-count {
    color: #ffc107;
    font-weight: 600;
}

/* Contenedor de imagen del autor */
.author-image-wrapper {
    width: 80px;
    height: 80px;
    /* background: #f1f3f5; */
    border: 3px solid #e9ecef;
    border-radius: 20%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s ease;
}


/* Imagen del autor */
.author-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}


.author-card:hover .author-image-wrapper {
    border-color: #0C244B;
}

.author-card:hover .author-image {
    transform: scale(1.1);
}


.author-card.active .author-image-wrapper {
    border-color: white;
}

.author-card.active .author-image {
    transform: scale(1.05);
}

/* Nombre del autor */
.author-name {
    color: #0C244B;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 4px;
    line-height: 1.3;
}

/* Contador de eventos */
.event-count {
    color: #6c757d;
    font-size: 0.85rem;
    font-weight: 500;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablets medianas y pequeñas */
@media (min-width: 550px) and (max-width: 767.98px) {
    .col-12.col-sm-12 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Tablets y móviles */
@media (max-width: 768px) {
    .author-card {
        margin-bottom: 1rem;
        padding: 1.5rem 1rem !important;
    }

    .author-image {
        width: 55px;
        height: 55px;
    }

    .author-name {
        font-size: 0.95rem;
        margin-bottom: 3px;
    }

    .event-count {
        font-size: 0.8rem;
    }

    /* Forzar 2 columnas en móvil para autores */
    .mobile-author-col {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    .author-card {
        padding: 1rem 0.5rem !important;
    }

    .author-image {
        width: 50px;
        height: 50px;
    }

    .author-name {
        font-size: 0.9rem;
        line-height: 1.2;
    }

    .event-count {
        font-size: 0.75rem;
    }
}

/* ===== ESTILOS PARA SECCIONES ===== */

/* Subtítulo de sección */
.section-subtitle {
    color: #6c757d;
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Sección de filtros */
.filter-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 20px;
    padding: 2rem 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
}

/* Sección de eventos */
.events-section {
    min-height: 400px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.events-section.show {
    opacity: 1;
    transform: translateY(0);
}

/* Mensaje de no eventos */
.no-events {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 350px;
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 20px;
    margin: 2rem 0;
    border: 2px dashed #dee2e6;
}

.no-events i {
    font-size: 4rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

/* Sección de bienvenida */
.welcome-section {
    text-align: center;
    padding: 3rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 20px;
    margin: 2rem 0;
    border: 1px solid #e9ecef;
}

.welcome-section i {
    font-size: 3.5rem;
    color: #0C244B;
    margin-bottom: 1.5rem;
}

.welcome-section h3 {
    color: #0C244B;
    font-weight: 600;
    margin-bottom: 1rem;
}

.welcome-section p {
    color: #6c757d;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Header de sección */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

/* Título de sección */
.section-title {
    color: #0C244B;
    font-weight: 700;
    font-size: 1.8rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ===== RESPONSIVE DESIGN PARA SECCIONES ===== */

@media (max-width: 768px) {
    .filter-section {
        padding: 1.5rem 1rem;
    }

    .section-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .section-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .filter-section {
        padding: 1rem 0.5rem;
    }
}

/* ===== ESTILOS PARA BOTONES ===== */

/* Botón de volver */
.btn-back {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    border: none;
    color: white;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-back:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(108, 117, 125, 0.3);
    color: white;
}

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #0C244B 0%, #1a3a6b 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(12, 36, 75, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    /* Mantiene el z-index más alto */
    opacity: 0;
    visibility: hidden;
    transform: translateY(100px);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 35px rgba(12, 36, 75, 0.4);
    background: linear-gradient(135deg, #1a3a6b 0%, #0C244B 100%);
}

.back-to-top:active {
    transform: translateY(-2px) scale(1.05);
}

/* Tooltip para el botón flotante */
.back-to-top::before {
    content: 'Volver al inicio';
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.back-to-top::after {
    content: '';
    position: absolute;
    right: 62px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left: 6px solid #333;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.back-to-top:hover::before,
.back-to-top:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Estilos responsivos para móviles */
@media (max-width: 768px) {
    .Btn {
        bottom: 90px;
        /* Ajuste para móviles */
        right: 15px;
        width: 50px;
        height: 50px;
    }

    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }

    /* En móviles, ocultar el tooltip del botón de subir para evitar problemas */
    .back-to-top::before,
    .back-to-top::after {
        display: none;
    }
}

/* ===== ANIMACIONES ===== */

/* Animación de entrada general */
.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animación para items de eventos */
.event-item {
    animation: slideInFromBottom 0.8s ease forwards;
}

@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}