/* ============================================================
   CEFRAD - Web pública
   Estilos propios de la web pública (se cargan después de style.css)
   ============================================================ */

/* ─── MENÚ FIJO ───────────────────────────────────────────── */

.nav-bar-sticky {
    position: sticky;
    top: 0;
    z-index: 1030;
    transition: box-shadow 0.25s ease;
}

.nav-bar-sticky.is-scrolled {
    box-shadow: 0 6px 24px rgba(25, 67, 118, 0.18);
}

/* El logotipo del navbar mantiene un tamaño estable */
.nav-bar-sticky .navbar-brand {
    width: 130px;
    flex: 0 0 auto;
}

.nav-bar-sticky .navbar-brand img {
    width: 100%;
    height: auto;
}

/* Con el menú fijo, el contenido empieza justo debajo */
@media (min-width: 992px) {
    #header-carousel,
    .page-header {
        margin-top: 0;
    }
}

/* En móvil, si el menú desplegado es muy alto, permite desplazarlo */
@media (max-width: 991.98px) {
    .nav-bar-sticky .navbar-collapse {
        max-height: calc(100vh - 90px);
        overflow-y: auto;
    }
}

/* ─── CARRUSEL DE PROFESIONALES ───────────────────────────── */

.profesionales {
    position: relative;
    padding: 0 44px;
}

.profesionales-viewport {
    overflow-x: auto;
    overflow-y: hidden;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding: 8px 0 24px;
}

.profesionales-viewport::-webkit-scrollbar {
    display: none;
}

.profesionales-track {
    display: flex;
    align-items: stretch;
}

.profesional-card {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0 15px;
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .profesional-card {
        flex-basis: 50%;
        max-width: 50%;
    }
}

@media (min-width: 992px) {
    .profesional-card {
        flex-basis: 33.3333%;
        max-width: 33.3333%;
    }
}

.profesional-foto {
    width: 100px;
    height: 100px;
    padding: 12px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #fff;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    margin: 0 auto -50px;
    position: relative;
    z-index: 1;
}

.profesional-info {
    flex: 1;
    background-color: #f8f9fa;
    text-align: center;
    padding: 3.6rem 1.25rem 1.5rem;
}

.profesional-info h5 {
    margin-bottom: 0.25rem;
}

.profesional-info .profesional-cargo {
    color: #6c757d;
    font-style: italic;
    margin-bottom: 0.75rem;
}

.profesional-info .profesional-frase {
    margin: 0;
}

.profesionales-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background-color: #194376;
    color: #fff;
    font-size: 1.25rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    box-shadow: 0 4px 14px rgba(25, 67, 118, 0.25);
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

.profesionales-btn:hover,
.profesionales-btn:focus {
    background-color: #46C6CE;
    color: #fff;
    outline: none;
}

.profesionales-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.profesionales-prev {
    left: 0;
}

.profesionales-next {
    right: 0;
}

.profesionales-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
}

.profesionales-dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.profesionales-dot.activo {
    background-color: #46C6CE;
    transform: scale(1.15);
}

@media (max-width: 575.98px) {
    .profesionales {
        padding: 0;
    }

    /* En móvil las flechas se alinean con la foto para no tapar el texto */
    .profesionales-btn {
        top: 24px;
        transform: none;
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .profesionales-prev {
        left: 4px;
    }

    .profesionales-next {
        right: 4px;
    }

    .profesional-card {
        padding: 0 8px;
    }
}
