/* ==========================================================
   LOS JUNCOS — SITIO INSTITUCIONAL
   Diseño general, componentes y adaptación responsive
========================================================== */


/* ==========================================================
   01. VARIABLES
========================================================== */

:root {
    --blue-950: #022f49;
    --blue-900: #043d5d;
    --blue-800: #07557e;
    --blue-700: #086895;
    --blue-600: #147dab;
    --blue-100: #eaf4f8;
    --blue-050: #f3f8fa;

    --ink-950: #15222b;
    --ink-800: #2e3a43;
    --ink-600: #66737c;
    --ink-500: #7a858d;
    --ink-300: #b6bec3;

    --white: #ffffff;
    --warm-white: #fbfaf7;
    --cream: #f5f2ec;
    --line: rgba(21, 34, 43, 0.12);
    --line-light: rgba(255, 255, 255, 0.18);

    --container: 1240px;
    --header-height: 100px;

    --radius-sm: 14px;
    --radius-md: 24px;
    --radius-lg: 36px;
    --radius-xl: 54px;
    --radius-pill: 999px;

    --shadow-xs: 0 8px 30px rgba(4, 61, 93, 0.05);
    --shadow-sm: 0 18px 50px rgba(4, 61, 93, 0.08);
    --shadow-md: 0 30px 90px rgba(4, 61, 93, 0.13);

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --transition: 280ms var(--ease);
}


/* ==========================================================
   02. RESET
========================================================== */

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

* {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
    min-width: 320px;
    overflow-x: hidden;
    background: var(--warm-white);
    color: var(--ink-950);
    font-family: "Manrope", sans-serif;
    font-size: 16px;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.menu-open {
    overflow: hidden;
}

img,
svg {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    color: inherit;
}

ul,
ol {
    list-style: none;
}

address {
    font-style: normal;
}

figure {
    margin: 0;
}

::selection {
    background: var(--blue-800);
    color: var(--white);
}


/* ==========================================================
   03. ACCESIBILIDAD
========================================================== */

.skip-link {
    position: fixed;
    z-index: 9999;
    top: 16px;
    left: 16px;
    padding: 12px 18px;
    border-radius: var(--radius-pill);
    background: var(--blue-900);
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
    transform: translateY(-160%);
    transition: transform var(--transition);
}

.skip-link:focus {
    transform: translateY(0);
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid rgba(20, 125, 171, 0.35);
    outline-offset: 4px;
}


/* ==========================================================
   04. ELEMENTOS GENERALES
========================================================== */

.container {
    width: min(calc(100% - 48px), var(--container));
    margin-inline: auto;
}

.section {
    position: relative;
    padding: 140px 0;
}

.section-index,
.section-label,
.eyebrow {
    display: block;
    color: var(--blue-800);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.section-index {
    margin-bottom: 16px;
    opacity: 0.6;
}

.section-label {
    margin-bottom: 28px;
}

.section-index-light,
.section-label-light {
    color: rgba(255, 255, 255, 0.78);
}

.section h2 {
    max-width: 780px;
    color: var(--ink-950);
    font-size: clamp(44px, 5vw, 72px);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.055em;
}

.btn {
    min-height: 54px;
    padding: 0 27px;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    font-size: 14px;
    font-weight: 750;
    line-height: 1;

    transition:
        color var(--transition),
        background var(--transition),
        border-color var(--transition),
        box-shadow var(--transition),
        transform var(--transition);
}

.btn svg {
    width: 19px;
    height: 19px;
    transition: transform var(--transition);
}

.btn:hover svg {
    transform: translateX(4px);
}

.btn-primary {
    background: var(--blue-800);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--blue-950);
    box-shadow: 0 16px 34px rgba(7, 85, 126, 0.22);
    transform: translateY(-2px);
}

.btn-secondary {
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.68);
    color: var(--ink-950);
}

.btn-secondary:hover {
    border-color: var(--blue-700);
    background: var(--white);
    color: var(--blue-800);
    transform: translateY(-2px);
}

.text-link {
    width: fit-content;
    margin-top: 36px;

    display: inline-flex;
    align-items: center;
    gap: 12px;

    color: var(--blue-800);
    font-size: 15px;
    font-weight: 750;
}

.text-link span {
    transition: transform var(--transition);
}

.text-link:hover span {
    transform: translateX(5px);
}


/* ==========================================================
   05. HEADER
========================================================== */

.header {
    position: sticky;
    z-index: 1000;
    top: 0;
    width: 100%;

    border-bottom: 1px solid rgba(21, 34, 43, 0.08);
    background: rgba(251, 250, 247, 0.9);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);

    transition:
        background var(--transition),
        box-shadow var(--transition);
}

.header.is-scrolled {
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 34px rgba(4, 61, 93, 0.06);
}

.header-container {
    min-height: var(--header-height);

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.logo {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
}

.logo img {
    width: 220px;
    height: auto;
    max-height: 90px;
    object-fit: contain;
}
.main-nav {
    margin-left: auto;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 31px;
}

.main-nav a {
    position: relative;
    padding: 8px 0;
    color: var(--ink-800);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    transition: color var(--transition);
}

.main-nav a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 2px;
    left: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--blue-700);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--transition);
}

.main-nav a:hover {
    color: var(--blue-800);
}

.main-nav a:hover::after {
    transform: scaleX(1);
}

.header-appointment {
    flex-shrink: 0;
}

.btn-turno {
    min-height: 50px;
    padding: 0 25px;
    border-radius: var(--radius-pill);
    background: var(--blue-800);
    color: var(--white);

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

    font-size: 13px;
    font-weight: 800;

    transition:
        background var(--transition),
        box-shadow var(--transition),
        transform var(--transition);
}

.btn-turno:hover {
    background: var(--blue-950);
    box-shadow: 0 13px 30px rgba(7, 85, 126, 0.2);
    transform: translateY(-2px);
}

.menu-toggle {
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;

    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
}

.menu-toggle span {
    width: 19px;
    height: 1.5px;
    background: var(--ink-950);
    transition:
        transform var(--transition),
        opacity var(--transition);
}

.menu-toggle.is-active span:first-child {
    transform: translateY(3.75px) rotate(45deg);
}

.menu-toggle.is-active span:last-child {
    transform: translateY(-3.75px) rotate(-45deg);
}


/* ==========================================================
   06. HERO
========================================================== */

.hero {
    position: relative;
    isolation: isolate;

    width: min(calc(100% - 48px), var(--container));
    min-height: calc(100vh - var(--header-height));
    margin-inline: auto;
    padding: 35px 0 96px;

    display: grid;
    grid-template-columns: minmax(0, 0.93fr) minmax(500px, 1.07fr);
    align-items: center;
    gap: 70px;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 620px;
}

.eyebrow {
    margin-bottom: 32px;
}

.hero h1 {
    max-width: 700px;
    color: var(--ink-950);
    font-size: clamp(60px, 5.6vw, 90px);
    font-weight: 500;
    line-height: 0.98;
    letter-spacing: -0.065em;
}

.hero-description {
    max-width: 575px;
    margin-top: 38px;
}

.hero-description p {
    color: var(--ink-600);
    font-size: 18px;
    line-height: 1.75;
}

.hero-description .hero-highlight {
    margin-bottom: 10px;
    color: var(--ink-950);
    font-size: 18px;
    font-weight: 800;
}

.hero-actions {
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-locations {
    margin-top: 38px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--ink-500);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.hero-watermark {
    position: absolute;
    z-index: -1;
    top: 49%;
    left: -170px;
    width: 570px;
    opacity: 0.025;
    transform: translateY(-50%);
    pointer-events: none;
}

.hero-image {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    border-radius: 38px 38px 38px 90px;
    background: var(--blue-100);
    box-shadow: var(--shadow-sm);
}

.hero-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            rgba(2, 47, 73, 0) 55%,
            rgba(2, 47, 73, 0.24) 100%
        );
    pointer-events: none;
}

.hero-image img {
    width: 100%;
    height: 100%;
    min-height: 640px;
    object-fit: cover;
    object-position: 66% center;
    transition: transform 1.2s var(--ease);
    transform: translateY(-15px);
}

.hero-image:hover img {
    transform: scale(1.025);
}

.hero-image-caption {
    position: absolute;
    z-index: 2;
    right: 28px;
    bottom: 27px;
    left: 28px;

    padding: 20px 22px;
    border: 1px solid rgba(255, 255, 255, 0.23);
    border-radius: 18px;
    background: rgba(2, 47, 73, 0.46);
    color: var(--white);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.hero-image-caption span,
.hero-image-caption strong {
    display: block;
}

.hero-image-caption span {
    margin-bottom: 3px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.75;
}

.hero-image-caption strong {
    font-size: 15px;
    font-weight: 650;
}


/* ==========================================================
   07. FRANJA DE VALORES
========================================================== */

.values-strip {
    padding: 0 0 110px;
}

.values-grid {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);

    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.value-item {
    min-height: 190px;
    padding: 42px 38px;

    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 24px;
}

.value-item + .value-item {
    border-left: 1px solid var(--line);
}

.value-number {
    color: var(--blue-700);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.value-item strong {
    display: block;
    margin-bottom: 10px;
    color: var(--ink-950);
    font-size: 18px;
    font-weight: 750;
}

.value-item p {
    color: var(--ink-600);
    font-size: 14px;
    line-height: 1.65;
}


/* ==========================================================
   08. ESPECIALIDADES
========================================================== */

.specialties {
    background: var(--white);
}

.section-layout {
    display: grid;
    grid-template-columns: minmax(330px, 0.82fr) minmax(500px, 1.18fr);
    align-items: start;
    gap: 120px;
}

.section-intro {
    position: sticky;
    top: calc(var(--header-height) + 54px);
}

.section-intro h2 {
    max-width: 550px;
}

.section-intro > p {
    max-width: 490px;
    margin-top: 30px;
    color: var(--ink-600);
    font-size: 17px;
    line-height: 1.8;
}

.accordion {
    border-top: 1px solid var(--line);
}

.accordion-item {
    border-bottom: 1px solid var(--line);
}

.accordion-trigger {
    width: 100%;
    padding: 30px 0;
    border: 0;
    background: transparent;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    text-align: left;
}

.accordion-title {
    color: var(--ink-950);
    font-size: clamp(22px, 2.5vw, 34px);
    font-weight: 550;
    line-height: 1.2;
    letter-spacing: -0.035em;
}

.accordion-symbol {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border: 1px solid var(--line);
    border-radius: 50%;

    display: grid;
    place-items: center;

    color: var(--blue-800);
    font-size: 23px;
    font-weight: 300;

    transition:
        color var(--transition),
        background var(--transition),
        border-color var(--transition),
        transform var(--transition);
}

.accordion-item.active .accordion-symbol {
    border-color: var(--blue-800);
    background: var(--blue-800);
    color: var(--white);
    transform: rotate(45deg);
}

.accordion-panel {
    overflow: hidden;
}

.accordion-panel[hidden] {
    display: none;
}

.accordion-panel-inner {
    padding: 0 0 38px;

    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 46px;
}

.accordion-panel-inner > p {
    color: var(--ink-600);
    font-size: 14px;
    line-height: 1.75;
}

.specialty-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 24px;
}

.specialty-list li {
    position: relative;
    padding-left: 18px;
    color: var(--ink-800);
    font-size: 14px;
    font-weight: 650;
}

.specialty-list li::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 0;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--blue-700);
}

/* ==================================================
   09. DIAGNÓSTICO
================================================== */

.diagnostics {
    position: relative;
    overflow: hidden;
    background: var(--blue-950);
    color: var(--white);
}

.diagnostics::before {
    content: "";
    position: absolute;
    top: -360px;
    right: -280px;
    width: 720px;
    height: 720px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    pointer-events: none;
}

.diagnostics::after {
    content: "";
    position: absolute;
    bottom: -420px;
    left: -340px;
    width: 760px;
    height: 760px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 50%;
    pointer-events: none;
}

.diagnostics .container {
    position: relative;
    z-index: 1;
}

.diagnostics-header {
    max-width: 760px;
    margin-bottom: 52px;
}

.diagnostics-heading {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.diagnostics-heading h2 {
    max-width: 760px;
    margin: 18px 0 0;
    color: var(--white);
    font-size: clamp(3rem, 5vw, 4.8rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
}

.diagnostics-showcase{
    display:grid;
    grid-template-columns: 1fr .78fr;
    gap:90px;
    align-items:start;
}
.diagnostics-image {
    min-width: 0;
    margin: 0;
}

.diagnostics-image-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 11;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 22px;
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.18);
}

.diagnostics-image-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 58%,
        rgba(2, 18, 42, 0.22) 100%
    );
    pointer-events: none;
}

.diagnostics-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 1;
    transform: scale(1);
    transition:
        opacity 0.4s ease,
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.diagnostics-image img.is-changing {
    opacity: 0;
    transform: scale(1.035);
}

.diagnostics-image figcaption {
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    transition: opacity 0.3s ease;
}

.diagnostics-content {
    display: flex;
    align-items: center;
}

.services-list {
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.service-item {
    position: relative;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 18px;
    padding: 22px 12px 22px 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.13);
    cursor: pointer;
    outline: none;
    transition:
        background-color 0.3s ease,
        padding-left 0.3s ease,
        border-color 0.3s ease;
}

.service-item:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.service-item::before {
    content: "";
    position: absolute;
    top: 17px;
    bottom: 17px;
    left: 0;
    width: 2px;
    background: var(--white);
    transform: scaleY(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.service-item:hover,
.service-item:focus-visible,
.service-item.active {
    padding-left: 30px;
    background: rgba(255, 255, 255, 0.055);
    border-color: rgba(255, 255, 255, 0.2);
}

.service-item:hover::before,
.service-item:focus-visible::before,
.service-item.active::before {
    transform: scaleY(1);
}

.service-number {
    padding-top: 3px;
    color: rgba(255, 255, 255, 0.38);
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.08em;
    transition: color 0.3s ease;
}

.service-item:hover .service-number,
.service-item:focus-visible .service-number,
.service-item.active .service-number {
    color: var(--white);
}

.service-copy {
    min-width: 0;
}

.service-copy strong {
    display: block;
    color: rgba(255, 255, 255, 0.76);
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.service-copy p {
    max-width: 440px;
    margin: 7px 0 0;
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.9rem;
    line-height: 1.55;
    transition: color 0.3s ease;
}

.service-item:hover .service-copy strong,
.service-item:focus-visible .service-copy strong,
.service-item.active .service-copy strong {
    color: var(--white);
}

.service-item:hover .service-copy p,
.service-item:focus-visible .service-copy p,
.service-item.active .service-copy p {
    color: rgba(255, 255, 255, 0.76);
}


/* ==================================================
   DIAGNÓSTICO — RESPONSIVE
================================================== */

@media (max-width: 1100px) {

    .diagnostics-showcase {
        grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
        gap: 48px;
    }

    .diagnostics-heading h2 {
        font-size: clamp(2.8rem, 5vw, 4.2rem);
    }

    .service-item {
        padding-top: 20px;
        padding-bottom: 20px;
    }

}

@media (max-width: 860px) {

    .diagnostics-header {
        margin-bottom: 40px;
    }

    .diagnostics-showcase {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .diagnostics-content {
        display: block;
    }

    .diagnostics-image-frame {
        aspect-ratio: 16 / 10;
    }

    .service-item {
        grid-template-columns: 38px minmax(0, 1fr);
    }

}

@media (max-width: 600px) {

    .diagnostics::before,
    .diagnostics::after {
        display: none;
    }

    .diagnostics-header {
        margin-bottom: 32px;
    }

    .diagnostics-heading h2 {
        margin-top: 14px;
        font-size: clamp(2.5rem, 12vw, 3.6rem);
        line-height: 1;
    }

    .diagnostics-showcase {
        gap: 30px;
    }

    .diagnostics-image-frame {
        aspect-ratio: 4 / 3;
        border-radius: 16px;
        box-shadow: 0 24px 48px rgba(0, 0, 0, 0.16);
    }

    .diagnostics-image figcaption {
        margin-top: 13px;
        font-size: 0.72rem;
    }

    .service-item {
        grid-template-columns: 32px minmax(0, 1fr);
        gap: 12px;
        padding: 18px 8px 18px 14px;
    }

    .service-item:hover,
    .service-item:focus-visible,
    .service-item.active {
        padding-left: 22px;
    }

    .service-item::before {
        top: 14px;
        bottom: 14px;
    }

    .service-copy strong {
        font-size: 0.98rem;
    }

    .service-copy p {
        margin-top: 6px;
        font-size: 0.84rem;
    }

}
/* ==================================================
   10. LABORATORIO
================================================== */

.laboratory {
    position: relative;
    overflow: hidden;
    background: var(--cream);
    color: var(--blue-950);
}

.laboratory::before {
    content: "";
    position: absolute;
    top: -340px;
    left: -280px;
    width: 700px;
    height: 700px;
    border: 1px solid rgba(3, 50, 79, 0.06);
    border-radius: 50%;
    pointer-events: none;
}

.laboratory .container {
    position: relative;
    z-index: 1;
}

.laboratory-header {
    max-width: 780px;
    margin-bottom: 50px;
}

.laboratory-header h2 {
    max-width: 760px;
    margin: 18px 0 0;
    color: var(--blue-950);
    font-size: clamp(3rem, 5vw, 4.8rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
}

.laboratory-header > p {
    max-width: 620px;
    margin: 22px 0 0;
    color: rgba(3, 50, 79, 0.66);
    font-size: 1rem;
    line-height: 1.65;
}


/* ==================================================
   ESTRUCTURA PRINCIPAL
================================================== */
.laboratory-showcase {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 56px;
    align-items: start;
}

.laboratory-content {
    min-width: 0;
}

.laboratory-list {
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}


/* ==================================================
   ÍTEMS DEL LABORATORIO
================================================== */

.laboratory-item {
    position: relative;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 16px;
    padding: 15px 12px 15px 20px;
    border-top: 1px solid rgba(3, 50, 79, 0.13);
    cursor: pointer;
    outline: none;
    transition:
        background-color 0.3s ease,
        padding-left 0.3s ease,
        border-color 0.3s ease;
}

.laboratory-item:last-child {
    border-bottom: 1px solid rgba(3, 50, 79, 0.13);
}

.laboratory-item::before {
    content: "";
    position: absolute;
    top: 12px;
    bottom: 12px;
    left: 0;
    width: 2px;
    background: var(--blue-950);
    transform: scaleY(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.laboratory-item:hover,
.laboratory-item:focus-visible,
.laboratory-item.active {
    padding-left: 27px;
    background: rgba(3, 50, 79, 0.045);
    border-color: rgba(3, 50, 79, 0.2);
}

.laboratory-item:hover::before,
.laboratory-item:focus-visible::before,
.laboratory-item.active::before {
    transform: scaleY(1);
}

.laboratory-number {
    padding-top: 3px;
    color: rgba(3, 50, 79, 0.42);
    font-size: 0.74rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.08em;
    transition: color 0.3s ease;
}

.laboratory-item:hover .laboratory-number,
.laboratory-item:focus-visible .laboratory-number,
.laboratory-item.active .laboratory-number {
    color: var(--blue-950);
}

.laboratory-copy {
    min-width: 0;
}

.laboratory-copy strong {
    display: block;
    color: rgba(3, 50, 79, 0.78);
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.25;
    transition: color 0.3s ease;
}

.laboratory-copy p {
    max-width: 430px;
    margin: 5px 0 0;
    color: rgba(3, 50, 79, 0.54);
    font-size: 0.83rem;
    line-height: 1.45;
    transition: color 0.3s ease;
}

.laboratory-item:hover .laboratory-copy strong,
.laboratory-item:focus-visible .laboratory-copy strong,
.laboratory-item.active .laboratory-copy strong {
    color: var(--blue-950);
}

.laboratory-item:hover .laboratory-copy p,
.laboratory-item:focus-visible .laboratory-copy p,
.laboratory-item.active .laboratory-copy p {
    color: rgba(3, 50, 79, 0.76);
}

.laboratory-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
}


/* ==================================================
   IMAGEN
================================================== */

.laboratory-image {
    min-width: 0;
    margin: 0;
}

.laboratory-image-frame {
    position: relative;
    width: 100%;
    max-width: 620px;
    margin-left: auto;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: rgba(3, 50, 79, 0.06);
    border-radius: 22px;
    box-shadow: 0 28px 58px rgba(3, 50, 79, 0.13);
}

.laboratory-image-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 60%,
        rgba(3, 50, 79, 0.12) 100%
    );
    pointer-events: none;
}

.laboratory-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 1;
    transform: scale(1);
    transition:
        opacity 0.4s ease,
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.laboratory-image img.is-changing {
    opacity: 0;
    transform: scale(1.03);
}

.laboratory-image figcaption {
    margin-top: 16px;
    color: rgba(3, 50, 79, 0.58);
    font-size: 0.74rem;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}


/* ==================================================
   LABORATORIO — RESPONSIVE
================================================== */

@media (max-width: 1100px) {

    .laboratory-showcase {
        grid-template-columns: minmax(340px, 1fr) minmax(0, 0.95fr);
        gap: 48px;
    }

    .laboratory-image-frame {
        max-width: 610px;
    }

}

@media (max-width: 860px) {

    .laboratory-header {
        margin-bottom: 40px;
    }

    .laboratory-header h2 {
        font-size: clamp(2.8rem, 7vw, 4rem);
    }

    .laboratory-showcase {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .laboratory-image {
        order: -1;
    }

    .laboratory-image-frame {
        max-width: none;
        margin-left: 0;
        aspect-ratio: 16 / 10;
    }

}

@media (max-width: 600px) {

    .laboratory::before {
        display: none;
    }

    .laboratory-header {
        margin-bottom: 32px;
    }

    .laboratory-header h2 {
        margin-top: 14px;
        font-size: clamp(2.5rem, 12vw, 3.6rem);
        line-height: 1;
    }

    .laboratory-header > p {
        margin-top: 18px;
        font-size: 0.94rem;
    }

    .laboratory-showcase {
        gap: 30px;
    }

    .laboratory-image-frame {
        aspect-ratio: 4 / 3;
        border-radius: 16px;
        box-shadow: 0 22px 44px rgba(3, 50, 79, 0.12);
    }

    .laboratory-image figcaption {
        margin-top: 13px;
        font-size: 0.7rem;
    }

    .laboratory-item {
        grid-template-columns: 32px minmax(0, 1fr);
        gap: 12px;
        padding: 14px 8px 14px 14px;
    }

    .laboratory-item:hover,
    .laboratory-item:focus-visible,
    .laboratory-item.active {
        padding-left: 22px;
    }

    .laboratory-item::before {
        top: 11px;
        bottom: 11px;
    }

    .laboratory-copy strong {
        font-size: 0.95rem;
    }

    .laboratory-copy p {
        margin-top: 5px;
        font-size: 0.81rem;
    }

}

/* ==================================================
   11. ESPACIOS
================================================== */

.spaces {
    position: relative;
    overflow: hidden;
    background: var(--white);
    color: var(--blue-950);
}

.spaces::before {
    content: "";
    position: absolute;
    top: -360px;
    right: -300px;
    width: 760px;
    height: 760px;
    border: 1px solid rgba(3, 50, 79, 0.055);
    border-radius: 50%;
    pointer-events: none;
}

.spaces .container {
    position: relative;
    z-index: 1;
}

.spaces-header {
    max-width: 840px;
    margin-bottom: 58px;
}

.spaces-header h2 {
    max-width: 780px;
    margin: 18px 0 0;
    color: var(--blue-950);
    font-size: clamp(3rem, 5vw, 4.8rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
}

.spaces-header > p {
    max-width: 630px;
    margin: 22px 0 0;
    color: rgba(3, 50, 79, 0.66);
    font-size: 1rem;
    line-height: 1.68;
}


/* ==================================================
   GRILLA EDITORIAL
================================================== */

.spaces-editorial-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: 150px;
    gap: 22px;
}

.space-tile {
    min-width: 0;
    margin: 0;
}

.space-tile-main {
    grid-column: 1 / span 7;
    grid-row: 1 / span 4;
}

.space-tile-reception {
    grid-column: 8 / span 5;
    grid-row: 1 / span 2;
}

.space-tile-waiting {
    grid-column: 8 / span 5;
    grid-row: 3 / span 2;
}

.space-tile-consultory {
    grid-column: 1 / span 4;
    grid-row: 5 / span 2;
}

.space-tile-pediatrics {
    grid-column: 5 / span 4;
    grid-row: 5 / span 2;
}

.space-tile-kinesiology {
    grid-column: 9 / span 4;
    grid-row: 5 / span 2;
}


/* ==================================================
   TARJETAS E IMÁGENES
================================================== */

.space-tile-image {
    position: relative;
    width: 100%;
    height: calc(100% - 62px);
    min-height: 0;
    overflow: hidden;
    background: rgba(3, 50, 79, 0.055);
    border-radius: 22px;
    box-shadow: 0 24px 54px rgba(3, 50, 79, 0.1);
}

.space-tile-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 62%,
        rgba(2, 24, 42, 0.14) 100%
    );
    pointer-events: none;
}

.space-tile img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1);
    transition:
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.45s ease;
}

.space-tile:hover img {
    transform: scale(1.035);
    filter: saturate(1.03);
}

.space-tile figcaption {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-height: 62px;
    padding-top: 14px;
}

.space-tile figcaption strong {
    color: var(--blue-950);
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.25;
}

.space-tile figcaption span {
    color: rgba(3, 50, 79, 0.56);
    font-size: 0.8rem;
    line-height: 1.45;
}


/* ==================================================
   AJUSTES DE ENCUADRE
================================================== */

.space-tile-main img {
    object-position: center;
}

.space-tile-reception img {
    object-position: center;
}

.space-tile-waiting img {
    object-position: center;
}

.space-tile-pediatrics img {
    object-position: center;
}

.space-tile-kinesiology img {
    object-position: center;
}


/* ==================================================
   CIERRE DE LA SECCIÓN
================================================== */

.spaces-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
    margin-top: 54px;
    padding-top: 32px;
    border-top: 1px solid rgba(3, 50, 79, 0.12);
}

.spaces-footer p {
    max-width: 620px;
    margin: 0;
    color: rgba(3, 50, 79, 0.64);
    font-size: 0.98rem;
    line-height: 1.65;
}

.spaces-link {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}


/* ==================================================
   ESPACIOS — RESPONSIVE
================================================== */

@media (max-width: 1100px) {

    .spaces-editorial-grid {
        grid-auto-rows: 130px;
        gap: 18px;
    }

    .space-tile-image {
        border-radius: 18px;
    }

}

@media (max-width: 860px) {

    .spaces-header {
        margin-bottom: 42px;
    }

    .spaces-header h2 {
        font-size: clamp(2.8rem, 7vw, 4rem);
    }

    .spaces-editorial-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: auto;
        gap: 26px 18px;
    }

    .space-tile-main,
    .space-tile-reception,
    .space-tile-waiting,
    .space-tile-consultory,
    .space-tile-pediatrics,
    .space-tile-kinesiology {
        grid-column: auto;
        grid-row: auto;
    }

    .space-tile-main {
        grid-column: 1 / -1;
    }

    .space-tile-image {
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .space-tile-main .space-tile-image {
        aspect-ratio: 16 / 10;
    }

    .spaces-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
        margin-top: 44px;
    }

}

@media (max-width: 600px) {

    .spaces::before {
        display: none;
    }

    .spaces-header {
        margin-bottom: 34px;
    }

    .spaces-header h2 {
        margin-top: 14px;
        font-size: clamp(2.5rem, 12vw, 3.6rem);
        line-height: 1;
    }

    .spaces-header > p {
        margin-top: 18px;
        font-size: 0.94rem;
    }

    .spaces-editorial-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .space-tile-main {
        grid-column: auto;
    }

    .space-tile-image,
    .space-tile-main .space-tile-image {
        aspect-ratio: 4 / 3;
        border-radius: 16px;
        box-shadow: 0 20px 40px rgba(3, 50, 79, 0.09);
    }

    .space-tile figcaption {
        min-height: 0;
        padding-top: 12px;
    }

    .space-tile figcaption strong {
        font-size: 0.95rem;
    }

    .space-tile figcaption span {
        font-size: 0.78rem;
    }

    .spaces-footer {
        margin-top: 38px;
        padding-top: 26px;
    }

    .spaces-footer p {
        font-size: 0.92rem;
    }

}
/* ==========================================================
   13. CONTACTO
========================================================== */

.contact {
    background: var(--warm-white);
}

.contact-header {
    max-width: 800px;
    margin-bottom: 64px;
}

.contact-header p {
    max-width: 550px;
    margin-top: 28px;
    color: var(--ink-600);
    font-size: 17px;
    line-height: 1.8;
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.location-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: var(--white);
    box-shadow: var(--shadow-xs);
    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.location-card:hover {
    box-shadow: var(--shadow-sm);
    transform: translateY(-5px);
}

.location-image {
    height: 330px;
    overflow: hidden;
    background: var(--blue-100);
}

.location-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: object-position .9s ease;
}

.location-card:hover .location-image img {
    transform: none;
    object-position: center bottom;
}

.location-content {
    padding: 40px;
}

.location-kicker {
    display: block;
    margin-bottom: 10px;
    color: var(--blue-700);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.location-content h3 {
    color: var(--ink-950);
    font-size: clamp(34px, 4vw, 49px);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.location-content address {
    margin-top: 17px;
    color: var(--ink-600);
    font-size: 15px;
    line-height: 1.7;
}

.location-details {
    margin-top: 33px;
    border-top: 1px solid var(--line);
}

.location-details li {
    padding: 17px 0;
    border-bottom: 1px solid var(--line);

    display: grid;
    grid-template-columns: 105px 1fr;
    gap: 24px;

    color: var(--ink-800);
    font-size: 14px;
}

.location-details li > span {
    color: var(--ink-500);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.location-details a {
    width: fit-content;
    font-weight: 700;
    transition: color var(--transition);
}

.location-details a:hover {
    color: var(--blue-800);
}

.location-details p {
    line-height: 1.65;
}

.location-actions {
    margin-top: 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-location {
    background: var(--blue-800);
    color: var(--white);
}

.btn-location:hover {
    background: var(--blue-950);
    transform: translateY(-2px);
}

.btn-location-secondary {
    border-color: var(--line);
    background: transparent;
    color: var(--ink-950);
}

.btn-location-secondary:hover {
    border-color: var(--blue-700);
    color: var(--blue-800);
    transform: translateY(-2px);
}


/* ==========================================================
   14. CTA FINAL
========================================================== */

.final-cta {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 105px 0;
    background:
        radial-gradient(
            circle at 15% 0%,
            rgba(20, 125, 171, 0.4),
            transparent 34%
        ),
        var(--blue-900);
    color: var(--white);
}

.final-cta-symbol {
    position: absolute;
    z-index: -1;
    top: 50%;
    right: -80px;
    width: 470px;
    opacity: 0.07;
    transform: translateY(-50%);
}

.final-cta-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 70px;
}

.final-cta-content {
    max-width: 780px;
}

.final-cta-content > span {
    display: block;
    margin-bottom: 22px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.final-cta h2 {
    color: var(--white);
    font-size: clamp(43px, 5vw, 71px);
    font-weight: 500;
    line-height: 1.03;
    letter-spacing: -0.055em;
}

.final-cta p {
    max-width: 580px;
    margin-top: 22px;
    color: rgba(255, 255, 255, 0.64);
    font-size: 16px;
}

.btn-light {
    flex-shrink: 0;
    min-height: 58px;
    padding-inline: 30px;
    background: var(--white);
    color: var(--blue-950);
}

.btn-light:hover {
    background: var(--blue-050);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.13);
    transform: translateY(-2px);
}


/* ==========================================================
   15. FOOTER
========================================================== */

.footer {
    padding: 88px 0 28px;
    background: #f2f0eb;
}

.footer-main {
    padding-bottom: 70px;

    display: grid;
    grid-template-columns: 1.35fr 0.65fr 0.85fr 1.15fr;
    gap: 70px;
}

.footer-logo {
    display: inline-flex;
    margin-bottom: 34px;
    margin-top: 12px;
    display:flex;
    justify-content:flex-start;
    margin-left: 10px;
}

.footer-logo img{
    width: 215px;
    height: auto;
}

.footer-brand p {
    max-width: 330px;
    margin-top: 27px;
    color: var(--ink-600);
    font-size: 14px;
    line-height: 1.75;
    padding-left: 22px;
}

.footer-column h3 {
    margin-bottom: 24px;
    color: var(--ink-950);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.footer-column ul {
    display: grid;
    gap: 13px;
}

.footer-column li,
.footer-column a {
    color: var(--ink-600);
    font-size: 13px;
    line-height: 1.7;
}

.footer-column a {
    transition: color var(--transition);
}

.footer-column a:hover {
    color: var(--blue-800);
}

.footer-social {
    display: flex;
    flex-direction: column;
}

.footer-social > a {
    padding: 17px 0;
    border-top: 1px solid var(--line);
}

.footer-social > a:last-child {
    border-bottom: 1px solid var(--line);
}

.footer-social span,
.footer-social strong {
    display: block;
}

.footer-social span {
    margin-bottom: 3px;
    color: var(--ink-500);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.footer-social strong {
    color: var(--ink-800);
    font-size: 13px;
    font-weight: 700;
}

.footer-bottom {
    padding-top: 26px;
    border-top: 1px solid var(--line);

    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.footer-bottom p {
    color: var(--ink-500);
    font-size: 11px;
    line-height: 1.6;
}


/* ==========================================================
   16. RESPONSIVE — PANTALLAS MEDIANAS
========================================================== */

@media (max-width: 1160px) {

    :root {
        --header-height: 94px;
    }

    .main-nav ul {
        gap: 20px;
    }

    .main-nav a {
        font-size: 12px;
    }

    .logo img {
        width: 148px;
    }

    .hero {
        grid-template-columns: 0.9fr 1.1fr;
        gap: 44px;
    }

    .hero h1 {
        font-size: clamp(54px, 6vw, 75px);
    }

    .hero-image,
    .hero-image img {
        min-height: 590px;
    }

    .section-layout,
    .laboratory-layout,
    .about-layout {
        gap: 70px;
    }

    .footer-main {
        grid-template-columns: 1.25fr repeat(3, 1fr);
        gap: 40px;
    }
}


/* ==========================================================
   17. RESPONSIVE — TABLETS
========================================================== */

@media (max-width: 960px) {

    .section {
        padding: 105px 0;
    }

    .main-nav {
        position: fixed;
        z-index: 1001;
        top: var(--header-height);
        right: 0;
        bottom: 0;
        left: 0;

        padding: 48px 28px;
        background: rgba(251, 250, 247, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);

        opacity: 0;
        visibility: hidden;
        transform: translateY(-14px);

        transition:
            opacity var(--transition),
            visibility var(--transition),
            transform var(--transition);
    }

    .main-nav.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .main-nav ul {
        align-items: stretch;
        flex-direction: column;
        gap: 0;
    }

    .main-nav li {
        border-bottom: 1px solid var(--line);
    }

    .main-nav a {
        padding: 18px 0;
        display: block;
        font-size: 22px;
        font-weight: 550;
        letter-spacing: -0.025em;
    }

    .main-nav a::after {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .header-appointment {
        margin-left: auto;
    }

    .hero {
        min-height: auto;
        padding: 74px 0 80px;
        grid-template-columns: 1fr;
        gap: 58px;
    }

    .hero-content {
        max-width: 760px;
    }

    .hero h1 {
        font-size: clamp(59px, 9vw, 84px);
    }

    .hero-image,
    .hero-image img {
        min-height: 650px;
    }

    .hero-image {
        border-radius: 34px 34px 34px 70px;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .value-item {
        min-height: auto;
    }

    .value-item + .value-item {
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .section-layout,
    .laboratory-layout,
    .about-layout {
        grid-template-columns: 1fr;
        gap: 65px;
    }

    .section-intro {
        position: static;
    }

    .section-intro h2,
    .laboratory-content h2,
    .about-content h2 {
        max-width: 760px;
    }

    .diagnostics-header,
    .spaces-header {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .diagnostics-showcase {
        grid-template-columns: 1fr;
    }

    .diagnostics-content {
        padding-top: 0;
    }

    .diagnostics-stat {
        margin-top: 45px;
    }

    .laboratory-image,
    .laboratory-image img {
        min-height: 570px;
    }

    .about-symbol {
        min-height: 440px;
    }

    .locations-grid {
        grid-template-columns: 1fr;
    }

    .final-cta-layout {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-main {
        grid-template-columns: repeat(2, 1fr);
        gap: 55px;
    }
}


/* ==========================================================
   18. RESPONSIVE — CELULARES
========================================================== */

@media (max-width: 680px) {

    :root {
        --header-height: 78px;
    }

    .container,
    .hero {
        width: min(calc(100% - 32px), var(--container));
    }

    .section {
        padding: 82px 0;
    }

    .section h2 {
        font-size: clamp(39px, 12vw, 56px);
    }

    .section-label {
        margin-bottom: 21px;
    }

    .logo img {
        width: 120px;
        max-height: 66px;
    }

    .header.is-scrolled .logo img {
        width: 110px;
    }

    .header-container {
        gap: 13px;
    }

    .btn-turno {
        min-height: 42px;
        padding: 0 16px;
        font-size: 11px;
    }

    .menu-toggle {
        width: 42px;
        height: 42px;
    }

    .hero {
        padding: 52px 0 64px;
        gap: 42px;
    }

    .eyebrow {
        margin-bottom: 23px;
        font-size: 10px;
        letter-spacing: 0.14em;
    }

    .hero h1 {
        font-size: clamp(45px, 13vw, 62px);
        line-height: 1;
    }

    .hero-description {
        margin-top: 28px;
    }

    .hero-description p,
    .hero-description .hero-highlight {
        font-size: 16px;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-locations {
        margin-top: 28px;
        font-size: 10px;
    }

    .hero-image,
    .hero-image img {
        min-height: 480px;
    }

    .hero-image {
        border-radius: 27px 27px 27px 54px;
    }

    .hero-image-caption {
        right: 18px;
        bottom: 17px;
        left: 18px;
        padding: 16px 17px;
    }

    .values-strip {
        padding-bottom: 70px;
    }

    .value-item {
        padding: 31px 4px;
        grid-template-columns: 35px 1fr;
        gap: 17px;
    }

    .section-layout {
        gap: 52px;
    }

    .accordion-trigger {
        padding: 24px 0;
    }

    .accordion-title {
        font-size: 23px;
    }

    .accordion-symbol {
        width: 36px;
        height: 36px;
    }

    .accordion-panel-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .specialty-list {
        grid-template-columns: 1fr;
    }

    .diagnostics-header {
        margin-bottom: 43px;
    }

    .diagnostics-showcase {
        gap: 43px;
    }

    .diagnostics-image,
    .diagnostics-image img {
        min-height: 450px;
    }

    .diagnostics-image {
        border-radius: 26px 26px 55px 26px;
    }

    .diagnostics-content h3 {
        font-size: 39px;
    }

    .laboratory-image,
    .laboratory-image img {
        min-height: 430px;
    }

    .laboratory-image {
        border-radius: 26px 52px 26px 26px;
    }

    .laboratory-points > div {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .spaces-header {
        margin-bottom: 43px;
    }

    .spaces-grid {
        grid-template-columns: 1fr;
        grid-template-rows: none;
    }

    .space-card,
    .space-card-featured {
        min-height: 380px;
        grid-row: auto;
    }

    .space-card-featured {
        border-radius: 26px 26px 26px 52px;
    }

    .about-symbol {
        min-height: 350px;
    }

    .about-content .about-lead {
        font-size: 19px;
    }

    .contact-header {
        margin-bottom: 43px;
    }

    .location-image {
        height: 270px;
    }

    .location-content {
        padding: 29px 23px;
    }

    .location-details li {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .location-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .location-actions .btn {
        width: 100%;
    }

    .final-cta {
        padding: 82px 0;
    }

    .final-cta h2 {
        font-size: 44px;
    }

    .btn-light {
        width: 100%;
    }

    .footer {
        padding-top: 65px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }
}


/* ==========================================================
   19. CELULARES PEQUEÑOS
========================================================== */

@media (max-width: 420px) {

    .btn-turno {
        display: none;
    }

    .menu-toggle {
        margin-left: auto;
    }

    .hero h1 {
        font-size: 43px;
    }

    .hero-image,
    .hero-image img {
        min-height: 410px;
    }

    .location-content h3 {
        font-size: 39px;
    }
}


/* ==========================================================
   20. MOVIMIENTO REDUCIDO
========================================================== */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}/* =========================================================
   BUSCADOR DE ESPECIALIDADES
   ========================================================= */

.specialty-search {
    margin: 0 0 2rem;
    padding: 1.4rem;
    border: 1px solid rgba(25, 74, 117, 0.12);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 14px 40px rgba(20, 43, 66, 0.06);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.specialty-search label {
    display: block;
    margin-bottom: 0.8rem;
    color: #1f2b36;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.specialty-search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.specialty-search-icon {
    position: absolute;
    left: 1rem;
    width: 20px;
    height: 20px;
    pointer-events: none;
    stroke: #225f91;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

#specialty-search-input {
    width: 100%;
    min-height: 58px;
    padding: 0.95rem 1rem 0.95rem 3rem;
    border: 1px solid rgba(31, 43, 54, 0.14);
    border-radius: 16px;
    outline: none;
    background: #ffffff;
    color: #1f2b36;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.4;
    box-shadow: 0 8px 24px rgba(20, 43, 66, 0.04);
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

#specialty-search-input::placeholder {
    color: #8a96a1;
}

#specialty-search-input:hover {
    border-color: rgba(34, 95, 145, 0.28);
}

#specialty-search-input:focus {
    border-color: #225f91;
    box-shadow: 0 0 0 4px rgba(34, 95, 145, 0.1);
    transform: translateY(-1px);
}

.specialty-search-message {
    min-height: 1.3rem;
    margin: 0.75rem 0 0;
    color: #66727d;
    font-size: 0.88rem;
    line-height: 1.5;
}

/* Resaltado para cuando activemos la búsqueda con JavaScript */
.specialty-list li.is-search-match {
    color: #174f7b;
    font-weight: 700;
    background: rgba(34, 95, 145, 0.08);
    border-radius: 10px;
    padding-left: 0.7rem;
}

/* Adaptación para celular */
@media (max-width: 768px) {
    .specialty-search {
        margin-bottom: 1.5rem;
        padding: 1rem;
        border-radius: 18px;
    }

    #specialty-search-input {
        min-height: 54px;
        padding-left: 2.8rem;
        font-size: 0.95rem;
    }

    .specialty-search-icon {
        left: 0.95rem;
        width: 18px;
        height: 18px;
    }
}/* Corrección de posición del buscador */
.accordion > .specialty-search {
    width: 100%;
    margin-bottom: 2rem;
}

.specialty-search-icon {
    z-index: 2;
}

#specialty-search-input {
    position: relative;
    z-index: 1;
}/* =========================================================
   WHATSAPP FLOTANTE
   ========================================================= */

.whatsapp-widget {
    position: fixed;
    right: 28px;
    bottom: 28px;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
}

.whatsapp-menu {
    width: min(390px, calc(100vw - 32px));
    padding: 22px;
    border: 1px solid rgba(16, 65, 101, 0.12);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 24px 70px rgba(11, 45, 71, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(14px) scale(0.98);
    transform-origin: bottom right;

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

.whatsapp-widget.is-open .whatsapp-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.whatsapp-menu-header {
    margin-bottom: 18px;
}

.whatsapp-menu-label {
    display: block;
    margin-bottom: 8px;
    color: #0e668f;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.whatsapp-menu-header h2 {
    margin: 0 0 8px;
    color: #172630;
    font-size: 1.55rem;
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.whatsapp-menu-header p {
    margin: 0;
    color: #71808b;
    font-size: 0.92rem;
    line-height: 1.55;
}

.whatsapp-options {
    display: grid;
    gap: 10px;
}

.whatsapp-option {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    align-items: center;
    gap: 13px;
    min-height: 74px;
    padding: 12px 14px;
    border: 1px solid rgba(20, 51, 72, 0.09);
    border-radius: 17px;
    background: #ffffff;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(13, 53, 80, 0.04);

    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease;
}

.whatsapp-option:hover {
    transform: translateY(-2px);
    border-color: rgba(18, 106, 145, 0.25);
    box-shadow: 0 14px 30px rgba(13, 53, 80, 0.09);
}

.whatsapp-option-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(37, 211, 102, 0.11);
    color: #25d366;
}

.whatsapp-option-icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.whatsapp-option-online .whatsapp-option-icon {
    background: rgba(14, 102, 143, 0.1);
    color: #0e668f;
}

.whatsapp-option-online .whatsapp-option-icon svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.whatsapp-option-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.whatsapp-option-copy strong {
    color: #172630;
    font-size: 0.98rem;
    font-weight: 750;
}

.whatsapp-option-copy small {
    color: #7b8993;
    font-size: 0.78rem;
    line-height: 1.4;
}

.whatsapp-option-arrow {
    color: #0e668f;
    font-size: 1.15rem;
    transition: transform 0.22s ease;
}

.whatsapp-option:hover .whatsapp-option-arrow {
    transform: translateX(3px);
}

.whatsapp-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    padding: 10px 18px 10px 13px;
    border: 0;
    border-radius: 999px;
    background: #0d668f;
    color: #ffffff;
    font: inherit;
    font-weight: 750;
    cursor: pointer;
    box-shadow: 0 16px 36px rgba(13, 102, 143, 0.28);

    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        background-color 0.22s ease;
}

.whatsapp-toggle:hover {
    transform: translateY(-2px);
    background: #09597e;
    box-shadow: 0 20px 42px rgba(13, 102, 143, 0.34);
}

.whatsapp-toggle-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
}

.whatsapp-toggle-icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.whatsapp-widget.is-open .whatsapp-toggle {
    background: #163342;
}

.whatsapp-widget.is-open .whatsapp-toggle-icon {
    transform: rotate(90deg);
}

.whatsapp-toggle-icon {
    transition: transform 0.25s ease;
}

/* Celular */
@media (max-width: 640px) {
    .whatsapp-widget {
        right: 16px;
        bottom: 16px;
        left: 16px;
        align-items: stretch;
    }

    .whatsapp-menu {
        width: 100%;
        padding: 18px;
        border-radius: 22px;
        transform-origin: bottom center;
    }

    .whatsapp-toggle {
        align-self: flex-end;
        padding-right: 14px;
    }

    .whatsapp-toggle-text {
        display: none;
    }

    .whatsapp-toggle {
        width: 58px;
        height: 58px;
        padding: 10px;
        justify-content: center;
    }

    .whatsapp-toggle-icon {
        width: 38px;
        height: 38px;
    }
}/* =========================================================
   ÁREA CLICKEABLE CORRECTA DEL ACORDEÓN
   ========================================================= */

#especialidades .accordion-item {
    position: relative;
    width: 100%;
    z-index: auto;
}

#especialidades .accordion-trigger {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 48px;
    align-items: center;
    width: 100%;
    min-height: 104px;
    margin: 0;
    padding: 24px 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    text-align: left;
    pointer-events: auto;
}

#especialidades .accordion-title {
    pointer-events: none;
}

#especialidades .accordion-symbol {
    position: static;
    justify-self: end;
    pointer-events: none;
}

#especialidades .accordion-panel {
    position: relative;
    z-index: 1;
}

#especialidades .accordion-item::before,
#especialidades .accordion-item::after,
#especialidades .accordion-trigger::before,
#especialidades .accordion-trigger::after {
    pointer-events: none;
}/* =========================================================
   EVITA QUE EL WHATSAPP TAPE ELEMENTOS DE LA WEB
   ========================================================= */

.whatsapp-widget {
    pointer-events: none;
}

.whatsapp-widget.is-open .whatsapp-menu {
    pointer-events: auto;
}
.whatsapp-toggle {
    pointer-events: auto;
}@media (min-width: 961px) {

    .diagnostics-section {
        padding-top: 70px;
        padding-bottom: 70px;
    }

    .diagnostics-showcase {
        align-items: start;
        gap: 52px;
    }

    .diagnostics-media,
    .diagnostics-media img {
        height: 640px;
        min-height: 0;
    }

    .diagnostics-media img {
        width: 100%;
        object-fit: cover;
    }

    .diagnostics-content h3 {
        margin-bottom: 16px;
    }

    .diagnostics-content > p {
        margin-bottom: 18px;
        line-height: 1.55;
    }

    .services-title {
        margin: 0 0 8px;
    }

    .services-list li {
        padding: 12px 0;
    }

    .services-list li p {
        margin-top: 2px;
        line-height: 1.4;
    }

    .diagnostics-stat {
        margin-top: 22px;
    }
}/* ===== AJUSTE COMPACTO CENTRO DE DIAGNÓSTICO ===== */

.diagnostics-showcase{
    gap:42px;
    align-items:start;
}

.diagnostics-content{
    padding-top:10px;
}

.diagnostics-content h3{
    margin-bottom:18px;
}

.diagnostics-content > p{
    margin-bottom:22px;
    line-height:1.6;
}

.services-title{
    margin-bottom:28px;
}

.services-list{
    margin-top:22px;
}

.services-list li{
    padding:16px 0;
}

.services-list li p{
    margin-top:4px;
    line-height:1.45;
}

.diagnostics-image,
.diagnostics-image img{
    min-height:600px;
}

.diagnostics-stat{
    margin-top:24px;
    padding-top:24px;
}/* ===== DIAGNÓSTICO EN UNA SOLA PANTALLA ===== */

.diagnostics.section{
    padding: 58px 0;
}

.diagnostics-header{
    margin-bottom: 34px;
}

.diagnostics-header h2{
    font-size: clamp(44px, 4.5vw, 66px);
}

.diagnostics-showcase{
    gap: 42px;
    align-items: stretch;
}

.diagnostics-image,
.diagnostics-image img{
    min-height: 500px;
    height: 500px;
}

.diagnostics-content{
    padding: 0;
    margin-top: -70px;
}

.services-title{
    font-size: 38px;
    font-weight: 600;
    line-height: 1.1;
    margin: -30px 0 30px;
    color: #fff;
    letter-spacing: -.6px;
}
.services-list{
    margin-top: 0;
}

.services-list li{
    padding: 13px 0;
}
.services-list li{
    padding: 13px 0;
}

.services-list li strong{
    font-size: 22px;
    font-weight: 600;
}

.services-list li p{
    margin-top: 6px;
    font-size: 17px;
    line-height: 1.45;
    color: rgba(255,255,255,.72);
}.services-list span{
    color: rgba(255,255,255,.50);
    font-size: 15px;
    font-weight: 600;
    min-width: 34px;
}

.services-list li p{
    margin-top: 2px;
    line-height: 1.4;
}

.diagnostics-stat{
    margin-top: 22px;
    padding-top: 0;
}/* ===== AJUSTE COMPACTO — NUESTROS ESPACIOS ===== */

.spaces.section{
    padding: 72px 0;
}

.spaces-header{
    margin-bottom: 38px;
}

.spaces-header h2{
    font-size: clamp(46px, 4.5vw, 66px);
}

.spaces-header p{
    max-width: 390px;
    line-height: 1.65;
}

.spaces-grid{
    grid-template-rows: repeat(2, 250px);
    gap: 18px;
}

.space-card-featured{
    min-height: 518px;
}/* ===== AJUSTE COMPACTO — CONTACTO ===== */

.contact.section{
    padding: 64px 0;
}

.contact-header{
    margin-bottom: 34px;
}

.contact-header h2{
    font-size: clamp(46px, 4.6vw, 66px);
    max-width: 720px;
}

.contact-header p{
    margin-top: 18px;
    line-height: 1.55;
}

.locations-grid{
    gap: 22px;
}

.location-image{
    height: 245px;
}

.location-content{
    padding: 28px 32px 30px;
}

.location-content h3{
    font-size: clamp(34px, 3.2vw, 44px);
}

.location-content address{
    margin-top: 10px;
    line-height: 1.5;
}

.location-details{
    margin-top: 22px;
}

.location-details li{
    padding: 12px 0;
}

.location-actions{
    margin-top: 22px;
}

.location-actions .btn{
    min-height: 48px;
}/* ==========================================================
   FOOTER PREMIUM — LOS JUNCOS
========================================================== */

.footer{
    position: relative;
    overflow: hidden;
    padding: 44px 0 16px;
    background: var(--blue-950);
    color: #fff;
}

/* Oculta el isotipo recortado del bloque anterior */
.final-cta-symbol{
    display: none !important;
}

/* Círculo decorativo inferior */
.footer::before{
    content: "";
    position: absolute;
    right: -370px;
    bottom: -490px;
    width: 650px;
    height: 650px;
    border: 1px solid rgba(255,255,255,.035);
    border-radius: 50%;
    pointer-events: none;
}

/* Distribución general */
.footer-main{
    position: relative;
    z-index: 1;
    padding-bottom: 30px;

    display: grid;
    grid-template-columns: 330px .8fr .95fr 1fr;
    align-items: start;
    gap: 55px;
}

/* ==========================================================
   MARCA
========================================================== */

.footer-brand{
    width: 330px;
    text-align: left;
}

/* El logo se centra dentro del mismo ancho que los textos */
.footer-logo{
    width: 330px;
    margin: 0 0 22px;

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

.footer-logo img{
    display: block;
    width: 190px;
    height: auto;
    filter: brightness(0) invert(1);
}

/* Textos institucionales */
.footer-brand p{
    width: 100%;
    max-width: 330px;
    margin: 0;

    color: rgba(255,255,255,.58);
    font-size: 13px;
    line-height: 1.65;
}

/* Frase principal */
.footer-brand p:first-of-type{
    margin-top: 0;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.55;
}

/* Segunda frase */
.footer-brand p + p{
    margin-top: 19px;
    color: rgba(255,255,255,.52);
}

/* ==========================================================
   COLUMNAS
========================================================== */

.footer-column h3{
    margin: 4px 0 20px;

    color: rgba(255,255,255,.43);
    font-size: 10px;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.footer-column ul{
    display: grid;
    gap: 10px;
}

.footer-column li,
.footer-column a{
    color: rgba(255,255,255,.66);
    font-size: 13px;
    line-height: 1.65;
}

.footer-column a{
    width: fit-content;

    transition:
        color .25s ease,
        transform .25s ease;
}

.footer-column a:hover{
    color: #fff;
    transform: translateX(3px);
}

/* ==========================================================
   REDES
========================================================== */

.footer-social{
    display: flex;
    flex-direction: column;
}

.footer-social > a{
    padding: 13px 0;
    border-top: 1px solid rgba(255,255,255,.11);

    transition:
        color .25s ease,
        transform .25s ease,
        border-color .25s ease;
}

.footer-social > a:last-child{
    border-bottom: 1px solid rgba(255,255,255,.11);
}

.footer-social > a:hover{
    color: #fff;
    border-color: rgba(255,255,255,.28);
    transform: translateX(3px);
}

.footer-social span,
.footer-social strong{
    display: block;
}

.footer-social span{
    margin-bottom: 2px;

    color: rgba(255,255,255,.36);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.footer-social strong{
    color: rgba(255,255,255,.83);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.5;
}

/* ==========================================================
   CIERRE INFERIOR
========================================================== */

.footer-bottom{
    position: relative;
    z-index: 1;

    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,.10);

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.footer-bottom p{
    margin: 0;
    color: rgba(255,255,255,.38);
    font-size: 10px;
    line-height: 1.5;
}

/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 960px){

    .footer{
        padding: 52px 0 20px;
    }

    .footer-main{
        grid-template-columns: repeat(2, 1fr);
        gap: 45px 55px;
    }

    .footer-brand,
    .footer-logo{
        width: 330px;
    }
}

/* ==========================================================
   CELULAR
========================================================== */

@media (max-width: 680px){

    .footer{
        padding: 48px 0 20px;
    }

    .footer-main{
        padding-bottom: 30px;
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .footer-brand{
        width: 100%;
        max-width: 330px;
    }

    .footer-logo{
        width: 100%;
        max-width: 330px;
        justify-content: flex-start;
    }

    .footer-logo img{
        width: 175px;
    }

    .footer-bottom{
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
}/* =========================================================
   MICROANIMACIONES GENERALES
========================================================= */

.reveal {
    opacity: 0;
    transform: translateY(34px);
    transition:
        opacity .8s ease,
        transform .8s cubic-bezier(.22, 1, .36, 1);
    will-change: opacity, transform;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: .08s;
}

.reveal-delay-2 {
    transition-delay: .16s;
}

.reveal-delay-3 {
    transition-delay: .24s;
}

.reveal-delay-4 {
    transition-delay: .32s;
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}/* =========================================================
   MICROANIMACIONES GENERALES
========================================================= */

.reveal {
    opacity: 0;
    transform: translateY(34px);

    transition:
        opacity 0.8s ease,
        transform 0.8s cubic-bezier(.22, 1, .36, 1);

    will-change: opacity, transform;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* DEMORAS ESCALONADAS */

.reveal-delay-1 {
    transition-delay: 0.08s;
}

.reveal-delay-2 {
    transition-delay: 0.16s;
}

.reveal-delay-3 {
    transition-delay: 0.24s;
}

.reveal-delay-4 {
    transition-delay: 0.32s;
}


/* ACCESIBILIDAD */

@media (prefers-reduced-motion: reduce) {

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

}/* RECUPERACIÓN TEMPORAL DE CONTENIDO */
.reveal {
    opacity: 1 !important;
    transform: none !important;
}/* ===========================================================
   CONTACTO - DIAGNÓSTICO POR IMÁGENES
=========================================================== */

.diagnostics-contact{
    margin-top:24px;
    margin-bottom:32px;
}

.diagnostics-location{
    color:#d8e4ec;
    font-size:16px;
    line-height:1.6;
    margin-bottom:10px;
}

.diagnostics-phone a{
    color:#ffffff;
    font-weight:700;
    font-size:18px;
    text-decoration:none;
    transition:.3s;
}

.diagnostics-phone a:hover{
    color:#59c3ff;
}/* ==================================================
   DIAGNÓSTICO POR IMÁGENES — VERSIÓN DEFINITIVA
================================================== */

.diagnostics{
    position:relative;
    overflow:hidden;
    padding:68px 0 72px;
    background:#043b59;
    color:#ffffff;
}

.diagnostics::before,
.diagnostics::after{
    content:"";
    position:absolute;
    width:520px;
    height:520px;
    border:1px solid rgba(255,255,255,.07);
    border-radius:50%;
    pointer-events:none;
}

.diagnostics::before{
    top:-280px;
    right:-180px;
}

.diagnostics::after{
    bottom:-390px;
    left:-190px;
}

.diagnostics .container{
    position:relative;
    z-index:1;
}


/* ENCABEZADO */

.diagnostics-header{
    max-width:760px;
    margin-bottom:42px;
}

.diagnostics-header .section-index{
    display:block;
    margin-bottom:12px;
}

.diagnostics-header .section-label{
    display:block;
    margin-bottom:20px;
}

.diagnostics-header h2{
    max-width:760px;
    margin:0;
    color:#ffffff;
    font-size:clamp(3.1rem,5.4vw,5rem);
    font-weight:400;
    line-height:.98;
    letter-spacing:-.052em;
}

.diagnostics-intro{
    max-width:650px;
    margin:22px 0 0;
    color:rgba(255,255,255,.67);
    font-size:1.02rem;
    line-height:1.62;
}


/* FOTO + ESTUDIOS */

.diagnostics-showcase{
    display:grid;
    grid-template-columns:minmax(0,1.12fr) minmax(400px,.88fr);
    gap:50px;
    align-items:start;
}

.diagnostics-image{
    min-width:0;
    margin:0;
}

.diagnostics-image-frame{
    position:relative;
    overflow:hidden;
    width:100%;
    aspect-ratio:16 / 11;
    border:1px solid rgba(255,255,255,.13);
    border-radius:22px;
    background:rgba(255,255,255,.05);
    box-shadow:0 28px 68px rgba(0,0,0,.18);
}

.diagnostics-image-frame::after{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(
        180deg,
        transparent 72%,
        rgba(0,0,0,.12) 100%
    );
    pointer-events:none;
}

.diagnostics-image img{
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center;
    transition:
        opacity .32s ease,
        transform .7s ease;
}

.diagnostics-image-frame:hover img{
    transform:scale(1.015);
}

.diagnostics-image figcaption{
    margin-top:14px;
    color:rgba(255,255,255,.56);
    font-size:.74rem;
    font-weight:600;
    line-height:1.4;
    letter-spacing:.09em;
    text-transform:uppercase;
}

.diagnostics-content{
    min-width:0;
}


/* LISTA DE ESTUDIOS */

.diagnostics-services-list{
    margin:0;
    padding:0;
    list-style:none;
    border-top:1px solid rgba(255,255,255,.13);
}
.diagnostics-services-list .service-item{
    position:relative;
    display:grid;
    grid-template-columns:40px minmax(0,1fr);
    gap:17px;
    padding:18px 20px 18px 14px;
    border-bottom:1px solid rgba(255,255,255,.10);
    border-radius:14px;
    cursor:pointer;

    transition:
        background .35s ease,
        transform .35s ease,
        box-shadow .35s ease,
        padding-left .35s ease;
}

.diagnostics-services-list .service-item:hover,
.diagnostics-services-list .service-item:focus-visible,
.diagnostics-services-list .service-item.active{

    padding-left:20px;

    background:rgba(255,255,255,.07);

    transform:translateY(-2px);

    box-shadow:0 12px 30px rgba(0,0,0,.18);
}
.diagnostics-services-list .service-item::before{
    content:"";
    position:absolute;
    top:15px;
    bottom:15px;
    left:0;
    width:2px;
    background:transparent;
    transition:background .25s ease;
}

.diagnostics-services-list .service-item.active::before{
    background:#ffffff;
}

.diagnostics-services-list .service-number{
    color:rgba(255,255,255,.48);
    font-size:.79rem;
    font-weight:600;
    line-height:1.55;
}

.diagnostics-services-list .service-copy strong{
    display:block;
    color:#ffffff;
    font-size:1.16rem;
    font-weight:500;
    line-height:1.28;
}

.diagnostics-services-list .service-copy p{
    margin:5px 0 0;
    color:rgba(255,255,255,.63);
    font-size:.89rem;
    line-height:1.47;
}

.service-delivery{
    display:block;
    margin-top:6px;
    color:#70d890;
    font-size:.75rem;
    font-weight:650;
    line-height:1.35;
}


/* CONTACTO HORIZONTAL */

.diagnostics-contact-banner{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:36px;
    margin-top:42px;
    padding:30px 36px;
    border:1px solid rgba(255,255,255,.14);
    border-radius:20px;
    background:rgba(255,255,255,.06);
    box-shadow:0 22px 54px rgba(0,0,0,.11);
    backdrop-filter:blur(8px);
    -webkit-backdrop-filter:blur(8px);
}

.diagnostics-contact-info{
    min-width:0;
}

.diagnostics-contact-eyebrow{
    display:block;
    margin-bottom:7px;
    color:rgba(255,255,255,.5);
    font-size:.68rem;
    font-weight:700;
    line-height:1.35;
    letter-spacing:.13em;
    text-transform:uppercase;
}

.diagnostics-contact-info h3{
    margin:0;
    color:#ffffff;
    font-size:1.45rem;
    font-weight:600;
    line-height:1.25;
    letter-spacing:-.02em;
}

.diagnostics-contact-info p{
    margin:6px 0 0;
    color:rgba(255,255,255,.57);
    font-size:.88rem;
    line-height:1.45;
}


/* WHATSAPP */

.diagnostics-whatsapp-link{
    display:flex;
    flex:0 0 auto;
    align-items:center;
    gap:14px;
    min-width:330px;
    padding:15px 17px;
    border:1px solid rgba(112,216,144,.34);
    border-radius:15px;
    background:rgba(112,216,144,.085);
    color:#ffffff;
    text-decoration:none;
    transition:
        transform .25s ease,
        border-color .25s ease,
        background .25s ease;
}

.diagnostics-whatsapp-link:hover,
.diagnostics-whatsapp-link:focus-visible{
    transform:translateY(-2px);
    border-color:rgba(112,216,144,.58);
    background:rgba(112,216,144,.13);
}

.diagnostics-whatsapp-icon{
    display:grid;
    flex:0 0 42px;
    width:42px;
    height:42px;
    place-items:center;
    border-radius:50%;
    background:#70d890;
    color:#043b59;
}

.diagnostics-whatsapp-copy{
    display:flex;
    min-width:0;
    flex-direction:column;
}

.diagnostics-whatsapp-copy small{
    margin-bottom:2px;
    color:#70d890;
    font-size:.75rem;
    font-weight:700;
    line-height:1.3;
}

.diagnostics-whatsapp-copy strong{
    color:#ffffff;
    font-size:1.34rem;
    font-weight:700;
    line-height:1.15;
    letter-spacing:-.025em;
    white-space:nowrap;
}

.diagnostics-whatsapp-copy span{
    margin-top:3px;
    color:rgba(255,255,255,.48);
    font-size:.7rem;
    line-height:1.35;
}


/* ==================================================
   DIAGNÓSTICO — RESPONSIVE
================================================== */

@media (max-width:1100px){

    .diagnostics{
        padding:60px 0 64px;
    }

    .diagnostics-showcase{
        grid-template-columns:minmax(0,1fr) minmax(350px,.9fr);
        gap:40px;
    }

    .diagnostics-contact-banner{
        gap:26px;
        padding:24px;
    }

    .diagnostics-whatsapp-link{
        min-width:300px;
    }

}

@media (max-width:860px){

    .diagnostics{
        padding:50px 0 54px;
    }

    .diagnostics-header{
        margin-bottom:34px;
    }

    .diagnostics-header h2{
        font-size:clamp(2.7rem,8vw,4.2rem);
    }

    .diagnostics-showcase{
        grid-template-columns:1fr;
        gap:30px;
    }

    .diagnostics-image{
        order:1;
    }

    .diagnostics-content{
        order:2;
    }

    .diagnostics-contact-banner{
        flex-direction:column;
        align-items:stretch;
        margin-top:34px;
    }

    .diagnostics-whatsapp-link{
        width:100%;
        min-width:0;
    }

}

@media (max-width:600px){

    .diagnostics{
        padding:40px 0 44px;
    }

    .diagnostics-header{
        margin-bottom:28px;
    }

    .diagnostics-header .section-label{
        margin-bottom:17px;
    }

    .diagnostics-header h2{
        font-size:clamp(2.35rem,11.5vw,3.35rem);
        line-height:1;
    }

    .diagnostics-intro{
        margin-top:17px;
        font-size:.92rem;
        line-height:1.52;
    }

    .diagnostics-image-frame{
        aspect-ratio:16 / 12;
        border-radius:17px;
    }

    .diagnostics-image figcaption{
        margin-top:11px;
        font-size:.67rem;
    }

    .diagnostics-services-list .service-item{
        grid-template-columns:30px minmax(0,1fr);
        gap:11px;
        padding:14px 9px 14px 0;
    }

    .diagnostics-services-list .service-item:hover,
.diagnostics-services-list .service-item:focus-visible,
.diagnostics-services-list .service-item.active{
    padding-left:16px;
    transform:translateY(-3px);
    transition:all .35s ease;
}

    .diagnostics-services-list .service-copy strong{
        font-size:1rem;
    }

    .diagnostics-services-list .service-copy p{
        font-size:.81rem;
    }

    .service-delivery{
        font-size:.69rem;
    }

    .diagnostics-contact-banner{
        margin-top:28px;
        padding:20px;
        border-radius:17px;
    }

    .diagnostics-contact-info h3{
        font-size:1.23rem;
    }

   .diagnostics-whatsapp-link{
    display:flex;
    flex:0 0 auto;
    align-items:center;
    gap:14px;
    min-width:330px;
    padding:16px 19px;
    border:1px solid rgba(112,216,144,.52);
    border-radius:15px;
    background:rgba(112,216,144,.13);
    color:#fff;
    text-decoration:none;
    box-shadow:0 12px 28px rgba(0,0,0,.10);
    transition:
        transform .25s ease,
        border-color .25s ease,
        background .25s ease,
        box-shadow .25s ease;
}

.diagnostics-whatsapp-link:hover,
.diagnostics-whatsapp-link:focus-visible{
    transform:translateY(-3px);
    border-color:rgba(112,216,144,.78);
    background:rgba(112,216,144,.19);
    box-shadow:0 17px 34px rgba(0,0,0,.16);
}

    .diagnostics-whatsapp-icon{
        flex-basis:39px;
        width:39px;
        height:39px;
    }

    .diagnostics-whatsapp-copy strong{
        font-size:1.18rem;
    }

    .diagnostics-whatsapp-copy span{
        font-size:.66rem;
    }

}