/* =======================================================
    CEM – Hoja de Estilos Global (PALETA NUEVA #416A5A)
    Objetivo:
    - Layout / estructura / responsive: sin cambios.
======================================================= */



/* =======================================================
    1) VARIABLES DE DISEÑO (PALETA NUEVA)
======================================================= */

:root {

    --cem-primary:     #8CBF6F;
    --green-lemon:     #78b033d1;
    --green-light:     #a8e784a9;
    --green-dark:      #557542;
    --lemon-green:     #40aa2a;
    --blue-contrast:   #6f8cbf;
    --dark-gray:       #262626;
    --gray-title:      #9A9A9A;
    --gray-text:       #4F4F4F;
    --gray-light:      #F4F6F4;
    --white:           #FFFFFF;
    --backgrond-light:  #e8efedc7;
    --decoration-green: #053801;
    /* Dentro del footer usa:

    Texto: #E6EFEA (blanco verdoso suave)
    
    Links hover: #8CBF6F
    
    Líneas divisorias: rgba(255,255,255,0.08)


    /* Sombras (sin cambios) */
    --shadow-soft: 0 10px 26px -4px rgba(0, 0, 0, 0.16);
    --shadow-strong: 0 22px 60px -12px rgba(0, 0, 0, 0.29);

    --radius-lg: 28px;
    --fuente-general: "Instrument Sans", sans-serif;
    --nav-offset: 90px;
}


/* =======================================================
    2) BASE GLOBAL / RESETS
======================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


section[id] {
    scroll-margin-top: var(--nav-offset);
}


body {
    font-family: var(--fuente-general);
    background: linear-gradient(
        90deg,
        rgba(233, 245, 244, 0.737) 0%,
        rgba(237, 248, 240, 0.651) 45%,
        rgba(161, 184, 168, 0.278) 100%
    );
    margin: auto;
}


main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    margin: 2rem auto;
    width: 90%;
}

@media (max-width: 576px) {
    main {
        gap: 3rem;
    }
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

button {
    font-family: inherit;
}


/* =======================================================
    3) Icons
======================================================= */







/* =======================================================
    3) FOOTER BASE
======================================================= */

footer {
    width: 100%;
    background-color: var(--dark-gray);
    color: #F4F6F4;
    font-size: 0.7rem;
    padding: 2.5rem;
}




/* =======================================================
4) NAVBAR (Desktop + estados por scroll + responsive)
======================================================= */

header.sticky-top {
    z-index: 1030;
}

.main-nav {
    padding-bottom: 0.2rem;
    border-bottom: 1px solid transparent;
    background-color: transparent;
    backdrop-filter: none;
    transition: background-color 0.35s ease, backdrop-filter 0.35s ease;
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
    box-shadow: 0 12px 15px rgba(0, 0, 0, 0.2);

    margin: 0.5rem auto;
    width: min(1400px, calc(100% - 2rem));
    padding: 0 1rem;
    border-radius: 16px;
}

.main-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.logo-nav {
    height: 55px;
    width: auto;
}


.nav-links-container {
    background-color: rgba(195, 207, 203, 0.448);
    border-radius: 13px;
    padding: 0.4rem 2rem;

    display: flex;
    align-items: center;
}

.navbar-nav .nav-link {
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    color: rgba(79, 83, 82, 0.92);
    padding: 0.35rem 0.1rem;
    position: relative;
}

.navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.32rem;
    width: 0;
    height: 2px;
    background-color: var(--green-lemon) ;
    transition: width 0.25s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--green-dark);
    font-weight: 700;
}

/* Estado inicial */
.nav-transparent {
    background-color: rgba(235, 236, 235, 0.92);
    backdrop-filter: blur(0px);
    border-bottom-color: transparent;
}

/* Estado con scroll */
.nav-solid {
    background-color: rgba(235, 236, 235, 0.62);
    backdrop-filter: blur(10px);
    border-bottom-color: rgba(0, 0, 0, 0.04);
}

.navbar-toggler {
    font-size: 1.1rem;
    cursor: pointer;
    border: none;
    box-shadow: none !important;
    padding: 0.35rem 0.5rem;
}

/* CTA “Agendar” */
.agendar-bnt {
    background-color: rgba(195, 207, 203, 0.448);
    border-radius: 13px;
    padding: 0.4rem 2rem;

    display: flex;
    align-items: center;
    color: var(--gray-text);
    margin-left: 0.5rem;
    border-radius: 13px;
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.agendar-bnt:hover {
    transform: translateY(-2px);
    color: var(--gray-text);
    background-color: var(--green-lemon);
    font-weight: 700;

}


.chatbot-nav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background-color: var(--green-lemon);
    color: var(--gray-light);
    padding: 0.6rem 1.1rem;
    border-radius: 13px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    box-shadow: 0 8px 8px rgba(0, 0, 0, 0.175);
    transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.chatbot-nav-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.175);
    background-color: var(--green-lemon);
    font-weight: 700;

}

.chatbot-nav-button i {
    font-size: 1.2rem;
    padding-right: 0.3rem;
    line-height: 1.1;
    color: #F4F6F4;
}


@media (max-width: 992px) {
    .main-nav {
        width: calc(100% - 4rem);
        margin: 0.5rem auto;
        border-radius: 14px;
    }

    .navbar-collapse {
        padding-bottom: 1rem;
    }

    .nav-links-container {
        width: 100%;
        padding: 0.75rem 0.9rem;
        border-radius: 16px;
        background-color: rgba(195, 207, 203, 0.45);
    }

    .navbar-nav {
        width: 100%;
        gap: 0.2rem !important;
    }

    .navbar-nav .nav-link {
        width: 100%;
        padding: 0.7rem 0.5rem;
    }

    .agendar-bnt a.agendar-link {
        padding: 0.3rem;
    }

    .location-nav {
        display: none;
    }

}

@media (max-width: 576px) {
    .main-nav {
        width: calc(100% - 0.75rem);
        margin: 0.4rem auto;
        padding: 0.55rem 0.65rem;
        border-radius: 14px;
    }

    .logo-nav {
        height: 36px;
    }

    .nav-links-container {
        padding: 0.5rem 0.55rem;
        border-radius: 14px;
    }

    .chatbot-nav-button {
        font-size: 0.65rem;
        padding: 0.45rem 1rem;
    }
}

@media screen and (max-width: 576px) {

    nav {
        padding: 0.2rem 0.2rem;
        margin: 0 0.5rem;
    }

    .navbar-toggler {
        padding: 0.25rem 0.5rem;
    }

}





/* =======================================================
5) ESTILO COMÚN PARA SECCIONES “EN TARJETA”
======================================================= */


.nosotros-section,
.especialistas-section,
.lab-section,
.maps-section {
    background-color: var(--gray-light);
    box-shadow: var(--shadow-soft);
    width: 100%;
    border-radius: 3rem;
}



/* =======================================================
    6) INICIO / LANDING (Hero + Métricas)
======================================================= */

.landing-wrapper {
    width: 100%;
    background: linear-gradient(
        180deg,
        rgba(179, 190, 187, 0.92) 0%,
        rgba(195, 207, 203, 0.75) 45%,
        rgba(235, 236, 235, 0.70) 100%
    );

    border-radius: 180px 30px 180px 30px;
    border: 3.5px solid var(--gray-light);
    box-shadow: var(--shadow-strong);
    overflow: hidden;

}

.landing-hero-grid {
    display: flex;
    align-items: center;
    gap: 1.8rem;
    padding-bottom: 10px;
}

.landing-container-card {
    justify-content: space-evenly;
    background: linear-gradient(
        180deg,
        rgba(179, 190, 187, 0.92) 0%,
        rgba(195, 207, 203, 0.75) 45%,
        rgba(219, 229, 219, 0.436) 100%
    );

    box-shadow: var(--shadow-strong);
    line-height: 2.5;
    padding: clamp(0.8rem, 2vw, 2.5rem);
    border: 1px solid rgba(235, 236, 235, 0.587);
    border-radius: 32px 20px 32px 20px;
    margin-bottom: 1.5rem;
    margin-top: 0.5rem;
}

.landing-hero {
    flex: 1 1 420px;
    display: flex;
    align-items: flex-end;
}

.landing-hero-bg {
    width: min(620px, 100%);
    height: auto;
    max-height: 58vh;
    object-fit: contain;
}

.landing-hero-content {
    flex: 1 1 520px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.inicio-bar {
    width: 60px;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(80deg, var(--green-lemon), var(--green-dark));
    margin-top: 0.2rem;
    margin-bottom: 1rem;
}

.inicio-bar-right {
    display: inline-flex;
    justify-content: flex-end;
}

.landing-eyebrow {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--dark-gray);
}

.landing-title {
    display: inline;
    line-height: 0.6;
    text-transform: uppercase;
    font-size: clamp(2.4rem, 2vw, 4.2rem);
}

.lt-white {
    color: var(--gray-text);
    font-weight: 400;
}

.lt-gray-bold {
    color: var(--dark-gray);
    font-weight: 600;
}


.lt-gray-big {
    color: var(--dark-gray);
    font-weight: 900;
    display: inline-block;
}

.landing-subtitle {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    gap: 0.5rem;
    line-height: 1.4;
    color: var(--gray-text);
    font-size: 0.8rem;
    margin-top: 1rem;
    font-weight: 500;
}

.landing-actions {
    margin-top: 1rem;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding-top: 0.2rem;
}

.landing-btn {
    justify-content: center;
    align-items: center;
    padding: 0.7rem 2.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.25s ease;
    white-space: nowrap;
    border-radius: 32px 20px 32px 20px;
}

.landing-btn-primary {
    background: var(--green-lemon);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.204);
}

.landing-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(1, 47, 11, 0.304);
    font-weight: 800;
}

.landing-btn-ghost {
    background-color: var(--dark-gray);
    color: var(--gray-light);

}

.landing-btn-ghost:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.204);
    font-weight: 800;
}


/* Landing Stats, debajo de la tarjeta de inicio */

.landing-stats {
    display: grid;
    text-align: center;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    padding: 10px clamp(10px, 3vw, 44px);
    background-color: var(--gray-light);
    border-top: 1px solid rgba(228, 235, 232, 0.133);
    margin-top: -10px;
}


.landing-stat h3 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 0.2rem;
    letter-spacing: 0.2rem;
    color: var(--green-dark);
}


.metrica-bar {
    display: flex;
    width: 80px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(80deg, var(--green-lemon), var(--green-dark));
    margin: 0.1rem auto 0.3rem;
}

.landing-stat p {
    font-size: 0.85rem;
    color: var(--gray-text);
    font-weight: 500;
}



/* =======================================================
    INICIO / LANDING – RESPONSIVE
  ======================================================= */

@media (max-width: 992px) {
    .landing-wrapper {
        border-radius: 60px 22px 22px 22px;
        padding-top: 3rem;
        margin-top: 1rem;

    }

    .landing-hero-grid {
        flex-direction: column-reverse;
        text-align: center;
        padding: 0;
    }

    .landing-hero {
        margin-top: -12px;
    }

    .landing-hero-content {
        align-items: center;
        text-align: center;
        justify-content: space-evenly;
        padding: 0 2rem;
        line-height: 1.2;
    }

    .landing-container-card {
        padding: 4rem;
        margin: 2rem auto;
    }

    .landing-eyebrow {
        font-size: 1.5rem;
    }

    .landing-eyebrow p {
        margin: 0;
    }

    .landing-title {
        font-size: 3rem;
        padding: 1.5rem;
    }

    .landing-subtitle {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .landing-actions {
        flex-direction: column;
        justify-content: center;
        gap: 1.5rem;
        margin-top: 0;
        width: 100%;
        padding-top: 1rem;

    }

    .landing-subtitle {
        margin-inline: auto;
    }

    .landing-stats {
        grid-template-columns: 1fr;
        gap: 14px;
        text-align: center;
        margin-top: 0px;
        padding-bottom: 1.2rem;
    }
}

@media (max-width: 576px) {

    .landing-wrapper {
        border-radius: 32px;
        padding-top: 1.3rem;
    }

    .landing-hero-grid {
        padding: 0 1rem;
    }

    .landing-hero-content {
        padding: 0;
        margin-top: 1rem;
        text-align: center;
        padding: 0 2rem;
    }

    .landing-container-card {
        padding: 2.8rem;
        margin: 1.2rem auto;
        
    }

    .landing-eyebrow {
        font-size: 1rem;

    }

    .landing-eyebrow p {
        margin: 0;

    }

    .landing-title {
        font-size: 1.9rem;
        padding: 0;

    }

    .landing-subtitle {
        font-size: 0.85rem;
    }

    .landing-hero {
        flex: none;
    }

    .landing-hero-bg {
        max-height: 40vh;
    }

    .landing-stat h3 {
        font-size: 2.6rem;
    }

    .landing-stat p {
        font-size: 0.95rem;
    }
}


/* =======================================================
7) NOSOTROS
======================================================= */


.nosotros-section {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 2rem;

    margin: 0;
    border-radius: 5rem 5rem 3rem 3rem;
    background-color: var(--gray-light);
    box-shadow: var(--shadow-soft);
    border-left: 30px solid var(--decoration-green);
}

.nosotros-container {

    padding: 3rem 0 1rem 5rem;

}

.nosotros-title {
    font-size: 2.3rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--dark-gray);
    margin: 0;
}

.nosotros-layout {
    display: flex;
    flex-direction: row-reverse;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin:  1rem 0.5rem 1rem 0.5rem;
    
}

.nosotros-img-wrapper {
    width: 100%;
    min-width: 50%;
}

.nosotros-img {
    height: auto;
    max-height: 60vh;
    object-fit: contain;
    border-radius: 30rem;
}

.nosotros-cards {
    display: flex;
    flex-direction: row;
    padding: 1rem 1rem 0 1rem;

}

.nosotros-text-card {
    background: rgba(235, 236, 235, 0.82);
    border-radius: 22px;
    border: 1px solid rgba(122, 137, 131, 0.159);
    padding: 1rem;
    margin-bottom: 0.5rem;
}


.nosotros-text {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--gray-text);
}


.nosotros-mini-card {
    background: var(--backgrond-light);
    border-radius: 28px;
    padding: 1rem 1.2rem;
    margin: 0.3rem;
    border: 1px solid rgba(122, 137, 131, 0.22);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.094);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nosotros-mini-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.18);
}

.mini-card-icon i {
    font-size: 2rem;
    color: var(--decoration-green);
}

.mini-card-body h4 {
    margin: 0 0 0.15rem;
    font-size: 1rem;
    font-weight: 800;
    color: var(--decoration-green);
}

.mini-card-body p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--gray-title);
    line-height: 1.4;
}

.nosotros-cta {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(122, 137, 131, 0.22);
}

.btn-contacto {
    width: min(560px, 100%);
    padding: 0.75rem 2rem;
    border-radius: 999px;
    background-color: rgba(29, 31, 30, 0.92);
    color: var(--gray-light);
    border: none;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.2);
    transition: 0.2s ease;
    width: 100%;
}

.btn-contacto:hover {
    color: var(--green-light);
    transform: translateY(-2px);
    box-shadow: 0 12px 12px rgba(0, 0, 0, 0.14);
}

@media (max-width: 992px) {
    .nosotros-section {
        padding-bottom: 4rem;
    }

    .nosotros-header {
        padding-top: 1rem;
    }

    .nosotros-layout {
        display: flex;
        flex-direction: column;
        padding: 0;
    }

    .nosotros-img {
        width: 350px;
    }



}

@media (max-width: 576px) {

    .nosotros-section {
        padding: 0 1rem 2rem 1rem;
        border-radius: 1.5rem;
    }

    .nosotros-header {
        margin: 2rem;
    }

    .nosotros-container {
        padding: 0;
    }

    .nosotros-title {
        font-size: 1.5rem;
    }

    .nosotros-img {
        max-height: 300px;
    }

    .nosotros-cards {
        padding: 0.5rem;
        margin: 0.5rem auto;
        display: inherit;
    }

    div.nosotros-mini-card {
        margin: 1rem auto;
    }

    .nosotros-cta {
        margin: 2.5rem 1rem 1rem;
    }

}




/* =======================================================
8) ESPECIALISTAS
======================================================= */


.especialistas-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    border-radius: 32px;
    padding: 3rem 3rem 3rem 3rem;
    border-right: 30px solid var(--decoration-green);
}

.especialistas-section .container {
    flex-direction: column;

}



.especialistas-title-top {
    text-transform: uppercase;
    letter-spacing: .10em;
    font-size: .92rem;
    color: rgba(122, 137, 131, 0.95);
    margin: 0 0 .2rem 0;
}

.especialistas-title-bottom {
    font-size: clamp(1.75rem, 2.4vw, 2.35rem);
    font-weight: 900;
    letter-spacing: .06em;
    color: rgba(29, 31, 30, 0.95);
    margin: 0;
}

.especialistas-bar {
    width: 100px;
    height: 5px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--green-lemon), var(--green-dark));
    margin-top: 0.5rem;
}

.especialistas-subtitle {
    margin: 0;
    padding: 2rem 30rem 0 0;
    font-size: 0.9rem;
    color: rgba(122, 137, 131, 0.92);
    font-weight: 400;

}


/* Especialistas Imagenes */

.especialistas-img-container {
    display: block;
    inline-size: auto;
    margin-left: 3rem;
}


.doctores-especialistas-img {
    width: 350px;
}


/* Se movio la barra del buscador de especialidades*/

.logo-especialistas {
    height: 90px;
    width: auto;
    opacity: .95;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .10));
    margin-bottom: 1rem;
}

/* Panel principal */


.especialidades-panel {
    display: flex;
    width: 100%;
    padding: 1.3rem  2rem 3rem;
    border-radius: 26px;
    background: linear-gradient(180deg,
            rgba(235, 236, 235, 0.92) 0%,
            rgba(195, 207, 203, 0.60) 100%);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(122, 137, 131, .22);
}

.form-container form {
    display: grid;
    grid-template-columns: 1.35fr 1fr auto;
    gap: .85rem;
    align-items: center;
    font-size: 0.85rem;
}

.search-input,
.especialidad-search {
    width: 100%;
    height: 46px;
    padding: 0 .95rem;
    border-radius: 999px;
    border: 1.5px solid rgba(122, 137, 131, 0.35);
    background: rgba(235, 236, 235, .92);
    box-shadow: 0 10px 20px -18px rgba(0, 0, 0, .35);
    color: rgba(29, 31, 30, 0.88);
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}

.search-input::placeholder {
    color: rgba(122, 137, 131, .92);
}

.search-input:focus,
.especialidad-search:focus {
    border-color: rgba(65, 106, 90, .55);
    background: var(--cem-snow);
    box-shadow:
        0 0 0 4px rgba(65, 106, 90, .16),
        0 18px 38px -26px rgba(0, 0, 0, .55);
    transform: translateY(-1px);
}

.especialidad-search {
    padding-right: 2.2rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, rgba(65, 106, 90, .55) 50%),
        linear-gradient(135deg, rgba(65, 106, 90, .55) 50%, transparent 50%);
    background-position:
        calc(100% - 18px) 19px,
        calc(100% - 12px) 19px;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.form-container button {
    height: 46px;
    border: none;
    border-radius: 999px;
    padding: 0 1.25rem;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: .02em;
    color: var(--cem-snow);
    background-color: var(--green-lemon);
    box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .55);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
    white-space: nowrap;
}

.form-container button:hover {
    transform: translateY(-1px);
    filter: brightness(1.02);
    box-shadow: 0 22px 52px -26px rgba(0, 0, 0, .65);
}

.form-container button:active {
    transform: translateY(0);
    box-shadow: 0 16px 38px -26px rgba(0, 0, 0, .55);
}

/* RESPONSIVE ESPECIALISTAS */

@media (max-width: 991.98px) {
    .especialidades-panel {
        padding: 3rem;
        margin-bottom: 1rem;

    }

    .logo-especialistas {
        height: 100px;
    }

    .form-container form {
        grid-template-columns: 1fr 1fr;
    }

    .form-container button {
        grid-column: 1 / -1;
        width: 100%;
    }

    .especialistas-subtitle {
        padding:  1rem 0;
    }
}

@media (max-width: 576px) {

    .especialistas-section {
        padding: 2.8rem 1rem;
    }


    .especialistas-top {
        padding: 0;
    }

    .top-esp-container {
        display: flex;
        flex-direction: column;
        margin: 0.5rem;
    }

    .especialistas-top h3 {
        font-size: 0.8rem;
    }

    .especialistas-top h2 {
        font-size: 1.55rem;
    }

    .especialistas-subtitle {
        font-size: 0.8rem;
        padding: 0;
    }

    .especialistas-img-container {
        margin: 0.8rem 1rem 0.5rem 0;
    }


    .form-container form {
        grid-template-columns: 1fr;
        margin: 0.5rem;
    }

    .search-input,
    .especialidad-search,
    .form-container button {
        height: 48px;
    }
}





/* =======================================================
9) LABORATORIO
  ======================================================= */

.lab-section {
    background-color: #bfbfbf3c;
    padding: 2rem 0;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.lab-header {
    padding-top: 4rem;
    flex-wrap: wrap;

}


.lab-header h2 {
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(29, 31, 30, 0.95);
}

.lab-top p {
    color: rgba(30, 44, 30, 0.784);
    font-size: 1rem;
    font-weight: 500;
    margin-top: 1rem;
}

.lab-top h3 {
    color: #515651de;
}

.lab-top {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    background-color: #bdc3b9;
    border-radius: 30px 30px 0 0;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
    flex-wrap: wrap;

}

#laboratoriosGrid {
    background-color: #5d784e16;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
    padding: 1rem 1rem 2em;
    margin: auto;
    border-radius: 0 0 30px 30px;
}



.lab-hero-container {
    flex-wrap: wrap;


}

.lab-hero-img {
    width: 600px;
}

.lab-btn {
    border: none;
    background-color: var(--green-dark);
    color: rgb(0, 0, 0);
    padding: 0.85rem 1rem;
    line-height: 1.6;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: 0.2s ease;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
    width: 100%;
    border: 1px solid #d0d1d6;
}

.lab-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.2);
    background-color: var(--green-dark);
    color: var(--gray-light);
}

.lab-btn.active {
    color: #141414c5;
}

.lab-info-container {
    margin-top: 1.3rem;
    background: rgba(195, 207, 203, 0.55);
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
}

.lab-info-title {
    font-weight: 700;
    margin-bottom: 0.9rem;
    color: rgba(29, 31, 30, 0.92);
}

.lab-info-item {
    background: var(--backgrond-light);
    border-radius: 12px;
    padding: 0.6rem 0.9rem;
    margin-bottom: 0.5rem;
    border-left: 4px solid var(--green-dark);
    font-size: 0.9rem;
    color: rgba(59, 66, 63, 0.861);
}

@media (max-width: 999px) {
    .lab-top {
        padding-top: 0;
    }

    .lab-top h3 {
        font-size: 0.8rem;
    }

    .lab-top h2 {
        font-size: 1.5rem;
    }

    .lab-btn { 
        font-size: 0.65rem;
    }
}


@media (max-width: 576px) {


    .lab-btn { 
        font-size: 0.68rem;
    }
}


/* =======================================================
10) CTA / QUOTES
  ======================================================= */

.cta-quotes {
    background-color: var(--gray-light);
    box-shadow: var(--shadow-soft);
    width: 100%;
    border-radius: 3rem;
    padding: 1rem 5rem 2rem 5rem;
    border-right: 30px solid var(--decoration-green);

}

.cta-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 5rem;
    align-items: stretch;
    margin: auto 2rem;
}

.cta-copy,
.quotes-card {
    border: 1px solid rgba(122, 137, 131, 0.22);
    border-radius: 28px;
    background: rgba(235, 236, 235, 0.88);
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.06);
}

.cta-copy {
    padding: 34px;
}

.cta-copy h2 {
    margin: 0 0 12px;
    font-size: clamp(26px, 3vw, 40px);
    letter-spacing: 0.5px;
    color: rgba(29, 31, 30, 0.95);
}

.cta-copy p {
    margin: 0 0 14px;
    font-size: 16px;
    line-height: 1.7;
    color: rgba(122, 137, 131, 0.95);
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 54px;
    padding: 0 22px;
    border-radius: 999px;
    border: 2px solid var(--backgrond-light);
    color: rgba(29, 31, 30, 0.92);
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    background: var(--cem-snow);
}

.cta-btn:hover {
    transform: translateY(-2px);
    background: rgba(195, 207, 203, 0.55);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.1);
}

.cta-micro {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
    color: rgba(122, 137, 131, 0.95);
    font-size: 14px;
}

.cta-micro .dot {
    opacity: 0.6;
}

.quotes-card {
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.quotes-head h3 {
    margin: 0 0 6px;
    font-size: 20px;
    letter-spacing: 0.2px;
    color: rgba(29, 31, 30, 0.95);
}

.quotes-sub {
    margin: 0 0 16px;
    color: rgba(122, 137, 131, 0.95);
    font-size: 14px;
}

.quote-box {
    margin: 0;
    padding: 18px 18px 16px;
    border-radius: 22px;
    background: rgba(195, 207, 203, 0.45);
    border: 1px solid rgba(122, 137, 131, 0.22);
}

.quote-box blockquote {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: rgba(29, 31, 30, 0.90);
}

.quote-box figcaption {
    margin-top: 10px;
    font-size: 13px;
    color: rgba(122, 137, 131, 0.95);
}

.quotes-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.q-btn {
    flex: 1;
    height: 48px;
    border-radius: 999px;
    border: 1px solid rgba(122, 137, 131, 0.30);
    background: var(--backgrond-light);
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    color: rgba(29, 31, 30, 0.88);
}

.q-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
    background: rgba(235, 236, 235, 0.75);
}

.q-btn.primary {
    border: 2px solid var(--green-lemon);
    background: rgba(195, 207, 203, 0.55);
}

.quotes-dots {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.quotes-dots button {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 0;
    background: rgba(122, 137, 131, 0.35);
    cursor: pointer;
    padding: 0;
}

.quotes-dots button.active {
    background: var(--green-lemon);
}

@media (max-width: 920px) {
    

    .cta-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin: 0;
        padding: 0;
    }

    .cta-copy,
    .quotes-card {
        border-radius: 24px;
    }

    .cta-copy h4 {
        font-size: 1rem;
    } 
}

@media (max-width: 520px) {

    .cta-quotes {
        padding: 0.5rem 0;
    }

    .cta-copy h2 {
        font-size: 26px;
    }

    .quotes-actions {
        flex-direction: column;
    }
}


/* =======================================================
11) MAPA / CONTACTO
======================================================= */

.maps-section {
    padding: 5rem;
    background-color: var(--backgrond-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    border-left: 30px solid var(--decoration-green);
}

.maps-subtitle {
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    color: rgba(65, 106, 90, 0.92);
    margin-bottom: 0.4rem;
}

.maps-address {
    font-weight: 600;
    margin-bottom: 1rem;
    color: rgba(29, 31, 30, 0.90);
}

.maps-contact-list li {
    margin-bottom: 0.3rem;
    color: rgba(122, 137, 131, 0.95);
}

.maps-frame-wrapper {
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.maps-frame-wrapper iframe {
    width: 100%;
    min-height: 320px;
    border: 0;
}

.social-icons {
    display: flex;
}




/* =======================================================
    12) ANIMACIONES (scroll reveal)
  ======================================================= */

.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.in-view {
    opacity: 1;
    transform: translateY(0);
}


/* =======================================================
    13) FOOTER
======================================================= */

.footer-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 0.5rem 6rem;
    gap: 5rem;
}

.chatbot-nav-button .chatbot-footer {
    margin-left: 0;
}


.nav-footer-card {
    background-color: #9a9a9a12;
    padding: 2.5rem 3rem;
    border-radius: 12px;
}

.nav-footer-card:hover {
    background-color: #9a9a9a20 ;
}

.nav-footer {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    text-transform: uppercase;

}

.footer-nav-links {
    text-decoration: underline;
}

.footer-nav-links:hover {
    color: var(--green-lemon);
}

@media screen and (max-width: 556px){
    footer {
        padding: 2rem 0.5rem;
    }
    .footer-container {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        margin: 0;
        padding: 1rem;
        gap: 1.5rem;
        overflow: hidden;
    }

    .nav-footer-card {
        padding: 0.5rem 1.8rem 0;
    }


.chatbot-nav-button {
    margin-left: 0;
}

.footer-left-content h6 {
    font-size: 0.85rem;
}

.nav-footer-card {
    line-height: 2.7;
}

nav .chatbot-nav-button {
    display: none;
}


}




/* =======================================================
     14) RESPONSIVE GENERAL (espaciados comunes)
  ======================================================= */

@media screen and (max-width: 992px) {
    .especialistas-section .container {
        padding-inline: 1rem;
    }

    .especialidades-panel {
        padding: 1.8rem 1.2rem 1.5rem;
    }

    .lab-section {
        margin: 24px 1.5rem 0;
        padding: 2.5rem 1.5rem;
    }

    .maps-section {
        margin: 24px 1.5rem 60px;
        padding: 2.5rem 1.5rem;
    }

    .nosotros-section,
    .especialistas-section,
    .lab-section,
    .cta-quotes,
    .maps-section {
        border-radius: 1.5rem;
    }
    nav .chatbot-nav-button {
        display: none;
    }

}

@media screen and (max-width: 992px){


    .nosotros-section,
    .lab-section,
    .maps-section {

        border-left: 15px solid var(--decoration-green);

    }


    .especialistas-section,
    .cta-quotes {

        border-right: 15px solid var(--decoration-green);
    }

}

@media screen and (max-width: 556px){


    .nosotros-section,
    .lab-section,
    .maps-section {

        border-left: none;

    }


    .especialistas-section,
    .cta-quotes {

        border-right: none;
    }

}





