:root {
    --navy: #262161;
    --navy-2: #18154f;
    --green: #6fb43f;
    --green-2: #5da334;
    --gray: #727572;
    --ice: #f7f3ec;
    --line: #e8e1d6;
    --ink: #101828;
    /* Calm Premium Clinical */
    --canvas: #fbfaf7;
    --paper: #ffffff;
    --warm: #f5f1ea;
    --warm-line: #ece5da;
    --muted: #6f6d68;
    --ink-2: #2c2a33;
}

.font-display {
    font-family: "Outfit", "Plus Jakarta Sans", Inter, system-ui, sans-serif;
}

.bg-colinas-navy {
    background-color: var(--navy);
}

.bg-colinas-green {
    background-color: var(--green);
}

.text-colinas-navy {
    color: var(--navy);
}

.text-colinas-green {
    color: var(--green);
}

html {
    scroll-behavior: smooth;
}

main section[id] {
    scroll-margin-top: 9rem;
}

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

body {
    letter-spacing: 0;
    background-color: var(--canvas);
    color: var(--ink-2);
}

*,
*::before,
*::after {
    min-width: 0;
}

::selection {
    background: rgba(111, 180, 63, .22);
}

.skip-link {
    position: fixed;
    left: 1rem;
    top: .75rem;
    z-index: 100;
    transform: translateY(-150%);
    border-radius: 8px;
    background: #fff;
    padding: .75rem 1rem;
    color: var(--navy);
    font-size: .875rem;
    font-weight: 900;
    box-shadow: 0 16px 40px rgba(38, 33, 97, .15);
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 70;
    background: #fff;
}

.utility-bar {
    background: linear-gradient(90deg, var(--navy), #201b67);
    color: #fff;
    font-size: .84rem;
    font-weight: 800;
}

.utility-bar>div {
    min-height: 42px;
}

.utility-link {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    color: rgba(255, 255, 255, .9);
    transition: color .2s ease;
}

.utility-link:hover {
    color: #fff;
}

.utility-emergency {
    color: #fff;
}

.utility-emergency svg {
    color: #ff6b6b;
    fill: rgba(255, 107, 107, .15);
}

.main-nav {
    border-bottom: 1px solid #ede7dd;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(14px);
}

.site-header.is-scrolled .main-nav {
    box-shadow: 0 12px 28px rgba(38, 33, 97, .08);
}

/* ============ MAIN NAV (clean rewrite) ============ */
.main-nav-inner {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.brand-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    min-width: 0;
}

.brand-logo {
    height: 72px;
    width: auto;
    max-width: 320px;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    transition: transform .25s ease;
}

.brand-link:hover .brand-logo {
    transform: translateY(-1px);
}

@media (min-width: 1280px) {
    .brand-logo {
        height: 80px;
        max-width: 360px;
    }
}

/* DEFAULT: mobile-first — hamburger always visible, desktop nav hidden */
.nav-primary,
.nav-actions {
    display: none;
}

.mobile-toggle {
    display: inline-flex;
    height: 42px;
    width: 42px;
    margin-left: auto;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    background: rgba(38, 33, 97, 0.05);
    color: var(--navy);
    cursor: pointer;
    transition: background .2s ease, transform .1s ease, color .2s ease;
}

.mobile-toggle:hover {
    background: rgba(38, 33, 97, 0.08);
}

.mobile-toggle:active {
    transform: scale(0.95);
    background: rgba(38, 33, 97, 0.12);
}

/* Mobile menu panel */
.mobile-menu {
    border-top: 1px solid #e5edf5;
    background: #fff;
    padding: 1rem;
    box-shadow: 0 18px 40px rgba(38, 33, 97, .08);
}

.mobile-menu.hidden {
    display: none;
}

.mobile-menu-inner {
    display: grid;
    gap: .25rem;
}

.mobile-link {
    display: flex;
    align-items: center;
    gap: .55rem;
    width: 100%;
    border: 0;
    background: transparent;
    border-radius: 10px;
    padding: .9rem 1rem;
    color: #403c36;
    font-size: .98rem;
    font-weight: 900;
    text-align: left;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.mobile-link:hover,
.mobile-link:active {
    background: #f4f0e9;
    color: var(--navy);
}

.mobile-group {
    border-radius: 10px;
}

.mobile-group summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    padding: .9rem 1rem;
    border-radius: 10px;
    color: #403c36;
    font-size: .98rem;
    font-weight: 900;
    cursor: pointer;
    list-style: none;
    transition: background .2s ease;
}

.mobile-group summary::-webkit-details-marker {
    display: none;
}

.mobile-group summary:hover {
    background: #f4f0e9;
    color: var(--navy);
}

.mobile-group summary svg {
    transition: transform .2s ease;
}

.mobile-group[open] summary {
    background: #eef2f9;
    color: var(--navy);
}

.mobile-group[open] summary svg {
    transform: rotate(180deg);
}

.mobile-sub {
    display: grid;
    gap: .15rem;
    padding: .35rem 0 .25rem 1.5rem;
    border-left: 2px solid #e5edf5;
    margin-left: 1rem;
    margin-top: .25rem;
}

.mobile-sub-link {
    display: block;
    padding: .65rem .85rem;
    border-radius: 8px;
    color: #57534c;
    font-size: .9rem;
    font-weight: 850;
    transition: background .2s ease, color .2s ease;
}

.mobile-sub-link:hover {
    background: #f4f0e9;
    color: var(--navy);
}

/* ============ DESKTOP NAV — aparece a ≥1280px ============
   El header lleva dos CTAs (Ver resultados + Agendar cita) dentro de un
   contenedor capado a max-w-7xl (~1216px útiles a cualquier ancho de pantalla),
   así que el menú se mantiene compacto en una sola línea y la búsqueda queda
   como ícono. Debajo de 1280px se usa el menú hamburguesa. */
@media (min-width: 1280px) {
    .nav-primary {
        display: flex !important;
        align-items: center;
        gap: .95rem;
        margin-left: auto;
    }

    .nav-actions {
        display: flex !important;
        align-items: center;
        gap: .5rem;
        margin-left: 1rem;
        flex-shrink: 0;
    }

    .nav-cta {
        padding: .72rem .95rem;
        font-size: .85rem;
    }

    .mobile-toggle {
        display: none !important;
    }

    .mobile-menu {
        display: none !important;
    }
}

.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    min-height: 44px;
    border-radius: 10px;
    padding: 0 .25rem;
    color: #1f2a44;
    font-size: .95rem;
    font-weight: 850;
    letter-spacing: .005em;
    white-space: nowrap;
    background: transparent;
    border: 0;
    cursor: pointer;
    transition: color .2s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: .25rem;
    right: .25rem;
    bottom: 6px;
    height: 2px;
    border-radius: 2px;
    background: var(--green);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .25s ease;
}

.nav-link:hover,
.nav-link.is-active,
.nav-dropdown.is-open .nav-dropdown-toggle {
    color: var(--navy);
}

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

/* ============ Dropdown ============ */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle svg {
    transition: transform .2s ease;
}

.nav-dropdown.is-open .nav-dropdown-toggle svg {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    z-index: 80;
    min-width: 240px;
    padding: .5rem;
    border-radius: 14px;
    border: 1px solid #e5edf5;
    background: #fff;
    box-shadow: 0 24px 50px rgba(38, 33, 97, .15);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.nav-dropdown.is-open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .7rem .85rem;
    border-radius: 10px;
    color: #403c36;
    font-size: .92rem;
    font-weight: 850;
    transition: background .2s ease, color .2s ease;
}

.nav-dropdown-menu a svg {
    color: var(--green);
    flex-shrink: 0;
}

.nav-dropdown-menu a:hover {
    background: #f4f0e9;
    color: var(--navy);
}

/* ============ Nav-actions: Buscar icon + Agendar pill ============ */
.nav-search {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: var(--navy);
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease;
}

.nav-search:hover {
    background: #f4f0e9;
    border-color: var(--navy);
}

.nav-cta {
    padding: .85rem 1.15rem;
    font-size: .9rem;
    white-space: nowrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    border-radius: 12px;
    border: 1px solid transparent;
    padding: .9rem 1.3rem;
    font-size: .9rem;
    font-weight: 900;
    line-height: 1;
    transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

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

.btn-lg {
    padding: 1.05rem 1.45rem;
}

.btn-green {
    background: var(--green);
    color: #fff;
    box-shadow: 0 12px 24px rgba(111, 180, 63, .22);
}

.btn-green:hover {
    background: var(--green-2);
}

.btn-navy {
    background: var(--navy);
    color: #fff;
    box-shadow: 0 12px 24px rgba(38, 33, 97, .22);
}

.btn-navy:hover {
    background: var(--navy-2);
}

.btn-outline {
    border-color: var(--warm-line);
    background: var(--paper);
    color: var(--navy);
}

.btn-outline:hover {
    border-color: var(--navy);
    box-shadow: 0 10px 24px rgba(38, 33, 97, .09);
}

.btn-outline-white {
    border-color: rgba(255, 255, 255, .34);
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, .14);
}

.btn-emergency {
    border-color: #fecaca;
    background: #fff5f5;
    color: #b91c1c;
    box-shadow: 0 12px 24px rgba(185, 28, 28, .08);
}

.btn-emergency:hover {
    border-color: #ef4444;
    background: #fee2e2;
}

/* ============ HERO ULTRA PREMIUM (ASYMMETRIC) ============ */
.hero-ultra {
    position: relative;
    min-height: calc(100vh - 110px);
    background: var(--navy);
    overflow: hidden;
}

.hero-ultra-split {
    display: grid;
    grid-template-columns: 55% 45%;
    min-height: calc(100vh - 110px);
}

.hero-ultra-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 4rem 8rem 8%;
    position: relative;
    z-index: 2;
}

.hero-ultra-content {
    max-width: 650px;
    animation: fadeUp 1s ease-out forwards;
}

.hero-ultra-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1.25rem;
    border-radius: 999px;
    background: rgba(111, 180, 63, 0.15);
    border: 1px solid rgba(111, 180, 63, 0.3);
    padding: .4rem 1rem;
    color: var(--green);
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.hero-ultra-title {
    color: #ffffff;
    font-family: "Outfit", "Plus Jakarta Sans", Inter, system-ui, sans-serif;
    font-size: clamp(2.3rem, 3.5vw, 4rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -.03em;
    text-wrap: balance;
    margin-bottom: 1.2rem;
}

.hero-ultra-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 580px;
    font-weight: 300;
}

.hero-ultra-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.ultra-stat {
    display: flex;
    flex-direction: column;
}

.ultra-stat b {
    color: #fff;
    font-size: 1.9rem;
    font-weight: 900;
    line-height: 1;
}

.ultra-stat span {
    color: var(--green);
    font-size: 0.85rem;
    font-weight: 700;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-ultra-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.btn-glow {
    box-shadow: 0 0 24px rgba(111, 180, 63, 0.4);
}
.btn-glow:hover {
    box-shadow: 0 0 32px rgba(111, 180, 63, 0.6);
}

.hero-ultra-right {
    position: relative;
    overflow: hidden;
    clip-path: polygon(10% 0, 100% 0, 100% 100%, 0% 100%);
}

.hero-ultra-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    animation: slowZoom 25s ease-out forwards;
}

/* --- Floating Dock --- */
.hero-ultra-dock-container {
    position: absolute;
    bottom: 2rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    z-index: 10;
    pointer-events: none; /* Let clicks pass through container */
}

.hero-ultra-dock {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    pointer-events: auto; /* Enable clicks on the dock */
    animation: fadeUp 1s ease-out 0.5s forwards;
    opacity: 0;
}

.ultra-dock-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 999px;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.ultra-dock-item:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--green);
}

.ultra-dock-item i {
    opacity: 0.8;
}

/* --- Responsive --- */
@media (max-width: 1200px) {
    .hero-ultra-left {
        padding: 4rem 3rem 8rem 5%;
    }
    .hero-ultra-right {
        clip-path: polygon(5% 0, 100% 0, 100% 100%, 0% 100%);
    }
}

@media (max-width: 992px) {
    .hero-ultra {
        min-height: auto;
    }
    .hero-ultra-split {
        grid-template-columns: 1fr;
        grid-template-rows: auto 40vh;
        min-height: auto;
    }
    .hero-ultra-right {
        clip-path: none;
    }
    .hero-ultra-left {
        padding: 9rem 2rem 4rem 2rem;
        align-items: center;
        text-align: center;
    }
    .hero-ultra-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .hero-ultra-stats {
        justify-content: center;
    }
    .hero-ultra-actions {
        justify-content: center;
    }
    .hero-ultra-dock-container {
        position: relative;
        bottom: 0;
        background: var(--navy);
        padding: 1.5rem 1rem 3rem 1rem;
        margin-top: -2px; /* Fix subpixel rendering gap */
    }
    .hero-ultra-dock {
        flex-wrap: wrap;
        border-radius: 16px;
        justify-content: center;
        gap: 0.5rem;
    }
}

@media (max-width: 640px) {
    .hero-ultra-left {
        padding: 8rem 1.25rem 3rem 1.25rem;
    }
    .hero-ultra-title {
        font-size: 2.3rem;
        margin-bottom: 1rem;
    }
    .hero-ultra-text {
        font-size: 1.05rem;
        margin-bottom: 2rem;
    }
    .hero-ultra-stats {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem 2rem;
        margin-bottom: 2.5rem;
    }
    .ultra-stat b {
        font-size: 1.8rem;
    }
    .ultra-stat span {
        font-size: 0.75rem;
    }
    .hero-ultra-actions {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }
    .hero-ultra-actions .btn {
        width: 100%;
        justify-content: center;
    }
    .hero-ultra-split {
        grid-template-rows: auto 30vh;
    }
    .hero-ultra-dock-container {
        padding: 0.5rem 0.75rem 2rem 0.75rem;
    }
    .hero-ultra-dock {
        padding: 0;
        background: none;
        box-shadow: none;
        border: none;
        gap: 0.5rem;
    }
    .ultra-dock-item {
        flex: 1 1 calc(50% - 0.5rem);
        justify-content: center;
        padding: 0.85rem 0.5rem;
        font-size: 0.85rem;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 12px;
    }
}

@keyframes slowZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.08); }
}

@keyframes fadeUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

.hero-pathways {
    margin-top: 1.5rem;
    display: grid;
    max-width: 720px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid #dce6f0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 46px rgba(38, 33, 97, .07);
}

.hero-pathways a {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: .75rem;
    min-height: 112px;
    padding: 1rem;
    color: var(--navy);
    transition: background .2s ease;
}

.hero-pathways a+a {
    border-left: 1px solid #ebe4d9;
}

.hero-pathways a:hover {
    background: #faf7f1;
}

.hero-pathways svg {
    color: var(--green);
    margin-top: .1rem;
}

.hero-pathways strong {
    display: block;
    color: var(--navy);
    font-size: .9rem;
    font-weight: 950;
    line-height: 1.25;
}

.hero-pathways small {
    display: block;
    margin-top: .35rem;
    color: #6f6d68;
    font-size: .78rem;
    font-weight: 750;
    line-height: 1.4;
}

.hero-proof {
    margin-top: 2rem;
    display: grid;
    max-width: 720px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid #dce6f0;
    border-bottom: 1px solid #dce6f0;
}

.hero-proof span {
    display: grid;
    gap: .25rem;
    padding: 1rem 1rem 1rem 0;
    color: #6f6d68;
    font-size: .78rem;
    font-weight: 800;
    line-height: 1.35;
}

.hero-proof span+span {
    border-left: 1px solid #dce6f0;
    padding-left: 1rem;
}

.hero-proof b {
    display: block;
    color: var(--navy);
    font-family: "Outfit", "Plus Jakarta Sans", Inter, system-ui, sans-serif;
    font-size: 1.75rem;
    font-weight: 950;
    line-height: 1;
}

.hero-media-stack {
    position: relative;
    min-height: 650px;
}

.hero-visual {
    position: absolute;
    inset: 0 0 7.2rem 0;
    overflow: hidden;
    border: 1px solid rgba(38, 33, 97, .1);
    border-radius: 8px;
    background: #efe9e0;
    box-shadow: 0 34px 70px rgba(38, 33, 97, .18);
}

.hero-visual::before {
    position: absolute;
    inset: auto 0 0;
    z-index: 1;
    height: 32%;
    content: "";
    background: linear-gradient(180deg, transparent, rgba(2, 6, 23, .36));
    pointer-events: none;
}

.hero-callout {
    position: absolute;
    left: 1.2rem;
    top: 1.2rem;
    z-index: 2;
    display: flex;
    max-width: 255px;
    gap: .85rem;
    border: 1px solid rgba(255, 255, 255, .78);
    border-radius: 8px;
    background: rgba(255, 255, 255, .92);
    padding: 1rem;
    box-shadow: 0 20px 44px rgba(38, 33, 97, .18);
    backdrop-filter: blur(12px);
}

.hero-callout svg {
    color: var(--green);
    flex-shrink: 0;
}

.hero-callout strong {
    display: block;
    color: var(--navy);
    font-size: .9rem;
    font-weight: 900;
}

.hero-callout span {
    display: block;
    margin-top: .25rem;
    color: #6f6d68;
    font-size: .8rem;
    line-height: 1.45;
}

.hero-clinical-card {
    position: absolute;
    right: -1rem;
    top: 2rem;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: min(360px, calc(100% - 2rem));
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 8px;
    background: rgba(255, 255, 255, .94);
    padding: 1rem;
    box-shadow: 0 24px 52px rgba(38, 33, 97, .17);
    backdrop-filter: blur(12px);
}

.hero-clinical-card span {
    display: block;
    color: var(--green);
    font-size: .72rem;
    font-weight: 950;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.hero-clinical-card strong {
    display: block;
    margin-top: .25rem;
    color: var(--navy);
    font-size: .98rem;
    font-weight: 950;
    line-height: 1.3;
}

.hero-clinical-card a {
    display: flex;
    height: 42px;
    width: 42px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--navy);
    color: #fff;
}

.hero-mini-grid {
    position: absolute;
    right: 1.25rem;
    bottom: 0;
    z-index: 3;
    display: grid;
    width: min(420px, calc(100% - 2.5rem));
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}

.hero-mini-grid figure {
    position: relative;
    min-height: 160px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 8px;
    background: #e6ded2;
    box-shadow: 0 22px 48px rgba(38, 33, 97, .16);
}

.hero-mini-grid img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.hero-mini-grid figure::after {
    position: absolute;
    inset: auto 0 0;
    height: 54%;
    content: "";
    background: linear-gradient(180deg, transparent, rgba(2, 6, 23, .62));
}

.hero-mini-grid figcaption {
    position: absolute;
    left: .85rem;
    bottom: .8rem;
    z-index: 1;
    color: #fff;
    font-size: .82rem;
    font-weight: 950;
}

.hero-access-wrap {
    position: relative;
    z-index: 4;
    max-width: 1280px;
    margin: -2.2rem auto 0;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .hero-access-wrap {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .hero-access-wrap {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.task-grid {
    position: relative;
    display: grid;
    gap: 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid #d8e4ef;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(38, 33, 97, .1);
}

.task-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1rem;
    min-height: 138px;
    background: #fff;
    padding: 1.25rem;
    transition: background .2s ease, transform .2s ease;
}

.task-card:not(:last-child) {
    border-right: 1px solid #ebe4d9;
}

.task-card:hover {
    transform: translateY(-2px);
    background: #faf7f1;
}

.task-card[href^="tel"] .task-icon {
    background: #fff1f2;
    color: #dc2626;
}

.task-icon {
    display: flex;
    height: 50px;
    width: 50px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(38, 33, 97, .06);
    color: var(--navy);
}

.task-body strong {
    display: block;
    color: var(--navy);
    font-size: 1rem;
    font-weight: 950;
}

.task-body small {
    display: block;
    margin-top: .45rem;
    color: #6f6d68;
    font-size: .84rem;
    line-height: 1.45;
}

.task-body em {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-top: .8rem;
    color: var(--navy);
    font-size: .8rem;
    font-style: normal;
    font-weight: 950;
}

.care-finder {
    padding: clamp(4rem, 6vw, 6rem) 0;
    background: #f8fafc;
}

.finder-panel {
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    background: #ffffff;
    padding: clamp(2rem, 4vw, 3.5rem);
    box-shadow: 0 20px 60px rgba(38, 33, 97, .04), 0 2px 4px rgba(38, 33, 97, .02);
}

.finder-head {
    max-width: 760px;
    margin: 0 auto 2rem;
    text-align: center;
}

.finder-kicker {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    border: none;
    border-radius: 999px;
    background: rgba(111, 180, 63, 0.1);
    padding: .4rem 1.1rem;
    color: var(--green);
    font-size: .75rem;
    font-weight: 850;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.finder-kicker svg {
    color: var(--green);
}

.finder-panel h2 {
    margin-top: 1.2rem;
    color: var(--navy);
    font-family: "Outfit", "Plus Jakarta Sans", Inter, system-ui, sans-serif;
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -.02em;
}

.finder-head p {
    margin-top: 1rem;
    color: #64748b;
    font-size: 1.05rem;
    line-height: 1.6;
}

.finder-search {
    margin: 0 auto;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: .75rem;
    max-width: 800px;
    border: 1px solid #e2e8f0;
    border-radius: 100px;
    background: #fff;
    padding: .5rem .5rem .5rem 1.5rem;
    box-shadow: 0 8px 24px rgba(38, 33, 97, .04);
    transition: all .2s ease;
}

.finder-search:focus-within {
    border-color: #cbd5e1;
    box-shadow: 0 12px 32px rgba(38, 33, 97, .08);
}

.finder-search>svg {
    color: #94a3b8;
}

.finder-search input {
    min-width: 0;
    min-height: 56px;
    background: transparent;
    color: var(--navy);
    font-size: 1.05rem;
    font-weight: 600;
    outline: none;
}
.finder-search input::placeholder {
    color: #cbd5e1;
    font-weight: 500;
}

.finder-clear {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: rgba(2, 6, 23, .04);
    color: var(--navy);
    transition: background .2s ease;
}

.finder-clear:hover {
    background: rgba(2, 6, 23, .08);
}

.finder-submit {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    min-height: 56px;
    padding: 0 1.75rem;
    border-radius: 100px;
    background: var(--navy);
    color: #fff;
    font-size: .95rem;
    font-weight: 900;
    transition: background .2s ease, transform .2s ease;
}

.finder-submit:hover {
    background: var(--navy-2);
    transform: translateY(-1px);
}

@media (max-width: 992px) {
    .clinical-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .care-finder {
        padding: 3rem 0;
    }
    .finder-panel {
        padding: 1.5rem;
        border-radius: 20px;
    }
    .finder-panel h2 {
        font-size: 1.8rem;
    }
    .finder-search {
        grid-template-columns: 24px minmax(0, 1fr) auto;
        border-radius: 20px;
        padding: 0.75rem;
    }
    .finder-submit {
        grid-column: 1 / -1;
        width: 100%;
        justify-content: center;
    }
    .clinical-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }
    .clinical-chip {
        min-height: 80px;
        gap: 0.5rem;
    }
}

.clinical-grid {
    margin-top: 3rem;
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(8, minmax(0, 1fr));
}

.clinical-chip {
    display: flex;
    min-height: 100px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    background: #f8fafc;
    color: var(--navy);
    font-size: .85rem;
    font-weight: 850;
    transition: all .2s ease;
}

.clinical-chip:hover {
    background: #fff;
    border-color: var(--navy);
    box-shadow: 0 10px 24px rgba(38, 33, 97, .06);
    transform: translateY(-2px);
}

.clinical-chip i {
    color: var(--navy);
    opacity: 0.7;
    transition: opacity .2s ease;
}
.clinical-chip:hover i {
    opacity: 1;
}

/* When the user types, collapse the chips so results sit right under the search bar */
.finder-panel.is-searching .clinical-grid {
    display: none;
}

.finder-panel.is-searching .care-results {
    margin-top: 1.25rem;
    border-top: 0;
    padding-top: 0;
}

.care-results {
    margin-top: 1.5rem;
    display: none;
    flex-direction: column;
    gap: 1.5rem;
    max-height: 540px;
    overflow: auto;
    border-top: 1px solid #ede7dd;
    padding-top: 1.5rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.care-results::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.care-results.is-active {
    display: flex;
}

.care-group {
    display: flex;
    flex-direction: column;
    gap: .85rem;
}

.care-group.is-hidden {
    display: none;
}

.care-group>header {
    display: grid;
    grid-template-columns: auto auto 1fr;
    align-items: center;
    gap: .65rem;
    color: var(--navy);
}

.care-group>header span {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: rgba(111, 180, 63, .14);
    color: var(--green);
}

.care-group>header strong {
    font-family: "Outfit", "Plus Jakarta Sans", Inter, system-ui, sans-serif;
    font-size: 1rem;
    font-weight: 950;
    color: var(--navy);
}

.care-group>header small {
    justify-self: end;
    color: #6f6d68;
    font-size: .76rem;
    font-weight: 750;
}

.care-group-list {
    display: grid;
    gap: .6rem;
}

.care-service-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.care-result {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .55rem .65rem;
    align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    padding: .85rem .95rem;
    text-align: left;
    color: #2b2823;
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.care-result:hover {
    border-color: rgba(111, 180, 63, .55);
    background: #fff;
    transform: translateY(-1px);
}

.care-result>svg {
    color: var(--green);
}

.care-result span {
    font-size: .88rem;
    font-weight: 900;
}

.care-result small {
    grid-column: 2;
    color: #6f6d68;
    font-size: .74rem;
    font-weight: 750;
}

.care-result.is-hidden {
    display: none;
}

.care-result--doctor {
    grid-template-columns: 52px minmax(0, 1fr) auto;
    align-items: center;
    background: #fff;
    border-color: #ece5da;
}

.care-result--doctor:hover {
    background: linear-gradient(135deg, #fff, #f4faf0);
    box-shadow: 0 14px 28px rgba(38, 33, 97, .08);
}

.care-result--doctor img {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    object-fit: cover;
    object-position: center top;
    background: #f3eee6;
}

.care-result--doctor span {
    display: grid;
    gap: .2rem;
    min-width: 0;
}

.care-result--doctor strong {
    color: var(--navy);
    font-size: .92rem;
    font-weight: 950;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.care-result--doctor small {
    grid-column: auto;
    color: var(--green);
    font-size: .74rem;
    font-weight: 900;
    letter-spacing: .02em;
}

.care-result--doctor>svg {
    color: var(--navy);
    transition: transform .2s ease;
}

.care-result--doctor:hover>svg {
    transform: translate(2px, -2px);
    color: var(--green);
}

.care-empty {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    border: none;
    border-radius: 16px;
    background: #fff0f0;
    padding: 1.25rem;
    color: #d92d20;
    font-size: .95rem;
    font-weight: 700;
    text-align: center;
    box-shadow: inset 0 0 0 1px rgba(217, 45, 32, 0.15);
}

.care-empty.hidden {
    display: none !important;
}

.care-empty svg {
    color: #d92d20;
}

.care-empty a {
    color: var(--navy);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.care-empty a:hover {
    color: var(--green);
}

.care-intelligence {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: 1.25fr repeat(3, 1fr);
    overflow: hidden;
    border: 1px solid #ece5da;
    border-radius: 8px;
    background: linear-gradient(90deg, #f8fafc, #fff);
}

.care-intelligence>div,
.care-intelligence article {
    padding: 1.15rem;
    border-right: 1px solid #ece5da;
}

.care-intelligence article:last-child {
    border-right: 0;
}

.care-intelligence>div span {
    color: var(--green);
    font-size: .72rem;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.care-intelligence>div strong {
    display: block;
    margin-top: .35rem;
    color: var(--navy);
    font-size: 1rem;
    font-weight: 950;
    line-height: 1.35;
}

.care-intelligence article b {
    display: block;
    color: var(--navy);
    font-family: "Outfit", "Plus Jakarta Sans", Inter, system-ui, sans-serif;
    font-size: 1.6rem;
    font-weight: 950;
}

.care-intelligence article span {
    display: block;
    color: #403c36;
    font-size: .82rem;
    font-weight: 900;
}

.care-intelligence article small {
    display: block;
    margin-top: .3rem;
    color: #6f6d68;
    font-size: .74rem;
    line-height: 1.35;
}

.section-shell {
    padding: clamp(4.75rem, 8vw, 7.5rem) 0;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: var(--green);
    font-size: .76rem;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.section-title {
    margin-top: .65rem;
    max-width: 760px;
    color: var(--navy);
    font-family: "Outfit", "Plus Jakarta Sans", Inter, system-ui, sans-serif;
    font-size: clamp(2.05rem, 3.6vw, 3.6rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -.022em;
    text-wrap: balance;
}

.section-copy {
    margin-top: 1.35rem;
    max-width: 660px;
    color: var(--muted);
    font-size: 1.03rem;
    line-height: 1.85;
}

.section-center {
    display: flex;
    justify-content: center;
    text-align: center;
}

.section-center .section-title {
    margin-left: auto;
    margin-right: auto;
}

.premium-checks {
    margin-top: 1.75rem;
    display: grid;
    gap: .85rem;
}

.premium-checks li {
    position: relative;
    padding-left: 1.8rem;
    color: #403c36;
    font-size: .96rem;
    font-weight: 750;
    line-height: 1.55;
}

.premium-checks li::before {
    position: absolute;
    left: 0;
    top: .12rem;
    content: "✓";
    color: var(--green);
    font-weight: 950;
}

.clinical-mosaic {
    display: grid;
    grid-template-columns: 1.35fr .85fr;
    grid-template-rows: 1fr 1fr;
    gap: .9rem;
    align-self: stretch;
    max-height: 480px;
}

.clinical-mosaic figure {
    position: relative;
    min-height: 0;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #e2e8f0;
    box-shadow: 0 18px 36px rgba(38, 33, 97, .08);
    margin: 0;
}

.clinical-mosaic img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform .55s ease;
}

.clinical-mosaic figure:hover img {
    transform: scale(1.04);
}

.clinical-mosaic figcaption {
    position: absolute;
    inset: auto 0 0;
    z-index: 1;
    padding: 1.6rem 1rem .85rem;
    background: linear-gradient(180deg, transparent, rgba(2, 6, 23, .72));
    color: #fff;
    font-size: .8rem;
    font-weight: 900;
    letter-spacing: .01em;
}

.clinical-mosaic figcaption small {
    display: block;
    margin-top: .15rem;
    color: rgba(255, 255, 255, .78);
    font-size: .7rem;
    font-weight: 750;
    letter-spacing: 0;
}

.mosaic-main {
    grid-row: span 2;
    min-height: 0;
}

.mosaic-main img {
    object-position: center;
}

.featured-service-grid {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    border-top: 1px solid #e8e1d6;
    border-bottom: 1px solid #e8e1d6;
}

.featured-service {
    min-height: 230px;
    border-right: 1px solid #e8e1d6;
    padding: 1.45rem 1.2rem;
}

.featured-service:last-child {
    border-right: 0;
}

.featured-service svg {
    color: var(--navy);
}

.featured-service h3 {
    margin-top: 1.15rem;
    color: var(--navy);
    font-size: 1.03rem;
    font-weight: 950;
}

.featured-service p {
    margin-top: .55rem;
    color: #6f6d68;
    font-size: .9rem;
    line-height: 1.55;
}

.link-action {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-top: 1rem;
    color: var(--navy);
    font-size: .83rem;
    font-weight: 950;
}

.service-directory {
    margin-top: 2.4rem;
    display: grid;
    grid-template-columns: .7fr 1.3fr;
    gap: 1.15rem;
    align-items: stretch;
}

.directory-intro {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: linear-gradient(145deg, var(--navy), #1d1958);
    padding: 1.6rem;
    color: #fff;
    box-shadow: 0 18px 42px rgba(38, 33, 97, .18);
}

.directory-intro::after {
    position: absolute;
    right: -3rem;
    bottom: -3rem;
    height: 10rem;
    width: 10rem;
    content: "";
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
}

.directory-intro h3 {
    margin-top: .65rem;
    color: #fff;
    font-family: "Outfit", "Plus Jakarta Sans", Inter, system-ui, sans-serif;
    font-size: clamp(1.55rem, 2.2vw, 2.35rem);
    font-weight: 950;
    line-height: 1.1;
}

.directory-intro span {
    display: block;
    margin-top: 1rem;
    color: rgba(255, 255, 255, .72);
    line-height: 1.7;
}

.directory-intro-link {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-top: 1.5rem;
    color: #fff;
    font-size: .86rem;
    font-weight: 950;
}

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

.directory-card {
    display: grid;
    gap: .95rem;
    border: 1px solid #e8e1d6;
    border-radius: 8px;
    background: #fff;
    padding: 1.05rem;
    box-shadow: 0 16px 34px rgba(38, 33, 97, .055);
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.directory-card:hover {
    transform: translateY(-2px);
    border-color: #c9d8e7;
    box-shadow: 0 20px 42px rgba(38, 33, 97, .09);
}

.directory-card-head {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: .85rem;
    align-items: start;
}

.directory-card-head>span {
    display: flex;
    height: 42px;
    width: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #f0f7ec;
    color: var(--green);
}

.directory-card h4 {
    color: var(--navy);
    font-size: 1rem;
    font-weight: 950;
}

.directory-card p {
    margin-top: .25rem;
    color: #6f6d68;
    font-size: .8rem;
    line-height: 1.45;
}

.directory-card ul {
    display: grid;
    gap: .35rem;
}

.directory-card a {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    border-radius: 6px;
    padding: .62rem .7rem;
    color: #57534c;
    text-align: left;
    font-size: .84rem;
    font-weight: 800;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.directory-card a:hover {
    background: #f7f3ec;
    color: var(--navy);
    transform: translateX(2px);
}

.capability-section {
    overflow: hidden;
    background:
        linear-gradient(90deg, #f7f3ec 0%, #fff 62%),
        radial-gradient(circle at 82% 20%, rgba(111, 180, 63, .12), transparent 26rem);
    padding: 5.75rem 0;
}

.capability-shell {
    display: grid;
    max-width: 1280px;
    margin: 0 auto;
    grid-template-columns: .78fr 1.22fr;
    gap: clamp(2rem, 5vw, 5.5rem);
    align-items: center;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .capability-shell {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .capability-shell {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.capability-copy {
    position: relative;
    z-index: 1;
}

.capability-stats {
    margin-top: 1.6rem;
    display: grid;
    gap: .7rem;
}

.capability-stats article {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    align-items: center;
    gap: .85rem;
    border-bottom: 1px solid #e8e1d6;
    padding-bottom: .7rem;
}

.capability-stats strong {
    color: var(--green);
    font-family: "Outfit", "Plus Jakarta Sans", Inter, system-ui, sans-serif;
    font-size: 1.65rem;
    font-weight: 950;
    line-height: 1;
}

.capability-stats span {
    color: #57534c;
    font-size: .88rem;
    font-weight: 800;
    line-height: 1.35;
}

.capability-showcase {
    display: grid;
    grid-template-columns: .86fr 1fr;
    gap: 1rem;
    align-items: stretch;
}

.capability-photo {
    position: relative;
    min-height: 470px;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid #e8e1d6;
    background: #e8e1d6;
    box-shadow: 0 24px 55px rgba(38, 33, 97, .12);
}

.capability-photo img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.capability-photo::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, transparent 42%, rgba(11, 18, 43, .78));
}

.capability-photo figcaption {
    position: absolute;
    left: 1.1rem;
    right: 1.1rem;
    bottom: 1rem;
    z-index: 1;
    color: #fff;
}

.capability-photo strong {
    display: block;
    font-size: 1.05rem;
    font-weight: 950;
}

.capability-photo span {
    display: block;
    margin-top: .35rem;
    color: rgba(255, 255, 255, .76);
    font-size: .82rem;
    line-height: 1.45;
}

.capability-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: .75rem;
}

.capability-item {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    column-gap: .85rem;
    row-gap: .25rem;
    align-items: start;
    border-radius: 8px;
    border: 1px solid #e8e1d6;
    background: rgba(255, 255, 255, .9);
    padding: .95rem;
    color: var(--navy);
    box-shadow: 0 14px 34px rgba(38, 33, 97, .055);
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.capability-item span {
    grid-row: span 2;
    display: flex;
    height: 46px;
    width: 46px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #f0f7ec;
    color: var(--green);
}

.capability-item:hover {
    transform: translateY(-2px);
    border-color: #c9d8e7;
    background: #fff;
    box-shadow: 0 20px 42px rgba(38, 33, 97, .09);
}

.capability-item strong {
    font-size: .95rem;
    font-weight: 950;
    line-height: 1.25;
}

.capability-item small {
    grid-column: 2;
    color: #6f6d68;
    font-size: .78rem;
    font-weight: 750;
    line-height: 1.45;
}

.guide-rail {
    margin-top: 2.5rem;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    border-top: 1px solid #e8e1d6;
    border-bottom: 1px solid #e8e1d6;
}

.guide-link {
    display: flex;
    align-items: center;
    gap: .7rem;
    min-height: 78px;
    border-right: 1px solid #e8e1d6;
    padding: 1rem;
    color: var(--navy);
    font-size: .9rem;
    font-weight: 900;
}

.journey-section {
    background: #fff;
    padding: 5rem 0 1rem;
}

.journey-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
}

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

.journey-card {
    position: relative;
    min-height: 245px;
    border: 1px solid #e8e1d6;
    border-radius: 8px;
    background: #fff;
    padding: 1.35rem;
    box-shadow: 0 14px 30px rgba(38, 33, 97, .06);
}

.journey-card::after {
    position: absolute;
    right: -1rem;
    top: 2.4rem;
    z-index: 1;
    height: 1px;
    width: 1rem;
    content: "";
    background: #e8e1d6;
}

.journey-card:last-child::after {
    display: none;
}

.journey-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--navy);
}

.journey-top span {
    font-family: "Outfit", "Plus Jakarta Sans", Inter, system-ui, sans-serif;
    font-size: 1.65rem;
    font-weight: 950;
}

.journey-top svg {
    color: var(--green);
}

.journey-card h3 {
    margin-top: 1.3rem;
    color: var(--navy);
    font-size: 1.08rem;
    font-weight: 950;
}

.journey-card p {
    margin-top: .75rem;
    color: #6f6d68;
    font-size: .9rem;
    line-height: 1.65;
}

.guide-link:last-child {
    border-right: 0;
}

.guide-link:hover {
    background: #f8fafc;
}

.guide-link svg {
    color: var(--navy);
}

.patient-panel {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: .9fr 1fr 1fr;
    overflow: hidden;
    border: 1px solid #e8e1d6;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 38px rgba(38, 33, 97, .07);
}

.patient-panel-intro {
    background: var(--navy);
    padding: 2rem;
    color: #fff;
}

.patient-panel-intro h3 {
    margin-top: .8rem;
    font-family: "Outfit", "Plus Jakarta Sans", Inter, system-ui, sans-serif;
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.08;
}

.patient-panel-intro p {
    margin-top: 1rem;
    color: rgba(255, 255, 255, .75);
    line-height: 1.75;
}

.patient-list.compact {
    padding: 2rem;
    border-left: 1px solid #e8e1d6;
}

.patient-list h4 {
    display: flex;
    align-items: center;
    gap: .6rem;
    color: var(--navy);
    font-size: 1.03rem;
    font-weight: 950;
}

.patient-list ol {
    margin-top: 1rem;
    display: grid;
    gap: .7rem;
    counter-reset: patient;
}

.patient-list li {
    position: relative;
    padding-left: 1.45rem;
    color: #6f6d68;
    font-size: .86rem;
    line-height: 1.5;
}

.patient-list li::before {
    position: absolute;
    left: 0;
    counter-increment: patient;
    content: counter(patient);
    color: var(--green);
    font-weight: 950;
}

.tour-section {
    padding: 0 0 5rem;
    background: #fff;
}

.tour-card {
    display: grid;
    grid-template-columns: .78fr 1.22fr;
    overflow: hidden;
    border-radius: 8px;
    background: var(--navy);
    color: #fff;
}

.tour-copy {
    padding: clamp(2rem, 4vw, 3rem);
}

.tour-copy p {
    color: var(--green);
    font-size: .78rem;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.tour-copy h2 {
    margin-top: .8rem;
    font-family: "Outfit", "Plus Jakarta Sans", Inter, system-ui, sans-serif;
    font-size: clamp(2rem, 3vw, 3.2rem);
    font-weight: 900;
    line-height: 1.08;
}

.tour-copy span {
    display: block;
    margin-top: 1rem;
    color: rgba(255, 255, 255, .72);
    line-height: 1.7;
}

.tour-video {
    position: relative;
    min-height: 390px;
    background: #1c1a17;
}

.tour-video::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(90deg, rgba(38, 33, 97, .28), transparent);
    pointer-events: none;
}

.gallery-title {
    margin-top: .45rem;
    color: var(--navy);
    font-family: "Outfit", "Plus Jakarta Sans", Inter, system-ui, sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.65rem);
    font-weight: 900;
}

.gallery-nav {
    display: flex;
    height: 44px;
    width: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid #e8e1d6;
    border-radius: 999px;
    color: var(--navy);
}

.gallery-nav:hover {
    background: #f4f0e9;
}

.gallery-rail {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: .25rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}

.gallery-rail::-webkit-scrollbar {
    display: none;
    height: 0;
    width: 0;
}

.gallery-card {
    position: relative;
    min-width: min(330px, 82vw);
    height: 230px;
    overflow: hidden;
    scroll-snap-align: start;
    border-radius: 8px;
    background: #e8e1d6;
    text-align: left;
}

.gallery-card img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.gallery-card:hover img {
    transform: scale(1.05);
}

.gallery-card span {
    position: absolute;
    inset: auto 0 0;
    padding: 3rem 1rem 1rem;
    background: linear-gradient(180deg, transparent, rgba(2, 6, 23, .8));
    color: #fff;
}

.gallery-card strong,
.gallery-card small {
    display: block;
}

.gallery-card strong {
    font-weight: 950;
}

.gallery-card small {
    margin-top: .25rem;
    color: rgba(255, 255, 255, .75);
    font-size: .78rem;
}

.appointment-band {
    background: #f7f3ec;
    padding: 2.25rem 0;
}

.appointment-icon {
    display: flex;
    height: 72px;
    width: 72px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #fff;
    color: var(--navy);
    box-shadow: 0 16px 36px rgba(38, 33, 97, .08);
}

.appointment-band h2 {
    color: var(--navy);
    font-size: 1.35rem;
    font-weight: 950;
}

.appointment-band p {
    margin-top: .25rem;
    color: #6f6d68;
    font-size: .95rem;
}

.phone-cta {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    color: var(--navy);
    font-weight: 950;
}

.phone-cta small {
    display: block;
    color: #6f6d68;
    font-size: .78rem;
    font-weight: 750;
}

.site-footer {
    background: linear-gradient(180deg, var(--navy), var(--navy-2));
    color: #fff;
}

.footer-grid {
    display: grid;
    max-width: 1280px;
    margin: 0 auto;
    gap: 2rem;
    grid-template-columns: 1.4fr .8fr 1fr;
    padding: 3rem 1rem;
}

@media (min-width: 640px) {
    .footer-grid {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.footer-logo {
    height: 46px;
    width: auto;
    border-radius: 6px;
    background: #fff;
    padding: .2rem;
}

.site-footer p {
    max-width: 460px;
    margin-top: 1rem;
    color: rgba(255, 255, 255, .72);
    line-height: 1.7;
}

.site-footer h4 {
    color: #fff;
    font-size: .95rem;
    font-weight: 950;
}

.site-footer ul {
    margin-top: 1rem;
    display: grid;
    gap: .58rem;
    color: rgba(255, 255, 255, .68);
    font-size: .86rem;
}

.site-footer a:hover {
    color: #fff;
}

.footer-title {
    color: #fff;
    font-size: .95rem;
    font-weight: 950;
}

.footer-list {
    margin-top: 1rem;
    display: grid;
    gap: .58rem;
    color: rgba(255, 255, 255, .68);
    font-size: .86rem;
}

.footer-list a:hover {
    color: #fff;
}

.footer-social {
    display: flex;
    height: 36px;
    width: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    color: #fff;
}

.footer-social:hover {
    background: var(--green);
}

.footer-brand-contact {
    margin-top: 1.25rem;
    display: grid;
    gap: .45rem;
    color: rgba(255, 255, 255, .68);
    font-size: .8rem;
    line-height: 1.45;
}

.footer-brand-contact a:hover {
    color: #fff;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, .12);
    padding: 1rem;
    color: rgba(255, 255, 255, .58);
    font-size: .78rem;
}

.footer-bottom a {
    color: rgba(255, 255, 255, .68);
    font-weight: 800;
}

.footer-bottom a:hover {
    color: #fff;
}

.whatsapp-float {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 60;
    display: flex;
    height: 56px;
    width: 56px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #25d366;
    color: #fff;
    box-shadow: 0 18px 36px rgba(22, 101, 52, .28);
    transition: transform .2s ease;
}

.whatsapp-float:hover {
    transform: translateY(-3px);
}

.mobile-actionbar {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: calc(0.85rem + env(safe-area-inset-bottom));
    z-index: 65;
    display: none;
    grid-template-columns: 1fr 1.25fr 1fr;
    align-items: center;
    padding: 6px;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 16px 36px rgba(38, 33, 97, 0.12), 0 1px 3px rgba(38, 33, 97, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.mobile-actionbar a,
.mobile-actionbar button {
    display: flex;
    height: 46px;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    color: var(--navy);
    font-size: .84rem;
    font-weight: 800;
    border-radius: 12px;
    transition: background .2s ease, transform .1s ease, color .2s ease;
    border: 0;
    cursor: pointer;
}

.mobile-actionbar a {
    background: transparent;
}

.mobile-actionbar a:active {
    background: rgba(38, 33, 97, 0.07);
    color: var(--navy-2);
}

.mobile-actionbar button {
    background: linear-gradient(135deg, var(--green) 0%, var(--green-2) 100%);
    color: #fff;
    font-weight: 900;
    box-shadow: 0 6px 16px rgba(111, 180, 63, 0.28);
}

.mobile-actionbar button:active {
    transform: scale(0.97);
    filter: brightness(0.96);
}

.command-shell {
    position: fixed;
    inset: 0;
    z-index: 105;
    align-items: flex-start;
    justify-content: center;
    background: rgba(2, 6, 23, .58);
    padding: 7vh 1rem 1rem;
    backdrop-filter: blur(10px);
}

.command-shell:not(.hidden) {
    display: flex;
}

.command-panel {
    width: min(100%, 820px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 34px 90px rgba(2, 6, 23, .35);
}

.command-search {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: .85rem;
    border-bottom: 1px solid #e4ebf3;
    padding: 1rem 1.1rem;
    color: var(--navy);
}

.command-search input {
    min-height: 46px;
    outline: none;
    color: #1c1a17;
    font-size: 1rem;
    font-weight: 750;
}

.command-search button {
    display: flex;
    height: 38px;
    width: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #6f6d68;
}

.command-search button:hover {
    background: #f4f0e9;
    color: var(--navy);
}

.command-content {
    display: grid;
    grid-template-columns: .75fr 1.25fr;
    gap: 1rem;
    padding: 1rem;
}

.command-content h2 {
    color: var(--navy);
    font-family: "Outfit", "Plus Jakarta Sans", Inter, system-ui, sans-serif;
    font-size: 1.55rem;
    font-weight: 950;
    line-height: 1.1;
}

.command-content p {
    margin-top: .7rem;
    color: #6f6d68;
    line-height: 1.65;
}

.command-results {
    display: grid;
    gap: .55rem;
}

.command-results a,
.command-results button {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .85rem;
    align-items: center;
    border: 1px solid #e4ebf3;
    border-radius: 8px;
    background: #fff;
    padding: .85rem;
    text-align: left;
    color: var(--navy);
}

.command-results a:hover,
.command-results button:hover {
    background: #f8fafc;
    border-color: rgba(111, 180, 63, .48);
}

.command-results svg {
    color: var(--green);
}

.command-results strong {
    display: block;
    font-size: .92rem;
    font-weight: 950;
}

.command-results small {
    display: block;
    margin-top: .2rem;
    color: #6f6d68;
    font-size: .78rem;
    line-height: 1.35;
}

.command-results .is-hidden {
    display: none;
}

.modal-shell {
    position: fixed;
    inset: 0;
    z-index: 100;
    align-items: center;
    justify-content: center;
    background: rgba(2, 6, 23, .66);
    padding: 1rem;
    backdrop-filter: blur(8px);
}

.modal-shell:not(.hidden) {
    display: flex;
}

.modal-panel {
    width: min(100%, 620px);
    max-height: 92vh;
    overflow: auto;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 30px 80px rgba(2, 6, 23, .3);
    animation: modalIn .18s ease-out;
}

.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    background: var(--navy);
    color: #fff;
    padding: 1.45rem 1.5rem;
}

.modal-header h2 {
    font-family: "Outfit", "Plus Jakarta Sans", Inter, system-ui, sans-serif;
    font-size: 1.35rem;
    font-weight: 950;
}

.modal-header p {
    margin-top: .3rem;
    color: rgba(255, 255, 255, .72);
    font-size: .9rem;
}

.modal-close {
    display: flex;
    height: 40px;
    width: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.modal-close:hover {
    background: rgba(255, 255, 255, .12);
}

.form-label {
    margin-bottom: .45rem;
    display: block;
    color: #403c36;
    font-size: .82rem;
    font-weight: 900;
}

.form-input {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #d8d0c2;
    background: #fff;
    padding: .85rem 1rem;
    color: #1c1a17;
    font-size: .94rem;
    font-weight: 650;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.form-input:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 4px rgba(111, 180, 63, .16);
}

@keyframes modalIn {
    from {
        transform: translateY(10px) scale(.985);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 110;
    align-items: center;
    justify-content: center;
    background: rgba(2, 6, 23, .88);
    padding: 1rem;
    backdrop-filter: blur(8px);
}

.lightbox:not(.hidden) {
    display: flex;
}

.lightbox-close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    display: flex;
    height: 44px;
    width: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, .1);
    color: #fff;
}

.lightbox figure {
    max-width: min(100%, 1050px);
}

.lightbox img {
    max-height: 76vh;
    width: 100%;
    border-radius: 8px;
    object-fit: contain;
}

.lightbox figcaption {
    margin-top: 1rem;
    color: #fff;
}

.lightbox figcaption strong {
    display: block;
    font-size: 1.2rem;
    font-weight: 950;
}

.lightbox figcaption span {
    display: block;
    margin-top: .25rem;
    color: rgba(255, 255, 255, .72);
}

.directory-hero {
    overflow: hidden;
    background:
        radial-gradient(circle at 84% 12%, rgba(111, 180, 63, .14), transparent 28rem),
        linear-gradient(180deg, #fff 0%, #f6f9fc 100%);
    padding: clamp(3rem, 6vw, 5rem) 0;
}

.directory-hero-inner {
    display: grid;
    max-width: 1280px;
    margin: 0 auto;
    grid-template-columns: minmax(0, .98fr) minmax(0, .72fr);
    gap: clamp(2rem, 4vw, 4rem);
    align-items: center;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .directory-hero-inner {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .directory-hero-inner {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.directory-hero h1 {
    max-width: 760px;
    color: var(--navy);
    font-family: "Outfit", "Plus Jakarta Sans", Inter, system-ui, sans-serif;
    font-size: clamp(2.8rem, 5vw, 5.5rem);
    font-weight: 950;
    line-height: .98;
}

.directory-hero p {
    margin-top: 1.25rem;
    max-width: 680px;
    color: #57534c;
    font-size: clamp(1rem, 1.35vw, 1.2rem);
    line-height: 1.8;
}

.doctor-search {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    max-width: 720px;
    overflow: hidden;
    border: 1px solid #c8d6e4;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 22px 54px rgba(38, 33, 97, .1);
}

.doctor-search>svg {
    align-self: center;
    justify-self: center;
    color: var(--green);
}

.doctor-search input {
    min-width: 0;
    min-height: 68px;
    color: #1c1a17;
    font-size: 1rem;
    font-weight: 750;
    outline: none;
}

.doctor-search button {
    min-width: 132px;
    background: var(--navy);
    color: #fff;
    font-size: .9rem;
    font-weight: 950;
}

.directory-hero-panel {
    overflow: hidden;
    border: 1px solid #dbe6f1;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 28px 70px rgba(38, 33, 97, .12);
}

.directory-hero-panel img {
    height: 250px;
    width: 100%;
    object-fit: cover;
}

.directory-hero-panel>div {
    padding: 1.25rem;
}

.directory-hero-panel span {
    color: var(--green);
    font-size: .76rem;
    font-weight: 950;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.directory-hero-panel strong {
    display: block;
    margin-top: .5rem;
    color: var(--navy);
    font-size: 1.15rem;
    font-weight: 950;
    line-height: 1.35;
}

.directory-hero-panel dl {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid #ece5da;
}

.directory-hero-panel dl div {
    padding: 1rem;
}

.directory-hero-panel dl div+div {
    border-left: 1px solid #ece5da;
}

.directory-hero-panel dt {
    color: var(--navy);
    font-family: "Outfit", "Plus Jakarta Sans", Inter, system-ui, sans-serif;
    font-size: 1.55rem;
    font-weight: 950;
    line-height: 1;
}

.directory-hero-panel dd {
    margin-top: .3rem;
    color: #6f6d68;
    font-size: .78rem;
    font-weight: 850;
}

.doctor-directory-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: clamp(4rem, 6vw, 6rem) 1rem;
}

@media (min-width: 640px) {
    .doctor-directory-section {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .doctor-directory-section {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.doctor-directory-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
}

.doctor-directory-head h2 {
    margin-top: .45rem;
    color: var(--navy);
    font-family: "Outfit", "Plus Jakarta Sans", Inter, system-ui, sans-serif;
    font-size: clamp(2rem, 3.4vw, 3.35rem);
    font-weight: 950;
    line-height: 1.05;
}

.doctor-directory-head span {
    display: block;
    margin-top: .75rem;
    max-width: 620px;
    color: #6f6d68;
    line-height: 1.7;
}

.doctor-filter-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .5rem;
}

.doctor-filter-bar button {
    min-height: 42px;
    border: 1px solid #e5ddd1;
    border-radius: 999px;
    background: #fff;
    padding: 0 1rem;
    color: #403c36;
    font-size: .82rem;
    font-weight: 950;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.doctor-filter-bar button:hover,
.doctor-filter-bar button.is-active {
    border-color: var(--navy);
    background: var(--navy);
    color: #fff;
}

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

.doctor-card {
    display: grid;
    grid-template-rows: 190px 1fr auto;
    overflow: hidden;
    border: 1px solid #e8e1d6;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(38, 33, 97, .07);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.doctor-card:hover {
    transform: translateY(-3px);
    border-color: rgba(111, 180, 63, .5);
    box-shadow: 0 24px 52px rgba(38, 33, 97, .12);
}

.doctor-card.is-hidden {
    display: none;
}

.doctor-card-media {
    position: relative;
    display: block;
    overflow: hidden;
    background: #f3eee6;
}

.doctor-card-media img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.doctor-card-media::after {
    position: absolute;
    inset: auto 0 0;
    height: 46%;
    content: "";
    background: linear-gradient(180deg, transparent, rgba(2, 6, 23, .54));
}

.doctor-card-media span {
    position: absolute;
    left: .9rem;
    bottom: .8rem;
    z-index: 1;
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    padding: .34rem .62rem;
    color: var(--navy);
    font-size: .72rem;
    font-weight: 950;
}

.doctor-card-body {
    padding: 1.15rem;
}

.doctor-specialty {
    color: var(--green);
    font-size: .72rem;
    font-weight: 950;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.doctor-card h3 {
    margin-top: .45rem;
    color: var(--navy);
    font-family: "Outfit", "Plus Jakarta Sans", Inter, system-ui, sans-serif;
    font-size: 1.12rem;
    font-weight: 950;
    line-height: 1.25;
}

.doctor-card h3 a:hover {
    color: var(--green);
}

.doctor-card p {
    margin-top: .65rem;
    color: #6f6d68;
    font-size: .86rem;
    line-height: 1.55;
}

.doctor-meta {
    margin-top: .9rem;
    display: grid;
    gap: .45rem;
}

.doctor-meta span {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: #57534c;
    font-size: .78rem;
    font-weight: 850;
}

.doctor-meta svg {
    color: var(--green);
    flex-shrink: 0;
}

.doctor-card-actions {
    display: grid;
    grid-template-columns: 1fr 52px;
    border-top: 1px solid #ece5da;
}

.doctor-card-actions button,
.doctor-card-actions a {
    display: flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    color: var(--navy);
    font-size: .82rem;
    font-weight: 950;
}

.doctor-card-actions button:hover,
.doctor-card-actions a:hover {
    background: #faf7f1;
}

.doctor-card-actions a {
    border-left: 1px solid #ece5da;
    color: var(--green);
}

.doctor-empty {
    margin-top: 1.5rem;
    border: 1px dashed #d8d0c2;
    border-radius: 8px;
    background: #f8fafc;
    padding: 1.25rem;
    color: #6f6d68;
    font-weight: 850;
    text-align: center;
}

.directory-cta {
    display: flex;
    max-width: 1280px;
    margin: 0 auto 5rem;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    border-radius: 8px;
    background: var(--navy);
    padding: clamp(1.5rem, 3vw, 2.25rem);
    color: #fff;
}

.directory-cta h2 {
    font-family: "Outfit", "Plus Jakarta Sans", Inter, system-ui, sans-serif;
    font-size: clamp(1.6rem, 2.7vw, 2.5rem);
    font-weight: 950;
    line-height: 1.08;
}

.directory-cta p {
    margin-top: .75rem;
    max-width: 720px;
    color: rgba(255, 255, 255, .74);
    line-height: 1.7;
}

.directory-hero-photo {
    position: relative;
    min-height: 345px;
    overflow: visible;
    background:
        linear-gradient(90deg, rgba(38, 33, 97, .84), rgba(38, 33, 97, .5)),
        var(--directory-bg) center 42% / cover no-repeat;
    padding: 0;
}

.directory-hero-overlay {
    position: relative;
    display: flex;
    min-height: 345px;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1rem 6.5rem;
}

@media (min-width: 640px) {
    .directory-hero-overlay {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .directory-hero-overlay {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.directory-hero-content {
    max-width: 760px;
    color: #fff;
}

.directory-hero-content h1 {
    color: #fff;
    font-family: "Outfit", "Plus Jakarta Sans", Inter, system-ui, sans-serif;
    font-size: clamp(2.8rem, 5.2vw, 5.3rem);
    font-weight: 950;
    line-height: .98;
}

.directory-hero-content p {
    max-width: 610px;
    margin-top: 1rem;
    color: rgba(255, 255, 255, .86);
    font-size: 1.08rem;
    line-height: 1.75;
}

.directory-floating-cta {
    position: absolute;
    right: 2rem;
    bottom: -2.2rem;
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    min-height: 72px;
    border: 0;
    border-radius: 999px 0 0 999px;
    background: #fff;
    padding: 0 2rem;
    color: var(--navy);
    font-weight: 950;
    box-shadow: 0 18px 40px rgba(38, 33, 97, .18);
}

.directory-floating-cta svg {
    color: var(--green);
}

.directory-search-stage {
    position: relative;
    z-index: 5;
    max-width: 980px;
    margin: -3.85rem auto 0;
    padding: 0 1rem;
}

.doctor-search-card {
    position: relative;
    border-radius: 8px;
    background: #fff;
    padding: 1.35rem;
    box-shadow: 0 26px 56px rgba(38, 33, 97, .18);
}

.doctor-search-title {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: .9rem;
    color: var(--navy);
}

.doctor-search-title>span {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    background: #eef9ea;
    color: var(--green);
}

.doctor-search-title strong {
    color: var(--navy);
    font-family: "Plus Jakarta Sans", Inter, sans-serif;
    font-size: clamp(1.35rem, 2vw, 1.75rem);
    font-weight: 950;
}

.doctor-help {
    border: 0;
    background: transparent;
    color: var(--green);
}

.doctor-search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 64px;
    align-items: center;
    overflow: hidden;
    margin-top: 1rem;
    border: 2px solid #d8e4f0;
    border-radius: 999px;
    background: #faf7f1;
}

.doctor-search-row:focus-within {
    border-color: var(--navy);
    box-shadow: 0 0 0 4px rgba(38, 33, 97, .08);
}

.doctor-search-row input {
    min-width: 0;
    min-height: 60px;
    background: transparent;
    padding: 0 1.4rem;
    color: #1c1a17;
    font-size: 1rem;
    font-weight: 750;
    outline: none;
}

.doctor-clear {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--navy);
}

.doctor-search-submit {
    display: grid;
    place-items: center;
    min-height: 64px;
    border: 0;
    background: var(--navy);
    color: #fff;
}

.doctor-live-panel {
    position: absolute;
    top: calc(100% - .6rem);
    left: 1rem;
    right: 1rem;
    z-index: 20;
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 34px 70px rgba(38, 33, 97, .2);
}

.doctor-live-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.35rem;
    color: #57534c;
    font-weight: 750;
}

.doctor-live-head div {
    display: flex;
    gap: .4rem;
}

.doctor-live-head button {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid #e8e1d6;
    border-radius: 6px;
    background: #fff;
    color: var(--navy);
}

.doctor-live-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 430px;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.doctor-live-grid::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.doctor-live-result {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
    min-height: 132px;
    border-top: 1px solid #e9f0f6;
    padding: 1rem 1.35rem;
}

.doctor-live-result img {
    width: 92px;
    height: 104px;
    border-radius: 8px;
    background: #f3eee6;
    object-fit: cover;
    object-position: center top;
}

.doctor-live-result strong {
    display: block;
    color: #1769aa;
    font-family: "Plus Jakarta Sans", Inter, sans-serif;
    font-size: 1.22rem;
    font-weight: 950;
    line-height: 1.12;
}

.doctor-live-result small {
    display: block;
    margin-top: .35rem;
    color: #403c36;
    font-style: italic;
    line-height: 1.35;
}

.doctor-live-result.is-hidden {
    display: none;
}

.directory-roster-section {
    padding-top: clamp(3rem, 5vw, 5rem);
}

.doctor-directory-head.compact {
    align-items: flex-start;
}

.doctor-roster-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: clamp(1.25rem, 2.6vw, 2.5rem);
    row-gap: 2.25rem;
}

.doctor-roster-grid .doctor-card {
    grid-template-columns: 118px minmax(0, 1fr);
    grid-template-rows: auto;
    align-items: center;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.doctor-roster-grid .doctor-card:hover {
    transform: none;
    border-color: transparent;
    box-shadow: none;
}

.doctor-roster-grid .doctor-card-media {
    height: 142px;
    overflow: visible;
    border-radius: 0;
    background: transparent;
}

.doctor-roster-grid .doctor-card-media img {
    height: 142px;
    width: 108px;
    border-radius: 8px;
    object-fit: cover;
    object-position: center top;
    filter: drop-shadow(0 16px 20px rgba(38, 33, 97, .08));
}

.doctor-roster-grid .doctor-card-media::after,
.doctor-roster-grid .doctor-card-media span {
    display: none;
}

.doctor-roster-grid .doctor-card-body {
    padding: 0;
}

.doctor-roster-grid .doctor-card h3 {
    margin: 0;
    color: #1769aa;
    font-family: "Plus Jakarta Sans", Inter, sans-serif;
    font-size: 1rem;
    font-weight: 950;
    line-height: 1.12;
}

.doctor-roster-grid .doctor-specialty {
    display: block;
    margin-top: .35rem;
    color: #1f2937;
    font-size: .82rem;
    font-style: italic;
    font-weight: 650;
    line-height: 1.35;
    text-transform: none;
    letter-spacing: 0;
}

.doctor-view-pill {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    min-height: 30px;
    margin-top: 1rem;
    border-radius: 999px;
    background: var(--green);
    padding: 0 .85rem;
    color: #fff;
    font-size: .78rem;
    font-weight: 950;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .16), 0 8px 16px rgba(111, 180, 63, .2);
}

.doctor-view-pill:hover {
    background: var(--navy);
    color: #fff;
}

.directory-location-band {
    display: grid;
    max-width: 1280px;
    margin: clamp(4rem, 8vw, 8rem) auto 0;
    grid-template-columns: minmax(0, .62fr) minmax(0, 1.18fr) minmax(0, .7fr);
    gap: 2rem;
    align-items: center;
    padding: 0 1rem clamp(4rem, 7vw, 6rem);
}

@media (min-width: 640px) {
    .directory-location-band {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .directory-location-band {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.directory-location-band>div img {
    width: 210px;
}

.directory-location-band p {
    max-width: 280px;
    margin-top: 1.4rem;
    color: #57534c;
    line-height: 1.65;
}

.directory-location-band iframe {
    width: 100%;
    height: 340px;
    border: 0;
    border-radius: 8px;
    background: #efe9e0;
}

.directory-location-band address {
    display: grid;
    gap: 1rem;
    color: #1769aa;
    font-style: normal;
    line-height: 1.55;
}

.directory-location-band address strong {
    color: #1769aa;
    font-weight: 750;
}

.directory-location-band address span {
    display: flex;
    gap: 1rem;
    font-weight: 950;
}

.profile-header {
    display: flex;
    max-width: 1280px;
    margin: 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
}

.profile-header img {
    height: 52px;
    width: auto;
}

.profile-header nav {
    display: flex;
    align-items: center;
    gap: .75rem;
    color: var(--navy);
    font-size: .9rem;
    font-weight: 900;
}

.profile-header nav a,
.profile-header nav button {
    border: 0;
    border-radius: 8px;
    background: #fff;
    padding: .75rem .9rem;
}

.profile-header nav button {
    background: var(--green);
    color: #fff;
}

.doctor-profile-hero {
    display: grid;
    max-width: 1280px;
    margin: 0 auto;
    grid-template-columns: minmax(0, 1fr) minmax(0, .62fr);
    gap: clamp(2rem, 4vw, 4rem);
    align-items: center;
    padding: clamp(3rem, 6vw, 5.5rem) 1rem;
}

.doctor-profile-copy>span {
    color: var(--green);
    font-size: .78rem;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.doctor-profile-copy h1 {
    margin-top: .7rem;
    color: var(--navy);
    font-family: "Outfit", "Plus Jakarta Sans", Inter, system-ui, sans-serif;
    font-size: clamp(2.6rem, 5vw, 5.25rem);
    font-weight: 950;
    line-height: .98;
}

.doctor-profile-copy p {
    margin-top: 1.25rem;
    max-width: 720px;
    color: #57534c;
    font-size: 1.08rem;
    line-height: 1.8;
}

.doctor-profile-actions {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.doctor-profile-card {
    overflow: hidden;
    border: 1px solid #e8e1d6;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 30px 70px rgba(38, 33, 97, .12);
}

.doctor-profile-card img {
    height: 360px;
    width: 100%;
    object-fit: cover;
}

.doctor-profile-card dl {
    display: grid;
    grid-template-columns: 1fr;
}

.doctor-profile-card div {
    padding: 1rem 1.25rem;
    border-top: 1px solid #ece5da;
}

.doctor-profile-card dt {
    color: var(--green);
    font-size: .72rem;
    font-weight: 950;
    text-transform: uppercase;
}

.doctor-profile-card dd {
    margin-top: .35rem;
    color: var(--navy);
    font-weight: 900;
}

.care-empty a {
    color: #b42318;
    text-decoration: underline;
    font-weight: 900;
}
.care-empty a:hover {
    color: #912018;
}

.doctor-profile-content {
    display: grid;
    max-width: 1280px;
    margin: 0 auto 5rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    padding: 0 1rem;
}

.doctor-profile-content article {
    border: 1px solid #e8e1d6;
    border-radius: 8px;
    background: #fff;
    padding: clamp(1.25rem, 2.5vw, 2rem);
    box-shadow: 0 18px 42px rgba(38, 33, 97, .06);
}

.doctor-profile-content h2 {
    color: var(--navy);
    font-family: "Outfit", "Plus Jakarta Sans", Inter, system-ui, sans-serif;
    font-size: 1.55rem;
    font-weight: 950;
}

.doctor-profile-content p {
    margin-top: .9rem;
    color: #57534c;
    line-height: 1.75;
}

.doctor-profile-empty {
    max-width: 760px;
    margin: 0 auto;
    padding: 5rem 1rem;
}

.doctor-profile-empty h1 {
    color: var(--navy);
    font-size: 3rem;
    font-weight: 950;
}

.doctor-profile-banner {
    position: relative;
    display: flex;
    min-height: 340px;
    align-items: center;
    justify-content: space-between;
    background:
        linear-gradient(90deg, rgba(38, 33, 97, .86), rgba(38, 33, 97, .52)),
        var(--profile-bg) center 44% / cover no-repeat;
    padding: 2rem max(1rem, calc((100vw - 1280px) / 2 + 2rem));
    color: #fff;
}

.doctor-profile-banner>div {
    max-width: 860px;
}

.doctor-profile-banner span {
    display: block;
    margin-bottom: .8rem;
    color: rgba(255, 255, 255, .88);
    font-size: 1.08rem;
    font-weight: 750;
}

.doctor-profile-banner h1 {
    max-width: 820px;
    color: #fff;
    font-family: "Plus Jakarta Sans", Inter, sans-serif;
    font-size: clamp(2.6rem, 5vw, 5.3rem);
    font-weight: 950;
    line-height: .98;
}

.profile-floating-cta {
    position: absolute;
    right: 0;
    bottom: -2.1rem;
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    min-height: 72px;
    border: 0;
    border-radius: 999px 0 0 999px;
    background: #fff;
    padding: 0 2rem;
    color: var(--navy);
    font-weight: 950;
    box-shadow: 0 18px 40px rgba(38, 33, 97, .18);
}

.profile-floating-cta svg {
    color: var(--green);
}

.doctor-profile-main {
    display: grid;
    max-width: 1180px;
    margin: 0 auto;
    grid-template-columns: minmax(0, .95fr) minmax(0, .8fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
    padding: clamp(4rem, 7vw, 6rem) 1rem 3rem;
}

.doctor-portrait {
    display: flex;
    justify-content: center;
}

.doctor-portrait img {
    width: min(100%, 520px);
    max-height: 580px;
    border-radius: 8px;
    object-fit: cover;
    object-position: center top;
    filter: drop-shadow(0 28px 34px rgba(38, 33, 97, .08));
}

.doctor-info-panel {
    background: #f3eee6;
    padding: clamp(2rem, 4vw, 3.2rem);
}

.doctor-info-panel h2 {
    border-left: 3px solid var(--green);
    padding-left: .9rem;
    color: #1769aa;
    font-family: "Plus Jakarta Sans", Inter, sans-serif;
    font-size: 1.55rem;
    font-weight: 950;
    line-height: 1.1;
}

.doctor-info-panel h2+dl {
    margin-top: 1.2rem;
}

.doctor-info-panel h2:not(:first-child) {
    margin-top: 2rem;
}

.doctor-info-panel dl {
    display: grid;
    gap: 1rem;
}

.doctor-info-panel dl div {
    border-bottom: 1px solid #dce7f1;
    padding-bottom: 1rem;
}

.doctor-info-panel dl div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.doctor-info-panel dt {
    display: flex;
    align-items: center;
    gap: .6rem;
    color: #1c1a17;
    font-size: .92rem;
    font-weight: 950;
}

.doctor-info-panel dt svg {
    color: var(--green);
    flex-shrink: 0;
}

.doctor-info-panel dd {
    margin: .35rem 0 0 1.55rem;
    color: #403c36;
    line-height: 1.55;
}

.profile-story {
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 2rem 4rem;
    max-width: 1180px;
    padding-top: 2rem;
}

.profile-story article {
    border: 0;
    padding: 0;
    box-shadow: none;
}

.profile-section-title {
    border-left: 3px solid var(--green);
    padding-left: 1rem;
}

.profile-section-title h2 {
    color: #1769aa;
    font-family: "Plus Jakarta Sans", Inter, sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.55rem);
    font-weight: 950;
    line-height: 1.1;
}

.profile-story article strong {
    display: block;
    margin-bottom: 1rem;
    color: #111827;
    font-weight: 950;
}

.association-list {
    display: grid;
    gap: 1rem;
}

.association-list p {
    display: flex;
    align-items: center;
    gap: .85rem;
    margin: 0;
    color: #1f2937;
    font-weight: 850;
}

.association-list svg {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: var(--green);
    color: #fff;
    padding: .5rem;
    flex-shrink: 0;
}

.back-to-directory {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    color: var(--green);
    font-weight: 950;
}

.back-to-directory::before,
.back-to-directory::after {
    width: min(320px, 30vw);
    height: 2px;
    content: "";
    background: #9bc7ea;
}

/* ====== Páginas institucionales y servicios ====== */
.content-page,
.service-page {
    background: #fff;
}

.content-hero,
.service-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #f7f3ec 0%, #fff 100%);
}

.content-hero-shell,
.service-hero-shell {
    display: grid;
    max-width: 1280px;
    margin: 0 auto;
    grid-template-columns: minmax(0, .95fr) minmax(360px, .75fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
    padding: clamp(3rem, 6vw, 5rem) 1rem;
}

@media (min-width: 640px) {

    .content-hero-shell,
    .service-hero-shell {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {

    .content-hero-shell,
    .service-hero-shell {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.content-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .45rem;
    margin-bottom: 1.2rem;
    color: #6f6d68;
    font-size: .82rem;
    font-weight: 850;
}

.content-breadcrumb a:hover {
    color: var(--navy);
}

.content-hero-copy h1,
.service-hero-copy h1 {
    margin-top: .75rem;
    max-width: 780px;
    color: var(--navy);
    font-family: "Outfit", "Plus Jakarta Sans", Inter, system-ui, sans-serif;
    font-size: clamp(2.7rem, 6vw, 5.35rem);
    font-weight: 950;
    line-height: .98;
}

.content-hero-copy>p:not(.section-label),
.service-hero-copy>p {
    margin-top: 1.25rem;
    max-width: 690px;
    color: #5b574f;
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    line-height: 1.8;
}

.content-hero-actions,
.service-actions {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
}

.content-hero-media,
.service-hero-media {
    position: relative;
    min-height: 440px;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid #e8e1d6;
    background: #e8e1d6;
    box-shadow: 0 24px 55px rgba(38, 33, 97, .12);
}

.content-hero-media img,
.service-hero-media img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.content-stat-strip {
    display: grid;
    max-width: 1180px;
    margin: -1.6rem auto 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid #e8e1d6;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(38, 33, 97, .08);
}

.content-stat-strip article {
    padding: 1.15rem 1.3rem;
    border-right: 1px solid #ebe4d9;
}

.content-stat-strip article:last-child {
    border-right: 0;
}

.content-stat-strip strong {
    display: block;
    color: var(--navy);
    font-family: "Outfit", "Plus Jakarta Sans", Inter, system-ui, sans-serif;
    font-size: clamp(1.35rem, 2.5vw, 2rem);
    font-weight: 950;
    line-height: 1;
}

.content-stat-strip span {
    display: block;
    margin-top: .35rem;
    color: #6f6d68;
    font-size: .82rem;
    font-weight: 850;
}

.content-body,
.service-detail,
.related-services {
    max-width: 1280px;
    margin: 0 auto;
    padding: 4.5rem 1rem;
}

@media (min-width: 640px) {

    .content-body,
    .service-detail,
    .related-services {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {

    .content-body,
    .service-detail,
    .related-services {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

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

.content-info-card {
    border: 1px solid #e8e1d6;
    border-radius: 8px;
    background: #fff;
    padding: 1.35rem;
    box-shadow: 0 16px 34px rgba(38, 33, 97, .055);
}

.content-info-card>span,
.service-chip,
.related-service-card span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #eef6e7;
    color: var(--green);
}

.content-info-card>span {
    height: 42px;
    width: 42px;
}

.content-info-card h2 {
    margin-top: 1rem;
    color: var(--navy);
    font-size: 1.05rem;
    font-weight: 950;
}

.content-info-card p {
    margin-top: .65rem;
    color: #6f6d68;
    font-size: .92rem;
    line-height: 1.7;
}

.content-service-directory {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

/* Aseguradoras aceptadas — página "Seguros aceptados" (mismo lenguaje visual que la home) */
.content-insurers {
    margin-top: 3.25rem;
}

.content-insurers-head {
    max-width: 660px;
    margin: 0 auto 2rem;
    text-align: center;
}

.content-insurers-head h2 {
    margin-top: .55rem;
    color: var(--navy);
    font-family: "Outfit", "Plus Jakarta Sans", Inter, system-ui, sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 900;
    letter-spacing: -.018em;
}

.content-insurers-head p {
    margin-top: .8rem;
    color: #6f6d68;
    font-size: 1rem;
    line-height: 1.7;
}

.content-insurers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.1rem;
}

.content-insurer-card {
    display: grid;
    gap: .9rem;
    place-items: center;
    text-align: center;
    padding: 1.7rem 1.25rem 1.3rem;
    border-radius: 18px;
    background: var(--paper);
    border: 1px solid var(--warm-line);
    box-shadow: 0 12px 30px rgba(38, 33, 97, .07);
    transition: transform .35s cubic-bezier(.22, 1, .36, 1), box-shadow .35s ease, border-color .35s ease;
}

.content-insurer-card:hover {
    transform: translateY(-6px);
    border-color: rgba(111, 180, 63, .5);
    box-shadow: 0 22px 48px rgba(38, 33, 97, .14);
}

.content-insurer-logo {
    display: grid;
    place-items: center;
    width: 100%;
    height: 84px;
}

.content-insurer-card img {
    max-width: 100%;
    max-height: 72px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform .35s ease;
}

.content-insurer-card:hover img {
    transform: scale(1.05);
}

.content-insurer-card span {
    color: var(--navy);
    font-weight: 800;
    font-size: .95rem;
    line-height: 1.3;
}

.content-insurers-cta {
    margin-top: 2.1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .85rem 1.4rem;
    color: #6f6d68;
    font-weight: 650;
    font-size: .92rem;
}

.content-insurers-cta span {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

@media (max-width: 640px) {
    .content-insurers-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .8rem;
    }

    .content-insurer-card {
        padding: 1.25rem .85rem 1rem;
    }

    .content-insurer-logo {
        height: 62px;
    }

    .content-insurer-card img {
        max-height: 54px;
    }

    .content-insurers-cta {
        flex-direction: column;
    }

    .content-insurers-cta .btn {
        width: 100%;
        justify-content: center;
    }
}

.content-service-group {
    display: grid;
    gap: 1rem;
    border: 1px solid #e8e1d6;
    border-radius: 8px;
    background: #fff;
    padding: 1.25rem;
    box-shadow: 0 16px 34px rgba(38, 33, 97, .055);
}

.content-service-group>div>span {
    display: inline-flex;
    height: 42px;
    width: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #f0f7ec;
    color: var(--green);
}

.content-service-group h2 {
    margin-top: .85rem;
    color: var(--navy);
    font-size: 1.15rem;
    font-weight: 950;
}

.content-service-group p {
    margin-top: .45rem;
    color: #6f6d68;
    line-height: 1.6;
}

.content-service-group ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .45rem;
}

.content-service-group a,
.content-sitemap a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    border-radius: 6px;
    background: #f8fafc;
    padding: .7rem .75rem;
    color: #403c36;
    font-size: .85rem;
    font-weight: 850;
}

.content-service-group a:hover,
.content-sitemap a:hover {
    background: #eef4f9;
    color: var(--navy);
}

.content-sitemap {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.content-sitemap article {
    display: grid;
    align-content: start;
    gap: .5rem;
    border: 1px solid #e8e1d6;
    border-radius: 8px;
    background: #fff;
    padding: 1.2rem;
    box-shadow: 0 16px 34px rgba(38, 33, 97, .055);
}

.content-sitemap h2 {
    color: var(--navy);
    font-size: 1.05rem;
    font-weight: 950;
}

.content-sitemap-wide {
    grid-column: 1 / -1;
}

.content-sitemap-wide>div {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .5rem;
}

.content-map-panel {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: .65fr 1.35fr;
    overflow: hidden;
    border: 1px solid #e8e1d6;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(38, 33, 97, .08);
}

.content-map-panel>div {
    padding: 2rem;
}

.content-map-panel h2 {
    color: var(--navy);
    font-size: 1.6rem;
    font-weight: 950;
}

.content-map-panel p {
    margin: .75rem 0 1.25rem;
    color: #6f6d68;
    line-height: 1.7;
}

.content-map-panel iframe {
    min-height: 360px;
    width: 100%;
    border: 0;
}

/* ===== Documento legal (política de privacidad / términos de uso) ===== */
.legal-doc {
    margin-top: 2.5rem;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 2.5rem;
    align-items: start;
}

.legal-toc {
    position: sticky;
    top: 96px;
    border: 1px solid #e8e1d6;
    border-radius: 12px;
    background: #fff;
    padding: 1.25rem 1.35rem;
    box-shadow: 0 16px 34px rgba(38, 33, 97, .055);
}

.legal-toc-title {
    color: var(--navy);
    font-size: .78rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: .75rem;
}

.legal-toc ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .12rem;
}

.legal-toc a {
    display: block;
    padding: .4rem .5rem;
    border-radius: 6px;
    color: #4a463f;
    font-size: .83rem;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;
}

.legal-toc a:hover {
    background: #f0f7ec;
    color: var(--navy);
}

.legal-toc-meta {
    margin-top: 1rem;
    padding-top: .9rem;
    border-top: 1px solid #efeae0;
    color: #8a857c;
    font-size: .76rem;
    line-height: 1.5;
}

.legal-toc-meta strong {
    color: var(--navy);
}

.legal-intro {
    color: #4a463f;
    font-size: 1.02rem;
    line-height: 1.75;
    padding: 1.25rem 1.4rem;
    background: #f8fafc;
    border-left: 4px solid var(--green-2);
    border-radius: 8px;
    margin-bottom: 2rem;
}

.legal-article {
    scroll-margin-top: 96px;
    padding-bottom: 1.75rem;
    margin-bottom: 1.75rem;
    border-bottom: 1px solid #efeae0;
}

.legal-article:last-of-type {
    border-bottom: 0;
}

.legal-article h2 {
    color: var(--navy);
    font-size: 1.3rem;
    font-weight: 950;
    line-height: 1.3;
    margin-bottom: .85rem;
}

.legal-num {
    color: var(--green-2);
}

.legal-article h3 {
    color: var(--navy);
    font-size: 1rem;
    font-weight: 850;
    margin: 1.1rem 0 .5rem;
}

.legal-article p {
    color: #4a463f;
    line-height: 1.75;
    margin-bottom: .8rem;
}

.legal-article ul,
.legal-article ol.legal-olist {
    margin: 0 0 .9rem;
    padding-left: 1.3rem;
    display: grid;
    gap: .4rem;
}

.legal-article li {
    color: #4a463f;
    line-height: 1.65;
}

.legal-deflist {
    margin: 0 0 1rem;
    display: grid;
    gap: .55rem;
}

.legal-deflist dt {
    color: var(--navy);
    font-weight: 850;
    font-size: .92rem;
}

.legal-deflist dd {
    margin: .1rem 0 0;
    color: #4a463f;
    line-height: 1.6;
}

.legal-note {
    display: flex;
    gap: .65rem;
    align-items: flex-start;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 10px;
    padding: .9rem 1.1rem;
    margin: 0 0 1rem;
    color: #9a3412;
    line-height: 1.6;
    font-weight: 600;
}

.legal-note i {
    flex-shrink: 0;
    margin-top: .15rem;
    color: #ea580c;
}

.legal-disclaimer {
    margin-top: 1.5rem;
    color: #8a857c;
    font-size: .85rem;
    line-height: 1.6;
}

.legal-disclaimer a {
    color: var(--green-2);
    font-weight: 800;
}

@media (max-width: 900px) {
    .legal-doc {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .legal-toc {
        position: static;
        top: auto;
    }

    .legal-toc ol {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .12rem .75rem;
    }
}

@media (max-width: 560px) {
    .legal-toc ol {
        grid-template-columns: 1fr;
    }
}

.service-chip {
    gap: .45rem;
    width: fit-content;
    padding: .55rem .7rem;
    color: var(--navy);
    font-size: .82rem;
    font-weight: 950;
}

.service-hero-media figcaption {
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, .92);
    padding: .9rem 1rem;
    box-shadow: 0 14px 34px rgba(38, 33, 97, .12);
}

.service-hero-media strong,
.service-hero-media span {
    display: block;
}

.service-hero-media strong {
    color: var(--navy);
    font-weight: 950;
}

.service-hero-media span {
    margin-top: .2rem;
    color: #6f6d68;
    font-size: .82rem;
    font-weight: 800;
}

.service-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 1.25rem;
}

.service-detail-main {
    display: grid;
    gap: 1rem;
}

.service-story {
    border: 1px solid #e8e1d6;
    border-radius: 8px;
    background: #fff;
    padding: clamp(1.4rem, 3vw, 2rem);
    box-shadow: 0 16px 34px rgba(38, 33, 97, .055);
}

.service-story h2 {
    margin-top: .7rem;
    color: var(--navy);
    font-family: "Outfit", "Plus Jakarta Sans", Inter, system-ui, sans-serif;
    font-size: clamp(1.7rem, 3vw, 2.7rem);
    font-weight: 950;
    line-height: 1.08;
}

.service-story p:not(.section-label) {
    margin-top: 1rem;
    color: #5b574f;
    line-height: 1.8;
}

.service-story ul {
    margin-top: 1.4rem;
    display: grid;
    gap: .8rem;
}

.service-story li {
    display: flex;
    gap: .7rem;
    color: #403c36;
    font-weight: 800;
    line-height: 1.55;
}

.service-story li svg {
    margin-top: .2rem;
    color: var(--green);
    flex-shrink: 0;
}

.service-process {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .8rem;
}

.service-process article {
    border: 1px solid var(--warm-line);
    border-radius: 16px;
    background: var(--warm);
    padding: 1.2rem;
}

.service-process span {
    color: var(--green);
    font-family: "Outfit", "Plus Jakarta Sans", Inter, system-ui, sans-serif;
    font-size: 1.45rem;
    font-weight: 950;
}

.service-process p {
    margin-top: .65rem;
    color: var(--muted);
    font-size: .88rem;
    font-weight: 800;
    line-height: 1.55;
}

.service-contact-card {
    position: sticky;
    top: 9rem;
    border-radius: 20px;
    background: var(--navy);
    padding: 1.4rem;
    color: #fff;
    box-shadow: 0 22px 52px rgba(38, 33, 97, .22);
}

.service-contact-card>span {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: var(--green);
    font-size: .78rem;
    font-weight: 950;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.service-contact-card h2 {
    margin-top: .75rem;
    font-family: "Outfit", "Plus Jakarta Sans", Inter, system-ui, sans-serif;
    font-size: 1.8rem;
    font-weight: 950;
    line-height: 1.1;
}

.service-contact-card p {
    margin: .85rem 0 1.2rem;
    color: rgba(255, 255, 255, .72);
    line-height: 1.65;
}

.service-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-top: .95rem;
    color: #fff;
    font-size: .88rem;
    font-weight: 950;
}

.related-services {
    padding-top: 0;
}

.related-services-head h2 {
    margin-top: .5rem;
    color: var(--navy);
    font-family: "Outfit", "Plus Jakarta Sans", Inter, system-ui, sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    font-weight: 950;
}

.related-services-grid {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .9rem;
}

.related-service-card {
    position: relative;
    display: grid;
    gap: .45rem;
    border: 1px solid var(--warm-line);
    border-radius: 18px;
    background: var(--paper);
    padding: 1.3rem;
    color: var(--navy);
    box-shadow: 0 16px 34px rgba(38, 33, 97, .055);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.related-service-card span {
    height: 42px;
    width: 42px;
}

.related-service-card strong {
    margin-top: .5rem;
    font-weight: 950;
}

.related-service-card small {
    color: #6f6d68;
    font-size: .78rem;
    font-weight: 800;
}

.related-service-card>svg {
    position: absolute;
    right: 1rem;
    top: 1rem;
    color: var(--green);
    transition: transform .2s ease;
}

.related-service-card:hover {
    border-color: rgba(111, 180, 63, .5);
    transform: translateY(-3px);
    box-shadow: 0 24px 48px rgba(38, 33, 97, .1);
}

.related-service-card:hover>svg {
    transform: translate(2px, -2px);
}

@media (max-width: 1180px) {
    .task-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .doctor-roster-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .task-card:nth-child(2n) {
        border-right: 0;
    }

    .task-card:nth-child(-n + 2) {
        border-bottom: 1px solid #ebe4d9;
    }

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

    .featured-service-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .featured-service:nth-child(3n) {
        border-right: 0;
    }

    .capability-shell {
        grid-template-columns: 1fr;
    }

    .capability-showcase {
        grid-template-columns: .8fr 1.2fr;
    }

    .content-service-group ul,
    .content-sitemap-wide>div {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

    .journey-card:nth-child(2n)::after {
        display: none;
    }
}

@media (max-width: 900px) {
    .directory-hero-inner {
        grid-template-columns: 1fr;
    }

    .directory-hero-overlay {
        min-height: 310px;
        padding-bottom: 6rem;
    }

    .directory-floating-cta,
    .profile-floating-cta {
        right: 1rem;
        min-height: 58px;
        border-radius: 999px;
        padding: 0 1.2rem;
    }

    .directory-search-stage {
        margin-top: -3.3rem;
    }

    .doctor-live-grid {
        grid-template-columns: 1fr;
        max-height: 430px;
    }

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

    .directory-location-band,
    .doctor-profile-main,
    .profile-story {
        grid-template-columns: 1fr;
    }

    .profile-section-title {
        margin-top: 1rem;
    }

    .doctor-directory-head {
        align-items: start;
        flex-direction: column;
    }

    .doctor-filter-bar {
        justify-content: flex-start;
    }

    .hero-section {
        background: linear-gradient(180deg, #fff 0%, #f7f3ec 100%);
    }

    .hero-shell {
        grid-template-columns: minmax(0, 1fr);
        padding-bottom: 3.75rem;
    }

    .hero-copy {
        min-height: auto;
        padding-top: 1rem;
        min-width: 0;
    }

    .hero-assist-panel {
        grid-template-columns: 1fr;
    }

    .hero-assist-item+.hero-assist-item {
        border-left: 0;
        border-top: 1px solid #ebe4d9;
    }

    .hero-feature {
        min-height: 430px;
    }

    .hero-feature-image {
        inset: 0;
    }

    .hero-feature::before {
        display: none;
    }

    .hero-feature-panel {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        width: auto;
    }

    .hero-pathways {
        grid-template-columns: 1fr;
    }

    .hero-pathways a+a {
        border-left: 0;
        border-top: 1px solid #ebe4d9;
    }

    .hero-pathways a {
        min-height: auto;
    }

    .hero-media-stack {
        min-height: 560px;
    }

    .hero-visual {
        inset: 0 0 8.4rem 0;
    }

    .hero-clinical-card {
        right: 1rem;
        top: 1rem;
    }

    .hero-mini-grid {
        left: 1rem;
        right: 1rem;
        width: auto;
    }

    .hero-access-wrap {
        margin-top: -1rem;
    }

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

    .task-card,
    .task-card:not(:last-child),
    .task-card:nth-child(2n),
    .task-card:nth-child(-n + 2) {
        border-right: 0;
        border-bottom: 1px solid #ebe4d9;
    }

    .task-card:last-child {
        border-bottom: 0;
    }

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

    .care-service-list,
    .care-doctor-list {
        grid-template-columns: 1fr;
    }

    .finder-search {
        grid-template-columns: 24px minmax(0, 1fr) auto;
        padding-left: .9rem;
    }

    .finder-submit {
        grid-column: 1 / -1;
        justify-content: center;
    }

    .care-intelligence {
        grid-template-columns: 1fr;
    }

    .care-intelligence>div,
    .care-intelligence article {
        border-right: 0;
        border-bottom: 1px solid #ece5da;
    }

    .care-intelligence article:last-child {
        border-bottom: 0;
    }

    .clinical-mosaic {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        max-height: none;
    }

    .clinical-mosaic figure {
        min-height: 220px;
    }

    .mosaic-main {
        grid-row: auto;
        min-height: 280px;
    }

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

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

    .featured-service-grid {
        grid-template-columns: 1fr;
        border: 1px solid #e8e1d6;
    }

    .featured-service {
        border-right: 0;
        border-bottom: 1px solid #e8e1d6;
        min-height: auto;
    }

    .featured-service:last-child {
        border-bottom: 0;
    }

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

    .capability-photo {
        min-height: 320px;
    }

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

    .content-hero-shell,
    .service-hero-shell,
    .service-detail,
    .content-map-panel {
        grid-template-columns: 1fr;
    }

    .content-hero-media,
    .service-hero-media {
        min-height: 320px;
    }

    .content-stat-strip,
    .content-section-grid,
    .content-service-directory,
    .content-sitemap,
    .service-process {
        grid-template-columns: 1fr;
    }

    .content-stat-strip article {
        border-right: 0;
        border-bottom: 1px solid #ebe4d9;
    }

    .content-stat-strip article:last-child {
        border-bottom: 0;
    }

    .service-contact-card {
        position: relative;
        top: auto;
    }

    .guide-rail {
        grid-template-columns: 1fr;
        border: 1px solid #e8e1d6;
    }

    .guide-link {
        border-right: 0;
        border-bottom: 1px solid #e8e1d6;
    }

    .guide-link:last-child {
        border-bottom: 0;
    }

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

    .patient-list.compact {
        border-left: 0;
        border-top: 1px solid #e8e1d6;
    }

    .journey-head {
        align-items: start;
        flex-direction: column;
    }

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

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

    .tour-card {
        grid-template-columns: 1fr;
    }

    .tour-video {
        min-height: 260px;
    }

    .command-content {
        grid-template-columns: 1fr;
    }

    .directory-cta {
        margin-left: 1rem;
        margin-right: 1rem;
        align-items: start;
        flex-direction: column;
    }

    .footer-grid,
    .doctor-profile-hero,
    .doctor-profile-content {
        grid-template-columns: 1fr;
    }

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

    .profile-header nav {
        flex-wrap: wrap;
    }
}

@media (max-width: 640px) {
    .directory-hero h1 {
        font-size: clamp(2.4rem, 12vw, 3.6rem);
    }

    .directory-hero-content p {
        font-size: .98rem;
    }

    .directory-search-stage {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .doctor-search-card {
        padding: 1rem;
    }

    .doctor-search-title {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .doctor-help {
        display: none;
    }

    .doctor-search-title strong {
        font-size: 1.35rem;
    }

    .doctor-search-row {
        grid-template-columns: minmax(0, 1fr) auto 58px;
        border-radius: 8px;
    }

    .doctor-search-row input {
        min-height: 56px;
        padding: 0 1rem;
        font-size: .92rem;
    }

    .doctor-live-panel {
        left: 0;
        right: 0;
        top: calc(100% - .35rem);
    }

    .doctor-live-result {
        grid-template-columns: 78px minmax(0, 1fr);
        min-height: 112px;
        padding: .9rem;
    }

    .doctor-live-result img {
        width: 72px;
        height: 86px;
    }

    .doctor-live-result strong {
        font-size: 1rem;
    }

    .doctor-roster-grid .doctor-card {
        grid-template-columns: 104px minmax(0, 1fr);
    }

    .doctor-roster-grid .doctor-card-media,
    .doctor-roster-grid .doctor-card-media img {
        height: 124px;
    }

    .doctor-roster-grid .doctor-card-media img {
        width: 94px;
    }

    .directory-location-band iframe {
        height: 280px;
    }

    .doctor-profile-banner {
        min-height: 300px;
        padding: 2rem 1rem 4.5rem;
    }

    .doctor-profile-banner h1 {
        font-size: clamp(2.3rem, 12vw, 3.4rem);
    }

    .doctor-profile-main {
        padding-top: 4rem;
    }

    .back-to-directory::before,
    .back-to-directory::after {
        display: none;
    }

    .doctor-search {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .doctor-search input {
        min-height: 62px;
    }

    .doctor-search button {
        grid-column: 1 / -1;
        min-height: 52px;
        width: 100%;
    }

    .directory-hero-panel dl {
        grid-template-columns: 1fr;
    }

    .directory-hero-panel dl div+div {
        border-left: 0;
        border-top: 1px solid #ece5da;
    }

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

    .utility-bar {
        font-size: .78rem;
    }

    .main-nav .brand-link img {
        max-width: 185px;
    }

    .hero-copy h1 {
        font-size: clamp(1.8rem, 8.4vw, 3rem);
        overflow-wrap: break-word;
    }

    .hero-copy p {
        font-size: .98rem;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .65rem;
    }

    .hero-actions .btn {
        min-height: 52px;
        width: auto;
        justify-content: center;
        padding-inline: .8rem;
        font-size: .84rem;
        border-radius: 12px;
    }

    .hero-actions .btn-outline {
        background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
        border: 1px solid rgba(38, 33, 97, 0.08);
        box-shadow: 0 4px 10px rgba(38, 33, 97, 0.03);
    }

    .hero-actions .btn-outline:active {
        background: #f4f0e9;
        transform: scale(0.98);
    }

    .hero-actions .btn-green,
    .hero-actions .btn-emergency {
        grid-column: 1 / -1;
    }

    .hero-actions .btn-emergency {
        background: linear-gradient(135deg, #fff5f5 0%, #fff0f0 100%);
        border: 1px solid rgba(239, 68, 68, 0.15);
        color: #c53030;
        box-shadow: 0 6px 14px rgba(239, 68, 68, 0.08);
    }

    .hero-actions .btn-emergency:active {
        background: #fee2e2;
        transform: scale(0.98);
    }

    .hero-assist-panel {
        display: none;
    }

    .hero-assist-item {
        min-height: auto;
    }

    /* En móvil la foto NO se tapa: imagen completa arriba, stats en tarjeta debajo. */
    .hero-feature {
        min-height: 0;
        display: flex;
        flex-direction: column;
        gap: .9rem;
    }

    .hero-feature-image {
        position: relative;
        inset: auto;
        height: clamp(200px, 52vw, 280px);
    }

    .hero-feature-panel {
        position: static;
        inset: auto;
        grid-template-columns: 1fr;
        background: #fff;
        border: 1px solid var(--warm-line);
        box-shadow: 0 16px 36px rgba(38, 33, 97, 0.1);
        border-radius: 16px;
    }

    .hero-feature-panel span {
        display: grid;
        grid-template-columns: 64px 1fr;
        align-items: center;
        gap: 0.85rem;
        padding: 1.15rem 1.25rem;
        text-align: left;
    }

    .hero-feature-panel span+span {
        border-left: 0;
        border-top: 1px solid rgba(221, 230, 239, 0.6);
    }

    .hero-feature-panel b {
        font-size: 1.65rem;
        color: var(--navy);
        background: linear-gradient(135deg, var(--navy) 30%, var(--navy-2) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .hero-proof {
        grid-template-columns: 1fr;
    }

    .hero-proof span,
    .hero-proof span+span {
        border-left: 0;
        border-top: 1px solid #dce6f0;
        padding: .9rem 0;
    }

    .hero-proof span:first-child {
        border-top: 0;
    }

    .hero-media-stack {
        min-height: 520px;
    }

    .hero-visual {
        inset: 0 0 11rem 0;
    }

    .hero-mini-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-mini-grid figure {
        min-height: 130px;
    }

    .hero-clinical-card {
        left: 1rem;
        right: 1rem;
        width: auto;
    }

    .hero-callout {
        left: 1rem;
        right: 1rem;
        top: 1rem;
        max-width: none;
    }

    .task-card {
        min-height: auto;
        padding: 1.2rem;
    }

    .task-icon {
        height: 52px;
        width: 52px;
    }

    .finder-search input {
        min-height: 52px;
        font-size: .94rem;
    }

    .care-group>header {
        grid-template-columns: auto 1fr;
    }

    .care-group>header small {
        display: none;
    }

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

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

    .content-hero-shell,
    .service-hero-shell {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }

    .content-hero-copy h1,
    .service-hero-copy h1 {
        font-size: clamp(2.35rem, 12vw, 3.5rem);
    }

    .content-hero-actions .btn,
    .service-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .content-service-group ul,
    .content-sitemap-wide>div,
    .related-services-grid {
        grid-template-columns: 1fr;
    }

    .section-shell {
        padding: 4.5rem 0;
    }

    .appointment-band .btn,
    .phone-cta {
        width: 100%;
        justify-content: center;
    }

    .mobile-actionbar {
        display: grid;
    }

    /* Sube el botón de IA por encima de la barra inferior (Llamar/Cita/Buscar)
       para que no se encimen en móvil. */
    .cai-root {
        bottom: calc(6.5rem + env(safe-area-inset-bottom));
    }

    .whatsapp-float {
        display: none;
    }

    body {
        padding-bottom: calc(5.25rem + env(safe-area-inset-bottom));
    }

    .command-shell {
        padding-top: 4vh;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}

/* ====== Noticias / Sala de prensa ====== */
.news-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: clamp(3.5rem, 5vw, 5rem) 0 clamp(2.5rem, 4vw, 4rem);
    color: #fff;
}

.news-hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(70% 70% at 84% 8%, rgba(111, 180, 63, .28), transparent 60%),
        radial-gradient(50% 50% at 10% 90%, rgba(111, 180, 63, .12), transparent 60%),
        linear-gradient(135deg, #14123f 0%, #1c1856 50%, #262161 100%);
}

.news-hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
}

.news-hero-shell {
    max-width: 880px;
    margin: 0 auto;
    text-align: center;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .news-hero-shell {
        padding: 0 1.5rem;
    }
}

.news-hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    padding: .45rem 1rem;
    color: #fff;
    font-size: .76rem;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}

.news-hero-kicker svg {
    color: #b6f0a3;
}

.news-hero h1 {
    margin-top: 1.1rem;
    font-family: "Outfit", "Plus Jakarta Sans", Inter, system-ui, sans-serif;
    font-size: clamp(2.1rem, 4vw, 3.3rem);
    font-weight: 950;
    line-height: 1.05;
    letter-spacing: -.015em;
    color: #fff;
}

.news-hero>div>p {
    margin: 1rem auto 0;
    max-width: 620px;
    color: rgba(255, 255, 255, .8);
    font-size: 1.02rem;
    line-height: 1.7;
}

.news-search {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: center;
    gap: .5rem;
    max-width: 560px;
    margin: 1.75rem auto 0;
    padding: .35rem .35rem .35rem 1.1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .28);
    backdrop-filter: blur(12px);
    transition: border-color .2s ease, background .2s ease;
}

.news-search:focus-within {
    background: rgba(255, 255, 255, .18);
    border-color: rgba(255, 255, 255, .5);
}

.news-search>svg {
    color: rgba(255, 255, 255, .85);
}

.news-search input {
    min-width: 0;
    min-height: 52px;
    background: transparent;
    color: #fff;
    font-size: .96rem;
    font-weight: 750;
    outline: none;
}

.news-search input::placeholder {
    color: rgba(255, 255, 255, .55);
}

.news-search button {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    min-height: 46px;
    padding: 0 1.2rem;
    border: 0;
    border-radius: 12px;
    background: #6fb43f;
    color: #fff;
    font-size: .9rem;
    font-weight: 950;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.news-search button:hover {
    background: #5da334;
    transform: translateY(-1px);
}

.news-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: clamp(2.5rem, 4vw, 4rem) 1rem clamp(4rem, 6vw, 6rem);
}

@media (min-width: 640px) {
    .news-shell {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .news-shell {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.news-filters {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 2rem;
}

.news-filter {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    min-height: 40px;
    padding: 0 1rem;
    border: 1px solid #e5ddd1;
    border-radius: 999px;
    background: #fff;
    color: #403c36;
    font-size: .82rem;
    font-weight: 950;
    transition: border-color .2s ease, background .2s ease, color .2s ease;
}

.news-filter:hover {
    border-color: #262161;
    color: #262161;
}

.news-filter.is-active {
    background: #262161;
    border-color: #262161;
    color: #fff;
}

.news-filter.is-active svg {
    color: #b6f0a3;
}

.news-filter svg {
    color: #6fb43f;
}

.news-filter span {
    padding: .15rem .5rem;
    border-radius: 999px;
    background: rgba(38, 33, 97, .08);
    color: inherit;
    font-size: .7rem;
}

.news-filter.is-active span {
    background: rgba(255, 255, 255, .18);
    color: #fff;
}

.news-featured {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: clamp(1.25rem, 3vw, 2.25rem);
    align-items: stretch;
    margin-bottom: clamp(2.5rem, 4vw, 3.5rem);
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid #ece5da;
    background: #fff;
    box-shadow: 0 24px 48px rgba(38, 33, 97, .08);
}

.news-featured-media {
    position: relative;
    display: block;
    min-height: 320px;
    overflow: hidden;
    background: #f3eee6;
}

.news-featured-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .55s ease;
}

.news-featured-media:hover img {
    transform: scale(1.04);
}

.news-featured-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .4rem .85rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #6fb43f, #5da334);
    color: #fff;
    font-size: .72rem;
    font-weight: 950;
    letter-spacing: .03em;
    box-shadow: 0 8px 20px rgba(111, 180, 63, .35);
}

.news-featured-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: clamp(1.5rem, 3vw, 2.5rem);
}

.news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    align-items: center;
    color: #6f6d68;
    font-size: .78rem;
    font-weight: 850;
}

.news-meta time {
    font-weight: 850;
}

.news-reading {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
}

.news-reading svg {
    color: #6fb43f;
}

.news-cat-pill {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .35rem .7rem;
    border-radius: 999px;
    background: rgba(38, 33, 97, .08);
    color: #262161;
    font-size: .72rem;
    font-weight: 950;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.news-cat-pill svg {
    color: #6fb43f;
}

.news-featured-body h2 {
    color: #262161;
    font-family: "Outfit", "Plus Jakarta Sans", Inter, system-ui, sans-serif;
    font-size: clamp(1.5rem, 2.6vw, 2.1rem);
    font-weight: 950;
    line-height: 1.15;
    letter-spacing: -.01em;
}

.news-featured-body h2 a {
    color: inherit;
}

.news-featured-body h2 a:hover {
    color: #6fb43f;
}

.news-featured-body p {
    color: #57534c;
    line-height: 1.7;
    font-size: 1rem;
}

.news-featured-body .btn {
    align-self: flex-start;
}

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

.news-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #ece5da;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(38, 33, 97, .05);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    border-color: rgba(111, 180, 63, .5);
    box-shadow: 0 24px 44px rgba(38, 33, 97, .12);
}

.news-card-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #f3eee6, #e6ded2);
}

.news-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.news-card:hover .news-card-media img {
    transform: scale(1.05);
}

.news-card-fallback {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: #a8a39a;
}

.news-card-fallback svg {
    width: 56px;
    height: 56px;
    color: #6fb43f;
    opacity: .55;
}

.news-card-cat {
    position: absolute;
    top: .85rem;
    left: .85rem;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    padding: .35rem .75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .95);
    color: #262161;
    font-size: .7rem;
    font-weight: 950;
    letter-spacing: .03em;
    box-shadow: 0 6px 14px rgba(38, 33, 97, .18);
}

.news-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .6rem;
    padding: 1.25rem 1.35rem 1.35rem;
}

.news-card-body time {
    color: #a8a39a;
    font-size: .76rem;
    font-weight: 850;
    letter-spacing: .02em;
}

.news-card-body h3 {
    color: #262161;
    font-family: "Outfit", "Plus Jakarta Sans", Inter, system-ui, sans-serif;
    font-size: 1.15rem;
    font-weight: 950;
    line-height: 1.25;
    letter-spacing: -.005em;
}

.news-card-body h3 a {
    color: inherit;
}

.news-card-body h3 a:hover {
    color: #6fb43f;
}

.news-card-body p {
    color: #6f6d68;
    font-size: .88rem;
    line-height: 1.6;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.news-card-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-top: auto;
    padding-top: .5rem;
    color: #262161;
    font-size: .82rem;
    font-weight: 950;
    transition: color .2s ease, gap .2s ease;
}

.news-card-link:hover {
    color: #6fb43f;
    gap: .65rem;
}

.news-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2.5rem;
}

.news-page-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .65rem 1.2rem;
    border: 1px solid #e5ddd1;
    border-radius: 999px;
    background: #fff;
    color: #262161;
    font-size: .85rem;
    font-weight: 950;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.news-page-link:hover {
    background: #f4f0e9;
    border-color: #262161;
    transform: translateY(-1px);
}

.news-page-info {
    color: #6f6d68;
    font-size: .85rem;
    font-weight: 850;
}

.news-empty {
    display: grid;
    place-items: center;
    gap: .65rem;
    padding: 4rem 1.5rem;
    border: 1px dashed #d8d0c2;
    border-radius: 16px;
    background: #f8fafc;
    color: #6f6d68;
    text-align: center;
}

.news-empty svg {
    color: #a8a39a;
}

.news-empty strong {
    color: #262161;
    font-size: 1.1rem;
    font-weight: 950;
}

.news-empty p {
    font-size: .9rem;
}

.news-empty .btn {
    margin-top: .65rem;
}

/* ===== Single article ===== */
.news-article {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem clamp(2rem, 4vw, 3rem);
}

@media (min-width: 640px) {
    .news-article {
        padding: 0 1.5rem clamp(2rem, 4vw, 3rem);
    }
}

.news-article-header {
    max-width: 760px;
    margin: 0 auto 2rem;
    text-align: center;
}

.news-article-header .news-cat-pill {
    display: inline-flex;
}

.news-article-header h1 {
    margin-top: 1.1rem;
    color: #262161;
    font-family: "Outfit", "Plus Jakarta Sans", Inter, system-ui, sans-serif;
    font-size: clamp(2rem, 4.2vw, 3.2rem);
    font-weight: 950;
    line-height: 1.07;
    letter-spacing: -.015em;
}

.news-article-lead {
    margin-top: 1rem;
    color: #57534c;
    font-size: 1.1rem;
    line-height: 1.6;
}

.news-article-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 1.5rem;
    color: #6f6d68;
    font-size: .84rem;
    font-weight: 850;
}

.news-article-meta span {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

.news-article-meta svg {
    color: #6fb43f;
}

.news-article-cover {
    margin: 0 0 2.5rem;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 28px 60px rgba(38, 33, 97, .12);
}

.news-article-cover img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.news-article-body {
    max-width: 720px;
    margin: 0 auto;
    color: #2b2823;
    font-size: 1.08rem;
    line-height: 1.85;
}

.news-article-body p {
    margin-top: 1.3rem;
}

.news-article-body p:first-child {
    margin-top: 0;
}

.news-article-body h2,
.news-article-body h3,
.news-article-body h4 {
    color: #262161;
    font-family: "Outfit", "Plus Jakarta Sans", Inter, system-ui, sans-serif;
    font-weight: 950;
    line-height: 1.2;
    margin-top: 2.25rem;
}

.news-article-body h2 {
    font-size: 1.65rem;
}

.news-article-body h3 {
    font-size: 1.35rem;
}

.news-article-body h4 {
    font-size: 1.15rem;
}

.news-article-body ul,
.news-article-body ol {
    margin-top: 1.3rem;
    padding-left: 1.6rem;
    display: grid;
    gap: .5rem;
}

.news-article-body ul li {
    list-style: none;
    position: relative;
    padding-left: 1.2rem;
}

.news-article-body ul li::before {
    position: absolute;
    left: 0;
    top: .65em;
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #6fb43f;
}

.news-article-body ol li::marker {
    color: #6fb43f;
    font-weight: 950;
}

.news-article-body strong {
    color: #18154f;
    font-weight: 900;
}

.news-article-body a {
    color: #262161;
    font-weight: 850;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.news-article-body a:hover {
    color: #6fb43f;
}

.news-article-body blockquote {
    margin: 2rem 0;
    padding: 1.25rem 1.5rem;
    border-left: 4px solid #6fb43f;
    background: linear-gradient(90deg, rgba(111, 180, 63, .08), transparent);
    border-radius: 0 14px 14px 0;
    color: #18154f;
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.65;
}

.news-article-source {
    max-width: 720px;
    margin: 2.5rem auto 0;
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: 1rem 1.25rem;
    border: 1px solid #ece5da;
    border-radius: 12px;
    background: #f8fafc;
    color: #57534c;
    font-size: .88rem;
    font-weight: 850;
}

.news-article-source svg {
    color: #6fb43f;
    flex-shrink: 0;
}

.news-article-source a {
    color: #262161;
    text-decoration: underline;
    text-underline-offset: 3px;
    word-break: break-all;
}

.news-article-share {
    max-width: 720px;
    margin: 2.5rem auto 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.25rem 0;
    border-top: 1px solid #ece5da;
    border-bottom: 1px solid #ece5da;
}

.news-article-share span {
    color: #6f6d68;
    font-size: .85rem;
    font-weight: 900;
    letter-spacing: .03em;
}

.news-article-share>div {
    display: flex;
    gap: .5rem;
}

.news-article-share a {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: #f4f0e9;
    color: #262161;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.news-article-share a:hover {
    background: #262161;
    color: #fff;
    transform: translateY(-2px);
}

.news-article-share a svg {
    width: 18px;
    height: 18px;
}

.news-related {
    max-width: 1180px;
    margin: clamp(3rem, 5vw, 5rem) auto 0;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .news-related {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .news-related {
        padding: 0 2rem;
    }
}

.news-related-head {
    margin-bottom: 1.5rem;
}

.news-related-head h2 {
    margin-top: .45rem;
    color: #262161;
    font-family: "Outfit", "Plus Jakarta Sans", Inter, system-ui, sans-serif;
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    font-weight: 950;
}

@media (max-width: 900px) {
    .news-featured {
        grid-template-columns: 1fr;
    }

    .news-featured-media {
        min-height: 240px;
        aspect-ratio: 16/10;
    }

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

@media (max-width: 640px) {
    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-pagination {
        flex-direction: column;
        gap: .75rem;
    }

    .news-article-meta {
        flex-direction: column;
        gap: .5rem;
        align-items: flex-start;
        text-align: left;
    }

    .news-article-header {
        text-align: left;
    }

    .news-article-header .news-cat-pill {
        display: inline-flex;
    }
}

/* ===== Home news preview band ===== */
.home-news-band {
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    padding: clamp(4rem, 6vw, 5rem) 0;
}

.home-news-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2.25rem;
}

.home-news-head span {
    display: block;
    margin-top: .75rem;
    max-width: 560px;
    color: #6f6d68;
    line-height: 1.7;
}

/* ====== Colinas IA chat widget ====== */
.cai-root {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 80;
    font-family: "Inter", system-ui, sans-serif;
}

body.cai-locked {
    overflow: hidden;
}

body.cai-locked .mobile-actionbar {
    display: none !important;
}

.cai-fab {
    position: relative;
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #262161 0%, #6fb43f 130%);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 22px 44px rgba(38, 33, 97, .35), 0 0 0 6px rgba(111, 180, 63, .12);
    transition: transform .25s ease, box-shadow .25s ease;
}

.cai-fab::before {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 999px;
    background: rgba(111, 180, 63, .25);
    opacity: 0;
    transform: scale(.8);
    transition: opacity .35s ease, transform .35s ease;
    pointer-events: none;
}

.cai-fab:hover {
    transform: translateY(-3px) scale(1.03);
}

.cai-fab:hover::before {
    opacity: 1;
    transform: scale(1.15);
}

.cai-fab svg {
    width: 28px;
    height: 28px;
}

.cai-fab .cai-fab-open {
    display: none;
}

.cai-root.is-open .cai-fab .cai-fab-closed {
    display: none;
}

.cai-root.is-open .cai-fab .cai-fab-open {
    display: block;
}

.cai-fab-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: .65rem;
    font-weight: 950;
    line-height: 18px;
    text-align: center;
    box-shadow: 0 0 0 2px #fff;
}

.cai-panel {
    position: absolute;
    right: 0;
    bottom: calc(64px + 1rem);
    width: 400px;
    max-width: calc(100vw - 2.5rem);
    height: 600px;
    max-height: calc(100vh - 7rem);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 22px;
    background: #fff;
    border: 1px solid #ece5da;
    box-shadow: 0 38px 80px rgba(38, 33, 97, .28);
    opacity: 0;
    transform: translateY(20px) scale(.97);
    pointer-events: none;
    transition: opacity .22s ease, transform .22s ease;
}

.cai-root.is-open .cai-panel {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.cai-header {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: 1.1rem 1.25rem;
    background: linear-gradient(135deg, #18154f 0%, #262161 70%, #3a3196 100%);
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.cai-header-avatar {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .25);
    color: #b6f0a3;
}

.cai-header-avatar svg {
    width: 22px;
    height: 22px;
}

.cai-header-title {
    flex: 1;
    min-width: 0;
}

.cai-header-title strong {
    display: block;
    font-family: "Plus Jakarta Sans", Inter, sans-serif;
    font-size: 1rem;
    font-weight: 950;
}

.cai-header-title small {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin-top: .15rem;
    color: rgba(255, 255, 255, .72);
    font-size: .72rem;
    font-weight: 800;
}

.cai-header-title small::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #6fb43f;
    box-shadow: 0 0 0 3px rgba(111, 180, 63, .25);
    animation: caiPulse 1.6s ease-in-out infinite;
}

@keyframes caiPulse {

    0%,
    100% {
        box-shadow: 0 0 0 3px rgba(111, 180, 63, .25);
    }

    50% {
        box-shadow: 0 0 0 5px rgba(111, 180, 63, .15);
    }
}

.cai-close,
.cai-reset {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    cursor: pointer;
    transition: background .2s ease, transform .35s ease;
}

.cai-close:hover,
.cai-reset:hover {
    background: rgba(255, 255, 255, .22);
}

.cai-reset:hover {
    transform: rotate(-90deg);
}

.cai-reset svg,
.cai-close svg {
    width: 17px;
    height: 17px;
}

.cai-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: .85rem;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    scrollbar-width: thin;
    scrollbar-color: #d8d0c2 transparent;
}

.cai-messages::-webkit-scrollbar {
    width: 6px;
}

.cai-messages::-webkit-scrollbar-thumb {
    background: #d8d0c2;
    border-radius: 999px;
}

.cai-msg {
    display: flex;
    gap: .55rem;
    max-width: 100%;
    animation: caiFade .22s ease;
}

@keyframes caiFade {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cai-msg-user {
    justify-content: flex-end;
}

.cai-bubble {
    max-width: 84%;
    padding: .75rem 1rem;
    border-radius: 16px;
    font-size: .92rem;
    line-height: 1.55;
    word-wrap: break-word;
}

.cai-msg-user .cai-bubble {
    background: linear-gradient(135deg, #262161, #18154f);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.cai-msg-bot .cai-bubble {
    background: #fff;
    color: #1c1a17;
    border: 1px solid #ece5da;
    border-bottom-left-radius: 4px;
    box-shadow: 0 6px 16px rgba(38, 33, 97, .06);
}

.cai-bubble strong {
    font-weight: 900;
    color: inherit;
}

.cai-bubble em {
    font-style: italic;
}

.cai-bubble code {
    padding: .1rem .35rem;
    border-radius: 5px;
    background: rgba(38, 33, 97, .08);
    color: #18154f;
    font-family: "SFMono-Regular", Menlo, Consolas, monospace;
    font-size: .85em;
}

.cai-bubble ul,
.cai-bubble ol {
    margin: .55rem 0 .25rem;
    padding-left: 1.2rem;
    display: grid;
    gap: .3rem;
}

.cai-bubble ul {
    list-style: none;
    padding-left: 0;
}

.cai-bubble ul li {
    position: relative;
    padding-left: 1.15rem;
}

.cai-bubble ul li::before {
    position: absolute;
    left: 0;
    top: .55em;
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #6fb43f;
}

.cai-bubble ol li {
    padding-left: .25rem;
}

.cai-bubble ol li::marker {
    color: #6fb43f;
    font-weight: 900;
}

.cai-bubble-wrap {
    position: relative;
    flex: 1;
    min-width: 0;
    max-width: calc(100% - 40px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.cai-msg-bot .cai-bubble-wrap .cai-bubble {
    max-width: 100%;
    width: auto;
}

.cai-copy {
    position: absolute;
    top: -8px;
    right: -8px;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 1px solid #ece5da;
    border-radius: 999px;
    background: #fff;
    color: #57534c;
    cursor: pointer;
    opacity: 0;
    transform: scale(.85);
    transition: opacity .2s ease, transform .2s ease, background .2s ease, color .2s ease;
    box-shadow: 0 4px 12px rgba(38, 33, 97, .12);
}

.cai-bubble-wrap:hover .cai-copy {
    opacity: 1;
    transform: scale(1);
}

.cai-copy:hover {
    background: #262161;
    color: #fff;
    border-color: #262161;
}

.cai-copy svg {
    width: 13px;
    height: 13px;
}

.cai-copy.is-copied {
    background: #6fb43f;
    border-color: #6fb43f;
    color: #fff;
    opacity: 1;
    transform: scale(1);
}

.cai-copy.is-copied svg {
    display: none;
}

.cai-copy.is-copied::after {
    content: "✓";
    font-weight: 950;
    font-size: .9rem;
}

.cai-avatar {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #262161, #6fb43f);
    color: #fff;
}

.cai-avatar svg {
    width: 16px;
    height: 16px;
}

.cai-link {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    color: #262161;
    font-weight: 900;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cai-link:hover {
    color: #6fb43f;
}

.cai-link svg {
    width: 12px;
    height: 12px;
}

.cai-doctor-cards {
    margin-top: .65rem;
    display: grid;
    gap: .5rem;
}

.cai-doctor-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 14px;
    background: linear-gradient(135deg, #faf7f1, #fff);
    border: 1px solid #ece5da;
    color: #1c1a17;
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.cai-doctor-card:hover {
    border-color: rgba(111, 180, 63, .55);
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(38, 33, 97, .1);
}

.cai-doctor-link {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    align-items: center;
    gap: .75rem;
    padding: .75rem .85rem;
    color: inherit;
}

.cai-doctor-link img {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    object-fit: cover;
    object-position: center top;
    background: #f3eee6;
}

.cai-doctor-link strong {
    display: block;
    color: #262161;
    font-size: .92rem;
    font-weight: 950;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cai-doctor-link small {
    display: block;
    margin-top: .15rem;
    color: #6fb43f;
    font-size: .74rem;
    font-weight: 900;
}

.cai-doctor-link em {
    display: flex;
    align-items: center;
    gap: .3rem;
    margin-top: .3rem;
    color: #6f6d68;
    font-size: .72rem;
    font-style: normal;
    font-weight: 750;
}

.cai-doctor-link em svg {
    width: 11px;
    height: 11px;
    color: #6fb43f;
}

.cai-doctor-cta {
    display: flex;
    gap: 0;
    border-top: 1px solid #f0ebe3;
    background: rgba(248, 250, 252, .6);
}

.cai-doctor-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    padding: .55rem .65rem;
    border: 0;
    background: transparent;
    color: #262161;
    font-size: .78rem;
    font-weight: 950;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.cai-doctor-btn+.cai-doctor-btn {
    border-left: 1px solid #f0ebe3;
}

.cai-doctor-btn:hover {
    background: #f4f0e9;
    color: #18154f;
}

.cai-doctor-btn.is-primary {
    background: #262161;
    color: #fff;
}

.cai-doctor-btn.is-primary:hover {
    background: #18154f;
}

.cai-doctor-btn svg {
    width: 13px;
    height: 13px;
}

.cai-doctor-btn[aria-label] {
    flex: 0 0 auto;
    padding: .55rem .85rem;
}

.cai-actions {
    margin-top: .65rem;
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

.cai-action-btn {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .45rem .85rem;
    border: 1px solid #e5ddd1;
    border-radius: 999px;
    background: #fff;
    color: #262161;
    font-size: .78rem;
    font-weight: 950;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.cai-action-btn:hover {
    background: #6fb43f;
    border-color: #6fb43f;
    color: #fff;
}

.cai-action-btn svg {
    width: 13px;
    height: 13px;
}

.cai-typing .cai-bubble {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .85rem 1rem;
}

.cai-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #a8a39a;
    animation: caiDot 1.2s ease-in-out infinite;
}

.cai-dot:nth-child(2) {
    animation-delay: .15s;
}

.cai-dot:nth-child(3) {
    animation-delay: .3s;
}

@keyframes caiDot {

    0%,
    100% {
        transform: translateY(0);
        opacity: .5;
    }

    40% {
        transform: translateY(-3px);
        opacity: 1;
    }
}

.cai-quick {
    display: none;
    flex-wrap: wrap;
    gap: .45rem;
    padding: 0 1.1rem .85rem;
    background: linear-gradient(180deg, transparent, #f8fafc);
}

.cai-quick.is-visible {
    display: flex;
}

.cai-quick-chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .5rem .85rem;
    border: 1px solid #e6ded2;
    border-radius: 999px;
    background: #fff;
    color: #262161;
    font-size: .76rem;
    font-weight: 900;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.cai-quick-chip:hover {
    border-color: #6fb43f;
    background: #f4faf0;
    transform: translateY(-1px);
}

.cai-quick-chip svg {
    width: 13px;
    height: 13px;
    color: #6fb43f;
}

.cai-form {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: .55rem;
    padding: .85rem 1rem 1rem;
    background: #fff;
    border-top: 1px solid #ece5da;
}

.cai-input {
    width: 100%;
    min-height: 44px;
    max-height: 140px;
    padding: .65rem .95rem;
    border: 1px solid #d8d0c2;
    border-radius: 14px;
    background: #f8fafc;
    color: #1c1a17;
    font-family: inherit;
    font-size: .94rem;
    font-weight: 650;
    line-height: 1.5;
    resize: none;
    outline: none;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.cai-input:focus {
    border-color: #262161;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(38, 33, 97, .1);
}

.cai-send {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #6fb43f, #5da334);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(111, 180, 63, .35);
    transition: transform .2s ease, opacity .2s ease;
}

.cai-send:hover {
    transform: translateY(-1px);
}

.cai-send:disabled {
    opacity: .55;
    cursor: wait;
}

.cai-send svg {
    width: 18px;
    height: 18px;
}

.cai-footnote {
    padding: 0 1rem .9rem;
    color: #a8a39a;
    font-size: .68rem;
    font-weight: 750;
    text-align: center;
}

.cai-footnote svg {
    display: inline;
    width: 11px;
    height: 11px;
    vertical-align: -2px;
    color: #6fb43f;
}

.cai-flash {
    animation: caiFlash 1.5s ease;
}

@keyframes caiFlash {
    0% {
        box-shadow: 0 0 0 0 rgba(111, 180, 63, 0);
    }

    20% {
        box-shadow: 0 0 0 8px rgba(111, 180, 63, .35);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(111, 180, 63, 0);
    }
}

/* ===== Follow-up suggestion chips =====
   Placed inside .cai-bubble-wrap so they sit below the bubble and share its width. */
.cai-suggestions {
    margin-top: .55rem;
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    width: 100%;
}

.cai-suggestion-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .45rem .8rem;
    border: 1px solid rgba(111, 180, 63, .35);
    border-radius: 10px;
    background: rgba(111, 180, 63, .08);
    color: #166534;
    font-size: .78rem;
    font-weight: 900;
    line-height: 1.3;
    text-align: left;
    cursor: pointer;
    max-width: 100%;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.cai-suggestion-chip:hover {
    background: #6fb43f;
    border-color: #6fb43f;
    color: #fff;
    transform: translateY(-1px);
}

.cai-suggestion-chip svg {
    width: 12px;
    height: 12px;
}

/* ===== Error state with retry ===== */
.cai-msg-error .cai-avatar {
    background: linear-gradient(135deg, #f97316, #dc2626);
}

.cai-msg-error .cai-bubble {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #9a3412;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .55rem;
}

.cai-retry {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .4rem .8rem;
    border: 1px solid #f97316;
    border-radius: 999px;
    background: #fff;
    color: #c2410c;
    font-size: .78rem;
    font-weight: 950;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.cai-retry:hover {
    background: #f97316;
    color: #fff;
}

.cai-retry svg {
    width: 13px;
    height: 13px;
}

/* ===== Send button loading state ===== */
.cai-send.is-loading {
    background: linear-gradient(135deg, #a8a39a, #6f6d68);
    box-shadow: 0 6px 14px rgba(38, 33, 97, .15);
    cursor: wait;
}

.cai-send.is-loading svg {
    animation: caiSpin 1s linear infinite;
}

@keyframes caiSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ===== First-visit attention bounce on FAB ===== */
.cai-attention .cai-fab {
    animation: caiAttention 1.6s ease-in-out 3;
}

@keyframes caiAttention {

    0%,
    100% {
        transform: translateY(0);
    }

    15% {
        transform: translateY(-12px) scale(1.05);
    }

    30% {
        transform: translateY(0);
    }

    45% {
        transform: translateY(-6px) scale(1.02);
    }

    60% {
        transform: translateY(0);
    }
}

.cai-attention .cai-fab::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 999px;
    border: 2px solid #6fb43f;
    opacity: 0;
    animation: caiAttentionRing 1.6s ease-out 3;
}

@keyframes caiAttentionRing {
    0% {
        opacity: 1;
        transform: scale(.85);
    }

    100% {
        opacity: 0;
        transform: scale(1.45);
    }
}

/* ===== Colinas IA mobile ===== */
@media (max-width: 640px) {
    #colinasAi.cai-root {
        right: 1rem;
        /* Lift the FAB above the persistent mobile-actionbar (≈58px + .75rem) */
        bottom: calc(5.6rem + env(safe-area-inset-bottom));
    }

    /* Lower the FAB on profile pages which do not have the mobile-actionbar */
    .profile-shell #colinasAi.cai-root {
        bottom: calc(1.5rem + env(safe-area-inset-bottom));
    }

    .cai-fab {
        width: 56px;
        height: 56px;
        box-shadow: 0 16px 32px rgba(38, 33, 97, .35), 0 0 0 4px rgba(111, 180, 63, .14);
    }

    .cai-fab svg {
        width: 24px;
        height: 24px;
    }

    /* Full-screen panel takes over the viewport on mobile */
    .cai-root.is-open {
        inset: 0;
        right: 0;
        bottom: 0;
    }

    /* Hide the FAB when the panel is open on mobile — header X is the close action */
    .cai-root.is-open .cai-fab {
        display: none;
    }

    .cai-panel {
        position: fixed;
        inset: 0;
        bottom: 0;
        right: 0;
        width: 100vw;
        max-width: 100vw;
        height: 100vh;
        height: 100dvh;
        max-height: 100vh;
        max-height: 100dvh;
        border-radius: 0;
        border: 0;
        transform: translateY(16px);
    }

    .cai-root.is-open .cai-panel {
        transform: translateY(0);
    }

    .cai-header {
        padding-top: calc(.95rem + env(safe-area-inset-top, 0px));
        padding-left: calc(1.1rem + env(safe-area-inset-left, 0px));
        padding-right: calc(1.1rem + env(safe-area-inset-right, 0px));
    }

    .cai-messages {
        padding: .95rem;
        padding-left: calc(.95rem + env(safe-area-inset-left, 0px));
        padding-right: calc(.95rem + env(safe-area-inset-right, 0px));
        gap: .75rem;
    }

    .cai-bubble {
        font-size: .94rem;
    }

    .cai-bubble-wrap {
        max-width: calc(100% - 38px);
    }

    .cai-msg-bot .cai-bubble {
        box-shadow: none;
    }

    .cai-copy {
        opacity: .55;
        transform: scale(1);
    }

    .cai-suggestions {
        gap: .35rem;
    }

    .cai-suggestion-chip {
        padding: .4rem .7rem;
        font-size: .76rem;
        border-radius: 9px;
    }

    .cai-quick {
        gap: .4rem;
        padding: 0 .95rem .75rem;
        padding-left: calc(.95rem + env(safe-area-inset-left, 0px));
        padding-right: calc(.95rem + env(safe-area-inset-right, 0px));
        max-height: 40vh;
        overflow-y: auto;
        scrollbar-width: none;
    }

    .cai-quick::-webkit-scrollbar {
        display: none;
    }

    .cai-quick-chip {
        padding: .5rem .75rem;
        font-size: .76rem;
    }

    .cai-form {
        padding: .75rem .9rem calc(.85rem + env(safe-area-inset-bottom, 0px));
        padding-left: calc(.9rem + env(safe-area-inset-left, 0px));
        padding-right: calc(.9rem + env(safe-area-inset-right, 0px));
    }

    .cai-input {
        min-height: 46px;
        font-size: 16px;
        /* prevent iOS zoom on focus */
    }

    .cai-send {
        width: 46px;
        height: 46px;
    }

    .cai-footnote {
        padding: 0 1rem calc(.7rem + env(safe-area-inset-bottom, 0px));
        font-size: .66rem;
        line-height: 1.45;
    }
}


/* ====== Liderazgo Institucional ====== */
.leadership-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(4rem, 6vw, 6rem) 0;
    color: #fff;
}

.leadership-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(70% 70% at 84% 8%, rgba(111, 180, 63, .28), transparent 60%),
        radial-gradient(60% 60% at 8% 92%, rgba(111, 180, 63, .12), transparent 60%),
        linear-gradient(135deg, #14123f 0%, #1c1856 45%, #262161 100%);
}

.leadership-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at center, #000 25%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 25%, transparent 75%);
}

.leadership-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .leadership-shell {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .leadership-shell {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.leadership-head {
    max-width: 720px;
    margin: 0 auto 2.75rem;
    text-align: center;
}

.leadership-kicker {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    padding: .45rem 1rem;
    color: #fff;
    font-size: .76rem;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}

.leadership-kicker svg {
    color: #b6f0a3;
}

.leadership-head h2 {
    margin-top: 1.1rem;
    font-family: "Outfit", "Plus Jakarta Sans", Inter, system-ui, sans-serif;
    font-size: clamp(2rem, 3.6vw, 3.1rem);
    font-weight: 950;
    line-height: 1.05;
    letter-spacing: -.015em;
    color: #fff;
}

.leadership-head p {
    margin: 1rem auto 0;
    max-width: 620px;
    color: rgba(255, 255, 255, .78);
    font-size: 1rem;
    line-height: 1.7;
}

.leadership-feature {
    position: relative;
    display: grid;
    grid-template-columns: minmax(190px, 220px) minmax(0, 1fr);
    gap: clamp(1.25rem, 3vw, 2rem);
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    padding: clamp(1.5rem, 2.8vw, 2rem);
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, .18);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .14) 0%, rgba(255, 255, 255, .06) 100%);
    backdrop-filter: blur(16px);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, .28),
        inset 0 1px 0 rgba(255, 255, 255, .15);
}

.leader-portrait {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 720 / 547;
    margin: 0;
    overflow: visible;
    flex-shrink: 0;
    border-radius: 14px;
    background: #eef2ef;
    box-shadow:
        0 22px 44px rgba(9, 8, 38, .32),
        0 0 0 1px rgba(255, 255, 255, .16);
}

.leader-portrait picture {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: inherit;
}

.leader-portrait img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.leader-portrait-badge {
    position: absolute;
    right: -10px;
    bottom: -10px;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: #fff;
    color: #6fb43f;
    box-shadow: 0 8px 16px rgba(0, 0, 0, .25);
}

.leader-meta {
    min-width: 0;
}

.leader-role {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .35rem .8rem;
    border-radius: 999px;
    background: rgba(111, 180, 63, .22);
    border: 1px solid rgba(111, 180, 63, .45);
    color: #d6f5c5;
    font-size: .72rem;
    font-weight: 950;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.leader-meta h3 {
    margin-top: .85rem;
    font-family: "Outfit", "Plus Jakarta Sans", Inter, system-ui, sans-serif;
    font-size: clamp(1.55rem, 2.4vw, 2.1rem);
    font-weight: 950;
    line-height: 1.1;
    letter-spacing: -.015em;
    color: #fff;
}

.leader-credentials {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-top: .9rem;
    color: #d6f5c5;
    font-size: .88rem;
    font-weight: 850;
}

.leader-credentials svg {
    color: #b6f0a3;
    flex-shrink: 0;
}

.leader-bio {
    margin-top: .75rem;
    max-width: 540px;
    color: rgba(255, 255, 255, .76);
    font-size: .95rem;
    line-height: 1.65;
}

.leadership-bridge {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 720px;
    margin: clamp(2.5rem, 4vw, 3.25rem) auto clamp(1.75rem, 3vw, 2.25rem);
}

.bridge-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .28), transparent);
}

.bridge-label {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .4rem 1rem;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .85);
    font-size: .76rem;
    font-weight: 950;
    letter-spacing: .06em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}

.bridge-label svg {
    color: #b6f0a3;
}

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

.gerencia-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: .55rem;
    padding: 1.4rem 1.2rem 1.3rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, .14);
    background: linear-gradient(160deg, rgba(255, 255, 255, .08) 0%, rgba(255, 255, 255, .03) 100%);
    backdrop-filter: blur(10px);
    color: #fff;
    transition: transform .25s ease, border-color .25s ease;
}

.gerencia-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(111, 180, 63, .12), transparent 55%);
    opacity: 0;
    transition: opacity .25s ease;
    pointer-events: none;
}

.gerencia-card:hover {
    transform: translateY(-4px);
    border-color: rgba(111, 180, 63, .55);
}

.gerencia-card:hover::before {
    opacity: 1;
}

.gerencia-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(111, 180, 63, .2);
    border: 1px solid rgba(111, 180, 63, .35);
    color: #b6f0a3;
}

.gerencia-card small {
    color: rgba(255, 255, 255, .58);
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.gerencia-card strong {
    font-family: "Outfit", "Plus Jakarta Sans", Inter, system-ui, sans-serif;
    font-size: 1.1rem;
    font-weight: 950;
    line-height: 1.2;
    color: #fff;
}

.gerencia-card p {
    margin-top: .25rem;
    color: rgba(255, 255, 255, .7);
    font-size: .82rem;
    line-height: 1.55;
}

.board-strip {
    display: grid;
    grid-template-columns: minmax(0, .55fr) minmax(0, 1fr);
    align-items: center;
    gap: 1.5rem;
    margin-top: clamp(2.25rem, 3vw, 3rem);
    padding: 1.2rem 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .05);
    backdrop-filter: blur(8px);
}

.board-intro span {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: rgba(255, 255, 255, .65);
    font-size: .72rem;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.board-intro span svg {
    color: #b6f0a3;
}

.board-intro strong {
    display: block;
    margin-top: .4rem;
    color: #fff;
    font-family: "Outfit", "Plus Jakarta Sans", Inter, system-ui, sans-serif;
    font-size: 1rem;
    font-weight: 900;
}

.board-members {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .55rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.board-members li {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .5rem .85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .15);
    color: rgba(255, 255, 255, .92);
    font-size: .82rem;
    font-weight: 850;
}

.board-members li svg {
    color: #b6f0a3;
}

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

@media (max-width: 900px) {
    .leadership-feature {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }

    .leader-portrait {
        width: min(100%, 420px);
        height: auto;
    }

    .leader-role {
        align-self: center;
    }

    .leader-credentials {
        justify-content: center;
        flex-wrap: wrap;
    }

    .leader-bio {
        margin-left: auto;
        margin-right: auto;
    }

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

    .board-strip {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .board-members {
        justify-content: flex-start;
    }
}

@media (max-width: 540px) {
    .gerencias-grid {
        grid-template-columns: 1fr;
    }

    .leadership-feature {
        padding: 1.4rem;
    }
}

/* ====== Premium CTA band (landing) ====== */
.cta-band {
    background: #fff;
    padding: clamp(3rem, 5vw, 5rem) 0;
}

.cta-panel {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr);
    align-items: center;
    gap: clamp(1.5rem, 3vw, 3rem);
    border-radius: 24px;
    background: linear-gradient(135deg, #18154f 0%, #262161 55%, #2f2978 100%);
    padding: clamp(2rem, 4vw, 3.25rem);
    color: #fff;
    box-shadow: 0 36px 80px rgba(38, 33, 97, .28);
    isolation: isolate;
}

.cta-panel-glow {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(60% 60% at 92% 8%, rgba(111, 180, 63, .35), transparent 60%),
        radial-gradient(50% 50% at 6% 95%, rgba(111, 180, 63, .18), transparent 60%);
}

.cta-panel-kicker {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    padding: .4rem .85rem;
    color: #fff;
    font-size: .76rem;
    font-weight: 950;
    letter-spacing: .06em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}

.cta-panel-kicker svg {
    color: #b6f0a3;
}

.cta-panel h2 {
    margin-top: 1.1rem;
    font-family: "Outfit", "Plus Jakarta Sans", Inter, system-ui, sans-serif;
    font-size: clamp(2rem, 3.4vw, 2.85rem);
    font-weight: 950;
    line-height: 1.05;
    letter-spacing: -.01em;
    color: #fff;
}

.cta-panel-copy p {
    margin-top: 1rem;
    color: rgba(255, 255, 255, .82);
    line-height: 1.7;
    font-size: 1rem;
    max-width: 620px;
}

.cta-panel-points {
    margin-top: 1.4rem;
    display: grid;
    gap: .6rem;
}

.cta-panel-points li {
    display: flex;
    align-items: center;
    gap: .65rem;
    color: rgba(255, 255, 255, .9);
    font-size: .9rem;
    font-weight: 750;
}

.cta-panel-points svg {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: rgba(111, 180, 63, .85);
    color: #fff;
    padding: 4px;
    flex-shrink: 0;
}

.cta-panel-actions {
    display: flex;
    flex-direction: column;
    gap: .85rem;
}

.cta-panel-actions .btn-green {
    width: 100%;
    justify-content: center;
    min-height: 58px;
    font-size: .95rem;
    box-shadow: 0 18px 32px rgba(111, 180, 63, .35);
}

.cta-phone {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .2);
    background: rgba(255, 255, 255, .08);
    padding: 1rem 1.15rem;
    color: #fff;
    transition: background .2s ease, border-color .2s ease;
}

.cta-phone:hover {
    background: rgba(255, 255, 255, .14);
    border-color: rgba(255, 255, 255, .4);
}

.cta-phone-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 12px;
    background: rgba(111, 180, 63, .85);
    color: #fff;
}

.cta-phone small {
    display: block;
    color: rgba(255, 255, 255, .65);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.cta-phone strong {
    display: block;
    margin-top: .1rem;
    color: #fff;
    font-family: "Plus Jakarta Sans", Inter, sans-serif;
    font-size: 1.25rem;
    font-weight: 950;
}

.cta-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 50px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 12px;
    background: rgba(255, 255, 255, .05);
    color: #fff;
    font-size: .9rem;
    font-weight: 950;
    transition: background .2s ease, border-color .2s ease;
}

.cta-secondary:hover {
    background: rgba(255, 255, 255, .14);
    border-color: rgba(255, 255, 255, .42);
}

.cta-secondary svg {
    color: #b6f0a3;
}

/* ====== Featured doctors (landing) ====== */
.featured-doctors {
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    padding: clamp(4rem, 6vw, 5.5rem) 0;
}

.featured-doctors-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2.25rem;
}

.featured-doctors-head span {
    display: block;
    margin-top: .75rem;
    max-width: 560px;
    color: #6f6d68;
    line-height: 1.7;
}

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

.featured-doctor {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #ece5da;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(38, 33, 97, .06);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.featured-doctor:hover {
    transform: translateY(-4px);
    border-color: rgba(111, 180, 63, .55);
    box-shadow: 0 26px 48px rgba(38, 33, 97, .14);
}

.featured-doctor-photo {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #f3eee6;
}

.featured-doctor-photo img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: 50% 18%;
    transition: transform .5s ease;
}

.featured-doctor:hover .featured-doctor-photo img {
    transform: scale(1.05);
}

.featured-doctor-photo::after {
    position: absolute;
    inset: auto 0 0;
    height: 60%;
    content: "";
    background: linear-gradient(180deg, transparent, rgba(2, 6, 23, .55));
}

.featured-doctor-photo span {
    position: absolute;
    left: .9rem;
    bottom: .9rem;
    z-index: 1;
    border-radius: 999px;
    background: rgba(255, 255, 255, .95);
    padding: .35rem .75rem;
    color: var(--navy);
    font-size: .72rem;
    font-weight: 950;
    box-shadow: 0 6px 14px rgba(38, 33, 97, .18);
}

.featured-doctor-body {
    padding: 1.1rem 1.15rem 1.15rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.featured-doctor-body h3 {
    color: var(--navy);
    font-family: "Outfit", "Plus Jakarta Sans", Inter, system-ui, sans-serif;
    font-size: 1.05rem;
    font-weight: 950;
    line-height: 1.22;
}

.featured-doctor-body h3 a {
    color: inherit;
}

.featured-doctor-body h3 a:hover {
    color: var(--green);
}

.featured-doctor-body p {
    display: flex;
    align-items: center;
    gap: .4rem;
    margin-top: .55rem;
    color: #6f6d68;
    font-size: .8rem;
    font-weight: 750;
    line-height: 1.4;
}

.featured-doctor-body p svg {
    color: var(--green);
    flex-shrink: 0;
}

.featured-doctor-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-top: auto;
    padding-top: 1rem;
    color: var(--navy);
    font-size: .82rem;
    font-weight: 950;
    transition: color .2s ease, gap .2s ease;
}

.featured-doctor-link:hover {
    color: var(--green);
    gap: .65rem;
}

/* ====== Directory page (new UI) ====== */
.dir-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background:
        linear-gradient(120deg, rgba(24, 21, 79, .96) 0%, rgba(38, 33, 97, .82) 45%, rgba(38, 33, 97, .55) 100%),
        var(--dir-hero-bg) center 35% / cover no-repeat;
    color: #fff;
}

.dir-hero::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    content: "";
    background:
        radial-gradient(60% 60% at 88% 18%, rgba(111, 180, 63, .25), transparent 60%),
        radial-gradient(40% 40% at 12% 92%, rgba(111, 180, 63, .14), transparent 60%);
}

.dir-hero-grid {
    max-width: 1280px;
    margin: 0 auto;
    padding: clamp(3.5rem, 7vw, 6rem) 1rem clamp(7rem, 11vw, 9rem);
}

@media (min-width: 640px) {
    .dir-hero-grid {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .dir-hero-grid {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.dir-hero-copy {
    max-width: 760px;
}

.dir-hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    padding: .45rem .95rem;
    color: #fff;
    font-size: .76rem;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}

.dir-hero-kicker svg {
    color: #b6f0a3;
}

.dir-hero-copy h1 {
    margin-top: 1.1rem;
    font-family: "Outfit", "Plus Jakarta Sans", Inter, system-ui, sans-serif;
    font-size: clamp(2.7rem, 5.4vw, 5.4rem);
    font-weight: 950;
    line-height: .98;
    letter-spacing: -.015em;
}

.dir-hero-copy>p {
    margin-top: 1.15rem;
    max-width: 620px;
    color: rgba(255, 255, 255, .82);
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    line-height: 1.75;
}

.dir-hero-actions {
    margin-top: 1.9rem;
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.dir-hero-stats {
    margin-top: 2.4rem;
    display: grid;
    max-width: 620px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 14px;
    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(12px);
}

.dir-hero-stats>div {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: .85rem;
    padding: 1.05rem 1.1rem;
}

.dir-hero-stats>div+div {
    border-left: 1px solid rgba(255, 255, 255, .14);
}

.dir-hero-stats dt {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(111, 180, 63, .28);
    color: #d6f5c5;
}

.dir-hero-stats dd {
    margin: 0;
}

.dir-hero-stats strong {
    display: block;
    font-family: "Outfit", "Plus Jakarta Sans", Inter, system-ui, sans-serif;
    font-size: 1.55rem;
    font-weight: 950;
    line-height: 1;
    color: #fff;
}

.dir-hero-stats small {
    display: block;
    margin-top: .2rem;
    color: rgba(255, 255, 255, .72);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .03em;
}

.dir-hero .btn-outline-white {
    border-color: rgba(255, 255, 255, .5);
    color: #fff;
}

.dir-search-stage {
    position: relative;
    z-index: 6;
    max-width: 1120px;
    margin: -5.5rem auto 0;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .dir-search-stage {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

.dir-search-card {
    position: relative;
    border-radius: 18px;
    background: #fff;
    padding: clamp(1.25rem, 2.4vw, 1.8rem);
    box-shadow: 0 32px 70px rgba(38, 33, 97, .18);
    border: 1px solid #e5edf5;
}

.dir-search-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.dir-search-title {
    display: flex;
    align-items: center;
    gap: .85rem;
    min-width: 0;
}

.dir-search-title>span {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(111, 180, 63, .18), rgba(111, 180, 63, .06));
    color: var(--green);
}

.dir-search-title strong {
    display: block;
    color: var(--navy);
    font-family: "Outfit", "Plus Jakarta Sans", Inter, system-ui, sans-serif;
    font-size: clamp(1.2rem, 1.8vw, 1.45rem);
    font-weight: 950;
    line-height: 1.2;
}

.dir-search-title small {
    display: block;
    margin-top: .15rem;
    color: #6f6d68;
    font-size: .82rem;
    font-weight: 750;
}

.dir-result-count {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    border-radius: 999px;
    background: #f4f0e9;
    padding: .45rem .85rem;
    color: var(--navy);
    font-size: .78rem;
    font-weight: 950;
}

.dir-result-count svg {
    color: var(--green);
}

.dir-search-row {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: .5rem;
    margin-top: 1.1rem;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    background: #f8fafc;
    padding: .35rem .35rem .35rem 1rem;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.dir-search-row:focus-within {
    border-color: var(--navy);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(38, 33, 97, .1);
}

.dir-search-row>svg {
    color: var(--navy);
}

.dir-search-row input {
    min-width: 0;
    min-height: 58px;
    background: transparent;
    color: #1c1a17;
    font-size: 1rem;
    font-weight: 750;
    outline: none;
}

.dir-search-clear {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: rgba(2, 6, 23, .06);
    color: var(--navy);
    transition: background .2s ease;
}

.dir-search-clear:hover {
    background: rgba(2, 6, 23, .12);
}

.dir-search-submit {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    min-height: 48px;
    border-radius: 10px;
    background: var(--navy);
    padding: 0 1.2rem;
    color: #fff;
    font-size: .9rem;
    font-weight: 950;
    transition: background .2s ease, transform .2s ease;
}

.dir-search-submit:hover {
    background: var(--navy-2);
    transform: translateY(-1px);
}

.dir-live-panel {
    position: absolute;
    top: calc(100% + .35rem);
    left: 0;
    right: 0;
    z-index: 25;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid #ece5da;
    background: #fff;
    box-shadow: 0 30px 60px rgba(38, 33, 97, .18);
}

.dir-live-head {
    padding: .9rem 1.2rem;
    border-bottom: 1px solid #f0ebe3;
    color: var(--navy);
    font-size: .78rem;
    font-weight: 950;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.dir-live-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 440px;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.dir-live-grid::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.dir-live-result {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    padding: .85rem 1.2rem;
    border-top: 1px solid #f4f0e9;
    color: var(--navy);
    transition: background .2s ease;
}

.dir-live-result:hover {
    background: #faf7f1;
}

.dir-live-result.is-hidden {
    display: none;
}

.dir-live-result img {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
    object-position: center top;
    background: #f3eee6;
}

.dir-live-result strong {
    display: block;
    color: var(--navy);
    font-size: .95rem;
    font-weight: 950;
}

.dir-live-result small {
    display: block;
    margin-top: .2rem;
    color: #6f6d68;
    font-size: .78rem;
    font-weight: 750;
}

.dir-live-result svg {
    color: var(--green);
}

.dir-section {
    padding: clamp(4rem, 6vw, 6rem) 0 clamp(3rem, 5vw, 5rem);
}

.dir-section-shell {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .dir-section-shell {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .dir-section-shell {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.dir-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.dir-section-head h2 {
    margin-top: .55rem;
    color: var(--navy);
    font-family: "Outfit", "Plus Jakarta Sans", Inter, system-ui, sans-serif;
    font-size: clamp(2rem, 3.4vw, 3rem);
    font-weight: 950;
    line-height: 1.05;
    letter-spacing: -.01em;
}

.dir-section-head span {
    display: block;
    margin-top: .65rem;
    max-width: 580px;
    color: #6f6d68;
    line-height: 1.65;
}

.dir-filter-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .5rem;
}

.dir-filter-bar button {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    min-height: 42px;
    border: 1px solid #e5ddd1;
    border-radius: 999px;
    background: #fff;
    padding: 0 1.05rem;
    color: #403c36;
    font-size: .82rem;
    font-weight: 950;
    transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.dir-filter-bar button:hover {
    border-color: var(--navy);
    color: var(--navy);
    transform: translateY(-1px);
}

.dir-filter-bar button.is-active {
    border-color: var(--navy);
    background: var(--navy);
    color: #fff;
}

.dir-filter-bar button.is-active svg {
    color: #b6f0a3;
}

.dir-filter-bar button svg {
    color: var(--green);
}

.dir-doctor-grid {
    margin-top: 2.25rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
}

.dir-doctor-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #ece5da;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(38, 33, 97, .06);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.dir-doctor-card:hover {
    transform: translateY(-4px);
    border-color: rgba(111, 180, 63, .55);
    box-shadow: 0 26px 48px rgba(38, 33, 97, .14);
}

.dir-doctor-card.is-hidden {
    display: none;
}

.dir-doctor-photo {
    position: relative;
    display: block;
    /* Retrato: las fotos de médicos son verticales (cuerpo/medio cuerpo).
       Un marco horizontal los cortaba por la cintura y dejaba media pared. */
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #f3eee6;
}

.dir-doctor-photo img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    /* Encuadre alto, no pegado al borde: deja aire sobre la cabeza sin bajar la cara. */
    object-position: 50% 18%;
    transition: transform .45s ease;
}

/* Los médicos sin foto usan un avatar SVG cuadrado con sus iniciales:
   ese sí va centrado, o el monograma se sube y se corta. */
.dir-doctor-photo img.is-avatar,
.featured-doctor-photo img.is-avatar {
    object-position: center center;
}

.dir-doctor-card:hover .dir-doctor-photo img {
    transform: scale(1.05);
}

.dir-doctor-photo::after {
    position: absolute;
    inset: auto 0 0;
    height: 56%;
    content: "";
    background: linear-gradient(180deg, transparent, rgba(2, 6, 23, .55));
}

.dir-doctor-tag {
    position: absolute;
    left: .85rem;
    bottom: .85rem;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, .95);
    padding: .35rem .7rem;
    color: var(--navy);
    font-size: .72rem;
    font-weight: 950;
    letter-spacing: .02em;
    box-shadow: 0 6px 14px rgba(38, 33, 97, .18);
}

.dir-doctor-body {
    flex: 1;
    padding: 1.1rem 1.15rem .8rem;
}

.dir-doctor-body h3 {
    color: var(--navy);
    font-family: "Outfit", "Plus Jakarta Sans", Inter, system-ui, sans-serif;
    font-size: 1.08rem;
    font-weight: 950;
    line-height: 1.2;
}

.dir-doctor-body h3 a {
    color: inherit;
}

.dir-doctor-body h3 a:hover {
    color: var(--green);
}

.dir-doctor-office,
.dir-doctor-schedule {
    display: flex;
    align-items: center;
    gap: .4rem;
    margin-top: .55rem;
    color: #6f6d68;
    font-size: .78rem;
    font-weight: 750;
    line-height: 1.3;
}

.dir-doctor-sub {
    display: flex;
    align-items: center;
    gap: .4rem;
    margin-top: .4rem;
    color: var(--navy);
    font-size: .82rem;
    font-weight: 800;
    line-height: 1.3;
}

.dir-doctor-office svg,
.dir-doctor-schedule svg,
.dir-doctor-sub svg {
    color: var(--green);
    flex-shrink: 0;
}

.dir-doctor-actions {
    display: grid;
    grid-template-columns: 1fr 48px;
    border-top: 1px solid #f0ebe3;
}

.dir-action-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    min-height: 50px;
    color: var(--navy);
    font-size: .85rem;
    font-weight: 950;
    transition: background .2s ease;
}

.dir-action-primary:hover {
    background: #faf7f1;
}

.dir-action-secondary {
    display: grid;
    place-items: center;
    border-left: 1px solid #f0ebe3;
    color: var(--green);
    transition: background .2s ease, color .2s ease;
}

.dir-action-secondary:hover {
    background: var(--green);
    color: #fff;
}

.dir-doctor-empty {
    margin-top: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    border: 1px dashed #d8d0c2;
    border-radius: 12px;
    background: #f8fafc;
    padding: 1.4rem;
    color: #6f6d68;
    font-weight: 850;
}

.dir-doctor-empty svg {
    color: #a8a39a;
}

.dir-value-band {
    background: linear-gradient(180deg, #f7f3ec 0%, #fff 100%);
    padding: clamp(2.5rem, 4vw, 4rem) 0;
}

.dir-value-shell {
    display: grid;
    max-width: 1280px;
    margin: 0 auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .dir-value-shell {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .dir-value-shell {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.dir-value-shell article {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
    border: 1px solid #ece5da;
    border-radius: 16px;
    background: #fff;
    padding: 1.3rem;
    box-shadow: 0 12px 28px rgba(38, 33, 97, .06);
}

.dir-value-shell span {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(38, 33, 97, .08);
    color: var(--navy);
}

.dir-value-shell article:hover span {
    background: var(--green);
    color: #fff;
}

.dir-value-shell strong {
    display: block;
    color: var(--navy);
    font-size: 1rem;
    font-weight: 950;
}

.dir-value-shell small {
    display: block;
    margin-top: .25rem;
    color: #6f6d68;
    font-size: .82rem;
    font-weight: 750;
    line-height: 1.5;
}

.dir-location {
    padding: clamp(3rem, 5vw, 5rem) 0 clamp(4rem, 6vw, 6rem);
}

.dir-location-shell {
    display: grid;
    max-width: 1280px;
    margin: 0 auto;
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
    gap: 1.5rem;
    align-items: stretch;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .dir-location-shell {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .dir-location-shell {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.dir-location-info {
    display: flex;
    flex-direction: column;
    border-radius: 18px;
    background: var(--navy);
    padding: clamp(1.6rem, 3vw, 2.4rem);
    color: #fff;
    box-shadow: 0 24px 50px rgba(38, 33, 97, .25);
}

.dir-location-info img {
    width: 180px;
    background: #fff;
    border-radius: 12px;
    padding: .55rem .75rem;
    box-shadow: 0 12px 24px rgba(2, 6, 23, .22);
}

.dir-location-info h2 {
    margin-top: 1.25rem;
    font-family: "Outfit", "Plus Jakarta Sans", Inter, system-ui, sans-serif;
    font-size: clamp(1.6rem, 2.4vw, 2.2rem);
    font-weight: 950;
    line-height: 1.1;
}

.dir-location-info p {
    margin-top: .85rem;
    color: rgba(255, 255, 255, .8);
    line-height: 1.65;
}

.dir-location-info ul {
    margin-top: 1.5rem;
    display: grid;
    gap: .75rem;
}

.dir-location-info li {
    display: flex;
    align-items: center;
    gap: .65rem;
    color: rgba(255, 255, 255, .92);
    font-size: .9rem;
    font-weight: 750;
}

.dir-location-info li a {
    color: #fff;
}

.dir-location-info li a:hover {
    color: #b6f0a3;
}

.dir-location-info li svg {
    color: #b6f0a3;
    flex-shrink: 0;
}

.dir-location-actions {
    margin-top: auto;
    padding-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
}

.dir-location-actions .btn-outline {
    border-color: rgba(255, 255, 255, .35);
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

.dir-location-actions .btn-outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, .16);
}

.dir-location-shell iframe {
    width: 100%;
    min-height: 420px;
    height: 100%;
    border: 0;
    border-radius: 18px;
    background: #efe9e0;
    box-shadow: 0 16px 40px rgba(38, 33, 97, .12);
}

/* ====== Doctor profile (new UI) ====== */
.profile-shell {
    background: #f7f3ec;
    min-height: 100vh;
}

.profile-topbar {
    background: #fff;
    border-bottom: 1px solid #e5edf5;
}

.profile-topbar-inner {
    display: flex;
    max-width: 1280px;
    margin: 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
}

@media (min-width: 640px) {
    .profile-topbar-inner {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .profile-topbar-inner {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.profile-topbar nav {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}

.profile-topbar nav a,
.profile-topbar nav button {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    min-height: 42px;
    border-radius: 10px;
    padding: 0 .95rem;
    color: var(--navy);
    font-size: .85rem;
    font-weight: 900;
    transition: background .2s ease, color .2s ease;
}

.profile-topbar nav a:hover {
    background: #f4f0e9;
    color: var(--navy);
}

.profile-topbar nav .profile-cta {
    background: var(--green);
    color: #fff;
    box-shadow: 0 10px 22px rgba(111, 180, 63, .25);
}

.profile-topbar nav .profile-cta:hover {
    background: var(--green-2);
    color: #fff;
}

.profile-crumbs {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.5rem 1rem .5rem;
    display: flex;
    align-items: center;
    gap: .55rem;
    color: #6f6d68;
    font-size: .82rem;
    font-weight: 850;
}

@media (min-width: 640px) {
    .profile-crumbs {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .profile-crumbs {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.profile-crumbs a {
    color: var(--navy);
}

.profile-crumbs a:hover {
    color: var(--green);
}

.profile-crumbs span {
    color: #a8a39a;
}

.profile-hero {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 1rem clamp(2rem, 4vw, 3rem);
}

@media (min-width: 640px) {
    .profile-hero {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .profile-hero {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.profile-hero-card {
    display: grid;
    grid-template-columns: minmax(0, .38fr) minmax(0, .62fr);
    overflow: hidden;
    border-radius: 32px;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 30px 80px rgba(38, 33, 97, .06), 0 2px 8px rgba(38, 33, 97, .02);
}

.profile-portrait {
    position: relative;
    background: linear-gradient(135deg, #f8f6f0, #eae2d6);
    display: flex;
}

.profile-portrait img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center top;
}

.profile-portrait::after {
    position: absolute;
    inset: auto 0 0;
    height: 40%;
    content: "";
    background: linear-gradient(180deg, transparent, rgba(2, 6, 23, .4));
    pointer-events: none;
}

.profile-portrait-badge {
    position: absolute;
    left: 1.5rem;
    top: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    padding: .5rem 1rem;
    color: var(--navy);
    font-size: .75rem;
    font-weight: 950;
    box-shadow: 0 8px 24px rgba(38, 33, 97, .12);
}

.profile-portrait-badge svg {
    color: var(--green);
}

.profile-identity {
    padding: clamp(2.5rem, 4vw, 3.5rem) clamp(2.5rem, 5vw, 4rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(180deg, #ffffff, #fdfbf7);
}

.profile-pills {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
}

.profile-specialty-pill {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: .4rem;
    border-radius: 999px;
    background: rgba(111, 180, 63, .12);
    padding: .35rem .8rem;
    color: var(--green);
    font-size: .76rem;
    font-weight: 950;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.profile-subspecialty-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: var(--navy-soft, #efeff8);
    padding: .35rem .8rem;
    color: var(--navy);
    font-size: .76rem;
    font-weight: 800;
}

.profile-identity h1 {
    margin-top: 1rem;
    color: var(--navy);
    font-family: "Outfit", "Plus Jakarta Sans", Inter, system-ui, sans-serif;
    font-size: clamp(2.1rem, 3.6vw, 3.4rem);
    font-weight: 950;
    line-height: 1.02;
    letter-spacing: -.015em;
}

.profile-identity>p {
    margin-top: 1.1rem;
    color: #57534c;
    font-size: 1rem;
    line-height: 1.7;
}

.profile-quick-actions {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.profile-quick-actions .btn {
    min-height: 52px;
}

.profile-quick-actions .btn-ghost {
    border: 1px solid #e5ddd1;
    background: #fff;
    color: var(--navy);
}

.profile-quick-actions .btn-ghost:hover {
    border-color: var(--navy);
    background: #faf7f1;
}

.profile-meta-strip {
    margin-top: 3rem;
    padding-top: 2rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    border-top: 1px solid #ece5da;
}

.profile-meta-strip>div {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
}

.profile-meta-strip span {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(111, 180, 63, .1);
    color: var(--green);
    flex-shrink: 0;
}

.profile-meta-strip small {
    display: block;
    color: #8c8982;
    font-size: .75rem;
    font-weight: 850;
    letter-spacing: .05em;
    text-transform: uppercase;
    margin-bottom: 0.2rem;
}

.profile-meta-strip strong {
    display: block;
    color: var(--navy);
    font-size: 1rem;
    font-weight: 900;
    word-break: break-word;
    line-height: 1.3;
}

.profile-meta-strip a {
    color: var(--navy);
}

.profile-meta-strip a:hover {
    color: var(--green);
}

.profile-body {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1rem clamp(4rem, 6vw, 6rem);
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 640px) {
    .profile-body {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .profile-body {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.profile-card {
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 28px;
    background: linear-gradient(145deg, #ffffff, #fcfcfb);
    padding: clamp(2rem, 3.5vw, 2.5rem);
    box-shadow: 0 24px 48px rgba(38, 33, 97, .04), 0 4px 12px rgba(38, 33, 97, .01);
}

.profile-card+.profile-card {
    margin-top: 1.5rem;
}

.profile-card h2 {
    display: flex;
    align-items: center;
    gap: .75rem;
    color: var(--navy);
    font-family: "Outfit", "Plus Jakarta Sans", Inter, system-ui, sans-serif;
    font-size: 1.45rem;
    font-weight: 950;
    line-height: 1.2;
}

.profile-card h2 svg {
    color: var(--green);
}

.profile-card p {
    margin-top: 1rem;
    color: #57534c;
    line-height: 1.75;
    font-size: .96rem;
}

.profile-card .profile-card-lead {
    display: block;
    margin-top: .5rem;
    color: #1c1a17;
    font-weight: 900;
    font-size: 1rem;
}

.profile-associations {
    margin-top: 1.2rem;
    display: grid;
    gap: .65rem;
}

.profile-associations p {
    display: flex;
    align-items: center;
    gap: .8rem;
    margin: 0;
    padding: .85rem 1rem;
    border: 1px solid #f0ebe3;
    border-radius: 12px;
    background: #f8fafc;
    color: var(--navy);
    font-size: .92rem;
    font-weight: 900;
    line-height: 1.4;
}

.profile-associations p svg {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 999px;
    background: var(--green);
    color: #fff;
    padding: 7px;
}

.profile-bottom-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    align-items: start;
}

.profile-info-card {
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 28px;
    background: linear-gradient(145deg, #ffffff, #fcfcfb);
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(38, 33, 97, .04), 0 4px 12px rgba(38, 33, 97, .01);
}

.profile-info-card h3 {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: 1.5rem 1.75rem;
    border-bottom: 1px solid rgba(38, 33, 97, .04);
    color: var(--navy);
    font-family: "Outfit", "Plus Jakarta Sans", Inter, system-ui, sans-serif;
    font-size: 1.25rem;
    font-weight: 950;
}

.profile-info-card h3 svg {
    color: var(--green);
}

.profile-info-card dl {
    display: grid;
}

.profile-info-card dl div {
    padding: 1.25rem 1.75rem;
    border-bottom: 1px solid rgba(38, 33, 97, .03);
}

.profile-info-card dl div:last-child {
    border-bottom: 0;
}

.profile-info-card dt {
    display: flex;
    align-items: center;
    gap: .55rem;
    color: #a8a39a;
    font-size: .72rem;
    font-weight: 950;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.profile-info-card dt svg {
    color: var(--green);
}

.profile-info-card dd {
    margin: .4rem 0 0;
    color: var(--navy);
    font-size: .94rem;
    font-weight: 850;
    line-height: 1.5;
    word-break: break-word;
}

.profile-info-card dd a {
    color: var(--navy);
}

.profile-info-card dd a:hover {
    color: var(--green);
}

.profile-cta-card {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: linear-gradient(135deg, var(--navy), #1a1645);
    padding: clamp(2rem, 3vw, 2.5rem);
    color: #fff;
    box-shadow: 0 30px 60px rgba(38, 33, 97, .25), 0 4px 16px rgba(38, 33, 97, .1);
}

.profile-cta-card::before {
    content: "";
    position: absolute;
    top: 0; right: 0;
    width: 250px; height: 250px;
    background: radial-gradient(circle, rgba(111, 180, 63, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(30%, -30%);
    pointer-events: none;
}

.profile-cta-card span {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    padding: .35rem .75rem;
    font-size: .72rem;
    font-weight: 950;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.profile-cta-card span svg {
    color: #b6f0a3;
}

.profile-cta-card h3 {
    margin-top: 1rem;
    font-family: "Outfit", "Plus Jakarta Sans", Inter, system-ui, sans-serif;
    font-size: 1.45rem;
    font-weight: 950;
    line-height: 1.15;
}

.profile-cta-card p {
    margin-top: .65rem;
    color: rgba(255, 255, 255, .8);
    line-height: 1.65;
    font-size: .9rem;
}

.profile-cta-card .btn {
    margin-top: 1.25rem;
    width: 100%;
    justify-content: center;
}

.profile-back {
    grid-column: 1 / -1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    margin: 2.5rem auto 0;
    padding: .9rem 1.6rem;
    border: 1px solid #e5ddd1;
    border-radius: 999px;
    color: var(--navy);
    font-weight: 950;
    background: #fff;
    transition: background .2s ease, transform .2s ease;
}

.profile-back:hover {
    background: #f4f0e9;
    transform: translateX(-2px);
}

.profile-empty {
    max-width: 720px;
    margin: 0 auto;
    padding: clamp(3rem, 6vw, 5rem) 1rem;
    text-align: center;
}

.profile-empty h1 {
    color: var(--navy);
    font-family: "Outfit", "Plus Jakarta Sans", Inter, system-ui, sans-serif;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 950;
}

.profile-empty p {
    margin-top: 1rem;
    color: #6f6d68;
    line-height: 1.7;
}

.profile-empty .btn {
    margin-top: 2rem;
}

@media (max-width: 1180px) {
    .featured-doctors-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .dir-doctor-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    /* Profile body is flex, no grid columns needed */


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

    .profile-meta-strip>div:nth-child(2n) {
        border-left: 1px solid #f0ebe3;
    }

    .profile-meta-strip>div:nth-child(2n+1) {
        border-left: 0;
    }
}

@media (max-width: 900px) {
    .dir-hero-stats {
        grid-template-columns: 1fr;
    }

    .dir-hero-stats>div+div {
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, .14);
    }

    .dir-search-stage {
        margin-top: -4.5rem;
    }

    .dir-live-grid {
        grid-template-columns: 1fr;
    }

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

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

    .dir-filter-bar {
        justify-content: flex-start;
    }

    .dir-value-shell {
        grid-template-columns: 1fr;
    }

    .dir-location-shell {
        grid-template-columns: 1fr;
    }

    .dir-location-shell iframe {
        min-height: 320px;
    }

    .profile-hero-card {
        grid-template-columns: 1fr;
    }

    .profile-bottom-grid {
        grid-template-columns: 1fr;
    }

    .profile-portrait {
        min-height: 360px;
    }

    .profile-meta-strip {
        grid-template-columns: 1fr;
    }

    .profile-meta-strip>div+div {
        border-left: 0;
        border-top: 1px solid #f0ebe3;
    }
}

@media (max-width: 640px) {
    .featured-doctors-grid {
        grid-template-columns: 1fr;
    }

    .featured-doctors-head {
        align-items: start;
        flex-direction: column;
    }

    .cta-panel {
        padding: 1.65rem;
        border-radius: 18px;
    }

    .cta-panel h2 {
        font-size: clamp(1.65rem, 8vw, 2.1rem);
    }

    .dir-hero-grid {
        padding-top: 3rem;
        padding-bottom: 7.5rem;
    }

    .dir-hero-copy h1 {
        font-size: clamp(2.3rem, 12vw, 3.4rem);
    }

    .dir-hero-actions .btn {
        flex: 1;
        min-width: 0;
        justify-content: center;
    }

    .dir-search-card {
        padding: 1.1rem;
    }

    .dir-search-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .dir-search-row {
        grid-template-columns: 28px minmax(0, 1fr) auto;
        padding-left: .75rem;
        gap: .35rem;
    }

    .dir-search-row>svg {
        width: 1rem;
        height: 1rem;
    }

    .dir-search-row input {
        min-height: 52px;
        font-size: .94rem;
    }

    .dir-search-submit {
        grid-column: 1 / -1;
        justify-content: center;
        min-height: 50px;
    }

    .dir-search-clear {
        width: 38px;
        height: 38px;
    }

    .dir-doctor-grid {
        grid-template-columns: 1fr;
    }

    /* A una columna la tarjeta ocupa todo el ancho: un 4/5 la haría altísima.
       Cuadrado = buen compromiso sin volver a cortar la cara. */
    .dir-doctor-photo {
        aspect-ratio: 1 / 1;
    }

    .profile-topbar-inner {
        flex-direction: row;
        align-items: center;
        gap: .5rem;
        padding: 0.75rem 1rem;
    }

    .profile-topbar .brand-logo {
        max-width: 150px;
    }

    .profile-topbar nav {
        justify-content: flex-end;
    }
    
    .profile-topbar nav a:not(.profile-cta) {
        display: none;
    }

    .profile-crumbs {
        font-size: .76rem;
    }

    .profile-hero-card {
        border-radius: 20px;
    }

    .profile-identity {
        padding: 1.75rem 1.5rem;
    }

    .profile-identity h1 {
        font-size: clamp(1.9rem, 9vw, 2.6rem);
    }

    .profile-card {
        padding: 1.5rem;
        border-radius: 20px;
    }

    .profile-info-card h3,
    .profile-info-card dl div {
        padding: 1.1rem 1.25rem;
    }

    .profile-cta-card {
        padding: 1.75rem 1.5rem;
        border-radius: 20px;
    }

    .profile-quick-actions .btn {
        flex: 1 1 calc(50% - 0.75rem);
        justify-content: center;
        padding: 0 1rem;
    }

    .profile-quick-actions .btn-green {
        flex: 1 1 100%;
    }

    .profile-back {
        width: 100%;
    }
}
/* ============================================================
   CALM PREMIUM CLINICAL — polish layer
   reveal motion · press feedback · softened card depth
   Added by redesign pass. Remove this block to revert these.
   ============================================================ */

/* Physical press feedback */
.btn:active { transform: translateY(1px) scale(.99); }
.task-card:active,
.doctor-card:active,
.news-card:active,
.guide-link:active,
.directory-card:active,
.hero-assist-item:active { transform: scale(.994); }

/* Calmer, softer card radii */
.doctor-card,
.journey-card,
.directory-card { border-radius: 18px; }

/* Scroll reveal — only active once JS adds .reveal-on (progressive enhancement) */
.reveal-on .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .7s cubic-bezier(.16, .84, .44, 1),
                transform .7s cubic-bezier(.16, .84, .44, 1);
}

.reveal-on .reveal.is-inview {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .reveal-on .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
/* ==========================================================================
   REPOSITORIO DIGITAL — biblioteca de protocolos clínicos
   ========================================================================== */

/* app.css carga después de tailwind.generated.css: sin esto, los display
   propios de .repo-* pisarían la utilidad .hidden que usa el filtrado JS. */
.repo-row.hidden,
.repo-reset.hidden,
.repo-search-clear.hidden,
.repo-empty.hidden {
    display: none;
}

.repo-page .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ——— Hero: lámina navy de biblioteca ——— */
.repo-hero {
    position: relative;
    overflow: clip;
    background:
        radial-gradient(1200px 540px at 86% -10%, rgba(111, 180, 63, .16), transparent 60%),
        radial-gradient(900px 480px at -10% 110%, rgba(255, 255, 255, .07), transparent 55%),
        linear-gradient(160deg, var(--navy) 0%, #1d1856 55%, var(--navy-2) 100%);
    color: #fff;
}

.repo-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(720px 420px at 78% 36%, rgba(0, 0, 0, .8), transparent 72%);
    -webkit-mask-image: radial-gradient(720px 420px at 78% 36%, rgba(0, 0, 0, .8), transparent 72%);
}

.repo-hero-inner {
    position: relative;
    z-index: 1;
    padding-top: clamp(2.2rem, 5vw, 3.6rem);
    padding-bottom: clamp(2.6rem, 6vw, 4.4rem);
}

.repo-breadcrumb a {
    color: rgba(255, 255, 255, .72);
}

.repo-breadcrumb a:hover {
    color: #fff;
}

.repo-breadcrumb span {
    color: rgba(255, 255, 255, .92);
}

.repo-breadcrumb svg {
    color: rgba(255, 255, 255, .45);
}

.repo-hero-grid {
    display: grid;
    align-items: end;
    gap: clamp(1.8rem, 4vw, 3.4rem);
    margin-top: clamp(1.4rem, 3vw, 2.4rem);
}

@media (min-width: 1024px) {
    .repo-hero-grid {
        grid-template-columns: minmax(0, 1.6fr) minmax(280px, .9fr);
    }
}

.repo-hero-copy h1 {
    font-family: "Outfit", "Plus Jakarta Sans", Inter, system-ui, sans-serif;
    font-size: clamp(2.7rem, 6.4vw, 4.9rem);
    font-weight: 800;
    line-height: .98;
    letter-spacing: -.028em;
    text-wrap: balance;
}

.repo-hero-lead {
    margin-top: 1.15rem;
    max-width: 56ch;
    color: rgba(255, 255, 255, .82);
    font-size: clamp(1rem, 1.4vw, 1.12rem);
    font-weight: 500;
    line-height: 1.75;
}

/* Buscador principal */
.repo-search {
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 1.9rem;
    max-width: 620px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(10, 8, 40, .4);
}

.repo-search:focus-within {
    outline: 3px solid rgba(111, 180, 63, .55);
    outline-offset: 2px;
}

.repo-search-icon {
    position: absolute;
    left: 1.1rem;
    color: var(--navy);
    pointer-events: none;
}

.repo-search input {
    width: 100%;
    border: 0;
    border-radius: 16px;
    background: transparent;
    padding: 1.18rem 5.4rem 1.18rem 3.2rem;
    color: var(--ink);
    font-size: 1.02rem;
    font-weight: 600;
}

.repo-search input::placeholder {
    color: #5a6372;
    font-weight: 500;
}

.repo-search input:focus {
    outline: none;
}

.repo-search input::-webkit-search-cancel-button {
    display: none;
}

.repo-search-clear {
    position: absolute;
    right: 3.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: var(--warm);
    color: var(--navy);
    transition: background .2s ease;
}

.repo-search-clear:hover {
    background: var(--warm-line);
}

.repo-search-kbd {
    position: absolute;
    right: 1.05rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    border: 1px solid var(--warm-line);
    border-radius: 8px;
    background: var(--canvas);
    color: var(--gray);
    font-family: inherit;
    font-size: .82rem;
    font-weight: 800;
}

@media (hover: none) {
    .repo-search-kbd {
        display: none;
    }

    .repo-search-clear {
        right: 1.05rem;
    }
}

.repo-hero-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    margin-top: 1.15rem;
    font-size: .86rem;
}

.repo-hero-chips>span {
    color: rgba(255, 255, 255, .62);
    font-weight: 700;
}

.repo-hero-chips button {
    border: 1px solid rgba(255, 255, 255, .26);
    border-radius: 999px;
    padding: .38rem .85rem;
    color: rgba(255, 255, 255, .92);
    font-weight: 700;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.repo-hero-chips button:hover {
    border-color: rgba(255, 255, 255, .55);
    background: rgba(255, 255, 255, .1);
    transform: translateY(-1px);
}

/* Panel de datos del hero */
.repo-hero-panel {
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 20px;
    background: rgba(255, 255, 255, .06);
    padding: 1.5rem 1.6rem 1.6rem;
}

.repo-hero-stat strong {
    display: block;
    font-family: "Outfit", "Plus Jakarta Sans", Inter, system-ui, sans-serif;
    font-size: clamp(2.6rem, 4vw, 3.4rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.02em;
}

.repo-hero-stat span {
    display: block;
    margin-top: .35rem;
    color: rgba(255, 255, 255, .72);
    font-size: .92rem;
    font-weight: 600;
}

.repo-hero-facts {
    margin-top: 1.25rem;
    display: grid;
    gap: .7rem;
    border-top: 1px solid rgba(255, 255, 255, .14);
    padding-top: 1.25rem;
}

.repo-hero-facts li {
    display: flex;
    align-items: center;
    gap: .65rem;
    color: rgba(255, 255, 255, .88);
    font-size: .92rem;
    font-weight: 600;
}

.repo-hero-facts svg {
    flex-shrink: 0;
    color: var(--green);
}

/* ——— Barra de filtros ——— */
.repo-toolbar {
    position: sticky;
    top: 151px;
    z-index: 40;
    border-bottom: 1px solid var(--warm-line);
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(12px);
}

.repo-toolbar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem 1.1rem;
    padding-top: .8rem;
    padding-bottom: .8rem;
}

.repo-scope {
    display: inline-flex;
    border: 1px solid var(--warm-line);
    border-radius: 12px;
    background: var(--warm);
    padding: .25rem;
}

.repo-scope button {
    border-radius: 9px;
    padding: .5rem .95rem;
    color: #4d4b46;
    font-size: .85rem;
    font-weight: 800;
    white-space: nowrap;
    transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}

.repo-scope button[aria-pressed="true"] {
    background: var(--navy);
    color: #fff;
    box-shadow: 0 8px 18px rgba(38, 33, 97, .24);
}

.repo-toolbar-selects {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .55rem;
}

.repo-toolbar-selects select {
    border: 1px solid var(--warm-line);
    border-radius: 10px;
    background: #fff;
    padding: .55rem 2rem .55rem .8rem;
    color: var(--ink-2);
    font-size: .85rem;
    font-weight: 700;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23262161' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .6rem center;
    cursor: pointer;
}

.repo-toolbar-selects select:focus-visible,
.repo-scope button:focus-visible,
.repo-hero-chips button:focus-visible,
.repo-cat-list button:focus-visible {
    outline: 3px solid rgba(111, 180, 63, .55);
    outline-offset: 2px;
}

.repo-reset {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    border-radius: 10px;
    padding: .55rem .8rem;
    color: #9a3412;
    font-size: .82rem;
    font-weight: 800;
    transition: background .2s ease;
}

.repo-reset:hover {
    background: #fff3eb;
}

.repo-count {
    margin-left: auto;
    color: var(--muted);
    font-size: .86rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* ——— Cuerpo: aside + resultados ——— */
.repo-body {
    padding-top: clamp(1.8rem, 3.5vw, 2.8rem);
    padding-bottom: clamp(2.4rem, 5vw, 4rem);
}

.repo-shell {
    display: grid;
    gap: clamp(1.4rem, 3vw, 2.6rem);
    align-items: start;
}

@media (min-width: 1024px) {
    .repo-shell {
        grid-template-columns: 280px minmax(0, 1fr);
    }

    .repo-aside {
        position: sticky;
        top: 226px;
    }
}

.repo-aside h2 {
    color: var(--navy);
    font-family: "Outfit", "Plus Jakarta Sans", Inter, system-ui, sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
}

.repo-cat-list {
    display: grid;
    gap: .3rem;
    margin-top: .9rem;
}

.repo-cat-list button {
    display: flex;
    align-items: center;
    gap: .65rem;
    width: 100%;
    border-radius: 12px;
    padding: .62rem .75rem;
    color: #4d4b46;
    font-size: .89rem;
    font-weight: 700;
    text-align: left;
    transition: background .18s ease, color .18s ease;
}

.repo-cat-list button svg {
    flex-shrink: 0;
    color: var(--gray);
    transition: color .18s ease;
}

.repo-cat-list button span {
    flex: 1;
    min-width: 0;
}

.repo-cat-list button em {
    font-style: normal;
    color: var(--muted);
    font-size: .78rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.repo-cat-list button:hover {
    background: var(--warm);
    color: var(--navy);
}

.repo-cat-list button[aria-pressed="true"] {
    background: var(--navy);
    color: #fff;
}

.repo-cat-list button[aria-pressed="true"] svg,
.repo-cat-list button[aria-pressed="true"] em {
    color: rgba(255, 255, 255, .85);
}

.repo-aside-note {
    display: flex;
    gap: .8rem;
    margin-top: 1.6rem;
    border: 1px solid var(--warm-line);
    border-radius: 14px;
    background: var(--warm);
    padding: 1rem 1.05rem;
}

.repo-aside-note svg {
    flex-shrink: 0;
    margin-top: .1rem;
    color: var(--green-2);
}

.repo-aside-note p {
    color: #54524c;
    font-size: .84rem;
    font-weight: 600;
    line-height: 1.6;
}

/* Filas tipo catálogo de biblioteca */
.repo-list {
    display: grid;
    gap: .75rem;
}

.repo-row {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 1.05rem;
    border: 1px solid var(--warm-line);
    border-radius: 16px;
    background: var(--paper);
    padding: 1.15rem 1.2rem;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.repo-row:hover {
    border-color: rgba(38, 33, 97, .35);
    box-shadow: 0 18px 40px rgba(38, 33, 97, .09);
    transform: translateY(-2px);
}

.repo-row-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: rgba(38, 33, 97, .07);
    color: var(--navy);
}

[data-scope="internacional"] .repo-row-icon {
    background: rgba(111, 180, 63, .14);
    color: var(--green-2);
}

.repo-row-main {
    flex: 1;
    min-width: 0;
}

.repo-row-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .45rem;
    color: var(--muted);
    font-size: .78rem;
    font-weight: 800;
}

.repo-org {
    color: var(--green-2);
    letter-spacing: .02em;
}

.repo-lang {
    border: 1px solid var(--warm-line);
    border-radius: 6px;
    padding: .08rem .4rem;
    font-size: .68rem;
    letter-spacing: .05em;
}

.repo-key {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    border-radius: 999px;
    background: rgba(111, 180, 63, .14);
    padding: .14rem .55rem;
    color: #3d7417;
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.repo-row h3 {
    margin-top: .4rem;
    font-family: "Outfit", "Plus Jakarta Sans", Inter, system-ui, sans-serif;
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -.01em;
}

.repo-row h3 a {
    color: var(--navy);
}

.repo-row h3 a::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 16px;
}

.repo-row h3 a:focus-visible {
    outline: none;
}

.repo-row h3 a:focus-visible::after {
    outline: 3px solid rgba(111, 180, 63, .55);
    outline-offset: 2px;
}

.repo-row-summary {
    margin-top: .4rem;
    max-width: 72ch;
    color: #4f4d48;
    font-size: .9rem;
    font-weight: 500;
    line-height: 1.65;
}

.repo-row-action {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    align-self: center;
    flex-shrink: 0;
    border: 1px solid var(--warm-line);
    border-radius: 999px;
    padding: .5rem .95rem;
    color: var(--navy);
    font-size: .82rem;
    font-weight: 900;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.repo-row:hover .repo-row-action {
    border-color: var(--navy);
    background: var(--navy);
    color: #fff;
}

/* Entrada escalonada de las primeras filas */
@media (prefers-reduced-motion: no-preference) {
    .repo-row {
        animation: repoRowIn .55s cubic-bezier(.16, .84, .44, 1) backwards;
    }

    .repo-row:nth-child(1) {
        animation-delay: .05s;
    }

    .repo-row:nth-child(2) {
        animation-delay: .1s;
    }

    .repo-row:nth-child(3) {
        animation-delay: .15s;
    }

    .repo-row:nth-child(4) {
        animation-delay: .2s;
    }

    .repo-row:nth-child(5) {
        animation-delay: .25s;
    }

    .repo-row:nth-child(6) {
        animation-delay: .3s;
    }

    .repo-row:nth-child(n+7) {
        animation-delay: .34s;
    }
}

@keyframes repoRowIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* Mostrar más (paginación incremental del cliente) */
.repo-more {
    display: flex;
    justify-content: center;
    margin-top: 1.4rem;
}

.repo-more.hidden {
    display: none;
}

.repo-more button {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    border: 1px solid var(--warm-line);
    border-radius: 999px;
    background: #fff;
    padding: .8rem 1.5rem;
    color: var(--navy);
    font-size: .9rem;
    font-weight: 900;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.repo-more button:hover {
    border-color: var(--navy);
    box-shadow: 0 12px 28px rgba(38, 33, 97, .1);
    transform: translateY(-1px);
}

/* Estado vacío */
.repo-empty {
    display: grid;
    justify-items: center;
    gap: .6rem;
    border: 1px dashed var(--warm-line);
    border-radius: 18px;
    background: var(--canvas);
    padding: 3rem 1.5rem;
    text-align: center;
}

.repo-empty svg {
    color: var(--gray);
}

.repo-empty h3 {
    color: var(--navy);
    font-family: "Outfit", "Plus Jakarta Sans", Inter, system-ui, sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
}

.repo-empty p {
    max-width: 46ch;
    color: var(--muted);
    font-size: .92rem;
    font-weight: 500;
    line-height: 1.65;
}

.repo-empty .btn {
    margin-top: .6rem;
}

/* ——— Fuentes para investigar ——— */
.repo-research {
    border-top: 1px solid var(--warm-line);
    background: var(--warm);
    padding: clamp(2.6rem, 5vw, 4.2rem) 0;
}

.repo-research-head h2 {
    color: var(--navy);
    font-family: "Outfit", "Plus Jakarta Sans", Inter, system-ui, sans-serif;
    font-size: clamp(1.6rem, 2.6vw, 2.3rem);
    font-weight: 800;
    letter-spacing: -.018em;
}

.repo-research-head p {
    margin-top: .6rem;
    max-width: 62ch;
    color: #54524c;
    font-size: .98rem;
    font-weight: 500;
    line-height: 1.7;
}

.repo-research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(265px, 1fr));
    gap: .9rem;
    margin-top: 1.8rem;
}

.repo-research-grid a {
    display: block;
    height: 100%;
    border: 1px solid var(--warm-line);
    border-radius: 16px;
    background: #fff;
    padding: 1.25rem 1.3rem;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.repo-research-grid a:hover {
    border-color: rgba(38, 33, 97, .3);
    box-shadow: 0 16px 36px rgba(38, 33, 97, .08);
    transform: translateY(-2px);
}

.repo-research-grid a>span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(38, 33, 97, .07);
    color: var(--navy);
}

.repo-research-grid strong {
    display: flex;
    align-items: center;
    gap: .35rem;
    margin-top: .85rem;
    color: var(--navy);
    font-family: "Outfit", "Plus Jakarta Sans", Inter, system-ui, sans-serif;
    font-size: 1.02rem;
    font-weight: 800;
}

.repo-research-grid strong svg {
    color: var(--green-2);
    transition: transform .2s ease;
}

.repo-research-grid a:hover strong svg {
    transform: translate(2px, -2px);
}

.repo-research-grid p {
    margin-top: .45rem;
    color: #55534d;
    font-size: .86rem;
    font-weight: 500;
    line-height: 1.6;
}

/* ——— Cierre: aviso + solicitud ——— */
.repo-footer-band {
    padding: clamp(2.2rem, 4.5vw, 3.6rem) 0;
}

.repo-disclaimer {
    display: flex;
    gap: .85rem;
    border: 1px solid #f3d9b7;
    border-radius: 14px;
    background: #fdf6ec;
    padding: 1.05rem 1.2rem;
}

.repo-disclaimer svg {
    flex-shrink: 0;
    margin-top: .15rem;
    color: #b45309;
}

.repo-disclaimer p {
    color: #6b4d1f;
    font-size: .9rem;
    font-weight: 500;
    line-height: 1.65;
}

.repo-disclaimer strong {
    color: #92400e;
    font-weight: 800;
}

.repo-request {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    margin-top: 1.4rem;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--navy), #1d1856);
    padding: clamp(1.6rem, 3.4vw, 2.4rem) clamp(1.4rem, 3.4vw, 2.6rem);
    color: #fff;
}

.repo-request h2 {
    font-family: "Outfit", "Plus Jakarta Sans", Inter, system-ui, sans-serif;
    font-size: clamp(1.35rem, 2.4vw, 1.9rem);
    font-weight: 800;
    letter-spacing: -.015em;
}

.repo-request p {
    margin-top: .45rem;
    max-width: 52ch;
    color: rgba(255, 255, 255, .78);
    font-size: .95rem;
    font-weight: 500;
    line-height: 1.65;
}

/* ——— Responsive ——— */
@media (max-width: 1023px) {
    .repo-hero-panel {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 1rem 2rem;
    }

    .repo-hero-facts {
        margin-top: 0;
        border-top: 0;
        padding-top: 0;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        flex: 1;
        min-width: 260px;
    }
}

@media (max-width: 767px) {
    .repo-toolbar-inner {
        gap: .6rem;
    }

    .repo-scope {
        width: 100%;
    }

    .repo-scope button {
        flex: 1;
        padding: .5rem .3rem;
        font-size: .74rem;
        text-align: center;
        letter-spacing: -.01em;
    }

    .repo-count {
        margin-left: 0;
    }

    .repo-cat-list {
        display: flex;
        gap: .45rem;
        overflow-x: auto;
        margin-left: -1rem;
        margin-right: -1rem;
        padding: .25rem 1rem .6rem;
        scrollbar-width: none;
    }

    .repo-cat-list::-webkit-scrollbar {
        display: none;
    }

    .repo-cat-list button {
        width: auto;
        flex-shrink: 0;
        border: 1px solid var(--warm-line);
        background: #fff;
        border-radius: 999px;
        padding: .5rem .85rem;
        font-size: .82rem;
    }

    .repo-cat-list button em {
        font-size: .72rem;
    }

    .repo-aside-note {
        display: none;
    }

    .repo-row {
        flex-wrap: wrap;
        gap: .8rem;
        padding: 1rem;
    }

    .repo-row-icon {
        width: 40px;
        height: 40px;
    }

    .repo-row-main {
        flex-basis: calc(100% - 56px);
    }

    .repo-row h3 {
        font-size: 1rem;
    }

    .repo-row-action {
        margin-left: 56px;
        align-self: flex-start;
    }

    .repo-hero-facts {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   Seguros aceptados / Aseguradoras (marquee premium)
   ============================================================ */
.insurers-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(3.5rem, 6vw, 5.75rem) 0;
    background:
        radial-gradient(120% 100% at 50% -20%, rgba(38, 33, 97, .06), transparent 60%),
        linear-gradient(180deg, var(--paper) 0%, var(--ice) 100%);
    border-top: 1px solid var(--warm-line);
    border-bottom: 1px solid var(--warm-line);
}

.insurers-orb {
    position: absolute;
    z-index: -1;
    top: -180px;
    left: 50%;
    width: 620px;
    height: 620px;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(111, 180, 63, .14), transparent 70%);
    filter: blur(8px);
    pointer-events: none;
}

.insurers-head {
    max-width: 46rem;
    margin: 0 auto clamp(2rem, 4vw, 3rem);
    text-align: center;
}

.insurers-kicker {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    border-radius: 999px;
    border: 1px solid rgba(38, 33, 97, .14);
    background: rgba(255, 255, 255, .8);
    padding: .5rem 1.05rem;
    color: var(--navy);
    font-family: "Outfit", Inter, sans-serif;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    box-shadow: 0 10px 26px rgba(38, 33, 97, .08);
}

.insurers-kicker i {
    color: var(--green);
}

.insurers-head h2 {
    margin: 1.1rem 0 .85rem;
    font-family: "Outfit", "Plus Jakarta Sans", Inter, sans-serif;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -.02em;
    color: var(--navy);
    font-size: clamp(1.85rem, 4vw, 2.85rem);
}

.insurers-head p {
    margin: 0 auto;
    max-width: 38rem;
    color: var(--muted);
    font-size: clamp(.98rem, 1.4vw, 1.08rem);
    line-height: 1.65;
}

.insurers-head a {
    color: var(--green-2);
    font-weight: 800;
    text-decoration: none;
    border-bottom: 2px solid rgba(111, 180, 63, .35);
    transition: border-color .2s ease, color .2s ease;
}

.insurers-head a:hover {
    color: var(--green);
    border-color: var(--green);
}

/* Marquee shell with edge fades */
.insurers-marquee {
    position: relative;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.insurers-track {
    display: flex;
    width: max-content;
    gap: 1.25rem;
    padding: 1rem .25rem;
    animation: insurersScroll 34s linear infinite;
    will-change: transform;
}

.insurers-marquee:hover .insurers-track {
    animation-play-state: paused;
}

@keyframes insurersScroll {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(-50%, 0, 0); }
}

.insurer-card {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: clamp(180px, 22vw, 248px);
    height: clamp(112px, 14vw, 138px);
    padding: 1.25rem 1.6rem;
    overflow: hidden;
    border-radius: 20px;
    background: var(--paper);
    border: 1px solid var(--warm-line);
    box-shadow: 0 12px 30px rgba(38, 33, 97, .07);
    transition: transform .35s cubic-bezier(.22, 1, .36, 1), box-shadow .35s ease, border-color .35s ease;
}

.insurer-card img {
    max-width: 100%;
    max-height: clamp(64px, 9vw, 88px);
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform .35s ease;
}

.insurer-card:hover {
    transform: translateY(-6px);
    border-color: rgba(111, 180, 63, .5);
    box-shadow: 0 22px 48px rgba(38, 33, 97, .14);
}

.insurer-card:hover img {
    transform: scale(1.04);
}

/* Footer trust strip */
.insurers-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem 1.4rem;
    margin-top: clamp(1.75rem, 3vw, 2.5rem);
    color: var(--muted);
    font-size: .92rem;
    font-weight: 700;
}

.insurers-foot span {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}

.insurers-foot i {
    color: var(--green);
}

.insurers-dot {
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: var(--warm-line);
}

.insurers-dot:last-of-type {
    display: none;
}

.insurers-link {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: var(--navy);
    font-weight: 800;
    text-decoration: none;
    transition: gap .2s ease, color .2s ease;
}

.insurers-link:hover {
    color: var(--green-2);
    gap: .7rem;
}

@media (max-width: 640px) {
    .insurers-foot {
        flex-direction: column;
        gap: .75rem;
    }
    .insurers-dot {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .insurers-track {
        animation: none;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }
    .insurers-marquee {
        -webkit-mask-image: none;
        mask-image: none;
    }
    .insurer-card[aria-hidden="true"] {
        display: none;
    }
}

/* ================================================================
   MEDICAL DIRECTORY — architectural clinical system
   ================================================================ */
.directory-page {
    background: #edf1f3;
}

.directory-page .dir-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: #1d1957;
}

.directory-page .dir-hero::before {
    position: absolute;
    inset: auto auto -12rem -8rem;
    width: 34rem;
    height: 34rem;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 50%;
    content: "";
}

.directory-page .dir-hero-grid {
    display: grid;
    max-width: none;
    grid-template-columns: minmax(0, 1.45fr) minmax(420px, .85fr);
    gap: 0;
    padding: 0;
}

.directory-page .dir-hero-copy {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 510px;
    width: min(100%, 820px);
    margin-left: auto;
    flex-direction: column;
    justify-content: center;
    padding: 3.5rem clamp(3rem, 6vw, 7rem) 5.25rem 2rem;
}

.dir-hero-crumbs {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: rgba(255, 255, 255, .58);
    font-size: .76rem;
    font-weight: 650;
}

.dir-hero-crumbs a {
    color: rgba(255, 255, 255, .9);
}

.dir-hero-crumbs a:hover {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.directory-page .dir-hero-copy h1 {
    max-width: 760px;
    margin-top: 1.3rem;
    color: #fff;
    font-family: "Outfit", "Plus Jakarta Sans", Inter, system-ui, sans-serif;
    font-size: clamp(3.8rem, 5.8vw, 6rem);
    font-weight: 760;
    line-height: .91;
    letter-spacing: -.04em;
    text-wrap: balance;
}

.directory-page .dir-hero-copy > p {
    max-width: 610px;
    margin-top: 1.4rem;
    color: rgba(255, 255, 255, .76);
    font-size: clamp(1rem, 1.2vw, 1.14rem);
    line-height: 1.65;
    text-wrap: pretty;
}

.directory-page .dir-hero-actions {
    display: flex;
    align-items: center;
    gap: 1.35rem;
    margin-top: 1.7rem;
}

.directory-page .dir-hero-actions .btn {
    min-height: 50px;
    border-radius: 6px;
    background: var(--green);
    color: #171442;
    box-shadow: none;
}

.directory-page .dir-hero-actions .btn:hover {
    background: #81c653;
}

.dir-hero-phone {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: rgba(255, 255, 255, .88);
    font-size: .82rem;
    font-weight: 700;
}

.dir-hero-phone svg {
    color: #ff8e8e;
}

.dir-hero-phone:hover {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.directory-page .dir-hero-summary {
    display: grid;
    max-width: 650px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 2.15rem;
    border-top: 1px solid rgba(255, 255, 255, .22);
}

.directory-page .dir-hero-summary > div {
    padding: .9rem .75rem 0 0;
}

.directory-page .dir-hero-summary > div + div {
    border-left: 1px solid rgba(255, 255, 255, .16);
    padding-left: 1rem;
}

.directory-page .dir-hero-summary dt {
    color: rgba(255, 255, 255, .52);
    font-size: .65rem;
    font-weight: 650;
}

.directory-page .dir-hero-summary dd {
    margin-top: .25rem;
    color: #fff;
    font-size: .82rem;
    font-weight: 760;
}

.dir-hero-visual {
    position: relative;
    min-height: 510px;
    overflow: hidden;
    margin: 0;
    background: #dfe5e7;
}

.dir-hero-visual::before {
    position: absolute;
    inset: 0 auto 0 0;
    z-index: 1;
    width: 9px;
    background: var(--green);
    content: "";
}

.dir-hero-visual::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(90deg, rgba(29, 25, 87, .22), transparent 38%);
    pointer-events: none;
}

.dir-hero-visual > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 48% center;
    transform: scale(1.015);
    transition: transform .7s cubic-bezier(.22, 1, .36, 1);
}

.dir-hero-visual:hover > img {
    transform: scale(1.04);
}

.directory-page .dir-search-stage {
    position: relative;
    z-index: 6;
    max-width: 1280px;
    margin: -3.45rem auto 0;
    padding: 0 1rem;
}

.directory-page .dir-search-card {
    border: 0;
    border-radius: 10px;
    background: #fff;
    padding: 1.15rem 1.25rem 1.25rem;
    box-shadow: 0 8px 8px rgba(21, 25, 54, .12);
}

.directory-page .dir-search-head {
    align-items: center;
}

.dir-search-label {
    color: var(--navy);
    font-family: "Outfit", "Plus Jakarta Sans", Inter, system-ui, sans-serif;
    font-size: 1.05rem;
    font-weight: 760;
}

.directory-page .dir-result-count {
    border-radius: 0;
    background: transparent;
    padding: 0;
    color: #626974;
    font-size: .74rem;
    font-weight: 650;
}

.directory-page .dir-search-row {
    grid-template-columns: 46px minmax(0, 1fr) auto auto;
    margin-top: .7rem;
    border: 1px solid #c9d0d5;
    border-radius: 6px;
    background: #f7f9fa;
    padding: .25rem .25rem .25rem .9rem;
}

.directory-page .dir-search-row:focus-within {
    border-color: var(--navy);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(38, 33, 97, .1);
}

.directory-page .dir-search-row input {
    min-height: 54px;
    font-size: 1rem;
    font-weight: 600;
}

.directory-page .dir-search-row input::placeholder {
    color: #5e6670;
    opacity: 1;
}

.directory-page .dir-search-clear {
    border-radius: 4px;
}

.directory-page .dir-search-submit {
    min-height: 46px;
    border-radius: 4px;
    padding-inline: 1.35rem;
    font-weight: 760;
}

.directory-page .dir-live-panel {
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(38, 33, 97, .14);
}

.directory-page .dir-section {
    background: #edf1f3;
    padding: clamp(4.5rem, 6vw, 6.5rem) 0 5rem;
}

.directory-page .dir-section-head {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(420px, 1.15fr);
    align-items: end;
    gap: 3rem;
}

.directory-page .dir-section-head .section-label {
    display: none;
}

.directory-page .dir-section-head h2 {
    margin-top: 0;
    color: var(--navy);
    font-size: clamp(2.5rem, 3.7vw, 4rem);
    font-weight: 760;
    line-height: .98;
    letter-spacing: -.035em;
}

.directory-page .dir-section-head span {
    max-width: 560px;
    margin-top: 1rem;
    color: #505862;
    line-height: 1.65;
}

.directory-page .dir-filter-bar {
    align-content: flex-end;
    justify-content: flex-end;
}

.directory-page .dir-filter-bar button {
    min-height: 38px;
    border-color: #c7cdd1;
    border-radius: 5px;
    background: rgba(255, 255, 255, .66);
    padding: 0 .85rem;
    color: #3f4650;
    font-size: .76rem;
    font-weight: 700;
    transform: none;
}

.directory-page .dir-filter-bar button:hover {
    border-color: var(--navy);
    background: #fff;
    color: var(--navy);
    transform: none;
}

.directory-page .dir-filter-bar button.is-active {
    border-color: var(--navy);
    background: var(--navy);
    color: #fff;
}

.directory-page .dir-doctor-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 2.5rem;
}

.directory-page .dir-doctor-card {
    display: grid;
    grid-template-columns: 164px minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) 48px;
    min-height: 248px;
    overflow: hidden;
    border: 0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(20, 28, 44, .08);
    transition: transform .32s cubic-bezier(.22, 1, .36, 1), box-shadow .32s cubic-bezier(.22, 1, .36, 1);
}

.directory-page .dir-doctor-card:hover {
    transform: translateY(-3px);
    border: 0;
    box-shadow: 0 8px 8px rgba(20, 28, 44, .11);
}

.directory-page .dir-doctor-photo {
    grid-column: 1;
    grid-row: 1 / 3;
    min-height: 100%;
    aspect-ratio: auto;
    background: #dfe5e7;
}

.directory-page .dir-doctor-photo::after {
    position: absolute;
    inset: auto 0 0;
    display: block;
    height: 30%;
    background: linear-gradient(180deg, transparent, rgba(18, 17, 46, .16));
}

.directory-page .dir-doctor-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 18%;
    transform: scale(1.01);
    transition: transform .5s cubic-bezier(.22, 1, .36, 1);
}

.directory-page .dir-doctor-card:hover .dir-doctor-photo img {
    transform: scale(1.035);
}

.directory-page .dir-doctor-body {
    grid-column: 2;
    grid-row: 1;
    padding: 1.15rem 1.2rem .8rem;
}

.dir-doctor-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
}

.directory-page .dir-doctor-tag {
    position: static;
    display: block;
    overflow: hidden;
    border-radius: 0;
    background: transparent;
    padding: 0;
    color: #42762e;
    font-size: .7rem;
    font-weight: 760;
    letter-spacing: .01em;
    text-overflow: ellipsis;
    text-transform: none;
    white-space: nowrap;
    box-shadow: none;
}

.dir-doctor-number {
    flex: 0 0 auto;
    color: #aeb5ba;
    font-family: "Outfit", "Plus Jakarta Sans", Inter, system-ui, sans-serif;
    font-size: 1.45rem;
    font-weight: 500;
    line-height: .8;
    font-variant-numeric: tabular-nums;
}

.directory-page .dir-doctor-body h3 {
    max-width: 260px;
    margin-top: .45rem;
    color: var(--navy);
    font-size: clamp(1.12rem, 1.35vw, 1.32rem);
    font-weight: 760;
    line-height: 1.14;
    overflow-wrap: anywhere;
    text-wrap: balance;
}

.directory-page .dir-doctor-body h3 a:hover {
    color: var(--navy);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.directory-page .dir-doctor-sub {
    align-items: flex-start;
    margin-top: .7rem;
    color: #3f4650;
    font-size: .76rem;
    font-weight: 650;
}

.directory-page .dir-doctor-office,
.directory-page .dir-doctor-schedule {
    align-items: flex-start;
    margin-top: .45rem;
    color: #59616b;
    font-size: .73rem;
    font-weight: 600;
}

.directory-page .dir-doctor-schedule {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.directory-page .dir-doctor-office svg,
.directory-page .dir-doctor-schedule svg,
.directory-page .dir-doctor-sub svg {
    margin-top: .08rem;
}

.directory-page .dir-doctor-office svg,
.directory-page .dir-doctor-schedule svg,
.directory-page .dir-doctor-sub svg {
    color: #65717a;
}

.directory-page .dir-doctor-actions {
    grid-column: 2;
    grid-row: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid #e3e7e9;
    padding: 0;
}

.directory-page .dir-action-primary,
.directory-page .dir-action-secondary {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    border: 0;
    background: transparent;
    padding: 0 .6rem;
    color: var(--navy);
    font-size: .74rem;
    font-weight: 760;
    transition: background .2s ease, color .2s ease;
}

.directory-page .dir-action-primary {
    background: var(--navy);
    color: #fff;
}

.directory-page .dir-action-primary:hover {
    background: var(--navy-2);
    color: #fff;
}

.directory-page .dir-action-secondary {
    border-left: 1px solid #e3e7e9;
    color: #365f27;
}

.directory-page .dir-action-secondary:hover {
    background: #edf5e9;
    color: #27491c;
}

.directory-page .dir-doctor-card a:focus-visible,
.directory-page .dir-doctor-card button:focus-visible,
.directory-page .dir-filter-bar button:focus-visible,
.directory-page .dir-search-card button:focus-visible,
.directory-page .dir-search-card input:focus-visible {
    outline: 3px solid rgba(111, 180, 63, .5);
    outline-offset: -3px;
}

@media (min-width: 640px) {
    .directory-page .dir-search-stage {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .directory-page .dir-search-stage {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media (max-width: 1080px) {
    .directory-page .dir-hero-grid {
        grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
    }

    .directory-page .dir-hero-copy {
        padding-right: 3rem;
    }

    .directory-page .dir-section-head {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 1.5rem;
    }

    .directory-page .dir-filter-bar {
        justify-content: flex-start;
    }

    .directory-page .dir-doctor-card {
        grid-template-columns: 136px minmax(0, 1fr);
    }
}

@media (max-width: 820px) {
    .directory-page .dir-hero-grid {
        grid-template-columns: 1fr;
    }

    .directory-page .dir-hero-copy {
        min-height: 0;
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 3rem 1.5rem 5.5rem;
    }

    .dir-hero-visual {
        min-height: 300px;
    }

    .dir-hero-visual::before {
        inset: 0 0 auto;
        width: auto;
        height: 7px;
    }

    .directory-page .dir-search-stage {
        margin-top: -3.25rem;
    }

    .directory-page .dir-filter-bar {
        width: 100%;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: .35rem;
        scrollbar-width: thin;
        scroll-snap-type: x proximity;
    }

    .directory-page .dir-filter-bar button {
        flex: 0 0 auto;
        scroll-snap-align: start;
    }

    .directory-page .dir-doctor-grid {
        grid-template-columns: 1fr;
    }

    .directory-page .dir-doctor-card {
        grid-template-columns: 156px minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .directory-page .dir-hero-copy {
        padding: 2.5rem max(1rem, env(safe-area-inset-right)) 5.25rem max(1rem, env(safe-area-inset-left));
    }

    .directory-page .dir-hero-copy h1 {
        font-size: clamp(2.55rem, 12vw, 3.8rem);
        line-height: .94;
    }

    .directory-page .dir-hero-copy > p {
        font-size: .95rem;
    }

    .directory-page .dir-hero-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: .9rem;
    }

    .directory-page .dir-hero-summary {
        grid-template-columns: 1fr 1fr;
    }

    .directory-page .dir-hero-summary > div:nth-child(3) {
        display: none;
    }

    .dir-hero-visual {
        min-height: 230px;
    }

    .directory-page .dir-search-card {
        padding: 1rem;
    }

    .directory-page .dir-search-stage {
        padding-right: max(1rem, env(safe-area-inset-right));
        padding-left: max(1rem, env(safe-area-inset-left));
    }

    .directory-page .dir-search-head {
        flex-direction: row;
        align-items: center;
    }

    .directory-page .dir-search-row {
        grid-template-columns: 28px minmax(0, 1fr) auto;
    }

    .directory-page .dir-search-submit {
        grid-column: 1 / -1;
        width: 100%;
        justify-content: center;
    }

    .directory-page .dir-section {
        padding-top: 3.75rem;
    }

    .directory-page .dir-section-head h2 {
        font-size: 2.45rem;
    }

    .directory-page .dir-doctor-grid {
        gap: .8rem;
    }

    .directory-page .dir-doctor-card {
        grid-template-columns: 112px minmax(0, 1fr);
        grid-template-rows: minmax(0, 1fr) auto;
        min-height: 220px;
    }

    .directory-page .dir-doctor-photo {
        min-height: 100%;
        aspect-ratio: auto;
    }

    .directory-page .dir-doctor-body {
        padding: .9rem .85rem .65rem;
    }

    .directory-page .dir-doctor-body h3 {
        font-size: 1.02rem;
    }

    .directory-page .dir-doctor-tag {
        font-size: .75rem;
    }

    .directory-page .dir-doctor-sub,
    .directory-page .dir-doctor-office,
    .directory-page .dir-doctor-schedule {
        font-size: .875rem;
        line-height: 1.35;
    }

    .dir-doctor-number {
        font-size: 1.15rem;
    }

    .directory-page .dir-doctor-actions {
        grid-template-columns: 1fr;
    }

    .directory-page .dir-action-primary,
    .directory-page .dir-action-secondary {
        min-height: 46px;
        font-size: .8125rem;
    }

    .directory-page .dir-action-secondary {
        border-top: 1px solid #e3e7e9;
        border-left: 0;
    }
}

@media (max-width: 380px) {
    .directory-page .dir-hero-summary {
        grid-template-columns: 1fr;
    }

    .directory-page .dir-hero-summary > div + div {
        border-left: 0;
        padding-left: 0;
    }

    .directory-page .dir-hero-summary > div:nth-child(2) {
        border-top: 1px solid rgba(255, 255, 255, .14);
        padding-top: .7rem;
    }

    .directory-page .dir-doctor-card {
        grid-template-columns: 98px minmax(0, 1fr);
    }

    .directory-page .dir-doctor-photo {
        grid-row: 1;
    }

    .directory-page .dir-doctor-body {
        padding-right: .7rem;
        padding-left: .7rem;
    }

    .directory-page .dir-doctor-actions {
        grid-column: 1 / -1;
        grid-template-columns: 1fr 1fr;
    }

    .directory-page .dir-action-secondary {
        border-top: 0;
        border-left: 1px solid #e3e7e9;
    }
}

@media (max-height: 720px) and (min-width: 821px) {
    .directory-page .dir-hero-copy,
    .dir-hero-visual {
        min-height: 430px;
    }

    .directory-page .dir-hero-copy {
        padding-top: 2.25rem;
        padding-bottom: 4.5rem;
    }

    .directory-page .dir-hero-copy h1 {
        font-size: clamp(3.4rem, 5vw, 4.8rem);
    }

    .directory-page .dir-hero-summary {
        margin-top: 1.5rem;
    }
}

@media (pointer: coarse) {
    .directory-page .dir-filter-bar button,
    .directory-page .dir-search-clear,
    .directory-page .dir-search-submit,
    .directory-page .dir-action-primary,
    .directory-page .dir-action-secondary {
        min-height: 46px;
    }
}

@media (hover: none) {
    .directory-page .dir-doctor-card:hover {
        transform: none;
        box-shadow: 0 1px 2px rgba(20, 28, 44, .08);
    }

    .directory-page .dir-doctor-card:hover .dir-doctor-photo img,
    .dir-hero-visual:hover > img {
        transform: scale(1.01);
    }

    .directory-page .dir-doctor-card:active {
        transform: scale(.995);
        background: #fbfcfc;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dir-hero-visual > img,
    .directory-page .dir-doctor-photo img,
    .directory-page .dir-doctor-card {
        transition: none;
    }
}

/* ================================================================
   PHYSICIAN PROFILE — unified clinical dossier
   ================================================================ */
.profile-shell {
    min-height: 100dvh;
    background: #edf1f3;
}

.profile-topbar {
    position: sticky;
    top: 0;
    z-index: 60;
    border-bottom: 1px solid #e1e5e8;
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(12px);
}

.profile-topbar-inner {
    min-height: 88px;
    padding-top: .65rem;
    padding-bottom: .65rem;
}

.profile-topbar nav {
    gap: .25rem;
}

.profile-topbar nav a,
.profile-topbar nav button {
    min-height: 44px;
    border-radius: 5px;
    padding: 0 .85rem;
    color: #3f4650;
    font-size: .8rem;
    font-weight: 700;
}

.profile-topbar nav a:hover {
    background: #f0f3f4;
}

.profile-topbar nav .profile-cta {
    margin-left: .5rem;
    background: var(--navy);
    color: #fff;
    box-shadow: none;
}

.profile-topbar nav .profile-cta:hover {
    background: var(--navy-2);
}

.profile-crumbs {
    max-width: none;
    margin: 0;
    padding: 1.25rem max(1rem, calc((100vw - 1280px) / 2 + 2rem)) .35rem;
    background: #1d1957;
    color: rgba(255, 255, 255, .54);
    font-size: .75rem;
    font-weight: 650;
}

.profile-crumbs a {
    color: rgba(255, 255, 255, .86);
}

.profile-crumbs a:hover {
    color: #fff;
}

.profile-crumbs span {
    color: rgba(255, 255, 255, .38);
}

.profile-hero {
    max-width: none;
    margin: 0;
    padding: .85rem max(1rem, calc((100vw - 1280px) / 2 + 2rem)) 3.5rem;
    background: #1d1957;
}

.profile-hero-card {
    display: grid;
    max-width: 1216px;
    min-height: 610px;
    margin: 0 auto;
    grid-template-columns: minmax(360px, .4fr) minmax(0, .6fr);
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.profile-portrait {
    position: relative;
    min-height: 610px;
    overflow: hidden;
    border-radius: 8px;
    background: #dfe5e7;
}

.profile-portrait img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: 50% 14%;
    transform: scale(1.01);
    transition: transform .7s cubic-bezier(.22, 1, .36, 1);
}

.profile-portrait:hover img {
    transform: scale(1.035);
}

.profile-portrait::after {
    height: 34%;
    background: linear-gradient(180deg, transparent, rgba(15, 13, 47, .76));
}

.profile-portrait-badge {
    left: 1.25rem;
    top: auto;
    bottom: 1.2rem;
    z-index: 2;
    border-radius: 0;
    background: transparent;
    padding: 0;
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    box-shadow: none;
}

.profile-portrait-badge svg {
    color: #b8ef9e;
}

.profile-identity {
    display: flex;
    justify-content: center;
    padding: 2.25rem 0 1rem clamp(2.5rem, 5vw, 5rem);
    background: transparent;
}

.profile-pills {
    gap: .65rem 1rem;
}

.profile-specialty-pill,
.profile-subspecialty-pill {
    display: inline-flex;
    align-items: center;
    min-height: auto;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .01em;
    text-transform: none;
}

.profile-specialty-pill {
    gap: .4rem;
    color: #b8ef9e;
}

.profile-subspecialty-pill {
    color: rgba(255, 255, 255, .82);
}

.profile-identity h1 {
    max-width: 700px;
    margin-top: 1.15rem;
    color: #fff;
    font-size: clamp(3.4rem, 5vw, 5.6rem);
    font-weight: 760;
    line-height: .92;
    letter-spacing: -.04em;
    overflow-wrap: anywhere;
    text-wrap: balance;
}

.profile-identity > p {
    max-width: 620px;
    margin-top: 1.4rem;
    color: rgba(255, 255, 255, .72);
    font-size: 1rem;
    line-height: 1.65;
    text-wrap: pretty;
}

.profile-quick-actions {
    margin-top: 1.65rem;
    gap: .6rem;
}

.profile-quick-actions .btn {
    min-height: 48px;
    border-radius: 6px;
    box-shadow: none;
}

.profile-quick-actions .btn-green {
    color: #171442;
}

.profile-quick-actions .btn-ghost {
    border-color: rgba(255, 255, 255, .28);
    background: transparent;
    color: #fff;
}

.profile-quick-actions .btn-ghost:hover {
    border-color: rgba(255, 255, 255, .62);
    background: rgba(255, 255, 255, .08);
}

.profile-meta-strip {
    margin-top: 2.25rem;
    padding-top: 1.35rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem 1.5rem;
    border-top-color: rgba(255, 255, 255, .2);
}

.profile-meta-strip > div {
    gap: .65rem;
}

.profile-meta-strip span {
    width: 30px;
    height: 30px;
    border-radius: 0;
    background: transparent;
    color: #b8ef9e;
}

.profile-meta-strip small {
    margin-bottom: .15rem;
    color: rgba(255, 255, 255, .5);
    font-size: .66rem;
    font-weight: 650;
    letter-spacing: 0;
    text-transform: none;
}

.profile-meta-strip strong,
.profile-meta-strip a {
    color: #fff;
    font-size: .82rem;
    font-weight: 700;
    line-height: 1.35;
}

.profile-meta-strip a:hover {
    color: #d1f6be;
}

.profile-body {
    display: block;
    max-width: 1280px;
    padding-top: clamp(3.5rem, 5vw, 5rem);
}

.profile-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(340px, .65fr);
    align-items: start;
    gap: 1.5rem;
}

.profile-narrative {
    display: grid;
    gap: 1.25rem;
}

.profile-card,
.profile-info-card {
    overflow: hidden;
    border: 0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(20, 28, 44, .08);
}

.profile-card {
    padding: clamp(2rem, 3vw, 3rem);
}

.profile-card + .profile-card {
    margin-top: 0;
}

.profile-card h2,
.profile-info-card h3 {
    color: var(--navy);
    font-weight: 760;
    letter-spacing: -.02em;
}

.profile-card h2 {
    gap: .65rem;
    font-size: clamp(1.55rem, 2.2vw, 2.05rem);
}

.profile-card h2 svg,
.profile-info-card h3 svg {
    color: #4e7f38;
}

.profile-card .profile-card-lead {
    margin-top: .9rem;
    color: #303741;
    font-size: 1rem;
    font-weight: 700;
}

.profile-card p {
    max-width: 72ch;
    margin-top: 1.25rem;
    color: #4e5660;
    font-size: 1rem;
    line-height: 1.75;
}

.profile-associations {
    margin-top: 1.35rem;
    gap: 0;
    border-top: 1px solid #e2e6e8;
}

.profile-associations p {
    gap: .7rem;
    border: 0;
    border-bottom: 1px solid #e2e6e8;
    border-radius: 0;
    background: transparent;
    padding: .95rem 0;
    color: #3d4650;
    font-size: .9rem;
    font-weight: 650;
}

.profile-associations p svg {
    width: 20px;
    height: 20px;
    border-radius: 0;
    background: transparent;
    color: #4e7f38;
    padding: 0;
}

.profile-sidebar {
    position: sticky;
    top: 112px;
    display: grid;
    gap: 1rem;
}

.profile-info-card h3 {
    padding: 1.3rem 1.4rem;
    border-bottom-color: #e2e6e8;
    font-size: 1.15rem;
}

.profile-info-card dl div {
    padding: 1rem 1.4rem;
    border-bottom-color: #e8ebed;
}

.profile-info-card dt {
    color: #616a74;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

.profile-info-card dt svg {
    color: #4e7f38;
}

.profile-info-card dd {
    margin-top: .35rem;
    color: #303741;
    font-size: .88rem;
    font-weight: 650;
    line-height: 1.5;
}

.profile-info-card dd a {
    color: var(--navy);
    text-decoration: underline;
    text-decoration-color: rgba(38, 33, 97, .25);
    text-underline-offset: 3px;
}

.profile-cta-card {
    border-radius: 8px;
    background: #1d1957;
    padding: 1.6rem;
    box-shadow: none;
}

.profile-cta-card::before {
    display: none;
}

.profile-cta-card span {
    border-radius: 0;
    background: transparent;
    padding: 0;
    color: #b8ef9e;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

.profile-cta-card h3 {
    margin-top: .8rem;
    font-size: 1.35rem;
    font-weight: 760;
    line-height: 1.15;
}

.profile-cta-card p {
    color: rgba(255, 255, 255, .72);
    font-size: .88rem;
}

.profile-cta-card .btn {
    min-height: 48px;
    border-radius: 5px;
    color: #171442;
    box-shadow: none;
}

.profile-back {
    width: auto;
    margin: 2.5rem 0 0;
    justify-content: flex-start;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: .5rem 0;
    color: var(--navy);
    font-size: .84rem;
    font-weight: 700;
}

.profile-back:hover {
    background: transparent;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 1000px) {
    .profile-hero-card {
        grid-template-columns: minmax(300px, .42fr) minmax(0, .58fr);
    }

    .profile-identity {
        padding-left: 2.5rem;
    }

    .profile-content-grid {
        grid-template-columns: minmax(0, 1fr) 320px;
    }
}

@media (max-width: 820px) {
    .profile-hero-card {
        grid-template-columns: 1fr;
    }

    .profile-portrait {
        min-height: 440px;
    }

    .profile-identity {
        padding: 2.25rem 0 1rem;
    }

    .profile-identity h1 {
        max-width: 680px;
    }

    .profile-content-grid {
        grid-template-columns: 1fr;
    }

    .profile-sidebar {
        position: static;
        grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
    }
}

@media (max-width: 640px) {
    .profile-topbar-inner {
        min-height: 72px;
        padding-right: max(1rem, env(safe-area-inset-right));
        padding-left: max(1rem, env(safe-area-inset-left));
    }

    .profile-topbar nav .profile-cta {
        min-height: 46px;
        margin-left: 0;
        padding: 0 .8rem;
    }

    .profile-crumbs {
        overflow: hidden;
        padding: 1rem max(1rem, env(safe-area-inset-right)) .25rem max(1rem, env(safe-area-inset-left));
        white-space: nowrap;
    }

    .profile-crumbs > span:last-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .profile-hero {
        padding: .75rem max(1rem, env(safe-area-inset-right)) 2.5rem max(1rem, env(safe-area-inset-left));
    }

    .profile-hero-card {
        min-height: 0;
    }

    .profile-portrait {
        min-height: 360px;
        border-radius: 6px;
    }

    .profile-identity {
        padding-top: 1.8rem;
    }

    .profile-pills {
        align-items: flex-start;
        flex-direction: column;
        gap: .45rem;
    }

    .profile-identity h1 {
        font-size: clamp(2.6rem, 12vw, 3.65rem);
        line-height: .95;
    }

    .profile-identity > p {
        font-size: .95rem;
    }

    .profile-quick-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .profile-quick-actions .btn,
    .profile-quick-actions .btn-green {
        min-height: 48px;
        flex: initial;
    }

    .profile-quick-actions .btn-green {
        grid-column: 1 / -1;
    }

    .profile-meta-strip {
        grid-template-columns: 1fr;
        gap: .85rem;
    }

    .profile-meta-strip > div + div {
        border-top: 1px solid rgba(255, 255, 255, .12);
        padding-top: .8rem;
    }

    .profile-body {
        padding-top: 2.5rem;
        padding-right: max(1rem, env(safe-area-inset-right));
        padding-left: max(1rem, env(safe-area-inset-left));
    }

    .profile-card {
        border-radius: 6px;
        padding: 1.5rem 1.25rem;
    }

    .profile-card h2 {
        align-items: flex-start;
        font-size: 1.5rem;
    }

    .profile-card p {
        font-size: .95rem;
    }

    .profile-sidebar {
        grid-template-columns: 1fr;
    }

    .profile-info-card,
    .profile-cta-card {
        border-radius: 6px;
    }

    .profile-info-card dt,
    .profile-info-card dd,
    .profile-cta-card p {
        font-size: .875rem;
    }

    .profile-back {
        min-height: 46px;
        width: 100%;
    }
}

@media (pointer: coarse) {
    .profile-topbar nav a,
    .profile-topbar nav button,
    .profile-quick-actions .btn,
    .profile-cta-card .btn,
    .profile-back {
        min-height: 46px;
    }
}

@media (hover: none) {
    .profile-portrait:hover img {
        transform: scale(1.01);
    }
}

@media (prefers-reduced-motion: reduce) {
    .profile-portrait img {
        transition: none;
    }
}

/* ================================================================
   PREMIUM CLINICAL EDITORIAL — direction 01
   ================================================================ */
@keyframes clinical-copy-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes clinical-image-in {
    from { opacity: .3; transform: scale(1.035); }
    to { opacity: 1; transform: scale(1); }
}

.directory-page .dir-hero-copy {
    animation: clinical-copy-in .7s cubic-bezier(.22, 1, .36, 1) both;
}

.directory-page .dir-hero-visual {
    clip-path: polygon(7% 0, 100% 0, 100% 100%, 0 100%);
    animation: clinical-image-in .9s cubic-bezier(.22, 1, .36, 1) both;
}

.directory-page .dir-hero-visual::before {
    left: 6.2%;
    width: 6px;
}

.directory-page .dir-hero-visual::after {
    background:
        linear-gradient(90deg, rgba(29, 25, 87, .32), transparent 42%),
        linear-gradient(180deg, transparent 58%, rgba(10, 10, 35, .54));
}

.dir-hero-visual figcaption {
    position: absolute;
    right: 1.5rem;
    bottom: 1.35rem;
    z-index: 2;
    max-width: 280px;
    color: #fff;
    text-align: right;
}

.dir-hero-visual figcaption span,
.dir-hero-visual figcaption strong {
    display: block;
}

.dir-hero-visual figcaption span {
    color: rgba(255, 255, 255, .68);
    font-size: .68rem;
    font-weight: 650;
}

.dir-hero-visual figcaption strong {
    margin-top: .25rem;
    font-size: .82rem;
    font-weight: 760;
}

.directory-page .dir-search-card {
    box-shadow:
        0 0 0 6px rgba(255, 255, 255, .13),
        0 8px 8px rgba(21, 25, 54, .14);
}

.directory-page .dir-search-label {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
}

.directory-page .dir-search-label::before {
    width: 1.8rem;
    height: 2px;
    background: var(--green);
    content: "";
}

.directory-page .dir-section-shell {
    position: relative;
}

.directory-page .dir-section-shell::before {
    position: absolute;
    top: -2.3rem;
    right: 2rem;
    color: rgba(38, 33, 97, .16);
    content: "HG · LC";
    font-family: "Outfit", "Plus Jakarta Sans", Inter, system-ui, sans-serif;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .14em;
}

.directory-page .dir-doctor-card {
    position: relative;
    grid-template-columns: 176px minmax(0, 1fr);
    min-height: 260px;
    isolation: isolate;
}

.directory-page .dir-doctor-card::before {
    position: absolute;
    top: 0;
    left: 176px;
    right: 0;
    z-index: 2;
    height: 2px;
    background: var(--green);
    content: "";
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .45s cubic-bezier(.22, 1, .36, 1);
}

.directory-page .dir-doctor-card:hover::before {
    transform: scaleX(1);
}

.directory-page .dir-doctor-photo {
    overflow: hidden;
}

.directory-page .dir-doctor-photo::before {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, transparent 68%, rgba(21, 20, 55, .22));
    content: "";
    pointer-events: none;
}

.directory-page .dir-doctor-body {
    padding: 1.3rem 1.35rem .8rem;
}

.directory-page .dir-doctor-tag {
    color: #356723;
    font-size: .72rem;
}

.directory-page .dir-doctor-body h3 {
    max-width: 300px;
    font-size: clamp(1.18rem, 1.45vw, 1.42rem);
}

.directory-page .dir-doctor-actions {
    min-height: 52px;
}

.directory-page .dir-action-primary {
    justify-content: space-between;
    padding: 0 .75rem 0 1.15rem;
}

.dir-action-icon {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    transition: transform .35s cubic-bezier(.22, 1, .36, 1), background .2s ease;
}

.directory-page .dir-action-primary:hover .dir-action-icon {
    background: rgba(255, 255, 255, .2);
    transform: translate(2px, -2px);
}

.profile-portrait {
    box-shadow: 18px 18px 0 rgba(111, 180, 63, .18);
}

.profile-institution {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, .58);
    font-size: .72rem;
    font-weight: 650;
}

.profile-institution::before {
    width: 1.8rem;
    height: 2px;
    background: var(--green);
    content: "";
}

.profile-identity {
    position: relative;
    padding-left: clamp(3.5rem, 6vw, 6rem);
    animation: clinical-copy-in .7s .08s cubic-bezier(.22, 1, .36, 1) both;
}

.profile-identity::after {
    position: absolute;
    right: 0;
    bottom: .65rem;
    color: rgba(255, 255, 255, .07);
    content: "COLINAS";
    font-family: "Outfit", "Plus Jakarta Sans", Inter, system-ui, sans-serif;
    font-size: clamp(3rem, 6vw, 6rem);
    font-weight: 800;
    letter-spacing: -.04em;
    pointer-events: none;
}

.profile-identity > * {
    position: relative;
    z-index: 1;
}

.profile-pills {
    padding-bottom: .9rem;
    border-bottom: 1px solid rgba(255, 255, 255, .16);
}

.profile-quick-actions .btn-green,
.profile-cta-card .btn-green {
    transition: transform .35s cubic-bezier(.22, 1, .36, 1), background .2s ease;
}

.profile-quick-actions .btn-green:hover,
.profile-cta-card .btn-green:hover {
    transform: translateY(-2px);
}

.profile-card,
.profile-info-card,
.profile-cta-card {
    transition: transform .35s cubic-bezier(.22, 1, .36, 1), box-shadow .35s cubic-bezier(.22, 1, .36, 1);
}

.profile-card:hover,
.profile-info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 8px rgba(20, 28, 44, .08);
}

.profile-card {
    position: relative;
}

.profile-card::before {
    position: absolute;
    top: 0;
    left: clamp(2rem, 3vw, 3rem);
    width: 4.5rem;
    height: 2px;
    background: var(--green);
    content: "";
}

@media (max-width: 1080px) {
    .directory-page .dir-doctor-card {
        grid-template-columns: 146px minmax(0, 1fr);
    }

    .directory-page .dir-doctor-card::before {
        left: 146px;
    }
}

@media (max-width: 820px) {
    .directory-page .dir-hero-visual {
        clip-path: none;
    }

    .directory-page .dir-hero-visual::before {
        left: 0;
        width: auto;
    }

    .directory-page .dir-doctor-card {
        grid-template-columns: 160px minmax(0, 1fr);
    }

    .directory-page .dir-doctor-card::before {
        left: 160px;
    }

    .profile-portrait {
        box-shadow: 10px 10px 0 rgba(111, 180, 63, .16);
    }

    .profile-identity {
        padding-left: 0;
    }
}

@media (max-width: 640px) {
    .dir-hero-visual figcaption {
        right: 1rem;
        bottom: 1rem;
    }

    .directory-page .dir-section-shell::before {
        display: none;
    }

    .directory-page .dir-doctor-card {
        grid-template-columns: 116px minmax(0, 1fr);
    }

    .directory-page .dir-doctor-card::before {
        left: 116px;
    }

    .directory-page .dir-doctor-body {
        padding: 1rem .9rem .7rem;
    }

    .directory-page .dir-doctor-body h3 {
        font-size: 1.08rem;
    }

    .profile-portrait {
        box-shadow: 7px 7px 0 rgba(111, 180, 63, .16);
    }

    .profile-identity::after {
        display: none;
    }
}

@media (max-width: 380px) {
    .directory-page .dir-doctor-card {
        grid-template-columns: 100px minmax(0, 1fr);
    }

    .directory-page .dir-doctor-card::before {
        left: 100px;
    }
}

@media (hover: none) {
    .directory-page .dir-doctor-card:hover::before {
        transform: scaleX(0);
    }

    .profile-card:hover,
    .profile-info-card:hover {
        transform: none;
        box-shadow: 0 1px 2px rgba(20, 28, 44, .08);
    }
}

@media (prefers-reduced-motion: reduce) {
    .directory-page .dir-hero-copy,
    .directory-page .dir-hero-visual,
    .profile-identity {
        animation: none;
    }

    .directory-page .dir-doctor-card::before,
    .dir-action-icon,
    .profile-card,
    .profile-info-card,
    .profile-cta-card {
        transition: none;
    }
}

/* ================================================================
   DENSITY + RESPONSIVE BUGFIX PASS
   ================================================================ */
.profile-topbar-inner {
    min-height: 76px;
    padding-top: .45rem;
    padding-bottom: .45rem;
}

.profile-topbar .brand-logo {
    height: 56px;
    max-width: 250px;
}

.directory-page .dir-hero-copy,
.directory-page .dir-hero-visual {
    min-height: 470px;
}

.directory-page .dir-hero-copy {
    padding-top: 2.75rem;
    padding-bottom: 4.25rem;
}

.directory-page .dir-hero-copy h1 {
    font-size: clamp(3.5rem, 5.35vw, 5.5rem);
}

.directory-page .dir-hero-summary {
    margin-top: 1.5rem;
}

.directory-page .dir-search-stage,
.directory-page .dir-search-card,
.directory-page .dir-search-head,
.directory-page .dir-search-row {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.directory-page .dir-search-stage {
    margin-top: -3rem;
}

.directory-page .dir-search-card {
    min-width: 0;
}

.directory-page .dir-search-head {
    display: flex;
    justify-content: space-between;
}

.directory-page .dir-search-row input {
    width: 100%;
    min-width: 0;
}

.directory-page .dir-section {
    padding-top: clamp(3.5rem, 5vw, 4.75rem);
    padding-bottom: 4rem;
}

.directory-page .dir-doctor-grid {
    gap: 1rem;
    margin-top: 2rem;
}

.directory-page .dir-doctor-card {
    min-height: 242px;
}

.directory-page .dir-doctor-body {
    padding-top: 1.1rem;
}

.profile-hero {
    padding-bottom: 2.5rem;
}

.profile-hero-card,
.profile-portrait {
    min-height: 520px;
}

.profile-identity {
    padding-top: 1.4rem;
    padding-bottom: .4rem;
}

.profile-identity h1 {
    font-size: clamp(3.1rem, 4.6vw, 5rem);
}

.profile-identity > p {
    margin-top: 1.1rem;
}

.profile-quick-actions {
    margin-top: 1.25rem;
}

.profile-meta-strip {
    margin-top: 1.5rem;
    padding-top: 1rem;
    gap: .85rem 1.25rem;
}

.profile-body {
    padding-top: 2.5rem;
    padding-bottom: 3.5rem;
}

.profile-content-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(330px, .75fr);
    gap: 1.25rem;
}

.profile-narrative {
    gap: 1rem;
}

.profile-card {
    padding: clamp(1.75rem, 2.5vw, 2.25rem);
}

.profile-card::before {
    left: clamp(1.75rem, 2.5vw, 2.25rem);
}

.profile-card p {
    margin-top: 1rem;
}

.profile-sidebar {
    top: 92px;
}

.profile-info-card h3 {
    padding-top: 1.1rem;
    padding-bottom: 1.1rem;
}

.profile-info-card dl div {
    padding-top: .85rem;
    padding-bottom: .85rem;
}

.profile-cta-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto auto;
    align-items: center;
    gap: .35rem 2rem;
    padding: 1.5rem 1.75rem;
}

.profile-cta-card > span,
.profile-cta-card > h3,
.profile-cta-card > p {
    grid-column: 1;
}

.profile-cta-card h3 {
    margin-top: .35rem;
}

.profile-cta-card p {
    margin-top: .25rem;
}

.profile-cta-card .btn {
    grid-column: 2;
    grid-row: 1 / 4;
    min-width: 170px;
    width: auto;
    margin-top: 0;
}

.profile-back {
    margin-top: 1.5rem;
}

@media (max-width: 1000px) {
    .profile-content-grid {
        grid-template-columns: minmax(0, 1fr) 300px;
    }
}

@media (max-width: 820px) {
    .directory-page .dir-hero-copy,
    .directory-page .dir-hero-visual {
        min-height: 0;
    }

    .directory-page .dir-hero-copy {
        padding-top: 2.5rem;
        padding-bottom: 4.75rem;
    }

    .directory-page .dir-hero-visual {
        min-height: 280px;
    }

    .directory-page .dir-search-stage {
        margin-top: -2.75rem;
    }

    .profile-hero-card,
    .profile-portrait {
        min-height: 0;
    }

    .profile-portrait {
        height: clamp(360px, 60vw, 460px);
    }

    .profile-content-grid {
        grid-template-columns: 1fr;
    }

    .profile-sidebar {
        display: block;
    }
}

@media (max-width: 640px) {
    .profile-topbar-inner {
        min-height: 66px;
    }

    .profile-topbar .brand-logo {
        height: 46px;
        max-width: 170px;
    }

    .directory-page .dir-search-stage {
        display: block;
        margin-top: -2.25rem;
        overflow: visible;
    }

    .directory-page .dir-search-card {
        display: block;
        width: 100%;
        box-shadow: 0 6px 8px rgba(21, 25, 54, .14);
    }

    .directory-page .dir-search-head {
        display: flex;
        width: 100%;
    }

    .directory-page .dir-search-row {
        display: grid;
        width: 100%;
    }

    .directory-page .dir-section {
        padding-top: 3rem;
    }

    .profile-hero {
        padding-bottom: 2rem;
    }

    .profile-portrait {
        height: clamp(310px, 92vw, 380px);
    }

    .profile-identity {
        padding-top: 1.5rem;
    }

    .profile-identity h1 {
        font-size: clamp(2.4rem, 11vw, 3.35rem);
    }

    .profile-body {
        padding-top: 2rem;
        padding-bottom: 2.75rem;
    }

    .profile-cta-card {
        display: block;
        padding: 1.4rem;
    }

    .profile-cta-card .btn {
        width: 100%;
        min-width: 0;
        margin-top: 1rem;
    }
}

/* ================================================================
   VIEWPORT-AWARE HERO PASS
   The directory header now responds to both width and available height.
   ================================================================ */
.directory-page .dir-hero-copy,
.directory-page .dir-hero-visual {
    min-height: clamp(400px, 58svh, 470px);
}

.directory-page .dir-hero-copy h1 {
    font-size: clamp(3rem, min(5.35vw, 8.4svh), 5.5rem);
}

.profile-hero-card,
.profile-portrait {
    min-height: clamp(440px, 62svh, 520px);
}

.profile-identity h1 {
    font-size: clamp(2.8rem, min(4.6vw, 8.2svh), 5rem);
}

@media (min-width: 821px) and (max-width: 1100px) {
    .directory-page .dir-hero-grid {
        grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr);
    }

    .directory-page .dir-hero-copy {
        padding-right: 2rem;
    }

    .directory-page .dir-hero-copy h1 {
        font-size: clamp(3rem, min(5.4vw, 8svh), 4.6rem);
    }
}

/* Short laptops, browser zoom and landscape tablets. */
@media (min-width: 821px) and (max-height: 820px) {
    .directory-page .dir-hero-copy,
    .directory-page .dir-hero-visual {
        min-height: 390px;
    }

    .directory-page .dir-hero-copy {
        padding-top: 1.75rem;
        padding-bottom: 2.1rem;
    }

    .directory-page .dir-hero-copy h1 {
        margin-top: .8rem;
        font-size: clamp(2.8rem, min(4.8vw, 8.2svh), 4.4rem);
    }

    .directory-page .dir-hero-copy > p {
        margin-top: .8rem;
        font-size: .95rem;
        line-height: 1.5;
    }

    .directory-page .dir-hero-actions,
    .directory-page .dir-hero-summary {
        margin-top: 1rem;
    }

    .directory-page .dir-hero-summary > div {
        padding-top: .65rem;
    }

    .directory-page .dir-search-stage {
        margin-top: 0;
        padding-top: 1rem;
        background: #edf1f3;
    }

    .directory-page .dir-search-card {
        box-shadow: 0 4px 8px rgba(21, 25, 54, .1);
    }

    .profile-hero-card,
    .profile-portrait {
        min-height: 430px;
    }

    .profile-identity {
        padding-top: 1rem;
    }

    .profile-identity h1 {
        font-size: clamp(2.65rem, min(4.3vw, 7.8svh), 4.25rem);
    }

    .profile-identity > p,
    .profile-quick-actions,
    .profile-meta-strip {
        margin-top: 1rem;
    }
}

@media (min-width: 821px) and (max-height: 620px) {
    .directory-page .dir-hero-copy,
    .directory-page .dir-hero-visual {
        min-height: 340px;
    }

    .directory-page .dir-hero-copy {
        padding-top: 1.25rem;
        padding-bottom: 1.35rem;
    }

    .directory-page .dir-hero-copy h1 {
        margin-top: .55rem;
        font-size: clamp(2.45rem, min(4.5vw, 8svh), 3.8rem);
    }

    .directory-page .dir-hero-copy > p {
        margin-top: .55rem;
        line-height: 1.4;
    }

    .directory-page .dir-hero-actions,
    .directory-page .dir-hero-summary {
        margin-top: .7rem;
    }

    .directory-page .dir-hero-actions .btn {
        min-height: 44px;
    }

    .profile-hero-card,
    .profile-portrait {
        min-height: 390px;
    }
}

@media (max-width: 820px) {
    .directory-page .dir-hero-copy,
    .profile-hero-card,
    .profile-portrait {
        min-height: 0;
    }

    .directory-page .dir-hero-visual {
        min-height: 280px;
    }

    .directory-page .dir-hero-copy h1 {
        font-size: clamp(2.65rem, min(10vw, 8svh), 4rem);
    }
}

@media (max-width: 480px) {
    .directory-page .dir-hero-copy {
        padding: 2rem max(1rem, env(safe-area-inset-right)) 2rem max(1rem, env(safe-area-inset-left));
    }

    .directory-page .dir-hero-copy h1 {
        font-size: clamp(2.35rem, 11.5vw, 3.25rem);
    }

    .directory-page .dir-hero-copy > p {
        font-size: .92rem;
        line-height: 1.55;
    }

    .directory-page .dir-hero-actions,
    .directory-page .dir-hero-actions .btn {
        width: 100%;
    }

    .directory-page .dir-hero-actions .btn {
        justify-content: center;
    }

    .dir-hero-phone {
        font-size: .78rem;
    }

    .directory-page .dir-hero-visual {
        min-height: 220px;
    }

    .directory-page .dir-search-stage {
        margin-top: 0;
        padding-top: 1rem;
        background: #edf1f3;
    }

    .directory-page .dir-search-card {
        margin: 0;
        box-shadow: 0 3px 8px rgba(21, 25, 54, .1);
    }

    .directory-page .dir-search-head {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: .5rem;
    }

    .directory-page .dir-search-label {
        min-width: 0;
    }

    .directory-page .dir-result-count {
        white-space: nowrap;
    }

    .directory-page .dir-search-row {
        grid-template-columns: 24px minmax(0, 1fr) 40px;
        padding-left: .65rem;
    }
}

@media (max-width: 360px) {
    .directory-page .dir-hero-copy h1 {
        font-size: clamp(2.1rem, 10.8vw, 2.55rem);
        letter-spacing: -.035em;
    }

    .directory-page .dir-hero-summary {
        margin-top: 1.25rem;
    }
}

@media (max-width: 320px) {
    .directory-page .dir-search-stage {
        padding-right: max(.75rem, env(safe-area-inset-right));
        padding-left: max(.75rem, env(safe-area-inset-left));
    }

    .directory-page .dir-search-card {
        padding: .85rem;
    }

    .directory-page .dir-search-head {
        grid-template-columns: 1fr;
    }

    .directory-page .dir-result-count {
        justify-self: start;
    }
}

/* ================================================================
   RESPONSIVE DOCTOR PROFILE HERO
   The original portrait stays fully visible at every breakpoint.
   ================================================================ */
.profile-hero-card {
    align-items: stretch;
    min-width: 0;
}

.profile-hero-card > *,
.profile-identity,
.profile-meta-strip > div,
.profile-meta-strip > div > div {
    min-width: 0;
}

.profile-portrait img {
    position: absolute;
    inset: 0;
    display: block;
    object-fit: contain;
    object-position: center;
    transform: none;
}

.profile-portrait:hover img {
    transform: none;
}

.profile-portrait::after {
    height: 20%;
    background: linear-gradient(180deg, transparent, rgba(17, 15, 55, .38));
}

.profile-portrait-badge {
    left: 1rem;
    bottom: 1rem;
    border-radius: 4px;
    background: rgba(29, 25, 87, .9);
    padding: .5rem .7rem;
    color: #fff;
}

.profile-identity h1,
.profile-identity > p,
.profile-meta-strip strong,
.profile-meta-strip a {
    max-width: 100%;
    overflow-wrap: anywhere;
}

@media (min-width: 821px) {
    .profile-hero-card {
        min-height: 0;
        grid-template-columns: clamp(300px, min(31vw, 44svh), 400px) minmax(0, 1fr);
        gap: clamp(2.5rem, 5vw, 5rem);
    }

    .profile-portrait {
        align-self: center;
        aspect-ratio: 2 / 3;
        height: auto;
        min-height: 0;
        background: #eef1f3;
    }

    .profile-identity {
        padding-left: 0;
    }
}

@media (min-width: 821px) and (max-height: 820px) {
    .profile-institution {
        margin-bottom: .65rem;
    }

    .profile-pills {
        padding-bottom: .65rem;
    }

    .profile-identity h1 {
        margin-top: .7rem;
    }

    .profile-meta-strip {
        padding-top: .8rem;
        gap: .7rem 1rem;
    }
}

@media (min-width: 821px) and (max-height: 620px) {
    .profile-hero-card {
        grid-template-columns: clamp(240px, min(28vw, 40svh), 300px) minmax(0, 1fr);
        gap: clamp(2rem, 4vw, 3.5rem);
    }
}

@media (max-width: 820px) {
    .profile-hero-card {
        grid-template-columns: minmax(0, 1fr);
    }

    .profile-portrait {
        width: min(100%, 400px);
        min-height: 0;
        height: auto;
        aspect-ratio: 2 / 3;
        justify-self: center;
        background: #eef1f3;
    }

    .profile-identity {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .profile-hero {
        padding-right: max(1rem, env(safe-area-inset-right));
        padding-left: max(1rem, env(safe-area-inset-left));
    }

    .profile-identity h1 {
        font-size: clamp(2.15rem, 10.5vw, 3rem);
        line-height: .96;
    }

    .profile-quick-actions {
        grid-template-columns: minmax(0, 1fr);
    }

    .profile-quick-actions .btn,
    .profile-quick-actions .btn-green {
        grid-column: 1;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 360px) {
    .profile-identity {
        padding-top: 1.35rem;
    }

    .profile-identity h1 {
        font-size: clamp(2rem, 10vw, 2.35rem);
    }

    .profile-identity > p {
        font-size: .9rem;
        line-height: 1.55;
    }
}

/* ================================================================
   MEDICAL DIRECTORY HERO — CLINICAL COMPOSITION FOUNDATION
   ================================================================ */
.directory-page .dir-hero {
    overflow: visible;
    background: #171451;
}

.directory-page .dir-hero::before {
    display: none;
}

.directory-page .dir-hero-grid {
    grid-template-columns: minmax(0, 1.58fr) minmax(460px, .92fr);
    align-items: stretch;
}

.directory-page .dir-hero-copy,
.directory-page .dir-hero-visual {
    min-height: clamp(610px, 76svh, 680px);
}

.directory-page .dir-hero-copy {
    width: min(100%, 940px);
    justify-content: center;
    padding: clamp(2.25rem, 4.5svh, 3.5rem) clamp(3rem, 5vw, 6rem) clamp(2.25rem, 4.5svh, 3.5rem) 2rem;
}

.directory-page .dir-hero-copy h1 {
    max-width: 780px;
    margin-top: 1rem;
    font-size: clamp(3.65rem, min(5.2vw, 8.2svh), 5.5rem);
    line-height: .93;
    letter-spacing: -.04em;
}

.directory-page .dir-hero-copy > p {
    max-width: 690px;
    margin-top: 1.1rem;
    color: rgba(255, 255, 255, .76);
    font-size: clamp(.98rem, 1.1vw, 1.08rem);
    line-height: 1.55;
}

.directory-page .dir-hero-actions {
    max-width: 760px;
    gap: 1.6rem;
    margin-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, .2);
    padding-top: 1rem;
}

.directory-page .dir-hero-actions .btn {
    min-height: 48px;
    border-radius: 5px;
    padding-inline: 1.35rem;
}

.directory-page .dir-hero-summary {
    max-width: 520px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin-top: 1rem;
    border-top: 0;
}

.directory-page .dir-hero-summary > div {
    padding: .45rem 1.15rem .45rem 0;
}

.directory-page .dir-hero-summary > div + div {
    border-left: 1px solid rgba(255, 255, 255, .2);
    padding-left: 1.15rem;
}

.directory-page .dir-hero-summary dt {
    color: rgba(255, 255, 255, .5);
    font-size: .63rem;
}

.directory-page .dir-hero-summary dd {
    margin-top: .2rem;
    font-size: .8rem;
}

.directory-page .dir-hero-visual {
    min-width: 0;
    clip-path: polygon(7% 0, 100% 0, 100% 100%, 0 100%, 4% 52%);
}

.directory-page .dir-hero-visual::before {
    inset: -4% auto -4% 3.4%;
    width: 6px;
    height: auto;
    background: var(--green);
    transform: rotate(1.8deg);
    transform-origin: center;
}

.directory-page .dir-hero-visual::after {
    background: linear-gradient(180deg, transparent 58%, rgba(12, 15, 35, .58));
}

.directory-page .dir-hero-visual > img {
    object-position: 52% center;
    transform: none;
}

.directory-page .dir-hero-visual:hover > img {
    transform: scale(1.018);
}

@media (min-width: 901px) and (max-height: 820px) {
    .directory-page .dir-hero-copy,
    .directory-page .dir-hero-visual {
        min-height: 570px;
    }

    .directory-page .dir-hero-copy {
        padding-top: 1.65rem;
        padding-bottom: 1.65rem;
    }

    .directory-page .dir-hero-copy h1 {
        font-size: clamp(3.15rem, min(4.6vw, 7.5svh), 4.5rem);
    }

}

@media (max-width: 1100px) and (min-width: 901px) {
    .directory-page .dir-hero-grid {
        grid-template-columns: minmax(0, 1.2fr) minmax(360px, .8fr);
    }

    .directory-page .dir-hero-copy {
        padding-right: 2rem;
    }

    .directory-page .dir-hero-copy h1 {
        font-size: clamp(3.1rem, min(5vw, 7.4svh), 4.35rem);
    }

}

@media (max-width: 900px) {
    .directory-page .dir-hero-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .directory-page .dir-hero-copy,
    .directory-page .dir-hero-visual {
        min-height: 0;
    }

    .directory-page .dir-hero-copy {
        width: 100%;
        padding: 3rem max(1.5rem, env(safe-area-inset-right)) 2.75rem max(1.5rem, env(safe-area-inset-left));
    }

    .directory-page .dir-hero-copy h1 {
        max-width: 700px;
        font-size: clamp(3rem, 9vw, 4.6rem);
    }

    .directory-page .dir-hero-visual {
        min-height: clamp(280px, 48vw, 390px);
        clip-path: none;
    }

    .directory-page .dir-hero-visual::before {
        inset: 0 0 auto;
        width: auto;
        height: 6px;
        transform: none;
    }
}

@media (max-width: 640px) {
    .directory-page .dir-hero-copy {
        padding: 2.25rem max(1rem, env(safe-area-inset-right)) 2.25rem max(1rem, env(safe-area-inset-left));
    }

    .directory-page .dir-hero-copy h1 {
        font-size: clamp(2.55rem, 11.5vw, 3.55rem);
    }

    .directory-page .dir-hero-actions {
        align-items: stretch;
        flex-direction: column;
        gap: .85rem;
    }

    .directory-page .dir-hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .directory-page .dir-hero-summary {
        width: 100%;
    }

    .directory-page .dir-hero-visual {
        min-height: 250px;
    }
}

@media (max-width: 380px) {
    .directory-page .dir-hero-copy h1 {
        font-size: clamp(2.25rem, 10.8vw, 2.75rem);
    }

    .directory-page .dir-hero-summary {
        grid-template-columns: minmax(0, 1fr);
    }

    .directory-page .dir-hero-summary > div + div {
        border-top: 1px solid rgba(255, 255, 255, .16);
        border-left: 0;
        padding-left: 0;
    }
}

/* ================================================================
   DIRECTORY HIERARCHY PASS — HERO FIRST, SEARCH WITH THE DOCTORS
   ================================================================ */
.directory-page .dir-hero {
    overflow: hidden;
}

.directory-page .dir-hero-grid {
    grid-template-columns: minmax(0, 1.38fr) minmax(480px, .92fr);
}

.directory-page .dir-hero-copy,
.directory-page .dir-hero-visual {
    min-height: clamp(490px, 62svh, 560px);
}

.directory-page .dir-hero-copy {
    width: min(100%, 880px);
    padding: clamp(2.5rem, 5svh, 4rem) clamp(3rem, 6vw, 7rem) clamp(2.5rem, 5svh, 4rem) 2rem;
}

.directory-page .dir-hero-copy h1 {
    max-width: 720px;
    font-size: clamp(3.65rem, min(5vw, 8svh), 5.35rem);
}

.directory-page .dir-hero-copy > p {
    max-width: 620px;
    margin-top: 1.25rem;
    font-size: clamp(1rem, 1.15vw, 1.1rem);
    line-height: 1.62;
}

.directory-page .dir-hero-actions {
    gap: 1.5rem;
    margin-top: 1.7rem;
    border-top: 0;
    padding-top: 0;
}

.directory-page .dir-hero-summary {
    max-width: 540px;
    margin-top: 1.8rem;
    border-top: 1px solid rgba(255, 255, 255, .22);
}

.directory-page .dir-hero-summary > div {
    padding-top: .85rem;
}

.directory-page .dir-hero-visual {
    clip-path: polygon(9% 0, 100% 0, 100% 100%, 0 100%);
}

.directory-page .dir-hero-visual::before {
    inset: -4% auto -4% 4.3%;
    width: 6px;
    height: auto;
    transform: rotate(3.2deg);
}

.directory-page .dir-hero-visual::after {
    background: linear-gradient(180deg, transparent 62%, rgba(12, 15, 35, .62));
}

.directory-page .dir-section {
    padding-top: clamp(3.5rem, 5vw, 4.75rem);
}

.directory-page .dir-directory-search {
    position: relative;
    z-index: 8;
    width: 100%;
    max-width: none;
    margin: 2rem 0 0;
    padding: 0;
    background: transparent;
}

.directory-page .dir-directory-search .dir-search-card {
    width: 100%;
    border: 1px solid #e0e4e7;
    border-radius: 10px;
    background: #fff;
    padding: 1.2rem;
    box-shadow: 0 4px 8px rgba(20, 28, 44, .07);
}

.directory-page .dir-directory-search .dir-search-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
}

.directory-page .dir-directory-search .dir-search-heading {
    display: grid;
    gap: .2rem;
}

.directory-page .dir-directory-search .dir-search-label {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    color: var(--navy-2);
    font-family: "Outfit", "Plus Jakarta Sans", Inter, system-ui, sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -.01em;
}

.directory-page .dir-directory-search .dir-search-label::before {
    content: "";
    width: 28px;
    height: 2px;
    flex: 0 0 auto;
    background: var(--green);
}

.directory-page .dir-directory-search .dir-search-heading p {
    margin: 0 0 0 2.55rem;
    color: #68717b;
    font-size: .8rem;
    font-weight: 600;
    line-height: 1.45;
}

.directory-page .dir-directory-search .dir-search-row {
    grid-template-columns: 42px minmax(0, 1fr) auto auto;
    gap: .45rem;
    min-height: 60px;
    margin-top: 1rem;
    border: 1px solid #c9d0d6;
    border-radius: 7px;
    background: #f8fafb;
    padding: .25rem .25rem .25rem .65rem;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.directory-page .dir-directory-search .dir-search-row:focus-within {
    border-color: var(--navy);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(38, 33, 97, .12);
}

.directory-page .dir-directory-search .dir-search-row > svg {
    width: 20px;
    height: 20px;
    justify-self: center;
    color: var(--navy);
    stroke-width: 2;
}

.directory-page .dir-directory-search .dir-search-row input {
    min-height: 52px;
    color: #252b34;
    font-size: 1rem;
    font-weight: 600;
}

.directory-page .dir-directory-search .dir-search-row input::placeholder {
    color: #6b747e;
    font-weight: 500;
}

.directory-page .dir-directory-search .dir-search-row input:focus-visible {
    outline: none;
}

.directory-page .dir-directory-search .dir-search-row input::-webkit-search-cancel-button {
    display: none;
}

.directory-page .dir-directory-search .dir-result-count {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    flex: 0 0 auto;
    min-height: auto;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0 0 .15rem;
    color: #59636d;
    font-size: .78rem;
    font-weight: 750;
    white-space: nowrap;
}

.directory-page .dir-directory-search .dir-result-count::before {
    content: "";
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 3px rgba(111, 180, 63, .15);
}

.directory-page .dir-directory-search .dir-search-clear {
    width: 44px;
    height: 44px;
    border: 1px solid transparent;
    border-radius: 5px;
    color: #59636d;
    transition: color .18s ease, border-color .18s ease, background-color .18s ease;
}

.directory-page .dir-directory-search .dir-search-clear:hover {
    border-color: #d8dde1;
    background: #fff;
    color: var(--navy);
}

.directory-page .dir-directory-search .dir-search-submit {
    min-width: 124px;
    min-height: 52px;
    justify-content: center;
    gap: .65rem;
    border: 1px solid var(--navy-2);
    border-radius: 5px;
    background: var(--navy-2);
    padding: 0 1.35rem;
    font-weight: 800;
    box-shadow: none;
    transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.directory-page .dir-directory-search .dir-search-submit:hover {
    border-color: var(--navy);
    background: var(--navy);
    transform: translateY(-1px);
}

.directory-page .dir-directory-search .dir-search-submit:active {
    transform: translateY(0);
}

.directory-page .dir-directory-search .dir-live-panel {
    top: calc(100% + .5rem);
    border-radius: 7px;
    box-shadow: 0 8px 8px rgba(20, 28, 44, .15);
}

.directory-page .dir-doctor-grid {
    margin-top: 1.35rem;
}

@media (min-width: 901px) and (max-height: 720px) {
    .directory-page .dir-hero-copy,
    .directory-page .dir-hero-visual {
        min-height: 450px;
    }

    .directory-page .dir-hero-copy {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .directory-page .dir-hero-copy h1 {
        font-size: clamp(3.15rem, min(4.6vw, 7.5svh), 4.5rem);
    }

    .directory-page .dir-hero-actions,
    .directory-page .dir-hero-summary {
        margin-top: 1.25rem;
    }
}

@media (max-width: 1100px) and (min-width: 901px) {
    .directory-page .dir-hero-grid {
        grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
    }
}

@media (max-width: 900px) {
    .directory-page .dir-hero-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .directory-page .dir-hero-copy,
    .directory-page .dir-hero-visual {
        min-height: 0;
    }

    .directory-page .dir-hero-copy {
        width: 100%;
        padding: 3rem max(1.5rem, env(safe-area-inset-right)) 3rem max(1.5rem, env(safe-area-inset-left));
    }

    .directory-page .dir-hero-visual {
        min-height: clamp(280px, 48vw, 390px);
        clip-path: none;
    }

    .directory-page .dir-hero-visual::before {
        inset: 0 0 auto;
        width: auto;
        height: 6px;
        transform: none;
    }
}

@media (max-width: 640px) {
    .directory-page .dir-hero-copy {
        padding: 2.25rem max(1rem, env(safe-area-inset-right)) 2.4rem max(1rem, env(safe-area-inset-left));
    }

    .directory-page .dir-hero-copy h1 {
        font-size: clamp(2.55rem, 11.5vw, 3.55rem);
    }

    .directory-page .dir-directory-search {
        margin-top: 1.5rem;
        padding: 0;
    }

    .directory-page .dir-directory-search .dir-search-card {
        padding: 1rem;
    }

    .directory-page .dir-directory-search .dir-search-head {
        align-items: flex-start;
        gap: 1rem;
    }

    .directory-page .dir-directory-search .dir-search-heading p {
        margin-left: 0;
        font-size: .78rem;
    }

    .directory-page .dir-directory-search .dir-search-label::before {
        display: none;
    }

    .directory-page .dir-directory-search .dir-result-count {
        padding-top: .3rem;
        font-size: .72rem;
    }

    .directory-page .dir-directory-search .dir-search-row {
        grid-template-columns: 34px minmax(0, 1fr) 44px;
        gap: .4rem;
        padding: .25rem .25rem .25rem .65rem;
    }

    .directory-page .dir-directory-search .dir-search-row > svg {
        grid-column: 1;
        grid-row: 1;
    }

    .directory-page .dir-directory-search .dir-search-row input {
        grid-column: 2;
        grid-row: 1;
        min-height: 48px;
        font-size: .9rem;
    }

    .directory-page .dir-directory-search .dir-search-clear {
        grid-column: 3;
        grid-row: 1;
    }

    .directory-page .dir-directory-search .dir-search-submit {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        min-height: 48px;
    }

    .directory-page .dir-doctor-grid {
        margin-top: 1rem;
    }
}

@media (max-width: 430px) {
    .directory-page .dir-directory-search .dir-search-head {
        display: grid;
        gap: .65rem;
    }

    .directory-page .dir-directory-search .dir-result-count {
        padding-top: 0;
    }
}

/* ========================================================================== */
/* Gerencia General - perfil institucional                                    */
/* ========================================================================== */

.executive-page {
    --executive-navy: #18154f;
    --executive-blue: #262161;
    --executive-green: #6fb43f;
    --executive-ink: #202630;
    --executive-muted: #626b75;
    --executive-line: #dfe4e7;
    --executive-surface: #f7f9fa;
    background: var(--executive-surface);
    color: var(--executive-ink);
}

.executive-page main {
    overflow: clip;
    background: var(--executive-surface);
}

.executive-shell {
    width: min(1240px, calc(100% - 3rem));
    margin-inline: auto;
}

.executive-hero {
    position: relative;
    border-bottom: 1px solid var(--executive-line);
    background: #fff;
}

.executive-hero-shell {
    width: min(1440px, calc(100% - 3rem));
    margin-inline: auto;
    padding: 1.3rem 0 2.8rem;
}

.executive-hero-grid {
    display: grid;
    grid-template-columns: minmax(420px, .86fr) minmax(520px, 1.14fr);
    gap: clamp(2.5rem, 5vw, 5rem);
    align-items: center;
    min-height: clamp(510px, calc(100svh - 205px), 620px);
}

.executive-hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 0 2rem clamp(1rem, 3vw, 2.75rem);
    color: var(--executive-ink);
}

.executive-breadcrumb {
    display: flex;
    align-items: center;
    gap: .55rem;
    min-height: 38px;
    margin-bottom: .75rem;
    color: #747d86;
    font-size: .78rem;
    font-weight: 750;
}

.executive-breadcrumb a {
    color: var(--executive-blue);
    transition: color .18s ease;
}

.executive-breadcrumb a:hover {
    color: #4f832f;
}

.executive-breadcrumb svg {
    flex: 0 0 auto;
    color: #a5adb5;
}

.executive-role-label {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1rem;
    color: #4d7e33;
    font-size: .76rem;
    font-weight: 850;
    letter-spacing: .065em;
    text-transform: uppercase;
}

.executive-role-label::before {
    content: "";
    width: 34px;
    height: 2px;
    flex: 0 0 auto;
    background: var(--executive-green);
}

.executive-hero-copy h1 {
    max-width: 620px;
    color: var(--executive-navy);
    font-family: "Outfit", "Plus Jakarta Sans", Inter, system-ui, sans-serif;
    font-size: clamp(3.05rem, 4.25vw, 4.75rem);
    font-weight: 800;
    letter-spacing: -.05em;
    line-height: 1;
    text-wrap: balance;
}

.executive-hero-role {
    max-width: 525px;
    margin-top: 1.35rem;
    color: #59636d;
    font-size: clamp(.98rem, 1.1vw, 1.1rem);
    font-weight: 580;
    line-height: 1.68;
}

.executive-hero-actions {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    margin-top: 2.1rem;
}

.executive-hero-actions .btn {
    min-width: 184px;
    justify-content: center;
    border-radius: 6px;
    white-space: nowrap;
}

.executive-text-link {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    min-height: 44px;
    color: var(--executive-blue);
    font-size: .86rem;
    font-weight: 800;
    white-space: nowrap;
    transition: color .18s ease;
}

.executive-text-link:hover {
    color: #4f832f;
}

.executive-text-link svg {
    transition: transform .18s ease;
}

.executive-text-link:hover svg {
    transform: translate(2px, -2px);
}

.executive-hero-media {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 1439 / 1093;
    border: 1px solid #d9dfe2;
    border-radius: 2px;
    background: #eef2f3;
    box-shadow: 0 22px 48px rgba(31, 42, 57, .13);
}

.executive-hero-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.executive-introduction {
    padding: clamp(4rem, 7vw, 6.25rem) 0;
}

.executive-introduction-grid {
    display: grid;
    grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr);
    gap: clamp(3rem, 8vw, 8.5rem);
    align-items: start;
}

.executive-section-title {
    position: relative;
}

.executive-section-title h2,
.executive-career-intro h2,
.executive-principles h2,
.executive-closing-panel h2 {
    color: var(--executive-navy);
    font-family: "Outfit", "Plus Jakarta Sans", Inter, system-ui, sans-serif;
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.08;
}

.executive-section-title h2 {
    max-width: 460px;
    font-size: clamp(2rem, 3.1vw, 3.15rem);
}

.executive-biography {
    display: grid;
    gap: 1.15rem;
    max-width: 720px;
}

.executive-biography p {
    color: #414a54;
    font-size: clamp(1.05rem, 1.3vw, 1.2rem);
    font-weight: 560;
    line-height: 1.78;
}

.executive-biography p:first-child {
    color: var(--executive-ink);
    font-weight: 650;
}

.executive-career {
    scroll-margin-top: 9rem;
    border-top: 1px solid var(--executive-line);
    border-bottom: 1px solid var(--executive-line);
    background: #fff;
    padding: clamp(4rem, 7vw, 6rem) 0;
}

.executive-career-grid {
    display: grid;
    grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr);
    gap: clamp(3rem, 7vw, 7rem);
    align-items: start;
}

.executive-career-intro {
    position: sticky;
    top: 10rem;
}

.executive-career-intro h2 {
    max-width: 430px;
    font-size: clamp(2.1rem, 3.3vw, 3.35rem);
}

.executive-career-intro p {
    max-width: 430px;
    margin-top: 1.2rem;
    color: var(--executive-muted);
    font-size: .98rem;
    font-weight: 580;
    line-height: 1.7;
}

.executive-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
}

.executive-timeline li {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: clamp(1.5rem, 4vw, 3.25rem);
    padding: 0 0 1.75rem;
}

.executive-timeline li + li {
    margin-top: 1.75rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--executive-line);
}

.executive-timeline-period {
    color: var(--executive-blue);
    font-size: .74rem;
    font-weight: 850;
    letter-spacing: .055em;
    line-height: 1.5;
    text-transform: uppercase;
}

.executive-timeline h3 {
    color: var(--executive-navy);
    font-family: "Outfit", "Plus Jakarta Sans", Inter, system-ui, sans-serif;
    font-size: clamp(1.25rem, 1.8vw, 1.55rem);
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.2;
}

.executive-timeline p {
    max-width: 650px;
    margin-top: .65rem;
    color: var(--executive-muted);
    font-size: .94rem;
    font-weight: 560;
    line-height: 1.72;
}

.executive-vision {
    padding: clamp(4rem, 7vw, 6.25rem) 0;
}

.executive-vision-grid {
    display: grid;
    grid-template-columns: minmax(300px, .88fr) minmax(0, 1.12fr);
    gap: clamp(2.25rem, 6vw, 6.5rem);
    align-items: stretch;
}

.executive-vision blockquote {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 330px;
    margin: 0;
    border-left: 3px solid var(--executive-green);
    border-radius: 0;
    background: transparent;
    padding: 1.5rem clamp(1.75rem, 4vw, 3.5rem);
}

.executive-vision blockquote p {
    margin: 0 0 2rem;
    color: var(--executive-navy);
    font-family: "Outfit", "Plus Jakarta Sans", Inter, system-ui, sans-serif;
    font-size: clamp(1.7rem, 2.65vw, 2.55rem);
    font-weight: 680;
    letter-spacing: -.035em;
    line-height: 1.22;
}

.executive-vision blockquote cite {
    color: #3e6530;
    font-size: .8rem;
    font-style: normal;
    font-weight: 800;
}

.executive-principles {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.executive-principles header {
    margin-bottom: 1.6rem;
}

.executive-principles h2 {
    max-width: 560px;
    font-size: clamp(2.05rem, 3.2vw, 3.25rem);
}

.executive-principles header p {
    margin-top: .8rem;
    color: var(--executive-muted);
    font-size: .95rem;
    font-weight: 580;
}

.executive-principles dl {
    margin: 0;
}

.executive-principles dl > div {
    display: grid;
    grid-template-columns: minmax(175px, .7fr) minmax(0, 1.3fr);
    gap: 1.5rem;
    padding: 1.25rem 0;
    border-top: 1px solid var(--executive-line);
}

.executive-principles dt {
    color: var(--executive-navy);
    font-size: .9rem;
    font-weight: 850;
    line-height: 1.45;
}

.executive-principles dd {
    margin: 0;
    color: var(--executive-muted);
    font-size: .88rem;
    font-weight: 560;
    line-height: 1.65;
}

.executive-closing {
    padding: 0 0 clamp(3.75rem, 6vw, 5.75rem);
}

.executive-closing-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2.5rem;
    align-items: center;
    border-top: 1px solid #bec5d2;
    border-radius: 0;
    background: transparent;
    padding: clamp(2rem, 4vw, 3.25rem) 0 0;
}

.executive-closing-panel h2 {
    max-width: 700px;
    font-size: clamp(1.8rem, 3vw, 2.9rem);
}

.executive-closing-panel p {
    max-width: 720px;
    margin-top: .8rem;
    color: #59626d;
    font-size: .95rem;
    font-weight: 580;
    line-height: 1.68;
}

.executive-closing-panel .btn {
    min-width: 190px;
    justify-content: center;
    border-radius: 6px;
    white-space: nowrap;
}

.executive-page a:focus-visible {
    outline: 3px solid rgba(111, 180, 63, .65);
    outline-offset: 3px;
}

.leader-profile-link {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    min-height: 44px;
    margin-top: .8rem;
    color: #d6f5c5;
    font-size: .82rem;
    font-weight: 850;
}

.leader-profile-link:hover {
    color: #fff;
}

@media (max-width: 1180px) {
    .executive-hero-grid {
        grid-template-columns: minmax(390px, .9fr) minmax(480px, 1.1fr);
        gap: 2.25rem;
    }

    .executive-hero-copy {
        padding-left: clamp(.5rem, 2vw, 1.75rem);
    }

    .executive-hero-copy h1 {
        font-size: clamp(3rem, 4.6vw, 4.1rem);
    }
}

@media (max-width: 960px) {
    .executive-hero-shell {
        width: min(100% - 3rem, 820px);
        padding-bottom: 2.25rem;
    }

    .executive-hero-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        min-height: 0;
    }

    .executive-hero-copy {
        min-height: 0;
        padding: 2.5rem 0 2.25rem;
    }

    .executive-hero-copy h1 {
        max-width: 700px;
        font-size: clamp(3.15rem, 7.6vw, 4.85rem);
    }

    .executive-hero-media {
        width: min(100%, 780px);
        margin-inline: auto;
        aspect-ratio: 1439 / 1093;
    }

    .executive-introduction-grid,
    .executive-career-grid,
    .executive-vision-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .executive-section-title {
        max-width: 520px;
    }

    .executive-career-intro {
        position: static;
    }

    .executive-career-intro p {
        max-width: 620px;
    }

    .executive-vision blockquote {
        min-height: 320px;
    }
}

@media (max-width: 720px) {
    .executive-shell,
    .executive-hero-shell {
        width: min(100% - 2rem, 1240px);
    }

    .executive-hero-shell {
        padding-top: .65rem;
        padding-bottom: 1.25rem;
    }

    .executive-hero-copy {
        min-height: 0;
        padding: 1.65rem 0 2rem;
    }

    .executive-breadcrumb {
        flex-wrap: wrap;
        margin-bottom: .5rem;
        font-size: .72rem;
    }

    .executive-role-label {
        margin-bottom: .8rem;
    }

    .executive-hero-copy h1 {
        font-size: clamp(2.65rem, 12vw, 4rem);
        line-height: 1;
    }

    .executive-hero-role {
        margin-top: 1.2rem;
        font-size: .98rem;
    }

    .executive-hero-actions {
        align-items: stretch;
        flex-direction: column;
        gap: .7rem;
        margin-top: 1.65rem;
    }

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

    .executive-text-link {
        justify-content: center;
    }

    .executive-introduction,
    .executive-career,
    .executive-vision {
        padding: 3.5rem 0;
    }

    .executive-introduction-grid,
    .executive-career-grid,
    .executive-vision-grid {
        gap: 2rem;
    }

    .executive-section-title h2,
    .executive-career-intro h2,
    .executive-principles h2 {
        font-size: clamp(2rem, 9vw, 2.7rem);
    }

    .executive-biography p {
        font-size: 1rem;
        line-height: 1.72;
    }

    .executive-timeline li {
        grid-template-columns: 1fr;
        gap: .65rem;
        padding-bottom: 1.35rem;
    }

    .executive-timeline li + li {
        margin-top: 1.35rem;
        padding-top: 1.35rem;
    }

    .executive-vision blockquote {
        min-height: 0;
        padding: .75rem 0 .75rem 1.35rem;
    }

    .executive-vision blockquote p {
        margin: 0 0 1.5rem;
        font-size: clamp(1.55rem, 7vw, 2.1rem);
    }

    .executive-principles dl > div {
        grid-template-columns: 1fr;
        gap: .45rem;
        padding: 1.1rem 0;
    }

    .executive-closing-panel {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.75rem;
    }

    .executive-closing-panel .btn {
        width: 100%;
    }
}

@media (max-width: 390px) {
    .executive-hero-copy h1 {
        font-size: clamp(2.35rem, 11vw, 3rem);
    }

    .executive-breadcrumb a:nth-of-type(2),
    .executive-breadcrumb a:nth-of-type(2) + svg {
        display: none;
    }
}

@media (min-width: 961px) and (max-height: 760px) {
    .executive-hero-shell {
        padding-top: .65rem;
        padding-bottom: 1rem;
    }

    .executive-hero-grid {
        min-height: 440px;
    }

    .executive-hero-copy h1 {
        font-size: clamp(2.9rem, min(4vw, 8svh), 4.15rem);
    }

    .executive-hero-actions {
        margin-top: 1.5rem;
    }

    .executive-hero-media {
        width: min(100%, 620px);
        justify-self: end;
    }
}

@media (prefers-reduced-motion: reduce) {
    .executive-page *,
    .executive-page *::before,
    .executive-page *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}

@media (max-width: 380px) {
    .directory-page .dir-hero-copy h1 {
        font-size: clamp(2.25rem, 10.8vw, 2.75rem);
    }
}

/* ================================================================
   LIDERAZGO INSTITUCIONAL — CLINICAL GOVERNANCE EDITORIAL
   ================================================================ */

.leadership-page {
    --leadership-ink: #171c2a;
    --leadership-navy: #262161;
    --leadership-green: #70b83d;
    --leadership-muted: #646b78;
    --leadership-line: #d9dedd;
    --leadership-wash: #f3f6f4;
    background: #fff;
}

.leadership-main {
    overflow: hidden;
}

.leadership-page .leadership-shell {
    width: min(calc(100% - 3rem), 1280px);
    margin-inline: auto;
}

.leadership-hero {
    position: relative;
    color: var(--leadership-ink);
    background: #f7f9f7;
    border-bottom: 1px solid var(--leadership-line);
}

.leadership-hero::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: max(6px, calc((100vw - 1280px) / 2));
    min-width: 6px;
    content: "";
    background: var(--leadership-navy);
}

.leadership-breadcrumb {
    display: flex;
    align-items: center;
    gap: .55rem;
    min-height: 54px;
    color: #757b86;
    font-size: .76rem;
    font-weight: 700;
}

.leadership-breadcrumb a {
    color: var(--leadership-navy);
    text-decoration: none;
}

.leadership-breadcrumb a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.leadership-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, .91fr) minmax(430px, 1.09fr);
    align-items: stretch;
    gap: clamp(2.5rem, 5.5vw, 6rem);
    min-height: clamp(460px, 57svh, 610px);
}

.leadership-hero-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 2.5rem 0 3.25rem;
}

.leadership-eyebrow,
.leadership-section-index {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: 0 0 1.15rem;
    color: var(--leadership-navy);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
    line-height: 1.35;
    text-transform: uppercase;
}

.leadership-eyebrow::before,
.leadership-section-index::before {
    width: 30px;
    height: 2px;
    flex: 0 0 auto;
    content: "";
    background: var(--leadership-green);
}

.leadership-hero h1 {
    max-width: 720px;
    margin: 0;
    color: var(--leadership-navy);
    font-family: "Outfit", sans-serif;
    font-size: clamp(3.6rem, 5.7vw, 6.35rem);
    font-weight: 700;
    letter-spacing: -.058em;
    line-height: .9;
}

.leadership-hero-lead {
    max-width: 650px;
    margin: 1.7rem 0 0;
    color: #505765;
    font-size: clamp(1rem, 1.35vw, 1.22rem);
    font-weight: 500;
    line-height: 1.68;
}

.leadership-hero-actions {
    display: flex;
    align-items: center;
    gap: 1.45rem;
    margin-top: 2.15rem;
}

.leadership-text-link {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: var(--leadership-navy);
    font-size: .9rem;
    font-weight: 800;
    text-decoration: none;
}

.leadership-text-link:hover,
.leadership-text-link:focus-visible {
    color: #4f8e2c;
}

.leadership-hero-media {
    position: relative;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    background: #d9dfdc;
}

.leadership-hero-media::after {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
    background: linear-gradient(180deg, transparent 55%, rgba(15, 20, 30, .62) 100%);
}

.leadership-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 54% center;
}

.leadership-hero-media picture {
    display: block;
    width: 100%;
    height: 100%;
}

.leadership-hero-media figcaption {
    position: absolute;
    z-index: 1;
    right: 1.75rem;
    bottom: 1.55rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    color: #fff;
    text-align: right;
}

.leadership-hero-media figcaption span {
    font-size: .7rem;
    font-weight: 700;
    opacity: .8;
}

.leadership-hero-media figcaption strong {
    margin-top: .18rem;
    font-family: "Outfit", sans-serif;
    font-size: .98rem;
    font-weight: 700;
}

.leadership-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
    border-top: 1px solid var(--leadership-line);
}

.leadership-facts > div {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: baseline;
    gap: .9rem;
    min-width: 0;
    padding: 1.2rem clamp(1rem, 2.4vw, 2rem);
    border-left: 1px solid var(--leadership-line);
}

.leadership-facts > div:first-child {
    padding-left: 0;
    border-left: 0;
}

.leadership-facts dt {
    color: #7c828c;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.leadership-facts dd {
    margin: 0;
    color: var(--leadership-navy);
    font-family: "Outfit", sans-serif;
    font-size: .96rem;
    font-weight: 700;
}

.leadership-director {
    padding: clamp(4.5rem, 7vw, 7.5rem) 0;
    background: #fff;
    scroll-margin-top: 100px;
}

.leadership-director-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.03fr) minmax(390px, .97fr);
    align-items: center;
    gap: clamp(3rem, 8vw, 8.25rem);
}

.leadership-director-media {
    position: relative;
    margin: 0;
    border: 1px solid #d8dddb;
    background: #f4f6f5;
}

.leadership-director-media::before {
    position: absolute;
    z-index: 1;
    top: 9%;
    bottom: 9%;
    left: -1px;
    width: 5px;
    content: "";
    background: var(--leadership-green);
}

.leadership-director-media img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1439 / 1093;
    object-fit: contain;
}

.leadership-director-copy h2,
.leadership-structure-intro h2,
.leadership-governance-head h2,
.leadership-closing h2 {
    margin: 0;
    color: var(--leadership-ink);
    font-family: "Outfit", sans-serif;
    font-size: clamp(2.5rem, 4vw, 4.45rem);
    font-weight: 650;
    letter-spacing: -.045em;
    line-height: 1.01;
}

.leadership-director-identity {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    margin-top: 2rem;
    padding: 1.15rem 0 1.15rem 1.2rem;
    border-left: 2px solid var(--leadership-green);
}

.leadership-director-identity strong {
    color: var(--leadership-navy);
    font-family: "Outfit", sans-serif;
    font-size: 1.18rem;
    font-weight: 700;
}

.leadership-director-identity span {
    color: #737986;
    font-size: .82rem;
    font-weight: 700;
}

.leadership-director-copy > p:not(.leadership-section-index) {
    max-width: 620px;
    margin: 1.5rem 0 0;
    color: var(--leadership-muted);
    font-size: 1.02rem;
    line-height: 1.78;
}

.leadership-arrow-link {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    color: var(--leadership-navy);
    font-size: .9rem;
    font-weight: 800;
    text-decoration: none;
}

.leadership-arrow-link span {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: #fff;
    background: var(--leadership-navy);
    transition: transform .2s ease, background-color .2s ease;
}

.leadership-arrow-link:hover span,
.leadership-arrow-link:focus-visible span {
    background: #4f8e2c;
    transform: translateX(4px);
}

.leadership-structure {
    padding: clamp(4.5rem, 7vw, 7.5rem) 0;
    background: var(--leadership-wash);
    border-block: 1px solid #e0e4e2;
}

.leadership-structure-grid {
    display: grid;
    grid-template-columns: minmax(300px, .72fr) minmax(520px, 1.28fr);
    align-items: start;
    gap: clamp(3rem, 8vw, 9rem);
}

.leadership-structure-intro {
    position: sticky;
    top: 120px;
}

.leadership-structure-intro > p:last-child {
    max-width: 500px;
    margin: 1.5rem 0 0;
    color: var(--leadership-muted);
    line-height: 1.75;
}

.leadership-area-list {
    margin: 0;
    padding: 0;
    list-style: none;
    border-bottom: 1px solid #ccd2cf;
}

.leadership-area-list li {
    display: grid;
    grid-template-columns: 40px 48px minmax(0, 1fr);
    align-items: start;
    gap: 1.1rem;
    padding: 1.55rem 0;
    border-top: 1px solid #ccd2cf;
}

.leadership-area-number {
    padding-top: .3rem;
    color: #8a908f;
    font-family: "Outfit", sans-serif;
    font-size: .72rem;
    font-weight: 700;
}

.leadership-area-icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: var(--leadership-navy);
    border: 1px solid #c4cbc7;
    background: rgba(255, 255, 255, .62);
    transition: color .2s ease, border-color .2s ease, transform .2s ease;
}

.leadership-area-list li:hover .leadership-area-icon {
    color: #4f8e2c;
    border-color: #91b47c;
    transform: translateY(-2px);
}

.leadership-area-list h3 {
    margin: 0;
    color: var(--leadership-navy);
    font-family: "Outfit", sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -.015em;
}

.leadership-area-list p {
    max-width: 640px;
    margin: .55rem 0 0;
    color: #646c78;
    font-size: .92rem;
    line-height: 1.65;
}

.leadership-governance {
    padding: clamp(4.5rem, 7vw, 7.5rem) 0;
    background: #fff;
}

.leadership-governance-head {
    display: grid;
    grid-template-columns: minmax(0, .7fr) minmax(330px, .5fr);
    gap: 1.5rem clamp(3rem, 9vw, 9rem);
    align-items: end;
}

.leadership-governance-head .leadership-section-index {
    grid-column: 1 / -1;
    margin-bottom: 0;
}

.leadership-governance-head > p:last-child {
    margin: 0;
    color: var(--leadership-muted);
    font-size: .98rem;
    line-height: 1.72;
}

.leadership-commitments {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 clamp(3rem, 7vw, 7rem);
    margin: 3.5rem 0 0;
    border-bottom: 1px solid var(--leadership-line);
}

.leadership-commitments > div {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: .35rem 1.1rem;
    padding: 1.7rem 0 1.8rem;
    border-top: 1px solid var(--leadership-line);
}

.leadership-commitments dt span {
    padding-top: .2rem;
    color: var(--leadership-green);
    font-family: "Outfit", sans-serif;
    font-size: .72rem;
    font-weight: 800;
}

.leadership-commitments dt {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 1.1rem;
    color: var(--leadership-navy);
    font-family: "Outfit", sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
}

.leadership-commitments dd {
    grid-column: 2;
    margin: 0;
    color: #68707c;
    font-size: .88rem;
    line-height: 1.65;
}

.leadership-closing {
    padding: 0 0 clamp(4rem, 6vw, 6rem);
    background: #fff;
}

.leadership-closing-panel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 3rem;
    padding: clamp(2.4rem, 4vw, 4.4rem);
    overflow: hidden;
    color: #fff;
    background: var(--leadership-navy);
}

.leadership-closing-panel::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 6px;
    content: "";
    background: var(--leadership-green);
}

.leadership-closing p {
    margin: 0 0 .65rem;
    color: #aebaac;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.leadership-closing h2 {
    max-width: 760px;
    color: #fff;
    font-size: clamp(2rem, 3.5vw, 3.65rem);
}

.leadership-closing-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: .85rem;
    min-width: 245px;
}

.leadership-closing-link {
    color: #fff;
    font-size: .82rem;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    text-underline-offset: 4px;
}

.leadership-closing-link:hover,
.leadership-closing-link:focus-visible {
    text-decoration: underline;
}

.leadership-page :is(a, button):focus-visible {
    outline: 3px solid rgba(112, 184, 61, .48);
    outline-offset: 4px;
}

@media (max-width: 1100px) {
    .leadership-hero-grid {
        grid-template-columns: minmax(0, .92fr) minmax(380px, 1.08fr);
        gap: 3rem;
    }

    .leadership-hero h1 {
        font-size: clamp(3.35rem, 6.3vw, 5.25rem);
    }

    .leadership-director-grid {
        gap: 4rem;
    }

    .leadership-structure-grid {
        grid-template-columns: minmax(280px, .7fr) minmax(440px, 1.3fr);
        gap: 4rem;
    }
}

@media (max-width: 900px) {
    .leadership-hero-grid {
        grid-template-columns: 1fr;
        gap: 0;
        min-height: 0;
    }

    .leadership-hero-copy {
        max-width: 720px;
        padding: 2.5rem 0 3rem;
    }

    .leadership-hero-media {
        min-height: 360px;
        aspect-ratio: 16 / 9;
    }

    .leadership-director-grid,
    .leadership-structure-grid {
        grid-template-columns: 1fr;
    }

    .leadership-director-media {
        width: min(100%, 720px);
    }

    .leadership-director-copy {
        max-width: 720px;
    }

    .leadership-structure-intro {
        position: static;
        max-width: 720px;
    }

    .leadership-governance-head {
        grid-template-columns: 1fr;
        gap: 1.4rem;
    }

    .leadership-governance-head > p:last-child {
        max-width: 650px;
    }
}

@media (max-width: 720px) {
    .leadership-page .leadership-shell {
        width: min(calc(100% - 2rem), 1280px);
    }

    .leadership-breadcrumb {
        min-height: 46px;
        font-size: .7rem;
    }

    .leadership-hero-copy {
        padding: 1.75rem 0 2.4rem;
    }

    .leadership-hero h1 {
        font-size: clamp(2.85rem, 14vw, 4.45rem);
        line-height: .94;
    }

    .leadership-hero-lead {
        margin-top: 1.25rem;
        font-size: .98rem;
        line-height: 1.62;
    }

    .leadership-hero-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: .85rem;
        margin-top: 1.65rem;
    }

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

    .leadership-text-link {
        justify-content: center;
        min-height: 40px;
    }

    .leadership-hero-media {
        min-height: 260px;
        aspect-ratio: 4 / 3;
    }

    .leadership-hero-media figcaption {
        right: 1rem;
        bottom: 1rem;
    }

    .leadership-facts {
        grid-template-columns: 1fr;
        padding: .55rem 0;
    }

    .leadership-facts > div,
    .leadership-facts > div:first-child {
        grid-template-columns: 82px 1fr;
        gap: .7rem;
        padding: .65rem 0;
        border: 0;
    }

    .leadership-director,
    .leadership-structure,
    .leadership-governance {
        padding: 3.75rem 0;
    }

    .leadership-director-grid,
    .leadership-structure-grid {
        gap: 2.5rem;
    }

    .leadership-director-copy h2,
    .leadership-structure-intro h2,
    .leadership-governance-head h2 {
        font-size: clamp(2.25rem, 10vw, 3rem);
    }

    .leadership-director-identity {
        margin-top: 1.5rem;
    }

    .leadership-director-copy > p:not(.leadership-section-index) {
        margin-top: 1.2rem;
        font-size: .95rem;
        line-height: 1.7;
    }

    .leadership-area-list li {
        grid-template-columns: 32px 38px minmax(0, 1fr);
        gap: .75rem;
        padding: 1.3rem 0;
    }

    .leadership-area-icon {
        width: 34px;
        height: 34px;
    }

    .leadership-area-list h3 {
        font-size: 1.15rem;
    }

    .leadership-area-list p {
        font-size: .86rem;
    }

    .leadership-commitments {
        grid-template-columns: 1fr;
        margin-top: 2.5rem;
    }

    .leadership-closing {
        padding-bottom: 2.5rem;
    }

    .leadership-closing-panel {
        grid-template-columns: 1fr;
        gap: 1.75rem;
        padding: 2rem 1.5rem 2.2rem;
    }

    .leadership-closing h2 {
        font-size: clamp(2rem, 9vw, 2.7rem);
    }

    .leadership-closing-actions {
        min-width: 0;
    }

    .leadership-closing-actions .btn {
        width: 100%;
    }
}

@media (max-width: 390px) {
    .leadership-hero h1 {
        font-size: clamp(2.55rem, 13vw, 3.25rem);
    }

    .leadership-eyebrow,
    .leadership-section-index {
        font-size: .65rem;
    }

    .leadership-area-list li {
        grid-template-columns: 30px minmax(0, 1fr);
    }

    .leadership-area-icon {
        display: none;
    }

    .leadership-commitments > div {
        grid-template-columns: 32px minmax(0, 1fr);
    }

    .leadership-commitments dt {
        grid-template-columns: 32px minmax(0, 1fr);
    }
}

@media (min-width: 901px) and (max-height: 760px) {
    .leadership-breadcrumb {
        min-height: 42px;
    }

    .leadership-hero-grid {
        min-height: 430px;
    }

    .leadership-hero-copy {
        padding-block: 1.5rem 2rem;
    }

    .leadership-hero h1 {
        font-size: clamp(3.25rem, min(5.3vw, 9svh), 5.5rem);
    }

    .leadership-hero-lead {
        margin-top: 1.15rem;
        line-height: 1.55;
    }

    .leadership-hero-actions {
        margin-top: 1.45rem;
    }

    .leadership-facts > div {
        padding-block: .9rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .leadership-page *,
    .leadership-page *::before,
    .leadership-page *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}

/* ══════════════════════════════════════════════════════════════
   TESTIMONIOS + RESEÑAS  (seccion del home + pagina + formulario)
   Marca: navy #262161 · verde #5da334 · estrellas ambar
   ══════════════════════════════════════════════════════════════ */
.tm-shell{max-width:1180px;margin:0 auto;padding:0 1.25rem}
.tm-eyebrow{display:inline-block;font-size:.78rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--green-2,#5da334);margin:0 0 .5rem}

/* Estrellas */
.tm-stars{display:inline-flex;gap:2px;color:#f5a623;vertical-align:middle}
.tm-stars svg{width:18px;height:18px}

/* Insignia de Google */
.tm-google-badge{display:inline-flex;align-items:center;gap:.75rem;background:#fff;border:1px solid #e6e9f2;border-radius:14px;padding:.7rem 1.05rem;text-decoration:none;box-shadow:0 6px 20px -12px rgba(33,28,80,.25);transition:transform .15s,box-shadow .15s}
a.tm-google-badge:hover{transform:translateY(-2px);box-shadow:0 12px 28px -14px rgba(33,28,80,.3)}
.tm-google-g{display:inline-grid;place-items:center;width:34px;height:34px;border-radius:50%;background:conic-gradient(from -45deg,#ea4335 0 25%,#fbbc05 0 50%,#34a853 0 75%,#4285f4 0);color:#fff;font-weight:900;font-family:Arial,sans-serif;font-size:1.05rem;position:relative}
.tm-google-g::after{content:"G";position:absolute;inset:3px;background:#fff;border-radius:50%;display:grid;place-items:center;color:#4285f4;font-size:.85rem}
.tm-google-g.sm{width:22px;height:22px;font-size:.7rem}
.tm-google-g.sm::after{inset:2px;font-size:.6rem}
.tm-google-meta{display:flex;flex-direction:column;line-height:1.2}
.tm-google-meta strong{font-size:1.15rem;color:var(--navy,#262161);font-weight:900}
.tm-google-meta .tm-stars svg{width:15px;height:15px}
.tm-google-meta small{color:#64748b;font-size:.76rem;margin-top:2px}

/* Tarjeta de testimonio (compartida home + pagina) */
.tm-card{display:flex;flex-direction:column;background:#fff;border:1px solid #eceef5;border-radius:18px;padding:1.4rem;box-shadow:0 2px 10px -6px rgba(33,28,80,.12);break-inside:avoid}
.tm-card-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:.85rem}
.tm-card blockquote{margin:0 0 1.15rem;color:var(--ink-2,#2c2a33);font-size:.98rem;line-height:1.6;quotes:"\201C" "\201D"}
.tm-card blockquote::before{content:open-quote;color:#cbd5e1;font-size:1.6rem;line-height:0;vertical-align:-.35em;margin-right:.15em}
.tm-card-author{display:flex;align-items:center;gap:.7rem;margin-top:auto}
.tm-avatar{display:inline-grid;place-items:center;width:44px;height:44px;border-radius:50%;color:#fff;font-weight:800;font-size:.9rem;flex:none}
.tm-card-author strong{display:block;color:var(--navy,#262161);font-size:.92rem;font-weight:800}
.tm-card-author small{color:#8891a5;font-size:.8rem}

/* ── Seccion del HOME ── */
.tm-home-section{padding:4.5rem 0;background:linear-gradient(180deg,#f7f8fc,#fff)}
.tm-home-head{display:flex;align-items:flex-end;justify-content:space-between;gap:1.5rem;flex-wrap:wrap;margin-bottom:2rem}
.tm-home-head .section-title{margin:0}
.tm-home-wall{display:grid;grid-template-columns:repeat(3,1fr);gap:1.25rem}
.tm-home-cta{display:flex;align-items:center;justify-content:center;gap:1.5rem;margin-top:2.25rem;flex-wrap:wrap}
.tm-home-share{color:var(--navy,#262161);font-weight:800;text-decoration:none;border-bottom:2px solid transparent;transition:border-color .15s}
.tm-home-share:hover{border-color:var(--green-2,#5da334)}

/* ── PAGINA /testimonios ── */
.tm-page{background:#fff}
.tm-hero{background:linear-gradient(135deg,#262161,#1a1747);color:#fff;padding:3rem 0 3.5rem}
.tm-breadcrumb{display:flex;align-items:center;gap:.4rem;font-size:.82rem;color:rgba(255,255,255,.7);margin-bottom:1.25rem}
.tm-breadcrumb a{color:rgba(255,255,255,.85);text-decoration:none}
.tm-breadcrumb a:hover{color:#fff}
.tm-hero .tm-eyebrow{color:#8fd35f}
.tm-hero h1{font-size:clamp(1.9rem,4vw,2.9rem);font-weight:900;line-height:1.1;margin:0 0 .9rem;max-width:16ch}
.tm-hero-lead{color:rgba(255,255,255,.82);font-size:1.05rem;line-height:1.6;max-width:52ch;margin:0 0 1.75rem}
.tm-hero-badges{display:flex;align-items:center;gap:1rem;flex-wrap:wrap}
.tm-hero-cta{display:inline-flex;align-items:center;gap:.5rem;background:var(--green-2,#5da334);color:#fff;font-weight:800;padding:.8rem 1.3rem;border-radius:12px;text-decoration:none;transition:background .15s,transform .15s}
.tm-hero-cta:hover{background:#4f8f2c;transform:translateY(-2px)}

.tm-wall-section{padding:3.5rem 0}
.tm-wall{columns:3;column-gap:1.25rem}
.tm-wall .tm-card{margin:0 0 1.25rem}
.tm-empty{text-align:center;padding:3rem 1rem;color:#94a3b8}
.tm-empty svg{width:40px;height:40px;margin-bottom:.75rem;color:#cbd5e1}

/* ── Formulario de envio ── */
.tm-submit-section{padding:1rem 0 4.5rem}
.tm-submit-grid{display:grid;grid-template-columns:.85fr 1.15fr;gap:2.5rem;align-items:start}
.tm-submit-intro h2{font-size:1.7rem;font-weight:900;color:var(--navy,#262161);margin:0 0 .6rem}
.tm-submit-intro p{color:#5b6478;line-height:1.6;margin:0 0 1.25rem}
.tm-submit-notes{list-style:none;padding:0;margin:0;display:grid;gap:.65rem}
.tm-submit-notes li{display:flex;align-items:flex-start;gap:.55rem;color:#475569;font-size:.9rem}
.tm-submit-notes svg{color:var(--green-2,#5da334);flex:none;margin-top:2px}
.tm-submit-card{background:#fff;border:1px solid #e8ecf4;border-radius:20px;padding:1.75rem;box-shadow:0 20px 45px -25px rgba(33,28,80,.28)}
.tm-form-public{display:flex;flex-direction:column;gap:1rem}
.tm-form-public label{display:flex;flex-direction:column;gap:.4rem;font-size:.85rem;font-weight:700;color:#374151}
.tm-form-public input[type=text],.tm-form-public input[type=email],.tm-form-public textarea{padding:.7rem .85rem;border:1px solid #d8dee9;border-radius:11px;font-size:.95rem;font-family:inherit}
.tm-form-public input:focus,.tm-form-public textarea:focus{outline:none;border-color:#4f46e5;box-shadow:0 0 0 3px rgba(79,70,229,.14)}
.tm-form-public textarea{resize:vertical;line-height:1.55}
.tm-form-row{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.tm-hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}
.tm-consent{flex-direction:row!important;align-items:flex-start;gap:.6rem!important;font-weight:600!important;font-size:.85rem!important;color:#5b6478!important;line-height:1.45}
.tm-consent input{margin-top:.15rem;flex:none}
.tm-form-submit{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;background:var(--navy,#262161);color:#fff;font-weight:800;font-size:.95rem;padding:.85rem 1.4rem;border:0;border-radius:12px;cursor:pointer;transition:background .15s,transform .15s}
.tm-form-submit:hover{background:#1a1747;transform:translateY(-1px)}
.tm-form-error{display:flex;align-items:center;gap:.5rem;background:#fff1f4;color:#be123c;border:1px solid #fbd0da;border-radius:11px;padding:.7rem .9rem;font-size:.88rem;font-weight:600;margin-bottom:1rem}

/* Selector de estrellas (radios en orden 5->1 + row-reverse) */
.tm-rating-field{border:0;padding:0;margin:0}
.tm-rating-field legend{font-size:.85rem;font-weight:700;color:#374151;margin-bottom:.35rem}
.tm-rating-input{display:inline-flex;flex-direction:row-reverse;gap:.2rem}
.tm-rating-input input{position:absolute;opacity:0;width:0;height:0}
.tm-rating-input label{cursor:pointer;color:#d5dae5;transition:color .12s;margin:0}
.tm-rating-input label svg{width:30px;height:30px;fill:currentColor;stroke:currentColor}
.tm-rating-input input:checked ~ label,
.tm-rating-input label:hover,
.tm-rating-input label:hover ~ label{color:#f5a623}
.tm-rating-input input:focus-visible + label{outline:2px solid #4f46e5;outline-offset:2px;border-radius:4px}

/* Confirmacion de envio */
.tm-sent{text-align:center;padding:1.5rem .5rem}
.tm-sent-icon{display:inline-grid;place-items:center;width:64px;height:64px;border-radius:50%;background:#e7f7ee;color:var(--green-2,#5da334);margin-bottom:1rem}
.tm-sent-icon svg{width:34px;height:34px}
.tm-sent h3{font-size:1.3rem;font-weight:900;color:var(--navy,#262161);margin:0 0 .5rem}
.tm-sent p{color:#5b6478;line-height:1.6;margin:0}

/* Responsive */
@media (max-width:900px){
  .tm-home-wall{grid-template-columns:1fr 1fr}
  .tm-wall{columns:2}
  .tm-submit-grid{grid-template-columns:1fr;gap:1.75rem}
}
@media (max-width:640px){
  .tm-home-wall{grid-template-columns:1fr}
  .tm-wall{columns:1}
  .tm-form-row{grid-template-columns:1fr}
  .tm-home-head{flex-direction:column;align-items:flex-start}
}

/* ══════════════════════════════════════════════════════════════
   SEGUROS ACEPTADOS  (/seguros-aceptados)  scope .seg-*
   Marca: navy #262161 · verde #5da334
   ══════════════════════════════════════════════════════════════ */
.seguros-page { background: #fff; }
.seg-main { --seg-navy:#262161; --seg-navy-d:#1a1747; --seg-green:#5da334; --seg-green-d:#4f8f2c;
    --seg-ink:#101828; --seg-mut:#5b6478; --seg-line:#e8ecf4; --seg-soft:#f6f8fc;
    --seg-tint-n:#eef0ff; --seg-tint-g:#e7f7ee; }
.seg-shell { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }
.seg-shell-narrow { max-width: 820px; }

.seg-eyebrow, .seg-kicker { display:inline-flex; align-items:center; gap:.4rem; font-size:.76rem;
    font-weight:800; letter-spacing:.09em; text-transform:uppercase; margin:0 0 .6rem; }
.seg-kicker { color: var(--seg-green-d); }

/* Botones */
.seg-btn { display:inline-flex; align-items:center; gap:.5rem; font-weight:800; font-size:.92rem;
    padding:.8rem 1.3rem; border-radius:12px; text-decoration:none; transition:transform .15s, background .15s, box-shadow .15s; cursor:pointer; border:0; }
.seg-btn-green { background:var(--seg-green); color:#fff; }
.seg-btn-green:hover { background:var(--seg-green-d); transform:translateY(-2px); }
.seg-btn-ghost { background:rgba(255,255,255,.08); color:#fff; border:1px solid rgba(255,255,255,.35); }
.seg-btn-ghost:hover { background:rgba(255,255,255,.16); }
.seg-btn-lg { padding:.95rem 1.6rem; font-size:1rem; }

/* ── HERO + pared de logos ── */
.seg-hero { background:linear-gradient(135deg,#262161,#1a1747); color:#fff; padding:2.4rem 0 3.4rem; }
.seg-breadcrumb { display:flex; align-items:center; gap:.4rem; font-size:.82rem; color:rgba(255,255,255,.65); margin-bottom:2rem; }
.seg-breadcrumb a { color:rgba(255,255,255,.82); text-decoration:none; }
.seg-breadcrumb a:hover { color:#fff; }
.seg-hero-grid { display:grid; grid-template-columns:1fr 1fr; gap:3rem; align-items:center; }
.seg-hero-copy .seg-eyebrow { color:#8fd35f; }
.seg-hero-copy h1 { font-family:'Outfit',sans-serif; font-size:clamp(2rem,4vw,3.05rem); font-weight:800;
    line-height:1.08; letter-spacing:-.01em; margin:0 0 1rem; }
.seg-hero-lead { color:rgba(255,255,255,.82); font-size:1.08rem; line-height:1.6; max-width:46ch; margin:0 0 1.9rem; }
.seg-hero-actions { display:flex; gap:.85rem; flex-wrap:wrap; }

.seg-hero-wall { background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.14); border-radius:22px; padding:1.5rem; backdrop-filter:blur(4px); }
.seg-wall-label { display:flex; align-items:center; gap:.45rem; font-size:.78rem; font-weight:700; letter-spacing:.04em;
    color:rgba(255,255,255,.75); margin:0 0 1rem; }
.seg-wall-label svg { color:#8fd35f; }
.seg-logo-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:.8rem; }
.seg-logo-card { background:#fff; border-radius:14px; height:78px; display:grid; place-items:center; padding:.7rem;
    box-shadow:0 6px 18px -10px rgba(0,0,0,.4); transition:transform .18s; }
.seg-logo-card:hover { transform:translateY(-3px); }
.seg-logo-card img { max-width:100%; max-height:52px; width:auto; height:auto; object-fit:contain; }

/* ── Secciones ── */
.seg-section { padding:4rem 0; }
.seg-section-soft { background:linear-gradient(180deg,var(--seg-soft),#fff); }
.seg-head { text-align:center; max-width:640px; margin:0 auto 2.6rem; }
.seg-head .seg-kicker { display:block; }
.seg-head h2 { font-family:'Outfit',sans-serif; font-size:clamp(1.6rem,3vw,2.2rem); font-weight:800; color:var(--seg-navy); margin:0 0 .5rem; letter-spacing:-.01em; }
.seg-head > p { color:var(--seg-mut); font-size:1rem; line-height:1.6; margin:0; }

/* Proceso (numerado) */
.seg-steps { list-style:none; padding:0; margin:0; display:grid; grid-template-columns:repeat(4,1fr); gap:1.15rem; }
.seg-step { position:relative; background:#fff; border:1px solid var(--seg-line); border-radius:18px; padding:1.6rem 1.35rem 1.4rem;
    box-shadow:0 2px 10px -6px rgba(33,28,80,.12); overflow:hidden; }
.seg-step-num { position:absolute; top:.4rem; right:.9rem; font-family:'Outfit',sans-serif; font-size:2.6rem; font-weight:800; color:var(--seg-tint-n); line-height:1; }
.seg-step-icon { display:inline-grid; place-items:center; width:46px; height:46px; border-radius:13px; background:var(--seg-green); color:#fff; box-shadow:0 6px 14px -6px rgba(93,163,52,.55); margin-bottom:1rem; }
.seg-step-icon svg { width:22px; height:22px; }
.seg-step h3 { font-size:1.02rem; font-weight:800; color:var(--seg-navy); margin:0 0 .4rem; }
.seg-step p { color:var(--seg-mut); font-size:.9rem; line-height:1.55; margin:0; }

/* Qué traer + cobertura */
.seg-split { display:grid; grid-template-columns:1fr 1fr; gap:3rem; align-items:start; }
.seg-bring h2, .seg-coverage h2 { font-family:'Outfit',sans-serif; font-size:1.5rem; font-weight:800; color:var(--seg-navy); margin:0 0 1.15rem; }
.seg-checklist { list-style:none; padding:0; margin:0 0 1.2rem; display:grid; gap:.7rem; }
.seg-checklist li { display:flex; align-items:center; gap:.7rem; color:var(--seg-ink); font-size:.95rem; font-weight:600; }
.seg-check { display:inline-grid; place-items:center; width:24px; height:24px; border-radius:50%; background:var(--seg-green); color:#fff; flex:none; }
.seg-check-ic { color:var(--seg-mut); flex:none; }
.seg-note { display:flex; align-items:flex-start; gap:.55rem; background:var(--seg-tint-n); border-radius:12px; padding:.85rem 1rem;
    color:var(--seg-navy); font-size:.87rem; line-height:1.5; margin:0; }
.seg-note svg { color:var(--seg-navy); flex:none; margin-top:1px; }
.seg-cover-cards { display:grid; gap:1rem; }
.seg-cover-card { background:#fff; border:1px solid var(--seg-line); border-radius:16px; padding:1.4rem; box-shadow:0 2px 10px -6px rgba(33,28,80,.1); }
.seg-cover-ic { display:inline-grid; place-items:center; width:44px; height:44px; border-radius:12px; background:var(--seg-navy); color:#fff; margin-bottom:.85rem; }
.seg-cover-card h3 { font-size:1.1rem; font-weight:800; color:var(--seg-navy); margin:0 0 .4rem; }
.seg-cover-card p { color:var(--seg-mut); font-size:.92rem; line-height:1.55; margin:0; }

/* FAQ */
.seg-faq { display:grid; gap:.75rem; }
.seg-faq-item { background:#fff; border:1px solid var(--seg-line); border-radius:14px; padding:0 1.25rem; box-shadow:0 1px 3px rgba(33,28,80,.05); }
.seg-faq-item summary { display:flex; align-items:center; justify-content:space-between; gap:1rem; cursor:pointer; list-style:none;
    padding:1.15rem 0; font-weight:800; color:var(--seg-navy); font-size:1rem; }
.seg-faq-item summary::-webkit-details-marker { display:none; }
.seg-faq-item summary svg { color:var(--seg-green-d); flex:none; transition:transform .2s; }
.seg-faq-item[open] summary svg { transform:rotate(180deg); }
.seg-faq-item > p { color:var(--seg-mut); font-size:.95rem; line-height:1.65; margin:0; padding:0 0 1.2rem; max-width:64ch; }

/* CTA band */
.seg-cta-band { background:linear-gradient(135deg,#5da334,#4f8f2c); color:#fff; padding:3rem 0; }
.seg-cta-inner { display:flex; align-items:center; justify-content:space-between; gap:2rem; flex-wrap:wrap; }
.seg-cta-inner h2 { font-family:'Outfit',sans-serif; font-size:clamp(1.5rem,2.6vw,2rem); font-weight:800; margin:0 0 .4rem; }
.seg-cta-inner > div:first-child p { color:rgba(255,255,255,.9); font-size:1rem; line-height:1.55; margin:0; max-width:52ch; }
.seg-cta-actions { display:flex; align-items:center; gap:1.25rem; flex-wrap:wrap; }
.seg-cta-band .seg-btn-green { background:#fff; color:var(--seg-green-d); }
.seg-cta-band .seg-btn-green:hover { background:#f0f7ec; }
.seg-cta-phone { display:inline-flex; align-items:center; gap:.45rem; color:#fff; font-weight:800; text-decoration:none; font-size:1.05rem; }
.seg-cta-phone:hover { text-decoration:underline; }

/* Responsive */
@media (max-width:960px){
    .seg-hero-grid { grid-template-columns:1fr; gap:2.2rem; }
    .seg-steps { grid-template-columns:repeat(2,1fr); }
    .seg-split { grid-template-columns:1fr; gap:2.2rem; }
}
@media (max-width:560px){
    .seg-logo-grid { grid-template-columns:repeat(2,1fr); }
    .seg-steps { grid-template-columns:1fr; }
    .seg-cta-inner { flex-direction:column; align-items:flex-start; }
}

/* ══════════════════════════════════════════════════════════════
   ELEVACIÓN de la plantilla de páginas de contenido
   Scope .content-page → NO afecta páginas de servicios (.service-*)
   De crema/beige a marca navy #262161 + verde #5da334, más refinado.
   ══════════════════════════════════════════════════════════════ */

/* Hero: paleta fría de marca + fina línea de acento, en vez de crema */
.content-page .content-hero { background: linear-gradient(180deg, #f4f6fb 0%, #ffffff 76%); }
.content-page .content-hero::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, #262161 0%, #5da334 100%); z-index: 2;
}
.content-page .content-breadcrumb { color: #8891a5; font-weight: 700; }
.content-page .content-breadcrumb a { color: #64748b; }
.content-page .content-breadcrumb a:hover { color: #262161; }
.content-page .content-hero-copy h1 {
    font-size: clamp(2.3rem, 4.4vw, 3.75rem); font-weight: 850; line-height: 1.03; letter-spacing: -.015em;
}
.content-page .content-hero-copy > p:not(.section-label) { color: #5b6478; line-height: 1.7; }

/* Imagen del hero: esquinas suaves, sin borde beige, sombra más limpia */
.content-page .content-hero-media {
    border-radius: 20px; border: 0; background: #eef1f7; min-height: 420px;
    box-shadow: 0 30px 62px -30px rgba(38, 33, 97, .38);
}
.content-page .content-hero-media img { border-radius: 20px; }
.content-page .content-hero-media::after {
    content: ""; position: absolute; inset: 0; border-radius: 20px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); pointer-events: none;
}

/* Franja de estadísticas: fría + navy */
.content-page .content-stat-strip {
    border: 1px solid #e8ecf4; border-radius: 16px;
    box-shadow: 0 20px 45px -26px rgba(38, 33, 97, .24);
}
.content-page .content-stat-strip article { border-right-color: #eef2f8; padding: 1.35rem 1.5rem; }
.content-page .content-stat-strip strong { color: #262161; }
.content-page .content-stat-strip span { color: #8891a5; font-weight: 700; }

/* Tarjetas de información: radio, borde frío, hover, chip visible */
.content-page .content-section-grid { gap: 1.15rem; }
.content-page .content-info-card {
    border: 1px solid #e8ecf4; border-radius: 18px; padding: 1.65rem 1.5rem;
    box-shadow: 0 2px 10px -6px rgba(38, 33, 97, .12);
    transition: transform .18s, box-shadow .18s, border-color .18s;
}
.content-page .content-info-card:hover {
    transform: translateY(-4px); border-color: #dfe4ef;
    box-shadow: 0 22px 42px -24px rgba(38, 33, 97, .28);
}
.content-page .content-info-card > span {
    height: 48px; width: 48px; border-radius: 14px;
    background: #e7f7ee; color: #0a7a52;
}
.content-page .content-info-card > span svg { width: 22px; height: 22px; }
.content-page .content-info-card h2 { margin-top: 1.05rem; font-size: 1.08rem; }
.content-page .content-info-card p { margin-top: .6rem; color: #5b6478; line-height: 1.7; }

/* Botón outline del hero: acento de marca al pasar el mouse */
.content-page .content-hero-actions .btn-outline:hover { border-color: #5da334; color: #262161; }

/* ── Directorio de servicios (/servicios): de pared de chips a directorio premium ── */
.content-page .content-service-directory { margin-top: 3.5rem; gap: 1.4rem; }
.content-page .content-service-group {
    border: 1px solid #e8ecf4; border-radius: 20px; padding: 1.75rem 1.6rem; gap: 1.3rem;
    box-shadow: 0 2px 12px -6px rgba(38, 33, 97, .12);
    transition: box-shadow .18s, border-color .18s;
}
.content-page .content-service-group:hover {
    box-shadow: 0 24px 46px -26px rgba(38, 33, 97, .24); border-color: #dfe4ef;
}
.content-page .content-service-group > div > span {
    height: 48px; width: 48px; border-radius: 14px; background: #e7f7ee; color: #0a7a52;
}
.content-page .content-service-group > div > span svg { width: 22px; height: 22px; }
.content-page .content-service-group h2 { margin-top: .95rem; font-size: 1.2rem; font-weight: 850; letter-spacing: -.01em; }
.content-page .content-service-group p { margin-top: .4rem; color: #5b6478; line-height: 1.6; }
.content-page .content-service-group ul { gap: .5rem; }

/* Cada servicio: pill blanca con hover verde + la flecha se desliza */
.content-page .content-service-group a {
    border-radius: 11px; background: #fff; border: 1px solid #eef1f7;
    padding: .72rem .85rem; color: #334155; font-size: .86rem; font-weight: 700;
    transition: background .15s, border-color .15s, color .15s;
}
.content-page .content-service-group a svg {
    color: #b4bdcc; flex: none; transition: transform .16s, color .16s;
}
.content-page .content-service-group a:hover {
    background: #f4f8f0; border-color: #cfe6bd; color: #262161;
}
.content-page .content-service-group a:hover svg { color: #5da334; transform: translate(2px, -2px); }
