/* =========================================================
   RESPONSIVE GLOBAL - SAN JOSÉ SANATORIO
   Cargar después de index.css, pacientes.css y demás estilos
========================================================= */

/* =========================================================
   BASE GENERAL
========================================================= */

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

img,
video,
iframe {
    max-width: 100%;
}

.content-panel {
    width: min(96%, 1500px);
    max-width: 1500px;
    margin: 0 auto;
}

/* =========================================================
   CABECERA: ESCRITORIO
========================================================= */

.top-contact {
    width: 100%;
}

.top-contact-content {
    position: relative;
    width: 100%;
    min-height: 72px;

    display: grid !important;
    grid-template-columns: 210px minmax(0, 1fr) 330px;
    align-items: center;
    gap: 20px;
}

.top-logo {
    position: static !important;
    transform: none !important;

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

.top-logo img {
    display: block;
    width: 300px;
    max-height: none;
    height: auto;
    object-fit: contain;
}

.top-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 24px;
}

.top-email {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.top-contact a {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    margin: 0 !important;
    white-space: nowrap;
}

/* =========================================================
   CTA DESTACADOS DEL VIDEO - OCULTOS FUERA DE MÓVIL
========================================================= */

.video-mobile-actions {
    display: flex;
}

/* =========================================================
   MONITORES GRANDES
========================================================= */

@media (min-width: 1400px) {
    .video-box {
        max-width: 1380px;
    }
}

/* =========================================================
   LAPTOPS Y PANTALLAS MEDIAS
========================================================= */

@media (max-width: 1200px) {
    .video-layout {
        grid-template-columns: 110px minmax(0, 1fr) 110px;
        gap: 18px;
    }

    .quick-btn,
    .section-btn {
        width: 105px;
        min-height: 90px;
    }

    .doctor-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 300px));
    }

    .promo-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 340px));
    }
}

/* =========================================================
   TABLETS HORIZONTALES
========================================================= */

@media (max-width: 992px) {
    .top-contact {
        padding: 12px 16px !important;
    }

    .top-contact-content {
        min-height: auto;

        grid-template-columns: 1fr !important;
        justify-items: center;
        gap: 8px;

        text-align: center;
    }

    .top-logo,
    .top-links,
    .top-email {
        width: 100%;
        justify-content: center;
    }

    .top-logo img {
        width: 145px;
        max-width: 45vw;
        max-height: 50px;
    }

    .top-links {
        gap: 8px 20px;
    }

    .top-contact a {
        font-size: 13px;
        white-space: normal;
    }

    .top-email a {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    /* INDEX */
    .main-zone {
        min-height: auto;
        padding: 30px 16px;
    }

    .video-layout {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .side-actions {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 14px;
        order: 2;
    }

    .video-box {
        order: 1;
        width: 100%;
        border-radius: 24px;
    }

    .quick-btn {
        width: 130px;
        min-height: 82px;
    }

    /* PÁGINAS DE USUARIO */
    .patient-zone {
        height: auto;
        min-height: calc(100vh - 52px);

        grid-template-columns: 1fr;
        padding: 24px 16px;
        overflow: visible;
    }

    .side-menu {
        position: static;
        height: auto;
        padding-top: 0;

        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .content-panel {
        width: 96%;
        height: auto;
        min-height: 650px;

        padding: 32px;
        overflow: visible;
    }

    /* DIRECTORIO MÉDICO */
    .doctor-folder.open {
        grid-template-columns: 1fr;
        max-width: 100%;

        height: auto !important;
        max-height: none !important;
    }

    .doctor-folder.open .doctor-card-front {
        height: auto !important;

        border-right: none;
        border-bottom: 2px solid #F7B2D0;
    }

    .doctor-folder.open .doctor-card-detail {
        height: auto !important;
        max-height: none !important;
    }

    /* PROMOCIONES */
    .promo-book {
        width: 94vw;
    }
}

/* =========================================================
   TABLETS VERTICALES Y CELULARES GRANDES
========================================================= */

@media (max-width: 768px) {

    /* =====================================================
       HEADER
    ===================================================== */

    .top-contact {
        padding: 12px 14px !important;
    }

    .top-contact-content {
        gap: 7px;
    }

    .top-logo {
        margin-bottom: 3px;
    }

    .top-logo img {
        width: 138px;
        max-width: 68vw;
    }

    .top-links {
        gap: 6px 14px;
    }

    .top-contact a {
        font-size: 12.5px;
    }


    /* =====================================================
       INDEX - VIDEO
    ===================================================== */

    .video-box {
        position: relative;

        width: calc(100% - 12px);
        max-width: 100%;

        margin: 0 auto;

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

        /* Si el video es vertical,
           los espacios laterales serán morados */
        background: var(--morado-oscuro);

        border: 4px solid var(--beige-card);
        border-radius: 22px;

        overflow: hidden;

        box-shadow:
            0 14px 30px rgba(47, 33, 87, .25);
    }

    .video-box video,
    .video-placeholder {
        display: block;

        width: auto;
        max-width: 100%;

        height: auto;
        max-height: 68vh;

        margin: 0 auto;

        object-fit: contain;

        background: transparent;
    }


    /* =====================================================
       BOTONES SOBRE EL VIDEO
       EN MÓVIL SE CONVIERTEN EN CÍRCULOS
    ===================================================== */

    .video-mobile-actions,
    .video-cta-actions {
        position: absolute;

        top: 10px;
        right: 10px;
        bottom: auto;
        left: auto;

        z-index: 20;

        width: auto;

        display: flex;
        flex-direction: column;
        align-items: center;

        gap: 7px;

        /* IMPORTANTE:
           eliminamos el translateX anterior */
        transform: none;
    }

    .video-mobile-btn,
    .video-cta-actions .video-mobile-btn {
        flex: 0 0 auto;

        width: 42px;
        min-width: 42px;

        height: 42px;
        min-height: 42px;

        padding: 0;

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

        gap: 0;

        border: 2px solid rgba(255, 255, 255, .85);
        border-radius: 50%;

        background: rgba(73, 52, 128, .96);

        color: #fff;
        text-decoration: none;

        box-shadow:
            0 6px 15px rgba(47, 33, 87, .30);

        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);

        transition:
            transform .2s ease,
            background .2s ease,
            box-shadow .2s ease;
    }

    .video-mobile-btn i,
    .video-cta-actions .video-mobile-btn i {
        flex: 0 0 auto;

        margin: 0;

        font-size: 18px;
        line-height: 1;
    }

    /* Ocultamos el texto en móvil */
    .video-mobile-btn span,
    .video-cta-actions .video-mobile-btn span {
        display: none;
    }

    .video-mobile-btn:hover,
    .video-mobile-btn:focus-visible,
    .video-cta-actions .video-mobile-btn:hover,
    .video-cta-actions .video-mobile-btn:focus-visible {
        background: var(--morado-oscuro);
        color: #fff;

        transform: scale(1.06);

        box-shadow:
            0 8px 18px rgba(47, 33, 87, .38);
    }


    /* =====================================================
       ACCESOS RÁPIDOS
    ===================================================== */

    .quick-btn,
    .section-btn {
        width: 112px;
        min-height: 76px;

        border-radius: 16px;
    }

    .quick-btn span,
    .section-btn span {
        font-size: 11px;
    }


    /* =====================================================
       CONTENIDO GENERAL
    ===================================================== */

    .content-panel {
        width: 96%;

        padding: 24px 18px;

        border-width: 5px;
        border-radius: 24px;
    }

    .content-panel h1,
    .promociones-header h1,
    .directorio-header h1 {
        font-size: 32px;
    }


    /* =====================================================
       DIRECTORIO MÉDICO
    ===================================================== */

    .directorio-header {
        flex-direction: column;
    }

    .directorio-search,
    .especialidad-select-box {
        width: 100%;
        max-width: 100%;
    }

    .doctor-grid,
    .promo-grid,
    .info-grid {
        grid-template-columns: 1fr;
    }

    .doctor-card-front,
    .promo-card,
    .promo-card-content {
        min-height: auto;
        height: auto;
    }


    /* =====================================================
       PROMOCIONES
    ===================================================== */

    .promo-card,
    .promo-icon,
    .promo-book {
        border-radius: 0;
    }

    .promo-icon {
        height: 160px;
    }

    .promo-card h3 {
        font-size: 26px;
    }

    .promo-overlay {
        padding: 22px 10px;

        align-items: center;
    }

    .promo-book {
        width: 96vw;
        max-height: 88vh;
    }

    .promo-book-header {
        padding: 12px 14px;
    }

    .promo-book-title img {
        height: 32px;
    }

    .promo-book-header h3,
    .promo-book-title h3 {
        font-size: 17px;
        line-height: 1.1;
    }

    .promo-book-body {
        height: 76vh;
    }


    /* =====================================================
       WHATSAPP FLOTANTE
    ===================================================== */

    .whatsapp-float {
        right: 12px;
        bottom: 12px;
    }

    .whatsapp-float img {
        width: 78px;
    }

    .whatsapp-float span {
        max-width: 120px;

        padding: 7px 9px;

        font-size: 11px;
    }


    /* =====================================================
       FOOTER
    ===================================================== */

    footer .row {
        gap: 24px;
    }

    .mapa {
        height: 210px;
    }
}

/* =========================================================
   SMARTPHONES
========================================================= */

@media (max-width: 576px) {
    /* CABECERA */
    .top-contact {
        height: auto !important;
        min-height: 0 !important;

        padding: 12px 10px 14px !important;
        overflow: visible !important;
    }

    .top-contact .container {
        max-width: 100% !important;
    }

    .top-contact-content {
        width: 100% !important;
        min-height: 0 !important;

        margin: 0 !important;
        padding: 0 !important;

        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;

        gap: 6px !important;
    }

    .top-logo {
        order: 1;

        width: 100% !important;
        margin: 0 0 5px !important;

        justify-content: center !important;
    }

    .top-logo img {
        width: 135px !important;
        max-width: 60vw !important;
        height: auto !important;
        max-height: 60px !important;
    }

    .top-links {
        order: 2;

        width: 100% !important;

        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;

        gap: 4px !important;
    }

    .top-email {
        order: 3;

        width: 100% !important;
        margin-top: 2px !important;

        justify-content: center !important;
    }

    .top-contact a {
        width: 100% !important;
        max-width: 100% !important;

        margin: 0 !important;
        padding: 2px 3px !important;

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

        font-size: 12px !important;
        line-height: 1.25 !important;
        text-align: center !important;

        white-space: normal !important;
    }

    .top-contact a i {
        flex: 0 0 auto;
        margin-right: 6px;
    }

    .top-email a {
        font-size: 10.5px !important;
        overflow-wrap: anywhere !important;
        word-break: break-word !important;
    }

    /* INDEX */
    .main-zone {
        padding: 20px 10px;
    }

    .side-actions,
    .side-menu {
        width: 100%;

        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .quick-btn,
    .section-btn {
        width: 100%;
        min-height: 74px;
        padding: 8px;
    }

    .video-box {
        width: 100%;
        border-radius: 16px;
    }

    .video-box video,
    .video-placeholder {
        width: 100%;
        max-height: none;

        aspect-ratio: auto;
        object-fit: contain;
    }

    /* CONTENIDO */
    .content-panel {
        width: 96%;
        padding: 20px 14px;
        border-radius: 20px;
    }

    .content-panel h1,
    .promociones-header h1,
    .directorio-header h1 {
        font-size: 28px;
    }

    /* DIRECTORIO */
    .doctor-card-front h3 {
        font-size: 17px;
    }

    .doctor-photo-box {
        width: 135px;
        height: 135px;
    }

    /* PROMOCIONES */
    .promo-card-content {
        padding: 18px;
    }

    .promo-icon {
        height: 145px;
    }

    .promo-card h3 {
        font-size: 24px;
    }

    .promo-badge {
        font-size: 11px;
    }

    .promo-book {
        width: 98vw;
        max-height: 90vh;
    }

    .promo-book-body {
        height: 78vh;
    }

    .cerrar-promo-modal {
        width: 34px;
        height: 34px;
        flex: 0 0 auto;
    }

    /* WHATSAPP */
    .whatsapp-float {
        right: 8px;
        bottom: 8px;
    }

    .whatsapp-float img {
        width: 64px;
    }

    .whatsapp-float span {
        display: none;
    }
}

/* =========================================================
   SMARTPHONES MUY PEQUEÑOS
========================================================= */

@media (max-width: 380px) {
    .top-contact {
        padding-left: 7px !important;
        padding-right: 7px !important;
    }

    .top-logo img {
        width: 120px !important;
    }

    .top-contact a {
        font-size: 11px !important;
    }

    .top-email a {
        font-size: 9.5px !important;
    }

    .quick-btn,
    .section-btn {
        min-height: 68px;
        font-size: 10px;
    }

    .quick-btn i,
    .section-btn i {
        font-size: 24px;
    }

    .content-panel h1,
    .promociones-header h1,
    .directorio-header h1 {
        font-size: 24px;
    }

    .promo-card h3 {
        font-size: 21px;
    }
}

@media (max-width: 576px) {
    .ubicaciones-tabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    .ubicacion {
        width: 100%;
        min-height: 44px;
        padding: 8px 7px;
        font-size: 12px;
        border-radius: 10px;
    }

    .mapa {
        height: 220px;
        border-radius: 14px;
    }
}

@media (max-width: 380px) {
    .ubicaciones-tabs {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   NOSOTROS RESPONSIVE
========================================================= */

@media (max-width: 992px) {
    .nosotros-fila,
    .nosotros-fila-invertida {
        grid-template-columns: 1fr 300px;
    }

    .nosotros-texto {
        padding: 32px;
    }
}


@media (max-width: 768px) {
    .nosotros-fila,
    .nosotros-fila-invertida {
        grid-template-columns: 1fr;
    }

    .nosotros-fila-invertida .nosotros-texto,
    .nosotros-fila-invertida .nosotros-imagen {
        order: initial;
    }

    .nosotros-texto {
        order: 2;
        padding: 28px 24px;
    }

    .nosotros-imagen {
        order: 1;
        min-height: 240px;
        max-height: 320px;
    }

    .imagen-doctor {
        min-height: 300px;
        max-height: 340px;
    }
}


@media (max-width: 576px) {
    .nosotros-header {
        margin-bottom: 22px;
    }

    .nosotros-header h1 {
        font-size: 31px;
    }

    .nosotros-recorrido {
        gap: 18px;
    }

    .nosotros-fila {
        border-radius: 20px;
    }

    .nosotros-texto {
        padding: 24px 20px;
    }

    .nosotros-texto::before {
        top: 24px;
        height: 58px;
    }

    .nosotros-texto h2 {
        font-size: 26px;
    }

    .nosotros-texto p {
        font-size: 14px;
        line-height: 1.55;
    }

    .nosotros-imagen {
        min-height: 210px;
    }

    .imagen-doctor {
        min-height: 280px;
    }

    .valores-grid {
        gap: 6px;
    }

    .valores-grid span {
        padding: 6px 9px;
        font-size: 11px;
    }
}

/* =========================================================
   MENÚ DE SERVICIOS RESPONSIVE
========================================================= */

@media (max-width: 992px) {
    .menu-servicios {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        width: 100%;
        padding-top: 0;
    }

    .menu-servicios.is-hidden {
        display: none !important;
    }

    .menu-servicios .service-nav-btn {
        width: 100%;
        min-height: 72px;
    }
}

@media (max-width: 768px) {
    .menu-servicios {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .service-detail-header {
        grid-template-columns: 1fr;
    }

    .service-detail-visual {
        min-height: 155px;
    }
}

@media (max-width: 576px) {
    .menu-servicios {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .menu-servicios .service-nav-btn {
        min-height: 70px;
        font-size: 10px;
    }

    .services-home-grid,
    .service-feature-grid {
        grid-template-columns: 1fr;
    }

    .service-summary-card {
        min-height: auto;
    }
}


/* =========================================================
   INICIO - RESPONSIVE NUEVO ORDEN
========================================================= */

@media (max-width: 992px) {
    .home-welcome {
        width: 100%;
        margin-bottom: 24px;
    }

    .home-welcome h1 {
        font-size: clamp(32px, 7vw, 48px);
    }

    .quick-access-section {
        width: 100%;
        margin-top: 34px;
    }

    .quick-access-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
        max-width: 680px;
        margin: 0 auto;
    }

    .quick-access-grid .quick-btn {
        min-height: 125px;
    }
}

@media (max-width: 576px) {
    .main-zone {
        padding-top: 30px;
        padding-bottom: 36px;
    }

    .home-welcome {
        margin-bottom: 24px;
        text-align: left;
    }

    .home-welcome-eyebrow,
    .home-section-eyebrow {
        font-size: 11px;
        letter-spacing: .12em;
    }

    .home-welcome h1 {
        margin-top: 5px;
        font-size: clamp(34px, 10vw, 46px);
        line-height: .98;
    }

    .home-welcome p {
        font-size: 16px;
        line-height: 1.35;
    }

    .home-video-section .video-box {
        width: 100%;
        max-width: 100%;
        border-radius: 26px;
        border-width: 6px;
    }

    .home-video-section .video-box video {
        width: 100%;
        height: auto;
        max-height: none;
        aspect-ratio: 9 / 16;
        object-fit: cover;
    }

    .video-cta-actions {
        bottom: 18px;
        width: min(88%, 360px);
        gap: 10px;
    }

    .video-cta-actions .video-mobile-btn {
        min-height: 58px;
        border-radius: 18px;
        font-size: 17px;
        padding: 10px 17px;
    }

    .video-cta-actions .video-mobile-btn i {
        font-size: 26px;
    }

    .quick-access-section {
        margin-top: 36px;
    }

    .quick-access-header {
        text-align: left;
        margin-bottom: 18px;
    }

    .quick-access-header h2 {
        font-size: 34px;
    }

    .quick-access-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .quick-access-grid .quick-btn {
        min-height: 128px;
        border-radius: 20px;
    }

    .quick-access-grid .quick-btn i {
        font-size: 40px;
    }

    .quick-access-grid .quick-btn span {
        font-size: 13px;
    }
}


/* =========================================================
   ESTUDIOS Y DIAGNÓSTICO - RESPONSIVE
========================================================= */

@media (max-width: 1100px) {
    .estudios-diagnostico-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .estudio-ambulatorios {
        grid-column: auto;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .estudios-diagnostico-header {
        margin-bottom: 26px;
    }

    .estudios-diagnostico-header h1 {
        font-size: 34px;
    }

    .estudios-diagnostico-header p {
        font-size: 15px;
        line-height: 1.5;
    }

    .estudios-diagnostico-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 14px;
    }

    .estudio-card {
        min-height: 176px;
        padding: 20px 12px 18px;
        border-radius: 21px;
    }

    .estudio-card-icono {
        width: 105px;
        height: 105px;
        margin-bottom: 13px;
        border-radius: 20px;
    }

    .estudio-card-icono-temporal {
        font-size: 62px;
    }

    .estudio-card h2 {
        font-size: 18px;
    }

    .estudio-ambulatorios {
        grid-column: 1 / -1;
        width: calc(50% - 7px);
        justify-self: center;
    }
}

@media (max-width: 430px) {
    .estudios-diagnostico-header h1 {
        font-size: 30px;
    }

    .estudios-diagnostico-grid {
        gap: 14px 10px;
    }

    .estudio-card {
        min-height: 160px;
        padding: 16px 8px 14px;
        border-radius: 18px;
    }

    .estudio-card-icono {
        width: 92px;
        height: 92px;
        border-radius: 17px;
    }

    .estudio-card h2 {
        font-size: 16px;
    }

    .estudio-ambulatorios {
        width: 58%;
    }
}


/* =========================================================
   CONTENIDO NUEVO 2026 - RESPONSIVE
========================================================= */

@media (max-width: 992px) {
    .servicio-cta-global,
    .estudios-contacto,
    .maternidad-cta {
        flex-direction: column;
        align-items: flex-start;
    }

    .servicio-cta-global-acciones {
        width: 100%;
        justify-content: flex-start;
    }

    .maternidad-respaldo {
        grid-template-columns: 64px minmax(0, 1fr);
    }

    .maternidad-respaldo button {
        grid-column: 1 / -1;
        justify-self: start;
    }
}

@media (max-width: 768px) {
    .maternidad-galeria,
    .estancia-info-grid {
        grid-template-columns: 1fr;
    }

    .maternidad-poster img {
        aspect-ratio: auto;
        max-height: 620px;
        object-fit: contain;
        background: var(--beige-claro);
    }

    .servicio-cta-global {
        padding: 24px 20px;
    }

    .servicio-cta-btn {
        width: 100%;
    }

    .maternidad-respaldo,
    .maternidad-cta {
        padding: 22px 18px;
    }

    .maternidad-cta a {
        width: 100%;
        text-align: center;
    }

    .imagen-info-modal {
        padding: 12px;
    }

    .imagen-info-cerrar {
        top: 8px;
        right: 8px;
    }
}

@media (max-width: 576px) {
    .services-mode .menu-servicios {
        gap: 8px;
    }

    .services-mode .menu-servicios .service-nav-btn {
        width: min(46vw, 150px);
        min-height: 70px;
    }

    .maternidad-header h1 {
        font-size: 31px;
    }
}


/* =========================================================
   FIX INDEX MOVIL - 26/08/2026
========================================================= */
@media (max-width: 768px) {
    .main-zone {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        overflow-x: hidden !important;
    }

    .main-zone > .container-fluid {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 auto !important;
        padding-left: 14px !important;
        padding-right: 14px !important;
        overflow: hidden !important;
    }

    .home-welcome {
        width: 100% !important;
        max-width: 620px !important;
        min-width: 0 !important;
        margin: 0 auto 24px !important;
        padding: 0 4px !important;
        text-align: center !important;
        transform: none !important;
        position: relative !important;
        left: auto !important;
        right: auto !important;
    }

    .home-welcome-eyebrow {
        width: 100% !important;
        font-size: 11px !important;
        letter-spacing: .12em !important;
        text-align: center !important;
    }

    .home-welcome h1 {
        width: 100% !important;
        max-width: 100% !important;
        margin: 6px auto 10px !important;
        font-size: clamp(30px, 9vw, 42px) !important;
        line-height: 1 !important;
        text-align: center !important;
        white-space: normal !important;
        word-break: normal !important;
    }

    .home-welcome p {
        width: 100% !important;
        max-width: 520px !important;
        margin: 0 auto !important;
        font-size: 15px !important;
        line-height: 1.45 !important;
        text-align: center !important;
        white-space: normal !important;
    }

    .home-video-section {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 auto !important;
        padding: 0 !important;
    }

    .home-video-section .video-box {
        width: min(100%, 390px) !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 auto !important;
        border-width: 5px !important;
        border-radius: 22px !important;
    }

    .home-video-section .video-box video {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
        max-height: none !important;
        aspect-ratio: 9 / 16 !important;
        object-fit: cover !important;
    }

    .video-cta-actions,
    .video-mobile-actions {
        left: 50% !important;
        right: auto !important;
        bottom: 16px !important;
        width: calc(100% - 28px) !important;
        max-width: 330px !important;
        margin: 0 !important;
        padding: 0 !important;
        gap: 9px !important;
        transform: translateX(-50%) !important;
    }

    .video-cta-actions .video-mobile-btn,
    .video-mobile-actions .video-mobile-btn {
        width: 100% !important;
        min-width: 0 !important;
        min-height: 54px !important;
        padding: 9px 14px !important;
        border-radius: 17px !important;
        justify-content: center !important;
        gap: 11px !important;
        font-size: 15px !important;
        line-height: 1.1 !important;
        text-align: center !important;
    }

    .video-cta-actions .video-mobile-btn i,
    .video-mobile-actions .video-mobile-btn i {
        font-size: 23px !important;
    }

    .quick-access-section {
        width: 100% !important;
        max-width: 620px !important;
        margin: 32px auto 10px !important;
        padding: 0 !important;
    }

    .quick-access-header {
        text-align: center !important;
    }
}

@media (max-width: 430px) {
    .main-zone {
        padding: 22px 0 30px !important;
    }

    .main-zone > .container-fluid {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .home-welcome {
        margin-bottom: 20px !important;
        padding: 0 6px !important;
    }

    .home-welcome h1 {
        font-size: clamp(28px, 9.2vw, 38px) !important;
    }

    .home-welcome p {
        font-size: 14px !important;
    }

    .home-video-section .video-box {
        width: min(100%, 350px) !important;
        border-width: 4px !important;
        border-radius: 19px !important;
    }

    .video-cta-actions,
    .video-mobile-actions {
        bottom: 13px !important;
        width: calc(100% - 20px) !important;
        gap: 8px !important;
    }

    .video-cta-actions .video-mobile-btn,
    .video-mobile-actions .video-mobile-btn {
        min-height: 50px !important;
        padding: 8px 12px !important;
        border-radius: 15px !important;
        font-size: 14px !important;
    }

    .video-cta-actions .video-mobile-btn i,
    .video-mobile-actions .video-mobile-btn i {
        font-size: 21px !important;
    }

    .quick-access-grid {
        gap: 10px !important;
    }

    .quick-access-grid .quick-btn {
        min-height: 112px !important;
        border-radius: 18px !important;
    }
}

@media (max-width: 360px) {
    .home-welcome h1 {
        font-size: 29px !important;
    }

    .home-video-section .video-box {
        width: 100% !important;
    }

    .video-cta-actions .video-mobile-btn,
    .video-mobile-actions .video-mobile-btn {
        min-height: 47px !important;
        font-size: 13px !important;
    }

    .quick-access-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}



/* =========================================================
   INDEX ACTUAL - FIX RESPONSIVE REAL
   La cabecera actual usa:
   .home-header
   .home-header-logo
   .home-header-welcome
   .home-header-contact
========================================================= */

@media (max-width: 768px) {

    /* CABECERA DEL INDEX */
    .home-header {
        width: calc(100% - 24px) !important;
        max-width: 680px !important;
        margin: 0 auto !important;
        padding: 18px 8px 16px !important;

        display: grid !important;
        grid-template-columns: 1fr !important;
        grid-template-areas:
            "logo"
            "welcome"
            "contact" !important;

        gap: 14px !important;
        align-items: center !important;
        justify-items: center !important;

        overflow: visible !important;
    }

    .home-header-logo {
        grid-area: logo !important;
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .home-header-logo img {
        width: clamp(185px, 48vw, 250px) !important;
        max-width: 80% !important;
        height: auto !important;
        max-height: none !important;
        object-fit: contain !important;
    }

    .home-header-welcome {
        grid-area: welcome !important;
        width: 100% !important;
        max-width: 520px !important;
        min-width: 0 !important;
        margin: 0 auto !important;
        padding: 0 !important;
        text-align: center !important;
    }

    .home-header-welcome span {
        display: block !important;
        width: 100% !important;
        margin: 0 0 4px !important;
        font-size: 11px !important;
        letter-spacing: .15em !important;
        line-height: 1.2 !important;
        text-align: center !important;
    }

    .home-header-welcome h1 {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto 6px !important;
        padding: 0 !important;

        font-size: clamp(27px, 7.5vw, 40px) !important;
        line-height: 1.02 !important;
        text-align: center !important;

        white-space: normal !important;
        overflow: visible !important;
        word-break: normal !important;
        overflow-wrap: normal !important;
    }

    .home-header-welcome p {
        width: 100% !important;
        max-width: 440px !important;
        margin: 0 auto !important;

        font-size: 14px !important;
        line-height: 1.4 !important;
        text-align: center !important;

        white-space: normal !important;
        overflow: visible !important;
    }

    .home-header-contact {
        grid-area: contact !important;
        width: 100% !important;
        max-width: 520px !important;

        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        flex-wrap: wrap !important;

        gap: 8px 16px !important;
        margin: 0 auto !important;
    }

    .home-header-contact > a {
        width: auto !important;
        margin: 0 !important;
        padding: 4px 2px !important;

        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;

        font-size: 12px !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
    }

    .home-header-contact > a i {
        font-size: 16px !important;
    }

    .home-header-social {
        width: auto !important;
        display: flex !important;
        justify-content: center !important;
        gap: 7px !important;
    }

    .home-header-social a {
        width: 30px !important;
        height: 30px !important;
    }


    /* MAIN DEL INDEX */
    .main-zone {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        padding: 18px 0 32px !important;
        overflow-x: clip !important;
    }

    .main-zone > .container-fluid {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 auto !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }


    /* VIDEO
       IMPORTANTE:
       Quitamos el 9/16 forzado porque tu video actual es horizontal.
       Con 9/16 + cover se estaba recortando "CONSULTA GENERAL",
       logos y textos del propio video.
    */
    .home-video-section {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        display: flex !important;
        justify-content: center !important;
    }

    .home-video-section .video-box {
        width: min(100%, 680px) !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: none !important;
        margin: 0 auto !important;

        border-width: 5px !important;
        border-radius: 20px !important;
        overflow: hidden !important;
    }

    .home-video-section .video-box video {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
        max-height: none !important;

        aspect-ratio: auto !important;
        object-fit: contain !important;
        object-position: center !important;
    }


    /* CTA SOBRE EL VIDEO */
    .video-mobile-actions,
    .video-cta-actions {
        position: absolute !important;
        left: 50% !important;
        right: auto !important;
        bottom: 12px !important;

        width: min(calc(100% - 24px), 390px) !important;
        max-width: calc(100% - 24px) !important;

        margin: 0 !important;
        padding: 0 !important;

        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;

        transform: translateX(-50%) !important;
    }

    .video-mobile-btn,
    .video-cta-actions .video-mobile-btn {
        width: 100% !important;
        min-width: 0 !important;
        min-height: 48px !important;

        padding: 8px 14px !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 10px !important;

        border-radius: 15px !important;

        font-size: 14px !important;
        line-height: 1.1 !important;
        text-align: center !important;
    }

    .video-mobile-btn i,
    .video-cta-actions .video-mobile-btn i {
        font-size: 21px !important;
    }


    /* ASISTENTE:
       en móvil no debe tapar los CTA del video */
    .asistente-float {
        right: 10px !important;
        bottom: 10px !important;
        transform: none !important;
    }

    .asistente-float img {
        width: 52px !important;
        max-width: 52px !important;
    }

    .asistente-float span {
        display: none !important;
    }
}


@media (max-width: 520px) {

    .home-header {
        width: calc(100% - 18px) !important;
        padding: 16px 6px 14px !important;
        gap: 11px !important;
    }

    .home-header-logo img {
        width: min(220px, 65vw) !important;
    }

    .home-header-welcome h1 {
        font-size: clamp(25px, 8.2vw, 34px) !important;
    }

    .home-header-welcome p {
        max-width: 350px !important;
        font-size: 13px !important;
    }

    .home-header-contact {
        gap: 7px 13px !important;
    }

    .home-header-contact > a {
        font-size: 11px !important;
    }

    .home-video-section .video-box {
        width: 100% !important;
        border-width: 4px !important;
        border-radius: 17px !important;
    }

    .video-mobile-actions,
    .video-cta-actions {
        bottom: 9px !important;
        width: calc(100% - 18px) !important;
        max-width: 330px !important;
        gap: 6px !important;
    }

    .video-mobile-btn,
    .video-cta-actions .video-mobile-btn {
        min-height: 43px !important;
        padding: 7px 10px !important;
        font-size: 12.5px !important;
        border-radius: 13px !important;
    }

    .video-mobile-btn i,
    .video-cta-actions .video-mobile-btn i {
        font-size: 18px !important;
    }
}


@media (max-width: 380px) {

    .home-header-contact {
        display: grid !important;
        grid-template-columns: repeat(3, auto) !important;
        justify-content: center !important;
        gap: 6px 10px !important;
    }

    .home-header-contact > a span {
        display: none !important;
    }

    .home-header-contact > a i {
        font-size: 19px !important;
    }

    .home-header-welcome h1 {
        font-size: 27px !important;
    }

    .video-mobile-actions,
    .video-cta-actions {
        width: calc(100% - 14px) !important;
    }

    .asistente-float {
        right: 6px !important;
        bottom: 6px !important;
    }

    .asistente-float img {
        width: 46px !important;
        max-width: 46px !important;
    }
}

/* =========================================================
   CTA VIDEO - MÁS COMPACTOS EN CELULARES
========================================================= */

@media (max-width: 430px) {

    .video-mobile-actions,
    .video-cta-actions {
        bottom: 8px !important;

        width: calc(100% - 28px) !important;
        max-width: 285px !important;

        gap: 5px !important;
    }

    .video-mobile-btn,
    .video-cta-actions .video-mobile-btn {
        min-height: 36px !important;

        padding: 5px 10px !important;

        border-width: 1px !important;
        border-radius: 11px !important;

        gap: 7px !important;

        font-size: 11px !important;
        line-height: 1 !important;
    }

    .video-mobile-btn i,
    .video-cta-actions .video-mobile-btn i {
        font-size: 16px !important;
    }
}


/* Celulares todavía más pequeños */
@media (max-width: 360px) {

    .video-mobile-actions,
    .video-cta-actions {
        max-width: 255px !important;
        gap: 4px !important;
    }

    .video-mobile-btn,
    .video-cta-actions .video-mobile-btn {
        min-height: 32px !important;

        padding: 4px 8px !important;

        font-size: 10px !important;

        border-radius: 10px !important;
    }

    .video-mobile-btn i,
    .video-cta-actions .video-mobile-btn i {
        font-size: 14px !important;
    }
}

/* =========================================================
   CTA VIDEO - BOTONES FLOTANTES CIRCULARES
   Tablet + móvil
========================================================= */

@media (max-width: 768px) {

    .home-video-section .video-box {
        position: relative !important;
    }

    /* Contenedor de botones */
    .video-mobile-actions,
    .video-cta-actions {
        position: absolute !important;

        top: 14px !important;
        right: 14px !important;
        bottom: auto !important;
        left: auto !important;

        width: auto !important;
        max-width: none !important;

        margin: 0 !important;
        padding: 0 !important;

        display: flex !important;
        flex-direction: column !important;
        align-items: flex-end !important;

        gap: 9px !important;

        transform: none !important;

        z-index: 25 !important;
    }

    /* Botones circulares */
    .video-mobile-btn,
    .video-cta-actions .video-mobile-btn {
        width: 48px !important;
        height: 48px !important;

        min-width: 48px !important;
        min-height: 48px !important;

        padding: 0 !important;

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

        border: 2px solid rgba(255,255,255,.85) !important;
        border-radius: 50% !important;

        background: rgba(73, 52, 128, .94) !important;
        color: #fff !important;

        box-shadow: 0 5px 15px rgba(47, 33, 87, .30) !important;

        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);

        overflow: hidden !important;
    }

    /* Ocultamos el texto */
    .video-mobile-btn span,
    .video-cta-actions .video-mobile-btn span {
        display: none !important;
    }

    /* Icono */
    .video-mobile-btn i,
    .video-cta-actions .video-mobile-btn i {
        margin: 0 !important;

        font-size: 20px !important;
        line-height: 1 !important;
    }

    .video-mobile-btn:hover,
    .video-mobile-btn:focus-visible {
        background: #2f2157 !important;
        transform: scale(1.06) !important;
    }
}


/* =========================================================
   CELULARES
========================================================= */

@media (max-width: 520px) {

    .video-mobile-actions,
    .video-cta-actions {
        top: 10px !important;
        right: 10px !important;

        gap: 7px !important;
    }

    .video-mobile-btn,
    .video-cta-actions .video-mobile-btn {
        width: 42px !important;
        height: 42px !important;

        min-width: 42px !important;
        min-height: 42px !important;

        border-width: 1.5px !important;
    }

    .video-mobile-btn i,
    .video-cta-actions .video-mobile-btn i {
        font-size: 18px !important;
    }
}


/* =========================================================
   CELULARES MUY PEQUEÑOS
========================================================= */

@media (max-width: 380px) {

    .video-mobile-actions,
    .video-cta-actions {
        top: 8px !important;
        right: 8px !important;

        gap: 6px !important;
    }

    .video-mobile-btn,
    .video-cta-actions .video-mobile-btn {
        width: 38px !important;
        height: 38px !important;

        min-width: 38px !important;
        min-height: 38px !important;
    }

    .video-mobile-btn i,
    .video-cta-actions .video-mobile-btn i {
        font-size: 16px !important;
    }
}



/* =========================================================
   PROPUESTA 2 - RESPONSIVE DEL INDEX
========================================================= */

@media (max-width: 992px) {

    .home-topbar-v2 {
        width: min(94%, 760px);
        min-height: 78px;

        padding: 12px 20px;

        border-radius: 20px;
    }

    .home-topbar-v2-logo img {
        width: 205px;
        height: 48px;
    }

    .home-menu-v2-btn {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
    }

    .home-menu-v2-btn i {
        font-size: 37px;
    }


    .home-hero-v2 {
        width: min(94%, 760px);
        min-height: 470px;

        margin-bottom: 34px;

        border-radius: 25px;
    }

    .home-hero-v2-content {
        width: 68%;

        padding: 46px;
    }

    .home-hero-v2 h1 {
        font-size: clamp(52px, 8vw, 72px);
    }

    .home-hero-v2-overlay {
        background:
            linear-gradient(
                90deg,
                rgba(250,247,241,.99) 0%,
                rgba(250,247,241,.94) 38%,
                rgba(250,247,241,.65) 62%,
                rgba(250,247,241,.15) 100%
            );
    }


    .home-video-v2 {
        width: min(90%, 760px);
    }
}


@media (max-width: 768px) {

    .main-zone {
        padding-top: 16px;
    }

    .home-topbar-v2 {
        width: calc(100% - 20px);

        margin-bottom: 12px;
        padding: 10px 15px;

        border-radius: 18px;
    }

    .home-topbar-v2-logo img {
        width: 175px;
        height: 44px;
    }

    .home-menu-v2-btn {
        width: 43px;
        height: 43px;

        flex-basis: 43px;
    }

    .home-menu-v2-btn i {
        font-size: 34px;
    }


    .home-hero-v2 {
        width: calc(100% - 20px);
        min-height: 390px;

        margin-bottom: 28px;

        border-radius: 22px;
    }

    /*
       En móvil conservamos la fotografía, pero el degradado cubre más
       superficie para que la lectura sea siempre clara.
    */
    .home-hero-v2-overlay {
        background:
            linear-gradient(
                90deg,
                rgba(250,247,241,.99) 0%,
                rgba(250,247,241,.95) 48%,
                rgba(250,247,241,.60) 76%,
                rgba(250,247,241,.18) 100%
            );
    }

    .home-hero-v2-content {
        width: 76%;

        padding: 34px 26px;
    }

    .home-hero-v2-eyebrow {
        font-size: 17px;
    }

    .home-hero-v2 h1 {
        font-size: clamp(44px, 12vw, 62px);
    }

    .home-hero-v2 p {
        max-width: 300px;

        margin: 13px 0 17px;

        font-size: 14px;
    }

    .home-hero-v2-btn {
        min-height: 36px;

        padding: 7px 12px;

        font-size: 11px;
    }

    .home-hero-v2-btn i {
        font-size: 14px;
    }


    .home-video-v2 {
        width: calc(100% - 28px);

        margin-bottom: 34px;
    }

    .home-video-v2-heading {
        margin-bottom: 10px;
    }

    .home-video-v2-frame {
        border-width: 4px;
        border-radius: 22px;
    }

    /*
       IMPORTANTE:
       Estas reglas neutralizan las antiguas .video-box y
       .video-mobile-actions del responsive previo.
       La Propuesta 2 ya no usa botones sobre el video.
    */
    .home-video-v2-frame video {
        width: 100%;
        height: 100%;
        max-height: none;

        object-fit: contain;
    }
}


@media (max-width: 576px) {

    .home-topbar-v2 {
        min-height: 68px;
    }

    .home-topbar-v2-logo img {
        width: 155px;
        height: 38px;
    }


    .home-hero-v2 {
        min-height: 340px;
    }

    .home-hero-v2-slide {
        background-position: 62% center;
    }

    .home-hero-v2-overlay {
        background:
            linear-gradient(
                90deg,
                rgba(250,247,241,.99) 0%,
                rgba(250,247,241,.96) 53%,
                rgba(250,247,241,.68) 77%,
                rgba(250,247,241,.20) 100%
            );
    }

    .home-hero-v2-content {
        width: 82%;

        padding: 28px 20px;
    }

    .home-hero-v2-eyebrow {
        font-size: 15px;
    }

    .home-hero-v2 h1 {
        font-size: clamp(40px, 12.5vw, 54px);
    }

    .home-hero-v2 p {
        width: 85%;

        font-size: 12.5px;
    }

    .home-hero-v2-actions {
        gap: 7px;
    }

    .home-hero-v2-btn {
        min-height: 33px;

        padding: 6px 10px;

        font-size: 10px;
    }


    .home-video-v2 {
        width: calc(100% - 20px);
    }

    .home-video-v2-heading > span {
        font-size: 9px;
    }

    .home-video-v2-heading h2 {
        font-size: 27px;
    }

    .home-video-v2-frame {
        border-radius: 18px;
    }
}


@media (max-width: 390px) {

    .home-topbar-v2-logo img {
        width: 145px;
    }

    .home-hero-v2 {
        min-height: 320px;
    }

    .home-hero-v2-content {
        width: 86%;

        padding: 24px 17px;
    }

    .home-hero-v2 h1 {
        font-size: 41px;
    }

    .home-hero-v2 p {
        width: 88%;
    }
}


/* Usuario que prefiere menos movimiento */
@media (prefers-reduced-motion: reduce) {

    .home-hero-v2-slide {
        animation: none;
        opacity: 0;
        transform: none;
    }

    .home-hero-v2-slide:first-child {
        opacity: 1;
    }
}


/* Ajuste de textos de servicios en móvil */
@media (max-width:768px){
 .services-mode .menu-servicios .service-nav-btn{min-width:0!important;padding:10px 7px!important;overflow:hidden!important}
 .services-mode .menu-servicios .service-nav-btn span{display:block!important;width:100%!important;max-width:100%!important;font-size:clamp(.72rem,3.6vw,.92rem)!important;line-height:1.12!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important;text-align:center!important}
}

/* =====================================================
   SERVICIOS HOSPITALARIOS - MÓVIL
   Mantener 2 columnas sin cortar contenido
===================================================== */
@media (max-width: 576px) {

    .service-summary-card {
        padding: 20px 12px !important;
        min-width: 0;
        width: 100%;
    }

    .service-summary-card h3 {
        font-size: 18px !important;
        line-height: 1.15;
        overflow-wrap: anywhere;
        word-break: normal;
    }

    .service-summary-card p {
        font-size: 14px;
        line-height: 1.45;
    }
}

/* =========================================================
   SERVICIOS HOSPITALARIOS
   MÓVILES PEQUEÑOS - 375px / iPhone SE
========================================================= */
@media (max-width: 400px) {

    .service-summary-card {
        padding: 20px 10px 18px !important;
        text-align: center;
        align-items: center;
    }

    /* ICONO */
    .service-summary-card img,
    .service-summary-card > i,
    .service-summary-card .service-summary-icon {
        display: block;
        margin: 0 auto 14px !important;
        width: 58px;
        height: 58px;
        object-fit: contain;
    }

    /* TÍTULO */
    .service-summary-card h3 {
        width: 100%;
        margin: 0 0 12px !important;

        font-size: 16px !important;
        line-height: 1.15;

        text-align: center;
        white-space: normal !important;

        overflow-wrap: normal;
        word-break: normal;
        hyphens: none;
    }

    /* DESCRIPCIÓN */
    .service-summary-card p {
        width: 100%;
        margin: 0;

        font-size: 13px;
        line-height: 1.4;

        text-align: left;
    }
}