/* Botón de idioma en negro */
.frontend-background {
    background: #fff !important;
}

.language-btn-black {
    background: #1e4274;
    color: #fff !important;
    padding: 8px 12px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.language-btn-black .header-icon {
    color: #fff !important;
}

.language-btn-black:hover {
    background: #222;
}

/* ── Landing navbar: 3 columnas + Home azul ── */
#navbar-responsive.landing-nav {
    align-items: center;
    min-height: 72px;
    padding: 0.5rem 1.25rem;
}

#navbar-responsive.landing-nav .landing-nav__col--logo {
    width: 100%;
}

#navbar-responsive.landing-nav .landing-nav__col--logo .navbar-brand {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    max-width: 100%;
    margin-right: 0;
    padding: 0;
}

#navbar-responsive.landing-nav .landing-nav__col--logo .navbar-brand img,
#navbar-responsive.landing-nav #brand-img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 56px !important;
    object-fit: contain !important;
    object-position: left center;
}

/* Anula max-width:150px del tema compilado (frontend.scss) */
#main #navbar-responsive.landing-nav .navbar-brand img,
#main #navbar-responsive.landing-nav #brand-img {
    max-width: 100% !important;
    width: 100% !important;
}

#navbar-responsive.landing-nav .landing-nav-link--home,
#navbar-responsive.landing-nav .landing-nav-link--home.active,
#navbar-responsive.landing-nav .landing-nav-link--home:hover,
#navbar-responsive.landing-nav .landing-nav-link--home:focus {
    color: #1e4274 !important;
    font-weight: 700;
    text-shadow: none;
}

#navbar-responsive.landing-nav .landing-nav-link--home:hover {
    color: #16345c !important;
}

#navbar-responsive.landing-nav .landing-nav-signin {
    color: #333;
    font-weight: 600;
    text-decoration: none;
}

#navbar-responsive.landing-nav .landing-nav-signin:hover {
    color: #1e4274;
}

@media (min-width: 992px) {
    #navbar-responsive.landing-nav {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        column-gap: 1.5rem;
        align-items: center;
    }

    #navbar-responsive.landing-nav .landing-nav__collapse {
        display: contents !important;
    }

    #navbar-responsive.landing-nav .landing-nav__col {
        min-width: 0;
    }

    #navbar-responsive.landing-nav .landing-nav__col--logo {
        grid-column: 1;
        display: flex;
        align-items: center;
        justify-content: stretch;
        width: 100%;
    }

    #navbar-responsive.landing-nav .landing-nav__col--logo .navbar-brand {
        flex: 1 1 100%;
        width: 100%;
    }

    #navbar-responsive.landing-nav .landing-nav__col--logo .navbar-brand img,
    #navbar-responsive.landing-nav .landing-nav__col--logo #brand-img {
        width: 100% !important;
        max-width: 100% !important;
        max-height: 56px !important;
    }

    #navbar-responsive.landing-nav .landing-nav__col--center {
        grid-column: 2;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #navbar-responsive.landing-nav .landing-nav__col--center .navbar-nav {
        flex-direction: row;
        margin: 0;
    }

    #navbar-responsive.landing-nav .landing-nav__col--actions {
        grid-column: 3;
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }
}

@media (max-width: 991.98px) {
    #navbar-responsive.landing-nav {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
    }

    #navbar-responsive.landing-nav .landing-nav__col--logo {
        flex: 1 1 auto;
        width: calc(100% - 52px);
        max-width: none;
    }

    #navbar-responsive.landing-nav .landing-nav__col--logo .navbar-brand,
    #navbar-responsive.landing-nav .landing-nav__col--logo .navbar-brand img,
    #navbar-responsive.landing-nav .landing-nav__col--logo #brand-img {
        width: 100% !important;
        max-width: 100% !important;
    }

    #navbar-responsive.landing-nav .landing-nav__col--logo .navbar-brand img,
    #navbar-responsive.landing-nav .landing-nav__col--logo #brand-img {
        max-height: 44px !important;
    }

    /* Menú hamburguesa: fondo blanco */
    #navbar-responsive.landing-nav .landing-nav__collapse.navbar-collapse,
    #navbar-responsive.landing-nav .landing-nav__collapse.navbar-collapse.show,
    #navbar-responsive.landing-nav .landing-nav__collapse.navbar-collapse.collapsing {
        flex: 0 0 100%;
        width: 100%;
        background: #fff !important;
        box-shadow: 0 8px 24px rgba(30, 66, 116, 0.08);
        padding: 1.25rem 1rem 1.5rem;
        margin-top: 0.5rem;
        border-top: 1px solid #eef2f7;
    }

    #navbar-responsive.landing-nav .landing-nav__collapse .navbar-nav .nav-link {
        color: #1e4274 !important;
        text-shadow: none !important;
    }

    #navbar-responsive.landing-nav .landing-nav__collapse .landing-nav-signin {
        color: #333 !important;
    }

    #navbar-responsive.landing-nav .landing-nav__col--center {
        margin-bottom: 1rem;
        display: flex;
        justify-content: center;
    }

    #navbar-responsive.landing-nav .landing-nav__col--actions {
        display: flex;
        justify-content: center;
    }
}

/* Fondo blanco global */
body,
.frontend-body,
.blue-background {
    background: #fff !important;
}

/* HERO SECTION */
/* HERO SECTION */
/* HERO SECTION */
.landing-hero {
    background-image: url("/images/banner1-landing.jpg");
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
    background-color: #fff;
    margin-top: 90px;
    color: #1e4274;
    height: 800px;
    padding: 0;
    display: flex;
    align-items: center;
}

/* Altura fija en tablet/móvil — fondo a opacidad plena */
@media (max-width: 992px) {
    .landing-hero {
        position: relative;
        overflow: visible;
        background-image: none;
        background-color: #fff;
        min-height: clamp(600px, 138vw, 760px);
        height: auto;
        padding: 0;
        display: flex;
        align-items: stretch;
    }

    .landing-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        min-height: 100%;
        background-image: var(--hero-bg, url("/images/banner1-landing.jpg"));
        background-size: cover;
        background-position: right center;
        background-repeat: no-repeat;
        opacity: 1;
        z-index: 0;
        pointer-events: none;
    }

    .landing-hero .container {
        position: relative;
        z-index: 1;
        flex: 1 1 auto;
        align-self: stretch;
        width: 100%;
        min-height: 0;
        display: flex;
        flex-direction: column;
        padding: 0;
    }

    .landing-hero .row {
        flex: 1 1 auto;
        display: flex;
        justify-content: center;
        align-items: stretch;
        margin: 0;
        width: 100%;
        min-height: 0;
    }

    /* Columna en flex: título arriba con aire abajo; subtítulo + botón pegados abajo juntos */
    .landing-hero .col-md-6 {
        position: relative;
        flex: 1 1 auto;
        align-self: stretch;
        max-width: 100%;
        width: 100%;
        min-height: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0 0.75rem 0.75rem;
    }

    /* Arriba: sin margen/padding superior; buen hueco debajo del título */
    .landing-hero .hero-title {
        flex: 0 0 auto;
        align-self: center;
        margin: clamp(1.35rem, 6vw, 3rem) auto clamp(4rem, 18vw, 9rem);
        padding: 0;
        width: 100%;
        max-width: 22rem;
        text-align: center;
        font-size: clamp(1.85rem, 7.5vw, 2.65rem);
        font-weight: 800;
        line-height: 1.15;
        opacity: 1;
    }

    /* Subtítulo pegado al botón: margin-top auto empuja el bloque subtítulo+botón al pie */
    .landing-hero .hero-subtitle {
        flex: 0 0 auto;
        align-self: center;
        margin-top: auto;
        margin-bottom: clamp(1.1rem, 4.5vw, 2rem);
        margin-left: auto;
        margin-right: auto;
        padding: 0;
        width: 92%;
        max-width: 21rem;
        text-align: center;
        font-size: clamp(0.95rem, 3.6vw, 1.15rem);
        font-weight: 700;
        line-height: 1.35;
        opacity: 1;
    }

    .landing-hero .hero-button {
        flex: 0 0 auto;
        align-self: center;
        margin: 0 auto 0.25rem !important;
        display: inline-block;
        text-align: center;
        white-space: normal;
        max-width: 94%;
    }
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    width: 100%;
    opacity: 1;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 1;
}

.hero-button {
    background: #00bcd4;
    color: #fff;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s ease;
    margin-top: 20px !important;
}

.hero-button:hover {
    background: #0097a7;
    color: #1e4274 !important;
}

.hero-button-dos {
    background: #1e4274;
    color: #fff;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s ease;
    margin-top: 20px !important;
}
.blue-background:hover {
    background: #222;
    color: #fff !important;
}

/*******************************************section 2 *********************************************/
.service-box {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    transition: 0.2s ease;
}

.service-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 60px;
    height: 60px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin: 0 auto;
}

/* ICONOS FILA 1 */
.icon-general {
    background-image: url("/icons/general.png");
}
.icon-cardiology {
    background-image: url("/icons/cardiology.png");
}
.icon-pediatrics {
    background-image: url("/icons/pediatrics.png");
}
.icon-dermatology {
    background-image: url("/icons/dermatology.png");
}

/* ICONOS FILA 2 */
.icon-women {
    background-image: url("/icons/women.png");
}
.icon-men {
    background-image: url("/icons/men.png");
}
.icon-allergies {
    background-image: url("/icons/allergies.png");
}
.icon-respiratory {
    background-image: url("/icons/respiratory.png");
}
.icon-mental {
    background-image: url("/icons/mental.png");
}
.icon-more {
    background-image: url("/icons/more.png");
}

/* TITULOS Y TEXTOS */
.service-title {
    font-weight: 700;
    font-size: 16px;
    color: #1e4274;
}

.service-titleP {
    color: #1e4274;
}

.service-text {
    color: #6c757d;
    font-size: 13px;
}

/********************************* section 3 *********************************************/

/* ICONOS SECCIÓN 3 */
.icon-families {
    background-image: url("/icons/families.png");
}

.icon-professionals {
    background-image: url("/icons/professionals.png");
}

.icon-seniors {
    background-image: url("/icons/seniors.png");
}

.icon-students {
    background-image: url("/icons/students.png");
}

.icon-international {
    background-image: url("/icons/international.png");
}

/* Desktop */
.medical-services {
    background: #1d4373 !important;
}
@media (min-width: 992px) {
    .medical-services .service-icon {
        width: 95px;
        height: 95px;
    }
}

/* Tablet */
@media (max-width: 991px) and (min-width: 768px) {
    .medical-services .service-icon {
        width: 80px;
        height: 80px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .medical-services .service-icon {
        width: 70px;
        height: 70px;
    }
}

/**************************************section 4 *********************************************/
/* Fondo azul cielo muy claro */
.global-trust-section {
    background: #eaf4ff; /* Ajusta si quieres un azul más claro o más saturado */
}

/* Caja blanca */
.trust-box {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    transition: 0.2s ease;
}

.trust-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

/* Iconos */
.trust-icon {
    width: 60px;
    height: 60px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin: 0 auto;
}

/* ICONOS SECCIÓN 4 */
.icon-247 {
    background-image: url("/icons/247.png");
}

.icon-standards {
    background-image: url("/icons/standards.png");
}

.icon-improving {
    background-image: url("/icons/improving.png");
}

.icon-users {
    background-image: url("/icons/users.png");
}

.icon-countries {
    background-image: url("/icons/countries.png");
}

/* Textos */
.trust-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e4274;
}

.trust-text {
    font-size: 13px;
    color: #6c757d;
}

/* Desktop */
@media (min-width: 992px) {
    .global-trust-section .trust-icon {
        width: 95px;
        height: 95px;
    }
}

/* Tablet */
@media (max-width: 991px) and (min-width: 768px) {
    .global-trust-section .trust-icon {
        width: 80px;
        height: 80px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .global-trust-section .trust-icon {
        width: 70px;
        height: 70px;
    }
}
/************************************** SECTION 5 *********************************************/
/************************************** SECTION 5 *********************************************/

/* DESKTOP — Imagen como background */
.human-doctor-section {
    background-image: url("/images/doctor-banner.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    padding: 120px 40px;
    border-radius: 20px;
    width: 100%;
    display: flex;
    align-items: center;
    background-color: #eaf4ff;
}

/* Ocultar imagen interna en desktop */
.human-doctor-section .image-column {
    display: none;
}

/* Imagen interna (ya no se usará en mobile) */
.doctor-img {
    display: none;
}

/* Título */
.doctor-title {
    font-size: 36px;
    font-weight: 700;
    color: #1e4274;
}

/* Descripción */
.doctor-description {
    font-size: 16px;
    color: #4a5568;
    max-width: 420px;
    margin-bottom: 40px !important;
}

/* Botón desktop */
.hero-button-2 {
    display: inline-block;
    background-color: #1e4274;
    color: #fff;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

/* ============================= */
/* TABLET & MOBILE (≤ 850px)     */
/* ============================= */
@media (max-width: 850px) {
    /* 🔥 Usar imagen móvil como fondo */
    .human-doctor-section {
        background-image: url("/images/doctor-banner-movil.jpg");
        background-size: contain;
        background-position: right center;
        background-repeat: no-repeat;

        padding: 40px 20px;
        border-radius: 0;
        background-color: #c9d9ea;

        display: block; /* 🔥 elimina columnas */
        text-align: left;
        max-height: 300px;
        overflow: hidden;
    }

    /* 🔥 El texto ocupa todo el ancho */
    .human-doctor-section .text-column,
    .human-doctor-section .col-md-6 {
        width: 50%;
        max-width: 50%;
    }

    /* 🔥 Ajustes de texto */
    .doctor-title {
        font-size: 26px;
        margin-bottom: 10px;
    }

    .doctor-description {
        font-size: 14px;
        margin-bottom: 20px !important;
    }

    /* 🔥 Botón adaptado */
    .hero-button-2 {
        white-space: normal;
        text-align: left;
        line-height: 1.3;
        padding: 12px 20px;
        font-size: 15px;
        width: 100%;
        max-width: 260px;
    }
}

@media (max-width: 600px) {
    .human-doctor-section .text-column,
    .human-doctor-section .col-md-6 {
        width: 100%;
        max-width: 100%;
    }

    .human-doctor-section {
        background-image: none;
    }
}

/************************************** SECTION 6 *********************************************/

/* DESKTOP — Imagen principal */
.human-doctor-section-seis {
    background-image: url("/images/app-banner.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    padding: 250px 20px;
    /* border-radius: 20px; */
    width: 100%;

    display: flex;
    align-items: center;
    background-color: #eaf4ff;
    text-align: left;
}
@media (max-width: 1044px) {
    .human-doctor-section-seis {
        background-image: url("/images/app-banner-movil.jpg");
    }

    .human-doctor-section-seis .col-md-6 {
        width: 100%;
        max-width: 100%;
    }
}
/* TABLET & MOBILE — desde 850px hacia abajo */
@media (max-width: 850px) {
    .human-doctor-section-seis {
        background-image: url("/images/app-banner-movil.jpg"); /* 🔥 nueva imagen */
        background-size: contain; /* se ve completa */
        background-position: top center;
        background-repeat: no-repeat;

        padding: 60px 0px;
        border-radius: 0; /* opcional si quieres quitar bordes */
        text-align: center;
        background-color: #eaf4ff;
        text-align: left;
        background-position: right center;
        justify-content: flex-start;
    }

    .human-doctor-section-seis .col-md-6 {
        width: 50%;
        max-width: 50%;
    }

    .human-doctor-section-seis .doctor-title {
        font-size: 24px;
        margin-bottom: 8px;

        text-align: left;
    }

    .human-doctor-section-seis .doctor-description {
        font-size: 14px;
        margin: 0 auto;
        text-align: left;
    }
}

/* ============================= */
/* BOTONES DE DESCARGA - SECTION 6 */
/* ============================= */

.app-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.app-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #000;
    color: #fff;
    padding: 12px 18px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: 0.3s ease;
}

.app-btn i {
    font-size: 26px;
    color: #fff;
}

.app-btn span {
    color: #fff;
    line-height: 1.1;
    text-align: left;
}

.app-btn:hover {
    background: #222;
}

/* MOBILE — botones uno debajo del otro */
@media (max-width: 850px) {
    .app-buttons {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .app-btn {
        width: 180px; /* puedes poner 100% si quieres */
    }
}
