/********** Template CSS **********/
:root {
   
    --primary: #5888AF;
    --bs--secondary: #51a336;
    --light: #EDF1FC;
    --dark:  #5888AF;

}

.navbar-brand h1 span.texto-clinica {
    color: #5888AF !important;
}

.navbar-brand h1 span.texto-sagot {
    color: #51a336 !important;
}
h5.text-secondary {
    color: #51a336 !important;
}
.fw-medium {
    font-weight: 400 !important;
}
.logo-imagen {
    max-width: 200px; /* Ajusta el tamaño máximo del logo */
    height: auto;       /* Mantiene la proporción */
    /* Otros estilos que quieras añadir (margen, padding, etc.) */
}
.sociosSwiper {
    width: 100%;
    padding: 50px 0;
}

.sociosSwiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.sociosSwiper img {
    height: 60px;
    width: auto;
}
.sociosSwiper {
    overflow: hidden;
}

.sociosSwiper .swiper-wrapper {
    display: flex !important;
}

.sociosSwiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}
.sociosSwiper img {
    opacity: 0.8;
    transition: 0.3s;
}

.sociosSwiper img:hover {
    opacity: 1;
    transform: scale(1.05);
}
.sociosSwiper .swiper-slide {
    height: 120px; 
}
.swiper-slide {
    width: auto !important; 
}
/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/* --- Estilos para el botón de WhatsApp Flotante --- */

.whatsapp-button-scroll {
    position: fixed; 
    bottom: 20px;    
    right: 20px;     
    z-index: 1000;   

    background-color:  #1ba34d; /* Color verde de WhatsApp */
    color: #FFFFFF;
    border: none; 
    
    
    width: 60px; 
    height: 60px; 
    padding: 0;  
    
    font-size: 16px;   
    box-shadow: 0 4px 8px rgba(0,0,0,0.2); 
    transition: .5s; 
    
    display: flex; 
    align-items: center;  
    justify-content: center; 
    
    border-radius: 50%; 
}

/* Estilo para el icono de WhatsApp DENTRO del botón redondo */
.whatsapp-button-scroll .fab {
    font-size: 1.8em;
    margin-right: 0; 
}

/* Efecto al pasar el ratón */
.whatsapp-button-scroll:hover {
    background-color: #25D366; 
    color: #FFFFFF;
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
    text-decoration: none; 
}


 @media (max-width: 767.98px) {
    .whatsapp-button-scroll {
        display: none !important; 
    }
} 
/*** Navbar ***/
.top-bar {
    height: 70px;
    padding: 0 3rem;
}

.nav-bar {
    position: relative;
    padding: 0 4.75rem;
    transition: .5s;
    z-index: 9999;
}

.nav-bar.sticky-top {
    position: sticky;
    padding: 0;
    z-index: 9999;
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 600;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar-light .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: var(--primary);
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    outline: none;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
}

/* Contenedor que organiza el icono y el texto */
.item-con-icono {
    display: flex;
    align-items: flex-start; /* Alinea el icono con la parte superior del texto */
    gap: 8px; /* Espacio entre el icono y el inicio del texto, ajústalo si necesitas más o menos separación */
    margin-bottom: 0.5rem;
}

/* Estilo del icono */
.custom-icon-image {
    /* Ajusta estos valores según el tamaño de tu imagen */
    width: 16px;
    height: 16px;
    flex-shrink: 0; /* ¡ESTE ES EL PUNTO CLAVE! Evita que el icono cambie de tamaño o se mueva */
    margin-top: 2px; /* Con esto ajustas que el icono quede bien alineado con la primera línea de texto */
}

/* Estilo del texto */
.item-con-icono span {
    line-height: 1.5; /* Espaciado entre líneas del texto */
}

@media (max-width: 991.98px) {
    .nav-bar {
        padding: 0;
    }

    .navbar-light .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar-light .navbar-nav {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid #EEEEEE;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
.header-carousel .container,
.page-header .container {
    position: relative;
    padding: 45px 0 45px 35px;
    border-left: 15px solid #FFFFFF;
}

.header-carousel .container::before,
.header-carousel .container::after,
.page-header .container::before,
.page-header .container::after {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    width: 100px;
    height: 15px;
    background: #FFFFFF;
}

.header-carousel .container::after,
.page-header .container::after {
    top: 100%;
    margin-top: -15px;
}

@media (max-width: 768px) {
    .header-carousel .owl-carousel-item {
        position: relative;
        min-height: 500px;
    }
    
    .header-carousel .owl-carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .header-carousel .owl-carousel-item h5,
    .header-carousel .owl-carousel-item p {
        font-size: 14px !important;
        font-weight: 400 !important;
    }

    .header-carousel .owl-carousel-item h1 {
        font-size: 30px;
        font-weight: 600;
    }
}

.header-carousel .owl-nav {
    position: absolute;
    top: 50%;
    right: 8%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    margin: 7px 0;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: transparent;
    border: 1px solid #FFFFFF;
    border-radius: 45px;
    font-size: 22px;
    transition: .5s;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.page-header {
    background: linear-gradient(rgba(0, 0, 0, .4), rgba(0, 0, 0, .4)), url(../img/bg-clinica-medica-sagot.png) center center no-repeat;
    background-size: cover;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--light);
}


/*** Facts ***/
.fact {
    background: linear-gradient(rgba(0, 0, 0, .1), rgba(0, 0, 0, .1)), url(../img/bg-clinica-medica-sagot.png) center center no-repeat;
    background-size: cover;
}

/* --- Nueva Sección de Servicios (Imagen Completa Visible) --- */

/* --- Nueva Sección de Servicios (Ajuste para Lado a Lado) --- */

.services-section {
    background-color: #f8f9fa; 
}

.services-section .text-secondary {
    color: #5888AF !important; 
}

.services-section h1 {
    color: #5888AF; 
}

.services-grid-container {
    display: grid;
   
    grid-template-columns: repeat(4, 1fr); 
    gap: 25px; 
    justify-content: center;
    align-items: center;
    padding: 0 15px; 
}

.service-item {
    display: flex; 
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    
   
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none; 
    color: inherit; 
    overflow: hidden; 
    border-radius: 10px !important; 
    
    
    
    width: auto; 
    height: auto; 
    min-height: 50px; 
    
    
}

.service-item:hover {
    transform: translateY(-5px); 
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); 
}

.service-item-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%; 
}

.service-image-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1px;
    border-radius: 1px; 
    overflow: hidden; 
    transition: background-color 0.3s ease;
}

.service-image-wrapper img {
    max-width: 100%; 
    max-height: 100%; 
    object-fit: contain; 
    display: block; 
    border-radius: inherit; 
    margin: auto; 
}

.service-title {
    font-size: 1.1em;
    font-weight: 600;
    color: #5888AF; 
    margin-top: 5px;
}

/* --- Media Queries para Responsividad --- */

@media (max-width: 991.98px) {
    .services-grid-container {
        grid-template-columns: repeat(3, 1fr); 
    }
    .service-item {
        min-height: 160px; 
    }
}

@media (max-width: 767.98px) {
    .services-grid-container {
        grid-template-columns: repeat(2, 1fr); 
    }
    .service-item {
        min-height: 150px; 
    }
}

@media (max-width: 575.98px) {
    .services-grid-container {
        grid-template-columns: 1fr; 
    }
    .service-item {
        min-height: 140px; 
    }
}
/* --- Estilos para centrar el último botón (Método Flexbox) --- */

.button-container-centered {
    display: flex; 
    justify-content: center;
    align-items: center; 
    width: 100%; 
    margin-top: 20px !important; 
    margin-bottom: 20px !important; 
}


.view-all-button {
    
    display: inline-block; 
    padding: 10px 25px !important; 
    font-size: 1.1em; 
    font-weight: bold; 
    border-radius: 25px !important; 
    background-color: #5888AF !important; 
    border-color: #5888AF !important; 
    transition: background-color 0.3s ease, transform 0.3s ease;
    
    
}

.view-all-button:hover {
    background-color: #5888AF !important; 
    border-color: #5888AF !important;
    transform: translateY(-2px); 
}


@media (max-width: 575.98px) {
    .view-all-button {
        width: 90%; 
        padding: 12px 20px !important; 
        font-size: 1em;
    }
}
/*** Service ***/
.service-item-top img {
    transition: .5s;
}

.service-item-top:hover img {
    transform: scale(1.1);
}

.service-carousel .owl-dots {
    margin-top: 24px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.service-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    background: var(--primary);
    border: 5px solid var(--light);
    transition: .5s;
}

.service-carousel .owl-dot.active {
    background: var(--light);
    border-color: var(--primary);
}


/*** Booking ***/
.video {
    position: relative;
    padding: 8rem 0 12rem 0;
    background: linear-gradient(rgba(0, 0, 0, .4), rgba(0, 0, 0, .4)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.video .btn-play {
    position: relative;
    box-sizing: content-box;
    display: block;
    width: 32px;
    height: 44px;
    border-radius: 50%;
    border: none;
    outline: none;
    padding: 18px 20px 18px 28px;
    margin-bottom: 4rem;
}

.video .btn-play:before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 100px;
    height: 100px;
    background: #FFFFFF;
    border-radius: 50%;
    animation: pulse-border 1500ms ease-out infinite;
}

.video .btn-play:after {
    content: "";
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 100px;
    height: 100px;
    background: #FFFFFF;
    border-radius: 50%;
    transition: all 200ms;
}

.video .btn-play img {
    position: relative;
    z-index: 3;
    max-width: 100%;
    width: auto;
    height: auto;
}

.video .btn-play span {
    display: block;
    position: relative;
    z-index: 3;
    width: 0;
    height: 0;
    border-left: 32px solid var(--primary);
    border-top: 22px solid transparent;
    border-bottom: 22px solid transparent;
}

@keyframes pulse-border {
    0% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1.5);
        opacity: 0;
    }
}

#videoModal {
    z-index: 99999;
}

#videoModal .modal-dialog {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0 auto;
}

#videoModal .modal-body {
    position: relative;
    padding: 0px;
}

#videoModal .close {
    position: absolute;
    width: 30px;
    height: 30px;
    right: 0px;
    top: -30px;
    z-index: 999;
    font-size: 30px;
    font-weight: normal;
    color: #FFFFFF;
    background: #000000;
    opacity: 1;
}

.bootstrap-datetimepicker-widget.bottom {
    top: auto !important;
}

.bootstrap-datetimepicker-widget .table * {
    border-bottom-width: 0px;
}

.bootstrap-datetimepicker-widget .table th {
    font-weight: 500;
}

.bootstrap-datetimepicker-widget.dropdown-menu {
    padding: 10px;
    border-radius: 2px;
}

.bootstrap-datetimepicker-widget table td.active,
.bootstrap-datetimepicker-widget table td.active:hover {
    background: var(--primary);
}

.bootstrap-datetimepicker-widget table td.today::before {
    border-bottom-color: var(--primary);
}


/*** Team ***/
.team-item img {
    transition: .5s;
}

.team-item:hover img {
    transform: scale(1.1);
}

.team-item .team-text {
    height: 90px;
    overflow: hidden;
}

.team-item .team-text .bg-light,
.team-item .team-text .bg-primary {
    position: relative;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: .5s;
}

.team-item .team-text .bg-primary {
    flex-direction: row;
}

.team-item:hover .team-text .bg-light {
    margin-top: -90px;
}

.team-item .team-text .bg-primary .btn {
    color: var(--primary);
    background: #FFFFFF;
}

.team-item .team-text .bg-primary .btn:hover {
    color: #FFFFFF;
    background: var(--secondary)
}


/*** Testimonial ***/
.testimonial-carousel .owl-item .testimonial-text,
.testimonial-carousel .owl-item.center .testimonial-text * {
    position: relative;
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-text {
    background: var(--primary) !important;
}

.testimonial-carousel .owl-item.center .testimonial-text * {
    color: #FFFFFF !important;
}

.testimonial-carousel .owl-item .testimonial-text::after {
    position: absolute;
    content: "";
    width: 0;
    height: 0;
    left: 50%;
    bottom: -30px;
    transform: translateX(-50%);
    border: 15px solid;
    border-color: var(--light) transparent transparent transparent;
    transition: .5s;

}

.testimonial-carousel .owl-item.center .testimonial-text::after {
    border-color: var(--primary) transparent transparent transparent;
}

.testimonial-carousel .owl-nav {
    position: absolute;
    width: 350px;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    opacity: 0;
    transition: .5s;
    z-index: 1;
}

.testimonial-carousel:hover .owl-nav {
    width: 300px;
    opacity: 1;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    font-size: 30px;
    color: var(--primary);
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: var(--primary);
}


/*** Footer ***/
.footer {
    background-color: #5888AF;
}
.footer .btn.btn-social {
    margin-right: 5px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    border: 1px solid #FFFFFF;
    border-radius: 35px;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    color: var(--primary);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light);
}
/* --- Estilos para el Logo en el Footer --- */

.footer-logo {
    max-width: 100%; 
    height: auto;    
    display: block;  
    margin: 0 auto;  
    
   
    max-width: 300px; 
   
}

.logo-container {
   
    margin-bottom: 20px; 
}



/* --- Ajustes para pantallas medianas y pequeñas --- */
@media (max-width: 991.98px) {
    .footer .row > div { 
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 30px; 
    }
    .footer .row > div:last-child { 
        margin-bottom: 0;
    }
    .logo-container {
        margin-bottom: 30px; 
    }
}

@media (max-width: 575.98px) {
    .footer .row > div { 
        flex: 0 0 100%;
        max-width: 100%;
    }
    .footer .row > div:last-child {
        margin-bottom: 0;
    }
    .logo-container {
        margin-bottom: 30px;
    }
}






   .espe-image {
    display: block;
    margin: 0 auto;
    max-width: 400px;

    margin-top: 15px; 
    margin-bottom: 15px; 
     z-index: 10;
}


.custom-icon-image {
    display: inline-block; 
    width: 20px;          
    height: 20px;         
    vertical-align: middle; 
    margin-right: 8px;   
   
}


.about-section {
    padding: 60px 0; 
    background-color: #f8f9fa; 
}

.about-section .section-title {
    font-size: 2.5em; 
    font-weight: 700;
    color: #5888AF; 
    margin-bottom: 40px;
    text-align: center;
}

.about-section .about-subtitle {
    font-size: 1.4em;
    font-weight: 600;
    color: #5888AF; 
    margin-bottom: 15px;
    border-bottom: 2px solid #e0e0e0; 
    padding-bottom: 5px;
}

.about-section .about-info p,
.about-section .about-info li {
    font-size: 1.1em;
    color: #5888AF; 
    line-height: 1.7; 
}

.about-section .about-info ul {
    padding-left: 0; 
    list-style: none; 
}

.about-section .about-info li {
    margin-bottom: 10px; 
}

.about-section .about-info strong {
    color: #5888AF; 
}

/* --- Estilos para la Foto de la Persona --- */
.about-person-image {
    max-width: 80%; 
    height: auto;
    display: block; 
    margin: 0 auto; 
   
    
}

/* --- Media Queries para Responsividad --- */

/* Ajustes para pantallas medianas (tablets) */
@media (max-width: 991.98px) {
    .about-section .row {
        flex-direction: column-reverse; /* Invierte el orden: foto abajo, texto arriba */
    }
    .about-section .col-lg-7, 
    .about-section .col-lg-5 {
        flex: 0 0 100%; /* Ocupan todo el ancho */
        max-width: 100%;
    }
    .about-section .col-md-12.text-center {
        margin-bottom: 30px; 
    }
    .about-section .section-title {
        text-align: left; 
    }
}

/* Ajustes para pantallas pequeñas (móviles) */
@media (max-width: 575.98px) {
    .about-section .section-title {
        font-size: 2em;
    }
    .about-section .about-subtitle {
        font-size: 1.2em;
    }
    .about-section .about-info p,
    .about-section .about-info li {
        font-size: 1em;
    }
    .about-person-image {
        max-width: 70%; 
    }
}

/* --- Estilos para la Nueva Sección con Imagen Pequeña --- */
.mini-section {
    padding: 40px 0; 
    background-color: #ffffff; 
}

.mini-section .section-title {
    font-size: 2em; 
    font-weight: 700;
    color: #5888AF; 
    margin-bottom: 25px;
    text-align: left; 
}

.mini-section p {
    font-size: 1.05em; 
    color: #5888AF;
    line-height: 1.6;
}

/* Estilos para la imagen más pequeña */
.smaller-image {
    max-width: 70%; 
    height: auto;
    display: block; 
    margin: 0 auto; 
    border-radius: 10px; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); 
}

/* Ajustes para la imagen original si se mantiene la clase 'espe-image' */
/* .espe-image {
    max-width: 100%; 
    height: auto;
    display: block;
    margin: 0 auto;
    margin-bottom: 20px;
} */

/* --- Ajustes de Media Queries para la mini-section --- */
@media (max-width: 991.98px) {
    .mini-section .row {
        flex-direction: column; 
    }
    .mini-section .col-lg-4, 
    .mini-section .col-lg-8 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .mini-section .col-lg-4.text-center {
        margin-bottom: 25px; 
    }
    .mini-section .section-title {
        text-align: center; 
    }
    .smaller-image {
        max-width: 50%; 
    }
}

@media (max-width: 575.98px) {
    .mini-section .section-title {
        font-size: 1.8em;
    }
    .smaller-image {
        max-width: 70%; 
    }
}

.doctor-container {
    width: 300px; 
    margin: 0 auto; 
}

.about-person-image {
    width: 100%; 
    height: auto;
    display: block;
}

/* Recuadro del carné: más grande y centrado */
.doctor-code-box {
    width: fit-content;
    background-color: #5888AF !important;
    color: #ffffff !important;
    padding: 8px 40px !important; /* AQUI ESTA EL CAMBIO GRANDE */
    border-radius: 8px !important;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: 0px !important;
}

.code-title {
    display: block !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    margin-bottom: 4px !important;
}

.code-number {
    display: block !important;
    font-size: 26px !important; /* NUMERO MUY GRANDE */
    font-weight: bold !important;
    line-height: 1.1 !important;
}
/* Estilos para la sección de servicios */
.combo-box {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    height: 100%;
    transition: all 0.3s ease;
}

.combo-box:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Encabezado del combo box */
.combo-header {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    background-color: #f8f9fa;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.combo-header:hover {
    background-color: #f0f4f8;
}

/* Flecha de despliegue */
.combo-header i {
    transition: transform 0.3s ease;
    color: #5888AF;
}

/* Rotar flecha cuando está abierto */
.combo-header[aria-expanded="true"] i {
    transform: rotate(180deg);
}

/* Contenido que se despliega */
.combo-content {
    border-top: 1px solid #e0e0e0;
    background-color: #ffffff;
}

/* Estilos generales */
.badge {
    font-size: 0.85rem;
    font-weight: 600;
}

.card {
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08) !important;
}

/* Estilos generales para la sección */
.especialidad-item {
    margin-bottom: 8px;
}

/* Estilo base de los botones */
.especialidad-btn {
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    padding: 12px 18px;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Efecto al pasar el ratón por encima */
.especialidad-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

/* Rotación de la flecha al abrirse */
.especialidad-btn[aria-expanded="true"] .fa-chevron-down {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

/* Colores específicos por especialidad */
.medicina-general {
    background-color: #5888AF; 
}

.psicologia {
    background-color: #C21880; 
}

.pediatria {
    background-color: #FF6A13; 
}

.ginecologia {
    background-color: #C878B8; 
}

.ortopedia {
    background-color: #00B8B0; 
}

.cardiologia {
    background-color: #ED1C40; 
}

.dermatologia {
    background-color: #FF8A80; 
}

.psiquiatria {
    background-color: #6A1B9A; 
}

.fisioterapia {
    background-color: #F5B800; 
}

.oftalmologia {
    background-color: #7080A0; 
}

.odontologia {
    background-color: #4A80A0; 
}

.laboratorio {
    background-color: #269390; 
}

/* Estilos para las listas desplegables */
.lista-opciones {
    margin-top: 2px;
    border-radius: 0 0 8px 8px;
    border: 1px solid #e0e0e0;
    border-top: none;
    background-color: #ffffff;
}

.lista-opciones ul {
    color: #333333;
    font-size: 0.9rem;
}

.lista-opciones li {
    border-bottom: 1px solid #f0f0f0;
}

.lista-opciones li:last-child {
    border-bottom: none;
}

.lista-opciones li:hover {
    color: #5888AF;
    padding-left: 5px;
    transition: all 0.2s ease;
}


.especialidad-btn i {
    font-size: 1.1rem;
}


@media (max-width: 768px) {
    .especialidad-btn {
        font-size: 0.95rem;
        padding: 10px 15px;
    }
}

.modal-content {
    width: 95% !important;
    margin: auto !important;
    max-width: 800px !important;
}


.modal-body {
    overflow-x: auto !important; 
    -webkit-overflow-scrolling: touch;
}


.table {
    width: 100% !important;
}

.table td, .table th {
    white-space: normal !important; 
    word-wrap: break-word !important;
}

/* ===================================
   Sección Próximamente
=================================== */

.item-con-icono {
    display: flex;
    align-items: flex-start;
    gap: 10px; 
    margin-bottom: 0.5rem;
    width: 100%;
}

.custom-icon-image {
    width: 18px;  
    height: 18px;
    flex-shrink: 0; 
    margin-top: 3px; 
}

.item-con-icono span {
    display: block;
    line-height: 1.5;
    flex: 1; 
}