.banner-principal {
    height: 470px;
}

.doctores-banner {
    width: 100%;
}

.bloque-presentacion {
    margin-top: 20px;
    text-align: center;
}

.bloque-doctores {
    width: 100%;
    margin-top: 20px;
}

/* =========================================================
   CAROUSEL DE DOCTORES - PRIESDENT
   Muestra varias tarjetas a la vez (según ancho de pantalla)
   Dinámico: funciona con cualquier cantidad de doctores
   ========================================================= */

.bloque-doctores {
    position: relative;
    background-color: #0c72a0;   /* Ajusta este azul al tono exacto de tu marca */
    padding: 20px 0 20px;
    margin-top: 140px;
    /*overflow: hidden;*/
}

/* Contenedor donde vive el "viewport" (recorta lo que no se ve) */
.doctores-galeria-viewport {
    overflow: hidden;
    margin-top: -140px;
}

/* Pista que se desplaza horizontalmente */
.doctores-galeria {
    display: flex;
    gap: 24px;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}

/* =========================
   TARJETA DE DOCTOR
   ========================= */
.doctor-bloque {
    flex: 0 0 var(--doctor-card-width, 200px);
    width: var(--doctor-card-width, 200px);
    text-align: center;
    display: flex;
    flex-direction: column;
}

.doctor-bloque-foto {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 16px 16px 999px 999px; /* Arco arriba, esquinas suaves abajo */
    overflow: hidden;
    margin-bottom: 20px;
}

.doctor-bloque-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.doctor-bloque-nombre {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
}

.doctor-bloque-especialidad {
    color: #ffffff;
    font-size: 0.90rem;
    font-weight: 600;
    margin-top: 2px;
}

.doctor-bloque-colegiatura {
    color: #4fd8d1;   /* Turquesa claro para el texto de colegiatura */
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 4px;
}

/* =========================
   FLECHAS DE NAVEGACIÓN
   ========================= */
.doctores-flecha {
    position: absolute;
    top: 38%;                 /* Centradas respecto a las fotos, no al bloque completo */
    transform: translateY(-50%);
    z-index: 10;

    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    color: #ffffff;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: opacity 0.25s ease, transform 0.25s ease;
}

.doctores-flecha:hover {
    transform: translateY(-50%) scale(1.15);
}

.doctores-flecha.izquierda {
    left: 20px;
}

.doctores-flecha.derecha {
    right: 20px;
}

/* Oculta las flechas cuando no hacen falta (pocos doctores) */
.doctores-flecha.oculto {
    display: none;
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 1100px) {
    .doctor-bloque {
        --doctor-card-width: 220px;
    }
}

@media (max-width: 767px) {
    .bloque-doctores {
        padding: 40px 0 50px;
    }

    .doctor-bloque {
        --doctor-card-width: 190px;
    }

    .doctores-galeria {
        gap: 16px;
    }

    .doctores-flecha {
        width: 36px;
        height: 36px;
        font-size: 1.3rem;
    }

    .doctores-flecha.izquierda {
        left: 8px;
    }

    .doctores-flecha.derecha {
        right: 8px;
    }

    .banner-principal {
        height: 350px;
    }
}