/* assets/css/styles.css (Actualizado) */
/* Estilos generales para el cuerpo y secciones de contenido */
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    background-color: #f8f9fa;
    line-height: 1.6;
    color: #343a40;
}

.section {
    min-height: auto; /* Se ajusta al contenido */
    padding: 10px 10px;
    margin-bottom: 5px; /* Reducimos el margen inferior */
    background-color: transparent;
    border-radius: 1px;
    box-shadow: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Estilos de la barra de navegación (Sin cambios) */
.card-shadow-1 {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.card {
    border: none;
    border-radius: 0.75rem;
}
.sticky-top {
    position: sticky;
    top: 0;
    z-index: 1020;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.section-navbar {
    padding: 0;
    border-radius: 0.75rem;
    background-color: #ffffff;
    overflow: hidden;
    height: auto;
}
.is-overflowing {
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
    padding: 0 10px;
}
.nav-tabs {
    flex-wrap: nowrap;
    border-bottom: none;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 5px;
}
.nav-tabs::-webkit-scrollbar {
    display: none;
}
.nav-item {
    flex-shrink: 0;
}
.nav-link {
    padding: 1rem 1.5rem;
    color: #6c757d;
    border: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
    margin: 0 4px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0%;
    height: 3px;
    background-color: #007bff;
    transition: all 0.3s ease-out;
    transform: translateX(-50%);
}
.nav-link:hover:not(.active) {
    color: #0056b3;
    background-color: #f0f8ff;
    transform: translateY(-2px);
}
.nav-link:hover:not(.active)::after {
    width: 80%;
}
.nav-link.active {
    color: #007bff;
    background-color: #e6f7ff;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.1);
    border-bottom: none;
}
.nav-link.active::after {
    width: 100%;
    background-color: #007bff;
}

/* Estilos para los botones de desplazamiento (Sin cambios) */
.is-overflowing .btn {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    padding: 0.5rem;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    width: 30px;
    flex-shrink: 0;
    margin: 0 8px;
    transition: all 0.3s ease;
    color: #495057;
}
.is-overflowing .btn:hover {
    background-color: #f0f2f5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}
.is-overflowing .btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}
.is-overflowing .btn[hidden] {
    display: none !important;
}
.svg-icon {
    display: inline-block;
    width: 1.2em;
    height: 1.2em;
    fill: currentColor;
    vertical-align: middle;
}
.svg-icon-size-16 {
    font-size: 18px;
}
.svg-icon-color-gray-600 {
    color: #6c757d;
}
.svg-icon-caret-left svg,
.svg-icon-caret-right svg {
    width: 25px;
    height: 20px;
}

/* Additional inline styles */
.doctor-profile-tabs-content-area {
    margin-top: 0px;
    
}

/* --- MODIFICACIÓN CLAVE --- */
/* Se reduce drásticamente la altura del separador para que no genere un espacio vacío tan grande. */
.section-separator {
    height: 20px; /* Reducido de 200px a 20px */
    background-color: transparent; /* Lo hacemos transparente */
    border-bottom: 1px dashed #dee2e6; /* Mantenemos una línea sutil */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    font-style: italic;
    font-size: 0.9rem;
    margin: 20px 0; /* Añadimos un poco de margen para que respire */
}
/* Si usas la fuente 'Inter', asegúrate de importarla en tu HTML. */

/* TABS PERSONALIZADOS (Sin cambios) */
#doctor-profile-tabs-wrapper {
    width: 100%;
    margin: 0 auto;
    background: transparent;
    border-radius: 12px;
    box-shadow: none;
    padding: 0;
}
#doctor-profile-navbar {
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    border-radius: 12px 12px 0 0;
    overflow-x: auto;
    padding: 0 10px;
    height: auto;
    position: sticky;
    top: 0;
    z-index: 100;
    min-width: -webkit-fill-available;
}
#doctor-profile-navbar ul.nav {
    display: flex;
    flex-wrap: nowrap;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    scrollbar-width: none;
}
#doctor-profile-navbar ul.nav::-webkit-scrollbar { display: none; }
#doctor-profile-navbar .nav-item {
    margin: 0 2px;
}
#doctor-profile-navbar .nav-link {
    display: block;
    padding: 12px 24px;
    color: #6c757d;
    background: none;
    border: none;
    border-radius: 8px 8px 0 0;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.4s cubic-bezier(0.4,0,0.2,1), color 0.4s cubic-bezier(0.4,0,0.2,1);
    outline: none;
    position: relative;
}
#doctor-profile-navbar .nav-link.active,
#doctor-profile-navbar .nav-link:focus,
#doctor-profile-navbar .nav-link:hover {
    color: #007bff;
    background: #f2f6fc;
    transition: background 0.4s cubic-bezier(0.4,0,0.2,1), color 0.4s cubic-bezier(0.4,0,0.2,1);
}
#doctor-profile-tabs-wrapper .doctor-profile-tabs-content-area {
    padding: 0px 12px 12px 12px;
}
#doctor-profile-tabs-wrapper .section {
    display: block;
    animation: none;
}
#doctor-profile-tabs-wrapper .section h2 {
    font-size: 1.333rem;
}