:root {
    --color-primary: #009f9d;
    --color-primary-light: #1fbfbd;
    --color-primary-dark: #007674;
    --color-primary-deep: #005f66;
    --color-ink: #0a0f14;
    --color-ink-soft: #1a2328;
    --color-muted: #6e7a80;
    --color-line: #e2edee;
    --color-surface: #f5f7f7;
    --color-surface-strong: #e8f5f4;
    --color-white: #ffffff;
    --color-sky: #4f78b4;
    --color-accent: #f4b04f;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
    --shadow-soft: 0 32px 80px rgba(0, 44, 44, 0.10);
    --shadow-card: 0 2px 20px rgba(13, 17, 19, 0.06);
    --shadow-elevated: 0 24px 64px rgba(0, 44, 44, 0.14), 0 4px 16px rgba(0, 44, 44, 0.06);
    --shadow-glass: 0 8px 32px rgba(0, 44, 44, 0.08);
    --radius-sm: 0.625rem;
    --radius-md: 1rem;
    --radius-lg: 1.25rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
    --container: 1200px;
    --header-height: 72px;
    --transition-smooth: cubic-bezier(0.22, 1, 0.36, 1);
    --transition-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--color-ink-soft);
    background: #f5f7f8;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img,
svg {
    display: block;
}

img {
    max-width: 100%;
    height: auto;
}

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

button,
input {
    font: inherit;
}

button {
    border: 0;
    cursor: pointer;
}

ul {
    list-style: none;
}

.svg-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.skip-link {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 999;
    padding: 0.7rem 1rem;
    color: var(--color-white);
    background: var(--color-ink);
    border-radius: 999px;
    transform: translateY(-150%);
}

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

.container {
    width: min(100% - 2rem, var(--container));
    margin: 0 auto;
}

.section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    scroll-margin-top: var(--header-height);
    padding: clamp(4rem, 8vw, 7rem) 0;
}

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

.section::before,
.section::after,
.hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    z-index: 0;
    pointer-events: none;
}

.section::before {
    inset: 0;
}

.section::after,
.hero::after {
    height: clamp(5.5rem, 10vw, 9rem);
    bottom: calc(clamp(5.5rem, 10vw, 9rem) * -0.58);
}

.section-header {
    display: flex;
    max-width: none;
    margin-bottom: 2.5rem;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
}

.section-title,
.hero-title {
    font-family: var(--font-display);
    color: var(--color-ink);
    font-weight: 700;
    letter-spacing: -0.03em;
}

.section-title {
    max-width: 780px;
    font-size: clamp(2rem, 4vw, 2.75rem);
    line-height: 1.08;
}

.section-title em,
.hero-title em {
    font-style: normal;
    font-weight: inherit;
    background: linear-gradient(135deg, #00787a 0%, #00b4b8 40%, #e8a034 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.section-text {
    max-width: 680px;
    margin-top: 1.25rem;
    color: var(--color-muted);
    font-size: 1.1rem;
    line-height: 1.75;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 2.75rem;
    padding: 0.72rem 1.3rem;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1;
    transition: transform 400ms var(--transition-smooth), box-shadow 400ms var(--transition-smooth), background 300ms ease, color 300ms ease;
}

.btn:hover {
    transform: translateY(-1px) scale(1.01);
}

.btn:active {
    transform: translateY(0) scale(0.99);
}

.btn-primary {
    color: var(--color-white);
    background: var(--color-primary);
    box-shadow: 0 8px 24px rgba(0, 159, 157, 0.28);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    box-shadow: 0 12px 32px rgba(0, 159, 157, 0.35);
}

.btn-outline {
    color: var(--color-ink);
    background: rgba(255, 255, 255, 0.8);
    border: 1.5px solid rgba(0, 159, 157, 0.2);
    backdrop-filter: blur(8px);
}

.btn-outline:hover {
    color: var(--color-white);
    background: var(--color-ink);
    border-color: var(--color-ink);
}

.btn-lg {
    min-height: 3.2rem;
    padding: 0.9rem 1.6rem;
    font-size: 0.95rem;
}

.overflow-hidden {
    overflow: hidden;
}

/* ─── HEADER ─── */

.header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 50;
    height: var(--header-height);
    color: var(--color-ink);
    transition: height 500ms var(--transition-smooth), background 500ms var(--transition-smooth), box-shadow 500ms var(--transition-smooth);
}

.header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    pointer-events: none;
}

.header.scrolled {
    height: 60px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.header.scrolled::before {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
}

.header-inner {
    position: relative;
    z-index: 1;
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
}

.brand-logo {
    width: auto;
    height: 50px;
    max-width: min(45vw, 240px);
    object-fit: contain;
    object-position: left center;
    transition: height 500ms var(--transition-smooth);
}

.brand-mark {
    width: auto;
    height: 2.8rem;
    object-fit: contain;
    transition: height 500ms var(--transition-smooth), transform 500ms var(--transition-smooth);
}

.header.scrolled .brand-logo {
    height: 42px;
}

.header.scrolled .brand-mark {
    height: 2.35rem;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    position: relative;
    color: rgba(13, 17, 19, 0.58);
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: color 300ms ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: -0.5rem;
    left: 0;
    height: 1.5px;
    background: var(--color-primary);
    border-radius: 999px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 350ms var(--transition-smooth);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-ink);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.header-social-link {
    display: inline-flex;
    width: 2.45rem;
    height: 2.45rem;
    align-items: center;
    justify-content: center;
    color: var(--color-primary-deep);
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(0, 95, 102, 0.12);
    border-radius: 50%;
    box-shadow: 0 8px 22px rgba(0, 44, 44, 0.06);
    transition: transform 260ms var(--transition-smooth), color 260ms ease, border-color 260ms ease, background 260ms ease, box-shadow 260ms ease;
}

.header-social-link:hover {
    color: var(--color-white);
    background: var(--color-primary);
    border-color: rgba(0, 159, 157, 0.55);
    box-shadow: 0 12px 28px rgba(0, 159, 157, 0.2);
    transform: translateY(-1px);
}

.btn-header {
    min-height: 2.5rem;
    padding-inline: 1rem;
    font-size: 0.85rem;
}

.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    color: var(--color-ink);
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-sm);
}

.menu-toggle span {
    width: 18px;
    height: 1.5px;
    background: currentColor;
    border-radius: 999px;
    transition: transform 300ms var(--transition-smooth), opacity 200ms ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* ─── HERO ─── */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
    background:
        linear-gradient(180deg, rgba(245, 250, 250, 0.9) 0%, rgba(235, 246, 247, 0.84) 54%, rgba(246, 248, 249, 0.94) 100%),
        linear-gradient(122deg, rgba(0, 159, 157, 0.24) 0%, rgba(255, 255, 255, 0) 38%),
        linear-gradient(300deg, rgba(244, 176, 79, 0.18) 0%, rgba(255, 255, 255, 0) 34%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 50%, transparent 0%, rgba(239, 249, 249, 0.25) 70%, rgba(239, 249, 249, 0.55) 100%),
        linear-gradient(90deg, rgba(239, 249, 249, 0.78) 0%, rgba(239, 249, 249, 0.58) 46%, rgba(239, 249, 249, 0.76) 100%),
        linear-gradient(180deg, rgba(245, 250, 250, 0.58) 0%, rgba(235, 246, 247, 0.34) 55%, rgba(246, 248, 249, 0.76) 100%);
}

.hero-bg span {
    position: absolute;
    inset: -4%;
    background-position: center;
    background-size: cover;
    opacity: 0;
    filter: saturate(0.82) contrast(0.95);
    transform: scale(1.05);
    animation: heroImageCarousel 28s linear infinite;
}

.hero-bg span:nth-child(1) {
    background-image: url('../images/location/centro-diagnostico-salud-fachada-abierta.webp');
    background-position: center 32%;
    animation-delay: 0s;
    transform-origin: center left;
}

.hero-bg span:nth-child(2) {
    background-image: url('../images/facility/recepcion-centro-diagnostico-mas-salud.jpg');
    background-position: center 48%;
    animation-delay: 7s;
    transform-origin: center right;
}

.hero-bg span:nth-child(3) {
    background-image: url('../images/services/equipo-de-ecografia.jpg');
    background-position: center 45%;
    animation-delay: 14s;
    transform-origin: bottom center;
}

.hero-bg span:nth-child(4) {
    background-image: url('../images/services/rayos-x-digitales.jpg');
    background-position: center 42%;
    animation-delay: 21s;
    transform-origin: top center;
}

@keyframes heroImageCarousel {
    0% {
        opacity: 0;
        transform: scale(1.04) translate(0, 0);
    }
    8%,
    25% {
        opacity: 0.52;
    }
    32%,
    100% {
        opacity: 0;
        transform: scale(1.12) translate(-1.2%, -0.6%);
    }
}

.hero-ambient {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.hero-ambient span {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
}

.hero-ambient span:nth-child(1) {
    width: 28vw;
    height: 28vw;
    top: -8%;
    left: -6%;
    background: radial-gradient(circle, rgba(0, 159, 157, 0.22), transparent 70%);
}

.hero-ambient span:nth-child(2) {
    width: 22vw;
    height: 22vw;
    bottom: 10%;
    right: -4%;
    background: radial-gradient(circle, rgba(244, 176, 79, 0.18), transparent 70%);
}

.hero-ambient span:nth-child(3) {
    width: 18vw;
    height: 18vw;
    top: 35%;
    left: 45%;
    background: radial-gradient(circle, rgba(79, 120, 180, 0.12), transparent 70%);
}

.hero::before {
    content: "";
    position: absolute;
    left: -6vw;
    right: -6vw;
    bottom: calc(clamp(5.5rem, 9vw, 8rem) * -0.52);
    z-index: 1;
    height: clamp(5.5rem, 9vw, 8rem);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(246, 248, 249, 0.98) 34%),
        #f6f8f9;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    box-shadow: 0 -1px 0 rgba(0, 159, 157, 0.12);
    pointer-events: none;
}

.hero::after {
    display: block;
    left: -5vw;
    right: -5vw;
    bottom: calc(clamp(5.5rem, 9vw, 8rem) * -0.42);
    z-index: 1;
    height: clamp(5.2rem, 8vw, 7.5rem);
    background: transparent;
    border-top: 1px solid rgba(0, 159, 157, 0.22);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    opacity: 0.9;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    align-items: center;
    gap: clamp(2rem, 5vw, 4rem);
    width: min(100% - 2rem, 1320px);
    margin: 0 auto;
    padding: calc(var(--header-height) + 2.5rem) 0 3.5rem;
    min-height: 100vh;
}

.hero-copy {
    max-width: 600px;
}

.hero-title {
    font-size: clamp(2.75rem, 5.5vw, 4.75rem);
    line-height: 1.05;
    color: var(--color-ink);
    letter-spacing: -0.02em;
    font-weight: 800;
    text-wrap: balance;
    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.7),
        0 4px 12px rgba(0, 44, 44, 0.04),
        0 18px 44px rgba(0, 44, 44, 0.08);
}

.hero-title em {
    text-shadow: 0 0 50px rgba(0, 159, 157, 0.16), 0 0 90px rgba(244, 176, 79, 0.08);
}

.hero-text {
    max-width: 520px;
    margin: 1.5rem 0 0;
    color: var(--color-ink-soft);
    font-size: 1.15rem;
    line-height: 1.65;
    font-weight: 500;
    text-wrap: pretty;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    max-width: 480px;
    margin-top: 2.25rem;
}

.hero-actions .btn-primary {
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 3.6rem;
    font-size: 1rem;
    letter-spacing: 0.01em;
    box-shadow: 0 12px 40px rgba(0, 159, 157, 0.3);
}

.hero-actions .btn-primary::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.2) 50%, transparent 60%);
    transform: translateX(-100%);
    animation: btnShine 1.4s ease-out 1.6s both;
}

@keyframes btnShine {
    to {
        transform: translateX(100%);
    }
}

.hero-actions .btn-primary:hover {
    background: var(--color-primary-dark);
    box-shadow: 0 16px 48px rgba(0, 159, 157, 0.38);
}

.hero-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.hero-actions-row .btn {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 2.8rem;
    padding: 0.65rem 1.1rem;
    font-size: 0.88rem;
    white-space: nowrap;
    text-align: center;
    line-height: 1.15;
}

.hero-actions-row .btn-outline {
    color: var(--color-ink);
    background: var(--color-white);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.hero-actions-row .btn-outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary-dark);
}

.hero-media-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 3 / 4;
    max-height: 72vh;
    width: 100%;
    border-radius: calc(var(--radius-xl) + 0.65rem);
    overflow: hidden;
}

.hero-media-wrap::before {
    content: "";
    position: absolute;
    inset: -50%;
    z-index: 0;
    background: conic-gradient(from 0deg, rgba(0, 159, 157, 0.35), rgba(244, 176, 79, 0.25), rgba(0, 159, 157, 0.15), rgba(244, 176, 79, 0.25), rgba(0, 159, 157, 0.35));
    animation: rotateBorder 8s linear infinite;
}

@keyframes rotateBorder {
    to {
        transform: rotate(360deg);
    }
}

.hero-media-wrap .hero-media {
    position: relative;
    isolation: isolate;
    z-index: 1;
    width: calc(100% - 3px);
    height: calc(100% - 3px);
    padding: clamp(0.22rem, 0.5vw, 0.42rem);
    border-radius: calc(var(--radius-xl) + 0.55rem);
    overflow: visible;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.24), rgba(222, 246, 244, 0.14)),
        radial-gradient(circle at 20% 12%, rgba(0, 159, 157, 0.1), transparent 40%),
        radial-gradient(circle at 88% 88%, rgba(235, 197, 90, 0.1), transparent 34%);
    border: 1px solid rgba(255, 255, 255, 0.32);
    box-shadow:
        0 18px 48px rgba(12, 31, 36, 0.09),
        0 5px 16px rgba(0, 159, 157, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.48);
    backdrop-filter: blur(10px) saturate(1.12);
    -webkit-backdrop-filter: blur(10px) saturate(1.12);
}

.hero-media::before {
    content: "";
    position: absolute;
    inset: -0.6rem;
    z-index: -1;
    border-radius: calc(var(--radius-xl) + 1.2rem);
    background:
        radial-gradient(ellipse at 50% 18%, rgba(255, 255, 255, 0.42), transparent 46%),
        radial-gradient(ellipse at 50% 88%, rgba(0, 159, 157, 0.18), transparent 56%);
    filter: blur(14px);
    opacity: 0.65;
    pointer-events: none;
}

.hero-media::after {
    content: "";
    position: absolute;
    inset: clamp(0.22rem, 0.5vw, 0.42rem);
    z-index: 2;
    pointer-events: none;
    border-radius: calc(var(--radius-xl) + 0.1rem);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.13), transparent 32%),
        linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.14) 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.hero-logo-splash {
    position: absolute;
    inset: clamp(0.22rem, 0.5vw, 0.42rem);
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: calc(var(--radius-xl) + 0.1rem);
    background: var(--color-primary-deep);
    animation: logoSplashOut 3s cubic-bezier(0.22, 1, 0.36, 1) both;
    pointer-events: none;
}

.hero-logo-splash img {
    width: min(72%, 220px);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.25));
    animation: logoSplashIn 3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes logoSplashIn {
    0% {
        opacity: 0;
        transform: scale(0.92);
    }
    10% {
        opacity: 1;
        transform: scale(1);
    }
    67% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(1.04);
    }
}

@keyframes logoSplashOut {
    0%, 67% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

.hero-video-intro {
    position: absolute;
    inset: clamp(0.22rem, 0.5vw, 0.42rem);
    z-index: 2;
    overflow: hidden;
    border-radius: calc(var(--radius-xl) + 0.1rem);
    background: var(--color-primary-dark);
    transition:
        opacity 900ms cubic-bezier(0.22, 1, 0.36, 1),
        transform 1100ms cubic-bezier(0.22, 1, 0.36, 1),
        filter 900ms ease;
}

.hero-video-intro::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(2, 40, 45, 0.08), rgba(2, 40, 45, 0.34)),
        radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.22), transparent 46%);
}

.hero-video-intro img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    transition: transform 1400ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-media.video-ready .hero-video-intro {
    opacity: 0;
    transform: scale(1.035);
    filter: blur(10px);
    pointer-events: none;
}

.hero-media.video-ready .hero-video-intro img {
    transform: scale(1.12);
}

.hero-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 41%;
    border-radius: calc(var(--radius-xl) + 0.1rem);
    box-shadow: 0 8px 22px rgba(3, 30, 34, 0.08);
}

.video-sound-toggle {
    position: absolute;
    bottom: clamp(1.05rem, 1.6vw, 1.35rem);
    right: clamp(1.05rem, 1.6vw, 1.35rem);
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.75rem;
    color: var(--color-white);
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    backdrop-filter: blur(12px);
    transition: background 300ms ease;
}

.video-sound-toggle:hover {
    background: rgba(0, 0, 0, 0.55);
}

.hero-spotlight {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(600px circle at var(--spotlight-x, 50%) var(--spotlight-y, 50%), rgba(255, 255, 255, 0.07), transparent 40%);
    transition: background 120ms ease-out;
}

/* ─── SERVICES ─── */

.services {
    background:
        linear-gradient(180deg, #f6f8f9 0%, #ffffff 22%, #f3f8f8 100%);
}

.services::after {
    background: linear-gradient(180deg, rgba(243, 248, 248, 0), #f3f8f8 78%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: 1rem;
    align-items: stretch;
}

.service-card {
    position: relative;
    overflow: hidden;
    background: var(--color-white);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: transform 500ms var(--transition-smooth), box-shadow 500ms var(--transition-smooth);
}

.service-card::before {
    display: none;
}

.service-card::after {
    display: none;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-elevated);
}

.service-card.with-image {
    isolation: isolate;
    height: 100%;
    min-height: auto;
    padding: 0;
    display: grid;
    grid-template-areas:
        "media"
        "title"
        "details";
    grid-template-rows: auto auto 1fr;
}

.service-icon {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    margin-bottom: 0.75rem;
    color: var(--color-primary);
    background: var(--color-surface);
    border-radius: var(--radius-sm);
}

.service-card.with-image .service-icon {
    display: none;
}

.service-photo {
    position: relative;
    grid-area: media;
    z-index: 0;
    width: 100%;
    aspect-ratio: 16 / 11;
    object-fit: cover;
    object-position: center;
    border-bottom: none;
}

.service-card.with-image::before,
.service-card.with-image::after {
    position: absolute;
    z-index: 3;
    pointer-events: none;
}

.service-card.with-image::before {
    content: '';
    top: 0;
    right: 0;
    left: 0;
    height: min(42%, 9rem);
    display: block;
    background: linear-gradient(180deg, rgba(5, 14, 18, 0.18), transparent 64%);
}

.service-card.with-image::after {
    content: '';
    top: 0.55rem;
    right: 0.55rem;
    width: 2rem;
    height: 1.6rem;
    display: block;
    background: #fbff25 url('../images/partners/cashea-logo.png') center / contain no-repeat;
    border: 1.5px solid rgba(255, 255, 255, 0.92);
    border-radius: 0.55rem;
    box-shadow:
        0 6px 16px rgba(0, 44, 44, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.service-card h3 {
    position: relative;
    z-index: 1;
    color: var(--color-ink);
    font-family: var(--font-body);
    max-width: 13rem;
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.15;
    text-transform: none;
    letter-spacing: -0.01em;
}

.service-card.with-image h3 {
    grid-area: title;
    z-index: 2;
    min-height: 0;
    margin: 0;
    padding: 1rem 1rem 0.45rem;
    color: var(--color-ink);
    font-size: 1.05rem;
    display: flex;
    align-items: center;
}

.service-details {
    grid-area: details;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-content: start;
    padding: 0 1rem 1.05rem;
}

.service-details li {
    display: inline-flex;
    align-items: center;
    min-height: 1.45rem;
    padding: 0.22rem 0.5rem;
    color: var(--color-primary-deep);
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.1;
    background: rgba(0, 159, 157, 0.08);
    border: 1px solid rgba(0, 159, 157, 0.12);
    border-radius: 999px;
}

.service-card h3::after {
    display: none;
}

.service-action {
    position: relative;
    grid-area: media;
    align-self: end;
    justify-self: end;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    color: var(--color-white);
    line-height: 1;
    background: #25D366;
    border: 2px solid var(--color-white);
    border-radius: 999px;
    box-shadow: 0 10px 26px rgba(0, 44, 44, 0.2);
    transition: background 300ms ease, color 300ms ease, transform 300ms var(--transition-smooth), box-shadow 300ms ease;
}

.service-action::before {
    display: none;
}

.service-card.with-image .service-action {
    margin: 0 0.85rem 0.85rem 0;
}

.service-action svg {
    width: 1.25rem;
    height: 1.25rem;
}

.service-action:hover {
    color: var(--color-white);
    background: #1ebe5d;
    border-color: var(--color-white);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 14px 34px rgba(37, 211, 102, 0.3);
}

/* ─── SPECIALTIES / ATTENTION ─── */

.attention {
    position: relative;
    overflow: hidden;
    color: var(--color-muted);
    background:
        linear-gradient(180deg, #f3f8f8 0%, #ffffff 48%, #fff7ec 100%);
}

.attention::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.attention::after {
    height: clamp(4rem, 7vw, 6.25rem);
    bottom: calc(clamp(4rem, 7vw, 6.25rem) * -0.5);
    background:
        linear-gradient(180deg, rgba(255, 247, 236, 0) 0%, rgba(255, 247, 236, 0.82) 28%, rgba(7, 20, 22, 0.96) 100%);
}

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

.attention .section-title {
    color: var(--color-ink);
}

.attention .section-text {
    color: var(--color-muted);
}

.attention-grid {
    display: grid;
    gap: clamp(1.75rem, 4vw, 3rem);
    align-items: start;
}

.attention-header {
    display: grid;
    justify-items: center;
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.attention-header .section-text {
    max-width: 42rem;
    margin-inline: auto;
}

.attention-list {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.9rem;
    align-items: start;
}

.attention-list article {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    min-height: 11.25rem;
    padding: 1rem 0.85rem;
    text-align: center;
    overflow: hidden;
    perspective: 900px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-md);
    box-shadow: 0 12px 34px rgba(0, 44, 44, 0.06);
    backdrop-filter: blur(14px);
    cursor: pointer;
    transition: min-height 240ms var(--transition-smooth), transform 180ms ease-out, box-shadow 180ms ease-out, border-color 180ms ease-out, background 180ms ease-out;
}

.attention-list article::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(232, 245, 244, 0.86));
    border-radius: inherit;
    opacity: 0;
    transform: rotateX(0deg) translateY(0);
    transform-origin: top center;
}

.attention-list article::after {
    content: "";
    position: absolute;
    left: 14%;
    right: 14%;
    bottom: 0.75rem;
    z-index: 0;
    height: 1px;
    pointer-events: none;
    background: rgba(0, 159, 157, 0.2);
    opacity: 0;
    transform: scaleX(0.6);
    transform-origin: center;
    transition: opacity 180ms ease-out, transform 180ms ease-out;
}

.attention-list article:hover,
.attention-list article.is-selected {
    transform: translateY(-3px);
    background: var(--color-white);
    box-shadow: 0 22px 50px rgba(0, 94, 94, 0.12);
    border-color: rgba(0, 159, 157, 0.24);
}

.attention-list article.is-selected {
    min-height: 13.25rem;
}

.attention-list article.is-selected::before {
    animation: card-open 220ms ease-out both;
}

.attention-list article.is-selected::after {
    opacity: 0;
    transform: scaleX(0.6);
}

.attention-list article:focus-visible {
    outline: 2px solid rgba(0, 159, 157, 0.5);
    outline-offset: 4px;
}

.specialty-icon {
    position: relative;
    z-index: 1;
    display: inline-grid;
    width: clamp(4.75rem, 6vw, 5.8rem);
    height: clamp(4.75rem, 6vw, 5.8rem);
    place-items: center;
    color: var(--color-primary);
    background: transparent;
    border-radius: var(--radius-md);
    transition: transform 180ms ease-out;
}

.specialty-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.attention-list > article > svg {
    width: 2.75rem;
    height: 2.75rem;
    padding: 0.62rem;
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
}

.attention-list strong {
    position: relative;
    z-index: 1;
    display: block;
    color: var(--color-ink);
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.2;
    text-transform: none;
    letter-spacing: -0.01em;
    transition: transform 180ms ease-out;
}

.attention-list article.is-selected .specialty-icon {
    transform: translateY(-0.25rem) scale(0.96);
}

.attention-list article.is-selected strong {
    transform: translateY(-0.2rem);
}

.specialty-action {
    position: relative;
    z-index: 1;
    display: inline-flex;
    width: fit-content;
    margin-top: auto;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.7rem;
    color: var(--color-primary-dark);
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1;
    background: transparent;
    border: 1.5px solid rgba(0, 159, 157, 0.25);
    border-radius: 999px;
    overflow: hidden;
    transition: max-height 240ms var(--transition-smooth), margin 240ms var(--transition-smooth), padding 240ms var(--transition-smooth), opacity 180ms ease-out, transform 180ms ease-out, background 180ms ease-out, color 180ms ease-out, border-color 180ms ease-out;
}

.attention-list.is-interactive .specialty-action {
    max-height: 0;
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
    border-width: 0;
    border-color: transparent;
    pointer-events: none;
    transform: translateY(0.5rem) scale(0.96);
}

.attention-list.is-interactive article.is-selected .specialty-action {
    max-height: 2rem;
    margin-top: auto;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
    opacity: 1;
    border-width: 1.5px;
    border-color: rgba(0, 159, 157, 0.25);
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.specialty-action:hover {
    color: var(--color-white);
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.attention-hint {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 0.5rem;
    color: var(--color-muted);
    font-size: 0.82rem;
    opacity: 0.6;
}

.attention-hint svg {
    width: 1rem;
    height: 1rem;
    animation: hintPulse 2s ease-in-out infinite;
}

@keyframes hintPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.15); opacity: 1; }
}

@media (hover: none) and (pointer: coarse) {
    .attention-hint {
        display: flex;
    }
}

@keyframes card-open {
    0% {
        opacity: 0.82;
        transform: rotateX(0deg) translateY(0);
    }

    100% {
        opacity: 0;
        transform: rotateX(-72deg) translateY(-0.35rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-bg span {
        animation: none;
    }

    .hero-bg span:first-child {
        opacity: 0.34;
        transform: scale(1.06);
    }

    .hero-logo-splash,
    .hero-logo-splash img {
        animation: none;
        opacity: 0;
    }

    .attention-list article.is-selected::before {
        animation: none;
        opacity: 0;
    }
}

/* ─── OCCUPATIONAL MEDICINE ─── */

.occupational {
    color: rgba(255, 255, 255, 0.76);
    background:
        linear-gradient(180deg, #071416 0%, #0b2427 50%, #102b2c 100%);
}

.occupational::after {
    height: clamp(4.5rem, 8vw, 7rem);
    bottom: calc(clamp(4.5rem, 8vw, 7rem) * -0.48);
    background:
        linear-gradient(180deg, rgba(16, 43, 44, 0) 0%, rgba(16, 43, 44, 0.42) 18%, rgba(255, 247, 236, 0.94) 100%);
}

.occupational .section-title {
    color: var(--color-white);
}

.occupational .section-text {
    color: rgba(255, 255, 255, 0.62);
}

.occupational-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.occupational-copy {
    max-width: 38rem;
}

.occupational-copy .btn {
    margin-top: 1.75rem;
}

.occupational-panel {
    display: grid;
    gap: 0.9rem;
}

.occupational-panel article {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.35rem 1rem;
    align-items: start;
    padding: 1.1rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(0, 159, 157, 0.14);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.occupational-panel span {
    display: grid;
    width: 3rem;
    height: 3rem;
    grid-row: span 2;
    place-items: center;
    color: var(--color-primary-deep);
    background: var(--color-surface-strong);
    border-radius: var(--radius-md);
}

.occupational-panel strong {
    color: var(--color-ink);
    font-size: 1rem;
    line-height: 1.3;
}

.occupational-panel ul {
    display: grid;
    gap: 0.45rem;
    margin: 0.35rem 0 0;
    padding: 0;
    list-style: none;
}

.occupational-panel li {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 1.45rem;
    padding-left: 1rem;
    color: var(--color-muted);
    font-size: 0.95rem;
    line-height: 1.45;
}

.occupational-panel li::before {
    content: "";
    position: absolute;
    left: 0;
    width: 0.38rem;
    height: 0.38rem;
    background: var(--color-primary);
    border-radius: 50%;
}

/* ─── ABOUT ─── */

.about {
    background:
        linear-gradient(180deg, #fff7ec 0%, #ffffff 18%, #edf8f8 100%);
}

.about::after {
    background: linear-gradient(180deg, rgba(237, 248, 248, 0), #ecf7fb 76%);
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1fr);
    gap: clamp(2.5rem, 5vw, 4.5rem);
    align-items: center;
}

.about-media {
    padding: 0.5rem;
    overflow: hidden;
    background: var(--color-white);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
}

.about-media img {
    width: 100%;
    aspect-ratio: 4 / 3.6;
    object-fit: cover;
    object-position: center;
    border-radius: var(--radius-lg);
}

.about-copy {
    position: relative;
    padding-left: clamp(1.25rem, 3vw, 2rem);
}

.about-copy::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--color-primary), var(--color-accent));
}

.about-copy p {
    max-width: 640px;
    margin-top: 1.25rem;
    color: var(--color-muted);
}

.about-statements {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.about-statements article {
    display: grid;
    gap: 0.55rem;
    min-height: 10rem;
    padding: 1.25rem;
    padding-left: 1.5rem;
    background: var(--color-surface);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-left: 3px solid var(--color-primary);
    border-radius: var(--radius-md);
    transition: transform 400ms var(--transition-smooth), box-shadow 400ms var(--transition-smooth);
}

.about-statements article:last-child {
    border-left-color: var(--color-accent);
}

.about-statements article:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

.about-statements span,
.about-statements p {
    display: block;
}

.about-statements span {
    color: var(--color-ink);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.about-statements p {
    margin: 0;
    color: var(--color-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* ─── LOCATION ─── */

.location {
    background:
        linear-gradient(180deg, #ecf7fb 0%, #f9fcfd 48%, #eef7f4 100%);
}

.location::after {
    background: linear-gradient(180deg, rgba(238, 247, 244, 0), #fbfbf8 76%);
}

.location-grid {
    display: grid;
    grid-template-columns: 0.72fr 1.28fr;
    gap: 1.5rem;
    align-items: stretch;
}

.location-panel {
    display: grid;
    gap: 0.75rem;
}

.location-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.location-actions .btn-outline {
    background: var(--color-white);
}

.info-item {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 0.85rem;
    align-items: start;
    padding: 1rem;
    background: var(--color-white);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-md);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.03);
    transition: transform 400ms var(--transition-smooth), box-shadow 400ms var(--transition-smooth);
}

.info-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

.info-item svg {
    width: 44px;
    height: 44px;
    padding: 0.65rem;
    color: var(--color-primary);
    background: var(--color-surface);
    border-radius: var(--radius-sm);
}

.info-item strong,
.info-item span {
    display: block;
}

.info-item strong {
    color: var(--color-ink);
    font-weight: 600;
}

.info-item span {
    color: var(--color-muted);
    font-size: 0.95rem;
}

.info-payment-icons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.5rem;
}

.info-payment-slot {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    min-width: 3rem;
    height: 3rem;
    border-radius: var(--radius-sm);
    outline: none;
}

.info-payment-slot:focus-visible {
    box-shadow: 0 0 0 3px rgba(10, 117, 187, 0.2);
}

.info-payment-icon {
    display: inline-block;
    width: 2.5rem;
    height: 2.5rem;
    aspect-ratio: 1;
    object-fit: contain;
    border-radius: 0.6rem;
}

.info-payment-icon-cashea {
    background: #fbff25;
}

.info-payment-icon-pago-movil {
    filter: saturate(1.06) contrast(1.08);
}

.info-payment-tooltip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 0.45rem);
    z-index: 3;
    width: max-content;
    max-width: 9rem;
    padding: 0.35rem 0.55rem;
    color: var(--color-white);
    background: var(--color-ink);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-card);
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 0.25rem);
    transition: opacity 180ms ease, transform 180ms ease;
}

.info-payment-tooltip::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 100%;
    border: 0.32rem solid transparent;
    border-top-color: var(--color-ink);
    transform: translateX(-50%);
}

.info-payment-slot:hover .info-payment-tooltip,
.info-payment-slot:focus-visible .info-payment-tooltip {
    opacity: 1;
    transform: translate(-50%, 0);
}

.location-visual {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(220px, 0.7fr);
    gap: 0.85rem;
}

.location-map {
    position: relative;
    min-height: 480px;
    overflow: hidden;
    background: var(--color-white);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.location-map iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.map-overlay {
    position: absolute;
    right: 0.85rem;
    bottom: 0.85rem;
    padding: 0.6rem 0.9rem;
    color: var(--color-ink);
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 999px;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.map-overlay:hover {
    color: var(--color-white);
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
}

.location-route-video {
    position: relative;
    min-height: 480px;
    overflow: hidden;
    background: var(--color-ink);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.location-route-video video {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 480px;
    object-fit: cover;
}

/* ─── PARTNERS ─── */

.partners {
    overflow: hidden;
    background:
        linear-gradient(180deg, #fbfbf8 0%, #ffffff 42%, #f4faf8 100%);
}

.partners::after {
    bottom: auto;
    top: calc(clamp(4.5rem, 9vw, 8rem) * -0.58);
    background: linear-gradient(180deg, rgba(248, 251, 251, 0), rgba(255, 255, 255, 0.9) 68%);
}

.services::before {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.34)),
        url('../images/logo/centro-diagnostico-salud-icon.png');
    background-size: auto, clamp(4.4rem, 5.6vw, 5.8rem);
    background-position: center, clamp(0.75rem, 3vw, 2.25rem) clamp(1rem, 3vw, 2rem);
    background-repeat: no-repeat, repeat;
    opacity: 0.13;
    transform: rotate(-6deg) scale(1.08);
    transform-origin: center;
}

.attention::before {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.42) 54%, rgba(255, 255, 255, 0.82) 100%),
        url('../images/logo/centro-diagnostico-salud-icon.png') right clamp(-5rem, -5vw, -2rem) top clamp(2rem, 5vw, 4rem) / clamp(18rem, 28vw, 30rem) auto no-repeat,
        url('../images/logo/centro-diagnostico-salud-icon.png') left clamp(1rem, 7vw, 6rem) bottom clamp(2rem, 5vw, 4rem) / clamp(7rem, 10vw, 10rem) auto no-repeat;
    opacity: 0.16;
    transform: none;
}

.occupational::before {
    background:
        linear-gradient(180deg, rgba(7, 20, 22, 0.78), rgba(16, 43, 44, 0.88)),
        url('../images/logo/centro-diagnostico-salud-icon.png'),
        url('../images/logo/centro-diagnostico-salud-icon.png');
    background-size: auto, clamp(5rem, 6.5vw, 6.75rem), clamp(13rem, 18vw, 18rem);
    background-position: center, clamp(1.5rem, 4vw, 3.5rem) clamp(1rem, 3vw, 2.5rem), right clamp(-3rem, -4vw, -1.5rem) bottom clamp(1.5rem, 4vw, 3.5rem);
    background-repeat: no-repeat, repeat, no-repeat;
    opacity: 0.36;
    transform: rotate(-8deg) scale(1.08);
    transform-origin: center;
}

.about::before {
    background:
        linear-gradient(90deg, rgba(237, 248, 248, 0.56), rgba(255, 255, 255, 0.08) 46%, rgba(255, 255, 255, 0.38)),
        url('../images/logo/centro-diagnostico-salud-icon.png') left clamp(-7rem, -7vw, -3rem) center / clamp(22rem, 34vw, 38rem) auto no-repeat;
    opacity: 0.18;
    transform: none;
}

.location::before {
    background:
        linear-gradient(126deg, rgba(255, 255, 255, 0.88) 0 34%, rgba(236, 247, 251, 0.62) 34% 64%, rgba(255, 255, 255, 0.34) 64%),
        url('../images/logo/centro-diagnostico-salud-icon.png');
    background-size: auto, clamp(7rem, 10vw, 10rem);
    background-position: center, right clamp(0.5rem, 4vw, 3.5rem) top clamp(1rem, 4vw, 3rem);
    background-repeat: no-repeat, repeat-y;
    opacity: 0.14;
    transform: skewY(-3deg);
    transform-origin: center;
}

.partners::before {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(244, 250, 248, 0.44)),
        url('../images/logo/centro-diagnostico-salud-icon.png') left clamp(1rem, 6vw, 5rem) top clamp(1rem, 4vw, 3rem) / clamp(6rem, 8vw, 8rem) auto no-repeat,
        url('../images/logo/centro-diagnostico-salud-icon.png') right clamp(1rem, 5vw, 4rem) bottom clamp(1rem, 4vw, 3rem) / clamp(10rem, 14vw, 14rem) auto no-repeat;
    opacity: 0.15;
    transform: rotate(4deg) scale(1.04);
    transform-origin: center;
}

.partners .section-header {
    margin-bottom: 1.5rem;
}

.partners-layout {
    display: grid;
    gap: clamp(2rem, 5vw, 4rem);
}

.partners-group {
    position: relative;
}

.partners-group-header {
    display: grid;
    margin-bottom: clamp(0.85rem, 2vw, 1.25rem);
    justify-items: start;
}

.partners-group-header h3 {
    color: var(--color-muted);
    font-family: var(--font-display);
    font-size: clamp(0.82rem, 1.1vw, 0.95rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.1;
    text-transform: uppercase;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.5rem, 5vw, 4rem);
    align-items: center;
    justify-items: center;
}

.partner-logo {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    min-height: 7rem;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.partner-logo img {
    width: min(82%, 300px);
    max-height: 5.75rem;
    object-fit: contain;
    filter: none;
    transform: translateZ(0);
}

.partner-logo span {
    color: var(--color-primary-deep);
    font-family: var(--font-display);
    font-size: clamp(1rem, 1.5vw, 1.18rem);
    font-weight: 700;
    line-height: 1.2;
}

.partners-group-insurance {
    padding-top: clamp(2rem, 5vw, 3.5rem);
    border-top: 1px solid rgba(0, 95, 102, 0.13);
}

.insurance-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.insurance-logo {
    display: grid;
    min-height: clamp(6.8rem, 10vw, 8.4rem);
    padding: clamp(1rem, 2vw, 1.35rem);
    place-items: center;
    border: 1px solid rgba(0, 95, 102, 0.1);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 16px 40px rgba(0, 44, 44, 0.06);
    transition: border-color 260ms ease, box-shadow 260ms ease, transform 260ms var(--transition-smooth);
}

.insurance-logo:hover {
    border-color: rgba(0, 159, 157, 0.28);
    box-shadow: 0 22px 54px rgba(0, 44, 44, 0.1);
    transform: translateY(-2px);
}

.insurance-logo-dark {
    border-color: rgba(0, 95, 102, 0.22);
    background: var(--color-primary-deep);
}

.insurance-logo img {
    width: min(100%, 220px);
    max-height: 4.8rem;
    object-fit: contain;
}

.insurance-logo-tall img {
    max-height: 5.8rem;
}

.insurance-logo-wide img {
    width: min(100%, 250px);
    max-height: 5.2rem;
}

/* ─── FOOTER ─── */

.footer {
    position: relative;
    overflow: hidden;
    padding: 4.5rem 0 1.5rem;
    color: rgba(255, 255, 255, 0.72);
    background:
        radial-gradient(circle at 8% 0%, rgba(0, 159, 157, 0.22), rgba(0, 159, 157, 0) 34%),
        linear-gradient(135deg, #071012 0%, #091719 48%, #05090b 100%);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(0, 159, 157, 0), rgba(0, 159, 157, 0.75), rgba(0, 159, 157, 0));
}

.footer::after {
    content: '+';
    position: absolute;
    right: clamp(1rem, 6vw, 6rem);
    bottom: -4.8rem;
    color: rgba(0, 159, 157, 0.08);
    font-size: clamp(12rem, 22vw, 22rem);
    font-weight: 800;
    line-height: 1;
    pointer-events: none;
}

.footer-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(18rem, 1.35fr) minmax(13rem, 0.8fr) minmax(10rem, 0.55fr) minmax(9rem, 0.6fr);
    gap: clamp(2rem, 6vw, 5rem);
    align-items: start;
}

.footer-logo {
    width: min(340px, 72vw);
    height: auto;
    margin-bottom: 1.25rem;
}

.footer-brand p {
    max-width: 380px;
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.7;
}

.footer-brand .footer-rif {
    margin-top: 0.65rem;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.footer-social {
    display: flex;
    gap: 0.7rem;
    margin-top: 1.15rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.06);
    transition: transform 300ms ease, border-color 300ms ease, background 300ms ease, color 300ms ease;
}

.footer-social a:hover {
    border-color: rgba(0, 159, 157, 0.55);
    color: var(--color-white);
    background: var(--color-primary);
    transform: translateY(-2px);
}

.footer-heading {
    margin: 0 0 1rem;
    color: var(--color-white);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1;
    text-transform: uppercase;
}

.footer-heading::after {
    content: '';
    display: block;
    width: 2.4rem;
    height: 2px;
    margin-top: 0.6rem;
    border-radius: 999px;
    background: var(--color-accent);
}

.footer-contact,
.footer-links,
.footer-portal {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
}

.footer-contact a,
.footer-contact p:not(.footer-heading),
.footer-links a,
.footer-portal a {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.45;
    transition: color 300ms ease, transform 300ms ease;
}

.footer-contact p:not(.footer-heading) {
    max-width: none;
    margin: 0;
}

.footer-contact svg {
    flex: 0 0 auto;
    color: var(--color-primary);
}

.footer-contact a:hover,
.footer-links a:hover,
.footer-portal a:hover {
    color: var(--color-white);
    transform: translateX(3px);
}

.footer-bottom {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 3.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    max-width: none;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ─── FLOATING WHATSAPP ─── */

.floating-whatsapp {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    pointer-events: none;
}

.floating-call {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    min-height: 3.25rem;
    padding: 0;
    color: var(--color-white);
    font-weight: 600;
    line-height: 1;
    background: #25D366;
    border: none;
    border-radius: 999px;
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.35);
    pointer-events: auto;
    transition: transform 400ms var(--transition-smooth), box-shadow 400ms var(--transition-smooth);
}

.floating-call.is-vibrating {
    animation: whatsapp-vibrate 520ms ease-in-out 2;
}

.floating-call:hover {
    transform: translateY(-2px) scale(1.08);
    box-shadow: 0 12px 36px rgba(37, 211, 102, 0.45);
}

.floating-call svg {
    color: white;
}

.floating-whatsapp-message {
    position: fixed;
    right: 5.3rem;
    bottom: 1.56rem;
    z-index: 999;
    max-width: min(60vw, 12rem);
    padding: 0.74rem 1rem 0.78rem 1.62rem;
    color: #083834;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(237, 255, 247, 0.98));
    border: 1px solid rgba(37, 211, 102, 0.24);
    border-radius: 1rem 1rem 0.35rem 1rem;
    box-shadow:
        0 18px 42px rgba(6, 37, 34, 0.16),
        0 0 0 1px rgba(255, 255, 255, 0.74) inset;
    opacity: 0;
    transform: translateX(0.45rem) translateY(0.2rem) scale(0.96);
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 260ms ease,
        transform 260ms var(--transition-smooth),
        visibility 260ms ease;
}

.floating-whatsapp-message::after {
    position: absolute;
    right: -0.35rem;
    top: 50%;
    width: 0.7rem;
    height: 0.7rem;
    content: "";
    background: linear-gradient(135deg, rgba(246, 255, 251, 0.98), rgba(237, 255, 247, 0.98));
    border-top: 1px solid rgba(37, 211, 102, 0.18);
    border-right: 1px solid rgba(37, 211, 102, 0.18);
    transform: translateY(-50%) rotate(45deg);
}

.floating-whatsapp-message::before {
    position: absolute;
    left: 0.72rem;
    top: 50%;
    width: 0.42rem;
    height: 0.42rem;
    content: "";
    background: #25D366;
    border-radius: 999px;
    box-shadow: 0 0 0 0.24rem rgba(37, 211, 102, 0.12);
    transform: translateY(-50%);
}

.floating-whatsapp-message.is-visible {
    opacity: 1;
    transform: translateX(0) translateY(0) scale(1);
    visibility: visible;
}

@keyframes whatsapp-vibrate {
    0%,
    100% {
        transform: translateX(0) rotate(0);
    }

    18% {
        transform: translateX(-2px) rotate(-5deg);
    }

    36% {
        transform: translateX(2px) rotate(5deg);
    }

    54% {
        transform: translateX(-2px) rotate(-4deg);
    }

    72% {
        transform: translateX(2px) rotate(4deg);
    }
}

/* ─── FOCUS ─── */

a:focus-visible,
button:focus-visible {
    outline: 2px solid rgba(0, 159, 157, 0.5);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ─── RESPONSIVE: TABLET ─── */

@media (max-width: 1020px) {
    :root {
        --header-height: 68px;
    }

    .nav {
        position: fixed;
        inset: 0;
        z-index: 80;
        display: none;
        padding: 6rem 1.4rem 2rem;
        color: var(--color-white);
        background:
            radial-gradient(circle at top left, rgba(0, 159, 157, 0.18), transparent 36%),
            linear-gradient(165deg, rgba(7, 18, 20, 0.995), rgba(0, 45, 47, 0.995));
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(28px) saturate(150%);
        -webkit-backdrop-filter: blur(28px) saturate(150%);
    }

    .nav.mobile-open {
        display: block;
    }

    .nav-list {
        align-items: flex-start;
        flex-direction: column;
        gap: 1rem;
    }

    .nav-link {
        color: rgba(255, 255, 255, 0.65);
        font-family: var(--font-display);
        font-size: 2.4rem;
        font-weight: 500;
        line-height: 1.1;
        letter-spacing: -0.02em;
    }

    .menu-toggle {
        position: relative;
        z-index: 90;
        display: flex;
    }

    .menu-toggle.active {
        color: var(--color-white);
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.22);
    }

    .hero-content,
    .attention-grid,
    .occupational-grid,
    .about-grid,
    .location-grid,
    .location-visual {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
    }

    .hero-content {
        min-height: auto;
        padding: calc(var(--header-height) + 2rem) 0 2rem;
        text-align: center;
    }

    .hero-copy {
        max-width: 640px;
        margin: 0 auto;
        order: 1;
    }

    .hero-title {
        font-size: clamp(2.75rem, 6vw, 4.2rem);
    }

    .hero-text {
        max-width: 480px;
        margin: 1.25rem auto 0;
    }

    .hero-actions {
        margin: 1.75rem auto 0;
    }

    .hero-media-wrap {
        max-height: 50vh;
        aspect-ratio: 16 / 10;
        max-width: 640px;
        margin: 0 auto;
        width: 100%;
        order: 0;
    }

    .hero-media-wrap .hero-media {
        width: calc(100% - 3px);
        height: calc(100% - 3px);
    }

    .hero::before {
        display: none;
    }

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

    .insurance-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .attention-list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: clamp(2rem, 4vw, 3rem);
    }

    .partner-logo {
        min-height: 10rem;
        padding: 1.5rem;
    }

    .partner-logo img {
        width: min(80%, 220px);
    }

    .location-map {
        min-height: 400px;
    }

    .location-route-video,
    .location-route-video video {
        min-height: 400px;
    }
}

/* ─── RESPONSIVE: MOBILE ─── */

@media (max-width: 720px) {
    body {
        font-size: 1rem;
    }

    .container {
        width: min(100% - 1.25rem, var(--container));
    }

    .section {
        padding: 3.5rem 0;
    }

    .brand {
        gap: 0.42rem;
    }

    .brand-logo {
        height: 44px;
        max-width: min(46vw, 175px);
    }

    .brand-mark {
        height: 2.45rem;
    }

    .btn-header {
        display: none;
    }

    .header-social-link {
        width: 2.25rem;
        height: 2.25rem;
    }

    .hero {
        min-height: auto;
    }

    .hero-content {
        min-height: auto;
        padding: calc(var(--header-height) + 1.5rem) 0 1.5rem;
    }

    .hero-media-wrap {
        max-height: 50vh;
    }

    .hero-video,
    .video-sound-toggle {
        display: none;
    }

    .hero-media.video-ready .hero-video-intro {
        opacity: 1;
        transform: scale(1);
        filter: none;
    }

    .hero-title {
        font-size: clamp(2.5rem, 8vw, 3.35rem);
        line-height: 1.05;
    }

    .hero-text {
        max-width: none;
        margin-top: 1.1rem;
        font-size: 1.06rem;
        line-height: 1.55;
    }

    .hero-actions {
        margin: 1.5rem auto 0;
    }

    .hero-actions-row {
        gap: 0.5rem;
    }

    .hero-actions-row .btn {
        flex: 1 1 calc(33.333% - 0.5rem);
        min-height: 2.6rem;
        padding: 0.55rem 0.6rem;
        font-size: 0.82rem;
    }

    .nav-link {
        font-size: 2rem;
    }

    .section-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .partners-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .partner-logo {
        min-height: 8.25rem;
        padding: 0.85rem;
    }

    .partner-logo img {
        width: min(86%, 150px);
        max-height: 4.4rem;
    }

    .partner-logo span {
        font-size: 0.86rem;
        line-height: 1.15;
        text-wrap: balance;
    }

    .insurance-grid {
        gap: 0.75rem;
    }

    .insurance-logo {
        min-height: 6.5rem;
        padding: 0.85rem;
    }

    .insurance-logo img {
        max-height: 4rem;
    }

    .insurance-logo-tall img {
        max-height: 4.8rem;
    }

    .insurance-logo-wide img {
        max-height: 4.4rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: auto;
        gap: 0.85rem;
        align-items: start;
    }

    .service-card.with-image {
        height: auto;
        grid-template-rows: auto auto auto;
    }

    .service-card h3 {
        font-size: 0.95rem;
    }

    .service-card.with-image h3 {
        min-height: 2.65em;
        justify-content: center;
        padding: 0.9rem 0.85rem 0.45rem;
        color: var(--color-ink);
        font-size: 0.98rem;
        font-weight: 700;
        line-height: 1.2;
        letter-spacing: 0;
        text-align: center;
        text-wrap: balance;
    }

    .service-details {
        gap: 0.45rem;
        padding: 0 0.85rem 1.1rem;
    }

    .service-details li {
        min-height: 1.6rem;
        padding: 0.28rem 0.55rem;
        font-size: 0.78rem;
    }

    .service-card.with-image .service-action {
        width: 3rem;
        height: 3rem;
        margin: 0 0.75rem 0.75rem 0;
    }

    .attention-list,
    .about-statements {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .attention-list {
        gap: 0.85rem;
    }

    .attention-list article {
        min-height: 11.5rem;
        padding: 1rem 0.75rem;
    }

    .attention-list article.is-selected {
        min-height: 13.5rem;
    }

    .attention-list strong {
        display: flex;
        min-height: 2.5em;
        align-items: center;
        justify-content: center;
        font-size: 0.88rem;
        line-height: 1.2;
        letter-spacing: 0;
        text-wrap: balance;
    }

    .specialty-action {
        padding: 0.45rem 0.85rem;
        font-size: 0.82rem;
    }

    .occupational-panel article {
        grid-template-columns: 1fr;
    }

    .occupational-panel span {
        grid-row: auto;
    }

    .floating-call {
        right: 0.85rem;
        bottom: 0.85rem;
        width: 3rem;
        height: 3rem;
        min-width: 3rem;
        min-height: 3rem;
        padding: 0;
    }

    .floating-whatsapp {
        right: 0.85rem;
        bottom: 0.85rem;
        gap: 0.6rem;
    }

    .floating-whatsapp-message {
        right: 4.65rem;
        bottom: 1.28rem;
        max-width: calc(100vw - 5.5rem);
        padding: 0.62rem 0.78rem;
        font-size: 0.95rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.25rem;
    }

    .footer-bottom {
        flex-direction: column;
        margin-top: 2.5rem;
    }
}

/* ─── RESPONSIVE: SMALL ─── */

@media (max-width: 420px) {
    .brand-logo {
        max-width: min(42vw, 150px);
    }

    .brand-mark {
        height: 2.2rem;
    }

    .hero-title {
        font-size: 2.75rem;
    }

    .hero-actions {
        gap: 0.65rem;
    }

    .hero-actions-row {
        gap: 0.45rem;
    }

    .hero-actions-row .btn {
        flex: 1 1 calc(50% - 0.45rem);
        min-height: 2.5rem;
        padding: 0.5rem 0.5rem;
        font-size: 0.78rem;
    }

    .hero-actions .btn-primary {
        min-height: 3.2rem;
        font-size: 0.95rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .service-card.with-image h3 {
        min-height: 2.8em;
        padding: 0.8rem 0.6rem 0.35rem;
        font-size: 0.88rem;
        line-height: 1.15;
        overflow-wrap: anywhere;
    }

    .service-details {
        padding: 0 0.6rem 1rem;
    }

    .service-details li {
        font-size: 0.72rem;
        min-height: 1.5rem;
        padding: 0.22rem 0.45rem;
    }

    .service-card.with-image .service-action {
        width: 2.8rem;
        height: 2.8rem;
        margin: 0 0.6rem 0.6rem 0;
    }

    .attention-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .attention-list article {
        min-height: 10.5rem;
        padding: 0.9rem 0.6rem;
    }

    .attention-list article.is-selected {
        min-height: 12.5rem;
    }

    .attention-list strong {
        font-size: 0.84rem;
        line-height: 1.18;
        overflow-wrap: anywhere;
    }

    .specialty-icon {
        width: clamp(3.9rem, 18vw, 4.75rem);
        height: clamp(3.9rem, 18vw, 4.75rem);
    }

    .about-statements {
        grid-template-columns: 1fr;
    }

    .specialty-action {
        padding-inline: 0.6rem;
    }
}
