﻿/* =========================================================
   CLÍNICA ELIZONDO DENTAL — CELESTE PREMIUM
   Identidad: limpio, luminoso, clínico y cercano
========================================================= */

:root {
    --sky: #69c6ec;
    --sky-strong: #3eb2e2;
    --sky-deep: #168fc3;
    --sky-pale: #e8f8fe;
    --sky-mist: #f3fbff;
    --blue-900: #103852;
    --blue-800: #164863;
    --blue-700: #2a6078;
    --blue-500: #5e8090;
    --ink: #102f40;
    --text: #4a6877;
    --muted: #718996;
    --white: #ffffff;
    --off-white: #fbfdfe;
    --line: #d9edf6;
    --line-strong: #c7e3ef;
    --success: #1da866;
    --danger: #d24b57;
    --whatsapp: #25d366;
    --shadow-sm: 0 12px 32px rgba(16, 56, 82, .08);
    --shadow-md: 0 26px 70px rgba(16, 56, 82, .13);
    --shadow-xl: 0 45px 110px rgba(16, 56, 82, .18);
    --container: 1240px;
    --header-h: 86px;
    --radius-sm: 14px;
    --radius-md: 24px;
    --radius-lg: 36px;
    --font-sans: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-display: "Outfit", "DM Sans", system-ui, sans-serif;
}

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

* {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 18px);
    background: var(--off-white);
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--text);
    background: var(--off-white);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

    body.menu-open {
        overflow: hidden;
    }

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

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

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

button {
    cursor: pointer;
}

::selection {
    color: var(--blue-900);
    background: rgba(105, 198, 236, .3);
}

:focus-visible {
    outline: 3px solid rgba(62, 178, 226, .42);
    outline-offset: 4px;
}

.shell {
    width: min(91%, var(--container));
    margin-inline: auto;
}

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

.eyebrow {
    margin-bottom: 16px;
    color: var(--sky-deep);
    font-size: .73rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.section-title {
    max-width: 850px;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: clamp(2.65rem, 5.3vw, 5.15rem);
    font-weight: 500;
    letter-spacing: -.043em;
    line-height: 1.06;
}

    .section-title .title-accent, .contact-title .title-accent, .clinic-gallery-copy h2 .title-accent {
        color: var(--sky-deep);
    }

.section-lead {
    max-width: 720px;
    margin-top: 25px;
    color: var(--text);
    font-size: 1.04rem;
    line-height: 1.85;
}

.skip-link {
    position: fixed;
    z-index: 5000;
    top: 10px;
    left: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    color: var(--white);
    background: var(--blue-900);
    transform: translateY(-160%);
    transition: transform .2s ease;
}

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

.scroll-progress {
    position: fixed;
    z-index: 4000;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    pointer-events: none;
}

    .scroll-progress span {
        display: block;
        width: 0;
        height: 100%;
        background: linear-gradient(90deg, var(--sky), var(--sky-deep));
    }

/* =========================================================
   HEADER
========================================================= */
.site-header {
    position: fixed;
    z-index: 1800;
    top: 0;
    left: 0;
    width: 100%;
    padding-top: env(safe-area-inset-top);
    border-bottom: 1px solid transparent;
    transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}

    .site-header.is-scrolled {
        background: rgba(255,255,255,.9);
        border-color: rgba(201,229,241,.9);
        box-shadow: 0 8px 35px rgba(17,64,87,.07);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
    }

.header-inner {
    display: flex;
    min-height: var(--header-h);
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.brand-logo {
    display: block;
    width: 94px;
    height: 94px;
    flex: 0 0 94px;
    object-fit: contain;
    background: transparent;
    filter: drop-shadow(0 7px 13px rgba(20,111,151,.10));
    transition: transform .35s cubic-bezier(.16,1,.3,1), filter .35s ease;
}

.brand:hover .brand-logo {
    transform: translateY(-2px) scale(1.025);
    filter: drop-shadow(0 10px 16px rgba(20,111,151,.15));
}

.brand-copy {
    display: grid;
    line-height: 1.08;
}

    .brand-copy strong {
        color: var(--ink);
        font-family: var(--font-display);
        font-size: 1.05rem;
        font-weight: 700;
        letter-spacing: -.02em;
    }

    .brand-copy small {
        margin-top: 5px;
        color: var(--sky-deep);
        font-size: .62rem;
        font-weight: 700;
        letter-spacing: .22em;
        text-transform: uppercase;
    }

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

    .main-nav a {
        position: relative;
        color: var(--blue-700);
        font-size: .82rem;
        font-weight: 600;
        transition: color .2s ease;
    }

        .main-nav a::after {
            content: "";
            position: absolute;
            right: 0;
            bottom: -8px;
            left: 0;
            height: 1px;
            background: var(--sky-deep);
            transform: scaleX(0);
            transform-origin: right;
            transition: transform .25s ease;
        }

        .main-nav a:hover, .main-nav a.is-active {
            color: var(--sky-deep);
        }

            .main-nav a:hover::after, .main-nav a.is-active::after {
                transform: scaleX(1);
                transform-origin: left;
            }

.header-actions {
    display: flex;
    align-items: center;
    gap: 13px;
}

.language-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 5px;
    color: #8aa0ab;
    font-size: .7rem;
    font-weight: 700;
}

.lang-option {
    padding: 6px 4px;
    color: #8aa0ab;
    background: transparent;
    border: 0;
    font-size: .72rem;
    font-weight: 800;
    transition: color .2s ease;
}

    .lang-option.is-active, .lang-option:hover {
        color: var(--sky-deep);
    }

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 14px;
    background: var(--sky-pale);
}

    .menu-toggle span {
        display: block;
        width: 20px;
        height: 1.5px;
        margin: 4px auto;
        background: var(--blue-900);
        transition: transform .25s ease, opacity .2s ease;
    }

/* Buttons */
.btn {
    position: relative;
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 25px;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    transition: transform .2s ease, box-shadow .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
}

    .btn::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(115deg, transparent 25%, rgba(255,255,255,.32), transparent 72%);
        transform: translateX(-120%);
        transition: transform .55s ease;
    }

    .btn:hover::before {
        transform: translateX(120%);
    }

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

.btn-primary {
    color: var(--white);
    background: linear-gradient(135deg, var(--sky-strong), var(--sky-deep));
    box-shadow: 0 13px 31px rgba(22,143,195,.25);
}

    .btn-primary:hover {
        box-shadow: 0 18px 42px rgba(22,143,195,.32);
    }

.btn-small {
    min-height: 44px;
    padding-inline: 18px;
    font-size: .76rem;
}

.btn-large {
    min-height: 58px;
    padding-inline: 29px;
}

    .btn-large svg {
        width: 19px;
        height: 19px;
    }

.btn-ghost {
    color: var(--blue-900);
    background: rgba(255,255,255,.5);
    border-color: var(--line-strong);
}

    .btn-ghost:hover, .btn-outline:hover {
        background: var(--white);
        border-color: var(--sky);
        box-shadow: var(--shadow-sm);
    }

.btn-outline {
    color: var(--blue-900);
    background: transparent;
    border-color: var(--line-strong);
}

/* =========================================================
   HERO
========================================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--header-h) + 68px + env(safe-area-inset-top)) 0 76px;
    background: radial-gradient(circle at 13% 15%, rgba(105,198,236,.21), transparent 27%), radial-gradient(circle at 87% 82%, rgba(105,198,236,.16), transparent 23%), linear-gradient(135deg, #f8fdff 0%, #eef9fe 53%, #f9fcfd 100%);
    overflow: hidden;
}

    .hero::before {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background-image: linear-gradient(rgba(37,142,184,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(37,142,184,.035) 1px, transparent 1px);
        background-size: 64px 64px;
        mask-image: linear-gradient(to bottom, rgba(0,0,0,.65), transparent 78%);
    }

.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0,1.02fr) minmax(420px,.82fr);
    gap: clamp(45px,7vw,95px);
    align-items: center;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 24px;
    color: var(--sky-deep);
    font-size: .73rem;
    font-weight: 700;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.kicker-line {
    width: 28px;
    height: 1px;
    background: var(--sky-deep);
}

.hero-title {
    max-width: 790px;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: clamp(3.5rem,6.7vw,6.7rem);
    font-weight: 500;
    letter-spacing: -.042em;
    line-height: 1.01;
}

    .hero-title em {
        color: var(--sky-deep);
        font-style: normal;
    }

.word {
    display: inline-block;
    overflow: clip;
    vertical-align: bottom;
    /* Outfit necesita un poco de aire extra para acentos y descendentes (g, p, q, y).
       El padding conserva el efecto de máscara del reveal sin cortar los glifos. */
    padding: .10em .025em .16em;
    margin: -.10em -.025em -.16em;
}

.word-inner {
    display: inline-block;
}

.motion-ready .hero:not(.is-ready) .word-inner {
    transform: translateY(110%);
    opacity: 0;
}

.hero .word-inner {
    transition: transform .8s cubic-bezier(.16,1,.3,1), opacity .6s ease;
}

.hero-description {
    max-width: 685px;
    margin-top: 31px;
    color: var(--text);
    font-size: clamp(1rem,1.45vw,1.14rem);
    line-height: 1.8;
}

.hero-doctor {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-top: 27px;
}

.hero-doctor-monogram {
    display: grid;
    width: 45px;
    height: 45px;
    place-items: center;
    border: 1px solid rgba(22,143,195,.2);
    border-radius: 50%;
    color: var(--sky-deep);
    background: rgba(255,255,255,.72);
    font-family: var(--font-display);
    font-size: .84rem;
    font-weight: 700;
}

.hero-doctor div:last-child {
    display: grid;
    gap: 2px;
}

.hero-doctor span {
    color: var(--muted);
    font-size: .72rem;
}

.hero-doctor strong {
    color: var(--blue-900);
    font-size: .88rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    margin-top: 34px;
}

.hero-trust {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    max-width: 750px;
    margin-top: 43px;
    padding-top: 22px;
    border-top: 1px solid rgba(70,151,184,.17);
}

    .hero-trust div {
        display: grid;
        gap: 6px;
        padding-right: 18px;
    }

        .hero-trust div + div {
            padding-left: 18px;
            border-left: 1px solid rgba(70,151,184,.17);
        }

    .hero-trust span {
        color: var(--sky-deep);
        font-family: var(--font-display);
        font-size: .76rem;
    }

    .hero-trust strong {
        color: var(--blue-700);
        font-size: .73rem;
        font-weight: 600;
        line-height: 1.45;
    }

.hero-visual {
    position: relative;
    min-height: 680px;
}

.hero-image-wrap {
    position: absolute;
    inset: 20px 0 0 35px;
    transform-style: preserve-3d;
    perspective: 1200px;
}

    .hero-image-wrap::before {
        content: "";
        position: absolute;
        top: -18px;
        right: -18px;
        width: 76%;
        height: 76%;
        border: 1px solid rgba(62,178,226,.3);
        border-radius: 46% 54% 40% 60% / 58% 43% 57% 42%;
    }

.hero-image {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 640px;
    object-fit: cover;
    object-position: 52% center;
    border-radius: 48% 52% 39% 61% / 53% 38% 62% 47%;
    box-shadow: var(--shadow-xl);
}

.hero-image-overlay {
    position: absolute;
    z-index: 2;
    inset: 0;
    border-radius: 48% 52% 39% 61% / 53% 38% 62% 47%;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(16,56,82,0) 52%, rgba(16,56,82,.24) 100%);
}

.glass-card {
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 15px 17px;
    border: 1px solid rgba(255,255,255,.9);
    border-radius: 17px;
    background: rgba(255,255,255,.78);
    box-shadow: 0 17px 40px rgba(16,56,82,.13);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.hero-floating-card {
    position: absolute;
}

.hero-floating-card-top {
    top: 90px;
    left: -55px;
}

.hero-floating-card-bottom {
    right: -35px;
    bottom: 70px;
}

.hero-floating-card div {
    display: grid;
}

.hero-floating-card small {
    color: var(--muted);
    font-size: .64rem;
}

.hero-floating-card strong {
    color: var(--blue-900);
    font-size: .77rem;
}

.mini-icon {
    display: grid;
    width: 37px;
    height: 37px;
    place-items: center;
    border-radius: 12px;
    color: var(--sky-deep);
    background: var(--sky-pale);
}

    .mini-icon svg {
        width: 22px;
        height: 22px;
    }

.availability-mark {
    color: var(--sky-deep);
    font-size: .8rem;
    font-weight: 800;
}

.hero-stamp {
    position: absolute;
    z-index: 4;
    left: 8px;
    right: auto;
    bottom: 22px;
    display: grid;
    width: 120px;
    height: 120px;
    place-items: center;
    border-radius: 50%;
    color: var(--sky-deep);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

    .hero-stamp svg {
        position: absolute;
        inset: 5px;
        width: 110px;
        height: 110px;
        animation: stampSpin 18s linear infinite;
    }

    .hero-stamp text {
        fill: var(--blue-700);
        font-family: var(--font-sans);
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 1.6px;
    }

    .hero-stamp > span {
        position: relative;
        z-index: 1;
    }

.hero-stamp-tooth {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: var(--sky-deep);
}

    .hero-stamp-tooth svg {
        position: static;
        width: 31px;
        height: 31px;
        animation: none;
    }

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

.motion-ready .hero .hero-floating-card,
.motion-ready .hero .hero-stamp {
    opacity: 0;
}

.motion-ready .hero .hero-floating-card-top {
    transform: translate3d(-18px,12px,0);
}

.motion-ready .hero .hero-floating-card-bottom {
    transform: translate3d(18px,12px,0);
}

.motion-ready .hero .hero-stamp {
    transform: translate3d(-10px,12px,0) scale(.9);
}

.motion-ready .hero.is-ready .hero-floating-card,
.motion-ready .hero.is-ready .hero-stamp {
    opacity: 1;
    transform: translate3d(0,0,0) scale(1);
    transition: opacity .65s ease, transform .85s cubic-bezier(.16,1,.3,1);
}

.motion-ready .hero.is-ready .hero-floating-card-top {
    transition-delay: .45s;
}

.motion-ready .hero.is-ready .hero-floating-card-bottom {
    transition-delay: .58s;
}

.motion-ready .hero.is-ready .hero-stamp {
    transition-delay: .72s;
}

/* =========================================================
   QUICK CONTACT
========================================================= */
.quick-contact-bar {
    position: relative;
    z-index: 5;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--white);
}

.quick-contact-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
}

.quick-contact-item {
    display: flex;
    min-height: 104px;
    align-items: center;
    gap: 13px;
    padding: 18px 24px;
    transition: background .22s ease;
}

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

a.quick-contact-item:hover {
    background: var(--sky-mist);
}

.quick-icon {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    color: var(--sky-deep);
}

.quick-contact-item div {
    display: grid;
    gap: 3px;
}

.quick-contact-item small {
    color: var(--muted);
    font-size: .66rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.quick-contact-item strong {
    color: var(--blue-900);
    font-size: .82rem;
    line-height: 1.35;
}

/* =========================================================
   DOCTOR
========================================================= */
.doctor-section {
    background: var(--white);
}

.doctor-grid {
    display: grid;
    grid-template-columns: minmax(0,.88fr) minmax(0,1.12fr);
    gap: clamp(55px,8vw,105px);
    align-items: center;
}

.doctor-visual {
    position: relative;
    padding: 0 0 70px 35px;
}

.doctor-photo-card {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    border-radius: 160px 36px 36px 36px;
    box-shadow: var(--shadow-md);
    transform-style: preserve-3d;
}

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

    .doctor-photo-card::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, transparent 58%, rgba(16,56,82,.7));
    }

.doctor-photo-caption {
    position: absolute;
    z-index: 2;
    right: 24px;
    bottom: 24px;
    left: 24px;
    display: grid;
    color: var(--white);
}

    .doctor-photo-caption span {
        font-size: .65rem;
        opacity: .78;
    }

    .doctor-photo-caption strong {
        margin-top: 4px;
        font-size: .78rem;
    }

.doctor-accent-card {
    position: absolute;
    z-index: 4;
    right: -40px;
    bottom: 0;
    width: min(330px,76%);
    padding: 28px;
    border: 1px solid rgba(62,178,226,.22);
    border-radius: var(--radius-md);
    background: var(--sky-pale);
    box-shadow: var(--shadow-sm);
}

.doctor-accent-number {
    color: var(--sky-deep);
    font-family: var(--font-display);
    font-size: .82rem;
}

.doctor-accent-card p {
    margin-top: 13px;
    color: var(--blue-700);
    font-family: var(--font-display);
    font-size: 1.27rem;
    font-weight: 600;
    line-height: 1.35;
}

.doctor-points {
    margin-top: 45px;
    border-top: 1px solid var(--line);
}

.doctor-point {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 18px;
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
}

    .doctor-point > span {
        color: var(--sky-deep);
        font-family: var(--font-display);
    }

    .doctor-point h3 {
        color: var(--blue-900);
        font-size: .94rem;
    }

    .doctor-point p {
        max-width: 590px;
        margin-top: 6px;
        color: var(--text);
        font-size: .9rem;
        line-height: 1.7;
    }

/* =========================================================
   TREATMENTS — EDITORIAL DIRECTORY
========================================================= */
.treatments-section {
    background: linear-gradient(180deg, #f4fbfe 0%, #ffffff 100%);
}

.treatments-heading {
    display: grid;
    grid-template-columns: 1.12fr .72fr;
    gap: 70px;
    align-items: end;
    margin-bottom: 54px;
}

    .treatments-heading .section-lead {
        margin: 0;
    }

.treatment-directory {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    border-top: 1px solid var(--line-strong);
}

.treatment-entry {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 22px;
    min-height: 164px;
    padding: 27px 26px 27px 0;
    border-bottom: 1px solid var(--line-strong);
    transition: background .25s ease, padding-left .25s ease;
}

    .treatment-entry:nth-child(odd) {
        padding-right: 42px;
        border-right: 1px solid var(--line-strong);
    }

    .treatment-entry:nth-child(even) {
        padding-left: 38px;
    }

    .treatment-entry:hover {
        background: rgba(255,255,255,.58);
    }

.treatment-number {
    padding-top: 4px;
    color: var(--sky-deep);
    font-family: var(--font-sans);
    font-size: .67rem;
    font-weight: 800;
    letter-spacing: .12em;
}

.treatment-entry h3 {
    color: var(--blue-900);
    font-family: var(--font-display);
    font-size: clamp(1.55rem,2.2vw,2rem);
    font-weight: 600;
    letter-spacing: -.015em;
    line-height: 1.12;
}

.treatment-entry p {
    max-width: 510px;
    margin-top: 9px;
    color: var(--text);
    font-size: .83rem;
    line-height: 1.7;
}

.treatment-entry-cta {
    background: rgba(105,198,236,.08);
}

    .treatment-entry-cta a {
        display: inline-flex;
        margin-top: 13px;
        color: var(--sky-deep);
        font-size: .75rem;
        font-weight: 800;
    }

.treatments-disclaimer {
    margin-top: 24px;
    color: var(--muted);
    font-size: .73rem;
}

/* =========================================================
   FAMILY
========================================================= */
.family-section {
    background: var(--white);
}

.family-grid {
    display: grid;
    grid-template-columns: 1fr .86fr;
    gap: clamp(55px,8vw,100px);
    align-items: center;
}

.age-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 37px;
}

.age-tab {
    min-height: 42px;
    padding: 0 17px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--blue-700);
    background: var(--white);
    font-size: .77rem;
    font-weight: 700;
    transition: .2s ease;
}

    .age-tab:hover, .age-tab.is-active {
        color: var(--white);
        background: var(--sky-deep);
        border-color: var(--sky-deep);
    }

.age-panel {
    display: grid;
    grid-template-columns: 65px 1fr;
    gap: 20px;
    margin-top: 24px;
    padding: 27px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--sky-mist);
}

.age-panel-index {
    color: var(--sky-deep);
    font-family: var(--font-display);
    font-size: 1.4rem;
}

.age-panel h3 {
    color: var(--blue-900);
    font-family: var(--font-display);
    font-size: 1.45rem;
    line-height: 1.15;
}

.age-panel p {
    margin-top: 8px;
    color: var(--text);
    font-size: .88rem;
}

.family-visual {
    position: relative;
}

.family-photo {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    border-radius: 38px 150px 38px 38px;
    box-shadow: var(--shadow-md);
    transform-style: preserve-3d;
}

    .family-photo img {
        width: 100%;
        height: 650px;
        object-fit: cover;
        object-position: center;
    }

.family-photo-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 52%, rgba(16,56,82,.74));
}

.family-photo-copy {
    position: absolute;
    right: 30px;
    bottom: 30px;
    left: 30px;
    display: grid;
    color: var(--white);
}

    .family-photo-copy small {
        font-size: .67rem;
        text-transform: uppercase;
        letter-spacing: .12em;
        opacity: .82;
    }

    .family-photo-copy strong {
        max-width: 440px;
        margin-top: 7px;
        font-family: var(--font-display);
        font-size: 1.75rem;
        line-height: 1.22;
    }

/* =========================================================
   EXPERIENCE
========================================================= */
.experience-section {
    color: var(--white);
    background: var(--blue-900);
    overflow: hidden;
}

.experience-intro .eyebrow {
    color: #83d8f5;
}

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

    .experience-intro .section-title .title-accent {
        color: #83d8f5;
    }

.experience-steps {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4,1fr);
    margin-top: 66px;
    border-top: 1px solid rgba(255,255,255,.13);
}

.experience-step {
    padding: 30px 26px 0 0;
}

    .experience-step + .experience-step {
        padding-left: 26px;
        border-left: 1px solid rgba(255,255,255,.13);
    }

.step-line span {
    color: #83d8f5;
    font-family: var(--font-display);
}

.experience-step h3 {
    margin-top: 34px;
    color: var(--white);
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 600;
}

.experience-step p {
    margin-top: 11px;
    color: #bcd6e2;
    font-size: .86rem;
    line-height: 1.72;
}

/* =========================================================
   GALLERY
========================================================= */
.clinic-gallery-section {
    padding: 100px 0;
    background: #f7fcfe;
}

.clinic-gallery-grid {
    display: grid;
    grid-template-columns: .78fr 1.2fr .78fr;
    grid-template-rows: auto 370px;
    gap: 18px;
}

.clinic-gallery-copy {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 30px;
}

    .clinic-gallery-copy h2 {
        color: var(--ink);
        font-family: var(--font-display);
        font-size: clamp(2.3rem,4vw,3.9rem);
        line-height: 1.08;
        letter-spacing: -.032em;
    }

    .clinic-gallery-copy p:last-child {
        margin-top: 20px;
        color: var(--text);
        font-size: .9rem;
        line-height: 1.75;
    }

.gallery-photo {
    position: relative;
    min-height: 370px;
    overflow: hidden;
    border-radius: var(--radius-md);
    transform-style: preserve-3d;
}

.gallery-photo-large {
    grid-column: 2 / 4;
    min-height: 440px;
}

.gallery-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.045) translate3d(0,var(--media-shift,0px),0);
    transition: transform .18s linear;
}

.gallery-photo span {
    position: absolute;
    right: 15px;
    bottom: 15px;
    padding: 7px 11px;
    border-radius: 999px;
    color: var(--blue-900);
    background: rgba(255,255,255,.84);
    font-size: .63rem;
    font-weight: 700;
    backdrop-filter: blur(10px);
}

/* =========================================================
   LOCATION / GOOGLE MAPS
========================================================= */
.location-section {
    background: var(--white);
}

.location-heading {
    display: grid;
    grid-template-columns: 1.08fr .72fr;
    gap: 70px;
    align-items: end;
    margin-bottom: 50px;
}

    .location-heading .section-lead {
        margin: 0;
    }

.location-layout {
    display: grid;
    grid-template-columns: minmax(0,1.15fr) minmax(350px,.72fr);
    gap: 24px;
    align-items: stretch;
}

.map-card {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: 36px 36px 110px 36px;
    background: #eaf7fc;
    box-shadow: var(--shadow-sm);
}

    .map-card iframe {
        width: 100%;
        height: 100%;
        min-height: 520px;
        border: 0;
        filter: saturate(.78) contrast(.96);
    }

.location-panel {
    display: flex;
    flex-direction: column;
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 36px;
    background: var(--sky-mist);
}

.location-address-block {
    padding-bottom: 26px;
    border-bottom: 1px solid var(--line-strong);
}

    .location-address-block span, .location-contact-list span {
        color: var(--muted);
        font-size: .64rem;
        font-weight: 700;
        letter-spacing: .11em;
        text-transform: uppercase;
    }

    .location-address-block strong {
        display: block;
        margin-top: 8px;
        color: var(--blue-900);
        font-family: var(--font-display);
        font-size: 1.65rem;
        font-weight: 600;
        line-height: 1.16;
    }

.location-contact-list {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    padding: 21px 0;
    border-bottom: 1px solid var(--line-strong);
}

    .location-contact-list div {
        display: grid;
        gap: 5px;
    }

        .location-contact-list div + div {
            padding-left: 20px;
            border-left: 1px solid var(--line-strong);
        }

    .location-contact-list a {
        color: var(--blue-900);
        font-size: .8rem;
        font-weight: 700;
    }

.hours-compact {
    padding: 23px 0 5px;
}

    .hours-compact > p {
        margin-bottom: 10px;
        color: var(--sky-deep);
        font-size: .65rem;
        font-weight: 800;
        letter-spacing: .11em;
        text-transform: uppercase;
    }

    .hours-compact div {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 18px;
        min-height: 45px;
        border-bottom: 1px solid var(--line);
    }

    .hours-compact span {
        color: var(--text);
        font-size: .76rem;
    }

    .hours-compact strong {
        color: var(--blue-900);
        font-size: .76rem;
        text-align: right;
    }

.location-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
    margin-top: auto;
    padding-top: 22px;
}

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

/* =========================================================
   FAQ
========================================================= */
.faq-section {
    background: var(--sky-mist);
}

.faq-grid {
    display: grid;
    grid-template-columns: .78fr 1.22fr;
    gap: 85px;
    align-items: start;
}

.faq-heading {
    position: sticky;
    top: calc(var(--header-h) + 32px);
}

.text-link {
    display: inline-flex;
    margin-top: 31px;
    color: var(--sky-deep);
    font-size: .84rem;
    font-weight: 700;
}

.faq-list {
    border-top: 1px solid var(--line-strong);
}

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

    .faq-item summary {
        position: relative;
        display: flex;
        min-height: 88px;
        align-items: center;
        justify-content: space-between;
        gap: 25px;
        cursor: pointer;
        list-style: none;
        color: var(--blue-900);
        font-family: var(--font-display);
        font-size: 1.28rem;
        font-weight: 600;
        line-height: 1.3;
    }

        .faq-item summary::-webkit-details-marker {
            display: none;
        }

        .faq-item summary i {
            position: relative;
            width: 26px;
            height: 26px;
            flex: 0 0 26px;
            border: 1px solid var(--line-strong);
            border-radius: 50%;
        }

            .faq-item summary i::before, .faq-item summary i::after {
                content: "";
                position: absolute;
                top: 50%;
                left: 50%;
                width: 10px;
                height: 1px;
                background: var(--sky-deep);
                transform: translate(-50%,-50%);
                transition: transform .2s ease;
            }

            .faq-item summary i::after {
                transform: translate(-50%,-50%) rotate(90deg);
            }

    .faq-item[open] summary i::after {
        transform: translate(-50%,-50%) rotate(0);
    }

    .faq-item p {
        max-width: 690px;
        padding: 0 55px 27px 0;
        color: var(--text);
        font-size: .9rem;
        line-height: 1.75;
    }

/* =========================================================
   CONTACT / FORM
========================================================= */
.contact-section {
    position: relative;
    padding: 118px 0;
    overflow: hidden;
    color: var(--white);
    background: linear-gradient(137deg, #0d334a 0%, #164f6d 62%, #207ba2 100%);
}

.contact-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 70px;
    align-items: start;
}

.contact-copy .eyebrow {
    color: #87dcf9;
}

.contact-title {
    max-width: 640px;
    color: var(--white);
    font-family: var(--font-display);
    font-size: clamp(2.8rem,5vw,5rem);
    font-weight: 600;
    line-height: 1.04;
    letter-spacing: -.036em;
}

    .contact-title .title-accent {
        color: #87dcf9;
    }

.contact-lead {
    max-width: 560px;
    margin-top: 26px;
    color: #c7e1ec;
    font-size: .98rem;
    line-height: 1.8;
}

.contact-side-card {
    display: flex;
    gap: 15px;
    margin-top: 42px;
    padding: 22px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--radius-md);
    background: rgba(255,255,255,.055);
}

.contact-side-icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 15px;
    color: #87dcf9;
    background: rgba(255,255,255,.09);
}

    .contact-side-icon svg {
        width: 25px;
        height: 25px;
    }

.contact-side-card div:last-child {
    display: grid;
}

.contact-side-card span {
    color: #87dcf9;
    font-size: .65rem;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.contact-side-card strong {
    margin-top: 3px;
    color: var(--white);
    font-size: .9rem;
}

.contact-side-card p {
    margin-top: 5px;
    color: #badce9;
    font-size: .76rem;
}

.contact-form-card {
    padding: 30px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 31px;
    background: rgba(255,255,255,.97);
    box-shadow: 0 28px 80px rgba(4,24,37,.24);
}

.appointment-form {
    display: grid;
    gap: 12px;
}

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

.form-group {
    display: grid;
    gap: 5px;
}

    .form-group label {
        color: var(--blue-900);
        font-size: .72rem;
        font-weight: 700;
    }

    .form-group input, .form-group select, .form-group textarea {
        width: 100%;
        min-height: 52px;
        padding: 0 15px;
        color: var(--ink);
        background: var(--off-white);
        border: 1px solid #dcebf1;
        border-radius: 13px;
        outline: none;
        transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
    }

    .form-group textarea {
        min-height: 108px;
        padding-top: 12px;
        resize: vertical;
    }

        .form-group input:focus, .form-group select:focus, .form-group textarea:focus {
            background: var(--white);
            border-color: var(--sky-strong);
            box-shadow: 0 0 0 4px rgba(105,198,236,.13);
        }

        .form-group input.is-invalid, .form-group select.is-invalid, .form-group textarea.is-invalid {
            border-color: var(--danger);
            box-shadow: 0 0 0 3px rgba(210,75,87,.08);
        }

.field-error {
    min-height: 15px;
    color: var(--danger);
    font-size: .67rem;
}

.btn-submit {
    width: 100%;
    min-height: 57px;
    border: 0;
}

    .btn-submit svg {
        width: 18px;
        height: 18px;
    }

.form-note {
    color: var(--muted);
    font-size: .66rem;
    text-align: center;
}

/* =========================================================
   FOOTER / FLOATING
========================================================= */
.site-footer {
    padding: 70px 0 26px;
    color: #b7d1dc;
    background: #092839;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.25fr .8fr .8fr .72fr;
    gap: 55px;
}

.brand-footer .brand-copy strong {
    color: var(--white);
}

.footer-brand-block > p {
    max-width: 360px;
    margin-top: 20px;
    color: #9fc1cf;
    font-size: .82rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .footer-column h3 {
        margin-bottom: 8px;
        color: var(--white);
        font-size: .76rem;
        text-transform: uppercase;
        letter-spacing: .12em;
    }

    .footer-column a, .footer-column span {
        color: #a9c7d3;
        font-size: .77rem;
        line-height: 1.6;
        transition: color .2s ease;
    }

        .footer-column a:hover {
            color: #87dcf9;
        }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 55px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,.09);
    color: #7fa2b0;
    font-size: .68rem;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 14px;
}

.noventra-credit {
    color: #7197a7;
    font-size: .9rem;
    letter-spacing: .04em;
    transition: color .2s ease;
}

    .noventra-credit strong {
        color: #a5c6d2;
        font-size: .9rem;
        letter-spacing: .11em;
    }

    .noventra-credit:hover {
        color: #b9d7e1;
    }

.whatsapp-floating {
    position: fixed;
    z-index: 1500;
    right: max(22px, env(safe-area-inset-right));
    bottom: max(22px, env(safe-area-inset-bottom));
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    gap: 9px;
    padding: 0 18px 0 14px;
    border-radius: 999px;
    color: var(--white);
    background: var(--whatsapp);
    box-shadow: 0 15px 38px rgba(37,211,102,.28);
    font-size: .76rem;
    font-weight: 700;
}

    .whatsapp-floating svg {
        width: 24px;
        height: 24px;
    }

.toast {
    position: fixed;
    z-index: 3000;
    left: 50%;
    bottom: 30px;
    max-width: min(90%,520px);
    padding: 12px 17px;
    border-radius: 12px;
    color: var(--white);
    background: var(--blue-900);
    box-shadow: var(--shadow-md);
    font-size: .78rem;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%,20px);
    transition: opacity .2s ease, transform .2s ease;
}

    .toast.is-visible {
        opacity: 1;
        transform: translate(-50%,0);
    }

/* =========================================================
   MOTION / INTERACTION
========================================================= */
.motion-ready .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .72s ease var(--reveal-delay,0ms), transform .72s cubic-bezier(.16,1,.3,1) var(--reveal-delay,0ms);
}

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

.interactive-card {
    --rx: 0deg;
    --ry: 0deg;
    --glow-x: 50%;
    --glow-y: 50%;
    transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
    transition: transform .16s ease-out, box-shadow .25s ease;
}

    .interactive-card::after {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        opacity: 0;
        background: radial-gradient(circle at var(--glow-x) var(--glow-y), rgba(255,255,255,.23), transparent 30%);
        transition: opacity .2s ease;
    }

    .interactive-card:hover::after {
        opacity: 1;
    }


/* =========================================================
   EDITORIAL MOTION — contenido siempre visible
   Las animaciones JS se aplican sin ocultar fotografías o mapa.
========================================================= */
[data-media-reveal] {
    opacity: 1;
    clip-path: none;
}

    [data-media-reveal] img {
        will-change: transform, filter;
    }

.doctor-photo-card img,
.family-photo img {
    transform: scale(1.045) translate3d(0,var(--media-shift,0px),0);
    transition: transform .18s linear;
}

.motion-ready .quick-contact-item {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .55s ease, transform .65s cubic-bezier(.16,1,.3,1), background .22s ease;
}

.motion-ready .quick-contact-bar.is-motion-visible .quick-contact-item {
    opacity: 1;
    transform: translateY(0);
}

    .motion-ready .quick-contact-bar.is-motion-visible .quick-contact-item:nth-child(1) {
        transition-delay: 40ms;
    }

    .motion-ready .quick-contact-bar.is-motion-visible .quick-contact-item:nth-child(2) {
        transition-delay: 100ms;
    }

    .motion-ready .quick-contact-bar.is-motion-visible .quick-contact-item:nth-child(3) {
        transition-delay: 160ms;
    }

    .motion-ready .quick-contact-bar.is-motion-visible .quick-contact-item:nth-child(4) {
        transition-delay: 220ms;
    }

.treatment-entry {
    position: relative;
    overflow: hidden;
}

    .treatment-entry::after {
        content: "";
        position: absolute;
        right: 0;
        bottom: -1px;
        left: 0;
        height: 1px;
        background: linear-gradient(90deg, var(--sky-deep), var(--sky), transparent 82%);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform .55s cubic-bezier(.16,1,.3,1);
    }

    .treatment-entry:hover::after {
        transform: scaleX(1);
    }

    .treatment-entry .treatment-number {
        transition: color .28s ease, transform .35s cubic-bezier(.16,1,.3,1);
    }

    .treatment-entry:hover .treatment-number {
        color: var(--sky-deep);
        transform: translateY(-3px);
    }

    .treatment-entry h3 {
        transition: color .25s ease, transform .35s cubic-bezier(.16,1,.3,1);
    }

    .treatment-entry:hover h3 {
        color: var(--sky-deep);
        transform: translateX(3px);
    }

.experience-step .step-line {
    position: relative;
}

    .experience-step .step-line::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 34px;
        right: 8px;
        height: 1px;
        background: linear-gradient(90deg, rgba(131,216,245,.7), rgba(255,255,255,.08));
        transform: scaleX(0);
        transform-origin: left;
        transition: transform .85s cubic-bezier(.16,1,.3,1) .15s;
    }

.experience-step.is-visible .step-line::after {
    transform: scaleX(1);
}


.age-panel {
    transition: opacity .26s ease, transform .32s cubic-bezier(.16,1,.3,1);
}

    .age-panel.is-switching {
        opacity: 0;
        transform: translateY(8px);
    }

.map-card iframe {
    transition: transform .8s cubic-bezier(.16,1,.3,1), filter .8s ease;
}

.map-card:hover iframe {
    transform: scale(1.012);
}

.faq-item summary span {
    transition: color .25s ease, transform .35s cubic-bezier(.16,1,.3,1);
}

.faq-item:hover summary span {
    color: var(--sky-deep);
    transform: translateX(4px);
}

.whatsapp-floating {
    transition: transform .28s cubic-bezier(.16,1,.3,1), box-shadow .28s ease, background .2s ease;
}

    .whatsapp-floating:hover {
        transform: translateY(-4px);
        box-shadow: 0 21px 46px rgba(37,211,102,.34);
    }

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 1360px) {
    .header-inner {
        gap: 16px;
    }

    .main-nav {
        gap: 20px;
    }

        .main-nav a {
            font-size: .79rem;
        }

    .header-actions {
        gap: 8px;
    }

    .btn-small {
        padding-inline: 15px;
        font-size: .73rem;
        white-space: nowrap;
    }
}

@media (max-width: 1120px) {
    .main-nav {
        gap: 18px;
    }

        .main-nav a:nth-child(3) {
            display: none;
        }

    .hero-grid {
        grid-template-columns: 1fr .78fr;
        gap: 45px;
    }

    .hero-title {
        font-size: clamp(3.2rem,7vw,5.6rem);
    }

    .hero-visual {
        min-height: 590px;
    }

    .hero-image {
        height: 560px;
    }

    .doctor-grid, .family-grid {
        gap: 55px;
    }

    .footer-grid {
        grid-template-columns: 1.2fr repeat(3,1fr);
        gap: 35px;
    }
}

@media (max-width: 920px) {
    :root {
        --header-h: 76px;
    }

    .header-inner {
        min-height: var(--header-h);
    }

    .brand-logo {
        width: 49px;
        height: 49px;
        flex-basis: 49px;
    }

    .brand-copy strong {
        font-size: .96rem;
    }

    .header-actions .btn {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        z-index: 1700;
        top: calc(var(--header-h) + env(safe-area-inset-top));
        right: 16px;
        left: 16px;
        display: grid;
        gap: 0;
        padding: 10px;
        border: 1px solid var(--line);
        border-radius: 22px;
        background: rgba(255,255,255,.97);
        box-shadow: var(--shadow-md);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
    }

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

        .main-nav a, .main-nav a:nth-child(3) {
            display: block;
            padding: 14px 13px;
            border-bottom: 1px solid var(--line);
            font-size: .9rem;
        }

            .main-nav a:last-child {
                border-bottom: 0;
            }

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

    .hero {
        min-height: auto;
        padding-top: calc(var(--header-h) + 55px);
    }

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

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

    .hero-visual {
        width: min(86%,650px);
        min-height: 620px;
        margin: 20px auto 0;
    }

    .hero-image-wrap {
        inset: 20px 0 0;
    }

    .hero-floating-card-top {
        left: -25px;
    }

    .hero-floating-card-bottom {
        right: -20px;
    }

    .quick-contact-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .quick-contact-item:nth-child(3) {
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .quick-contact-item:nth-child(4) {
        border-top: 1px solid var(--line);
    }

    .doctor-grid, .family-grid, .faq-grid, .contact-grid {
        grid-template-columns: 1fr;
    }

    .location-heading, .location-layout {
        grid-template-columns: 1fr;
    }

    .location-heading {
        gap: 20px;
    }

        .location-heading .section-lead {
            margin-top: 0;
        }

    .map-card, .map-card iframe {
        min-height: 450px;
    }

    .doctor-copy {
        max-width: 780px;
    }

    .doctor-visual {
        width: min(82%,650px);
        margin-inline: auto;
    }

    .treatments-heading {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .treatment-directory {
        grid-template-columns: repeat(2,1fr);
    }

    .experience-steps {
        grid-template-columns: repeat(2,1fr);
        row-gap: 45px;
    }

    .experience-step:nth-child(3) {
        border-left: 0;
        padding-left: 0;
    }

    .clinic-gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto 400px 310px;
    }

    .clinic-gallery-copy {
        grid-column: 1 / 3;
        grid-row: 1;
        padding: 0 0 25px;
    }

    .gallery-photo-large {
        grid-column: 1 / 3;
        min-height: 400px;
    }

    .faq-heading {
        position: static;
    }

    .contact-copy {
        max-width: 760px;
    }

    .footer-grid {
        grid-template-columns: 1.3fr 1fr;
    }
}

@media (max-width: 640px) {
    .shell {
        width: min(92%, var(--container));
    }

    .section {
        padding: 82px 0;
    }

    .brand-copy {
        display: grid;
    }

        .brand-copy strong {
            font-size: .84rem;
        }

        .brand-copy small {
            margin-top: 4px;
            font-size: .54rem;
            letter-spacing: .17em;
        }

    .language-switch {
        gap: 3px;
    }

    .hero {
        padding-bottom: 50px;
    }

    .hero-kicker {
        font-size: .63rem;
        line-height: 1.5;
    }

    .hero-title {
        font-size: clamp(3rem,15vw,4.65rem);
    }

    .hero-description {
        font-size: .96rem;
    }

    .hero-actions {
        display: grid;
    }

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

    .hero-trust {
        grid-template-columns: 1fr;
        gap: 12px;
    }

        .hero-trust div {
            padding: 0 0 12px;
        }

            .hero-trust div + div {
                padding: 0 0 12px;
                border-left: 0;
                border-top: 1px solid rgba(70,151,184,.17);
                padding-top: 12px;
            }

    .hero-visual {
        width: 100%;
        min-height: 510px;
    }

    .hero-image {
        height: 500px;
        border-radius: 39% 61% 32% 68% / 42% 35% 65% 58%;
    }

    .hero-image-overlay {
        border-radius: 39% 61% 32% 68% / 42% 35% 65% 58%;
    }

    .hero-floating-card-top {
        top: 60px;
        left: -5px;
    }

    .hero-floating-card-bottom {
        right: -4px;
        bottom: 40px;
    }

    .hero-floating-card {
        max-width: 220px;
    }

    .hero-stamp {
        left: 5px;
        bottom: 8px;
        display: grid;
        width: 92px;
        height: 92px;
    }

        .hero-stamp svg {
            inset: 4px;
            width: 84px;
            height: 84px;
        }

        .hero-stamp text {
            font-size: 9px;
            letter-spacing: 1.25px;
        }

    .hero-stamp-tooth {
        width: 28px;
        height: 28px;
    }

        .hero-stamp-tooth svg {
            width: 26px;
            height: 26px;
        }

    .quick-contact-grid {
        grid-template-columns: 1fr;
    }

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

    .section-title {
        font-size: clamp(2.55rem,12vw,4rem);
    }

    .doctor-visual {
        width: 100%;
        padding-left: 0;
    }

    .doctor-photo-card, .doctor-photo-card img {
        min-height: 520px;
        height: 520px;
    }

    .doctor-photo-card {
        border-radius: 100px 28px 28px 28px;
    }

    .doctor-accent-card {
        right: 0;
    }

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

    .treatment-entry, .treatment-entry:nth-child(odd), .treatment-entry:nth-child(even) {
        min-height: 0;
        padding: 23px 0;
        border-right: 0;
    }

        .treatment-entry:nth-child(odd):hover, .treatment-entry:nth-child(even):hover {
            padding-left: 0;
        }

    .map-card, .map-card iframe {
        min-height: 390px;
    }

    .map-card {
        border-radius: 28px 28px 70px 28px;
    }

    .location-panel {
        padding: 26px 22px;
        border-radius: 28px;
    }

    .location-contact-list {
        grid-template-columns: 1fr;
        gap: 14px;
    }

        .location-contact-list div + div {
            padding: 14px 0 0;
            border-top: 1px solid var(--line);
            border-left: 0;
        }

    .family-photo, .family-photo img {
        min-height: 520px;
        height: 520px;
    }

    .family-photo {
        border-radius: 28px 100px 28px 28px;
    }

    .age-tabs {
        display: grid;
        grid-template-columns: repeat(2,1fr);
    }

    .age-tab {
        width: 100%;
    }

    .age-panel {
        grid-template-columns: 42px 1fr;
        padding: 22px;
    }

    .experience-steps {
        grid-template-columns: 1fr;
    }

    .experience-step, .experience-step + .experience-step, .experience-step:nth-child(3) {
        padding: 25px 0 0;
        border-left: 0;
        border-top: 1px solid rgba(255,255,255,.13);
    }

    .clinic-gallery-grid {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto 330px 280px;
    }

    .clinic-gallery-copy, .gallery-photo-large {
        grid-column: 1;
    }

    .gallery-photo-large {
        min-height: 330px;
    }

    .location-details {
        grid-template-columns: 1fr;
    }

    .location-actions {
        display: grid;
    }

    .hours-card {
        padding: 28px 24px;
    }

    .faq-item summary {
        min-height: 78px;
        font-size: 1.12rem;
    }

    .contact-section {
        padding: 86px 0;
    }

    .contact-form-card {
        padding: 24px 18px;
        border-radius: 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

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

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

    .footer-legal {
        flex-direction: column;
        gap: 2px;
    }

    .whatsapp-floating {
        width: 56px;
        height: 56px;
        min-height: 56px;
        justify-content: center;
        padding: 0;
        border-radius: 50%;
    }

        .whatsapp-floating span {
            display: none;
        }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .motion-ready .reveal, .motion-ready .hero:not(.is-ready) .word-inner, [data-media-reveal], .motion-ready .quick-contact-item {
        opacity: 1 !important;
        transform: none !important;
        clip-path: none !important;
    }

    .doctor-photo-card img, .family-photo img, .gallery-photo img {
        transform: none !important;
    }
}


/* =========================================================
   V5 — MOTION PROFESIONAL / SIN PARTÍCULAS
========================================================= */
.site-header {
    transition: transform .5s cubic-bezier(.16,1,.3,1), background .28s ease, border-color .28s ease, box-shadow .28s ease;
}

.hero-image,
.doctor-photo-card img,
.family-photo img,
.gallery-photo img {
    backface-visibility: hidden;
    transform-origin: 50% 50%;
}

.hero-image-wrap {
    transition: filter .5s ease;
}

    .hero-image-wrap:hover {
        filter: saturate(1.03);
    }

        .hero-image-wrap:hover .hero-image {
            border-radius: 44% 56% 42% 58% / 57% 42% 58% 43%;
        }

.hero-image {
    transition: border-radius 1s cubic-bezier(.16,1,.3,1), transform .35s ease-out;
}

.doctor-photo-card,
.family-photo,
.gallery-photo {
    isolation: isolate;
}

    .doctor-photo-card img,
    .family-photo img,
    .gallery-photo img {
        transition: transform .55s cubic-bezier(.16,1,.3,1), filter .45s ease;
    }

    .doctor-photo-card:hover img,
    .family-photo:hover img,
    .gallery-photo:hover img {
        filter: saturate(1.04) contrast(1.015);
    }

.treatment-entry {
    transition: background .35s ease, padding-left .45s cubic-bezier(.16,1,.3,1), border-color .35s ease;
}

    .treatment-entry:hover {
        background: linear-gradient(90deg, rgba(105,198,236,.075), transparent 68%);
    }

    .treatment-entry::after {
        display: none;
    }

    .treatment-entry .treatment-number {
        position: relative;
        transition: color .28s ease, transform .4s cubic-bezier(.16,1,.3,1);
    }

    .treatment-entry:hover h3 {
        transform: translateX(0);
    }

.experience-step {
    transition: background .35s ease, transform .45s cubic-bezier(.16,1,.3,1);
}

    .experience-step:hover {
        transform: translateY(-6px);
        background: rgba(255,255,255,.025);
    }

.map-card {
    opacity: 1 !important;
    clip-path: none !important;
    transform: none;
}

    .map-card iframe {
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important;
    }

    .map-card::before {
        content: "";
        position: absolute;
        z-index: 2;
        inset: 0;
        pointer-events: none;
        border: 1px solid rgba(105,198,236,.16);
        border-radius: inherit;
    }

.faq-item p {
    transform-origin: top;
}

.faq-item[open] p {
    animation: faqAnswerIn .42s cubic-bezier(.16,1,.3,1) both;
}

@keyframes faqAnswerIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

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

.contact-form-card {
    transition: transform .5s cubic-bezier(.16,1,.3,1), box-shadow .5s ease;
}

    .contact-form-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 34px 90px rgba(4,24,37,.28);
    }

.form-group input,
.form-group select,
.form-group textarea {
    transition: border-color .2s ease, box-shadow .25s ease, background .2s ease, transform .25s ease;
}

    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
        transform: translateY(-1px);
    }

@media (prefers-reduced-motion: reduce) {
    .faq-item[open] p {
        animation: none !important;
    }
}

.photo-fallback {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: grid;
    place-content: center;
    gap: 7px;
    padding: 30px;
    color: var(--blue-900);
    background: linear-gradient(145deg, #eaf8fd, #d8f0fa);
    text-align: center;
}

    .photo-fallback span {
        color: var(--sky-deep);
        font-size: .68rem;
        font-weight: 800;
        letter-spacing: .11em;
        text-transform: uppercase;
    }

    .photo-fallback strong {
        font-family: var(--font-display);
        font-size: 1.6rem;
        font-weight: 600;
    }

/* =========================================================
   MOTION V6 — CINEMATIC PREMIUM LAYER
   Añadido sobre la identidad existente sin dependencias.
========================================================= */
:root {
    --ease-out-expo: cubic-bezier(.16,1,.3,1);
    --ease-spring: cubic-bezier(.2,.9,.25,1.18);
    --motion-x: 50vw;
    --motion-y: 35vh;
    --scroll-v: 0;
}

html.motion-pro {
    scroll-behavior: smooth;
}

body::before {
    content: "";
    position: fixed;
    z-index: -1;
    inset: 0;
    pointer-events: none;
    opacity: .72;
    background:
        radial-gradient(620px circle at var(--motion-x) var(--motion-y), rgba(105,198,236,.09), transparent 62%),
        radial-gradient(460px circle at calc(var(--motion-x) + 14vw) calc(var(--motion-y) + 20vh), rgba(62,178,226,.045), transparent 68%);
    transition: opacity .3s ease;
}

/* Cursor nativo del sistema: no se dibuja ningún puntero personalizado. */

/* Entrada inicial de página */
.motion-pro .site-header {
    transform: translate3d(0,var(--header-shift,0),0);
    will-change: transform;
}


.motion-pro .brand-logo {
    transform-origin: 50% 50%;
}

.motion-pro .brand:hover .brand-logo {
    animation: logoHello .72s var(--ease-spring) both;
}

@keyframes logoHello {
    0% { transform: translateY(0) rotate(0) scale(1); }
    36% { transform: translateY(-4px) rotate(-3deg) scale(1.04); }
    68% { transform: translateY(-1px) rotate(2deg) scale(1.025); }
    100% { transform: translateY(-2px) rotate(0) scale(1.025); }
}

.main-nav a::before {
    content: "";
    position: absolute;
    width: 5px;
    height: 5px;
    top: 50%;
    left: -11px;
    border-radius: 50%;
    background: var(--sky-deep);
    opacity: 0;
    transform: translateY(-50%) scale(0);
    transition: opacity .25s ease, transform .35s var(--ease-spring);
}

.main-nav a:hover::before,
.main-nav a.is-active::before {
    opacity: .85;
    transform: translateY(-50%) scale(1);
}

/* Botones con profundidad y brillo que sigue al cursor */
.btn,
.quick-contact-item,
.age-tab {
    --btn-x: 50%;
    --btn-y: 50%;
}

.btn::after {
    content: "";
    position: absolute;
    inset: -2px;
    pointer-events: none;
    border-radius: inherit;
    opacity: 0;
    background: radial-gradient(90px circle at var(--btn-x) var(--btn-y), rgba(255,255,255,.45), transparent 62%);
    transition: opacity .25s ease;
}

.btn:hover::after { opacity: .7; }

.btn > * { position: relative; z-index: 2; }

/* HERO cinematográfico */
.hero::after {
    content: "";
    position: absolute;
    z-index: 0;
    width: 48vw;
    aspect-ratio: 1;
    right: -20vw;
    top: 5vh;
    pointer-events: none;
    border-radius: 50%;
    border: 1px solid rgba(62,178,226,.12);
    box-shadow: 0 0 0 80px rgba(105,198,236,.025), 0 0 0 170px rgba(105,198,236,.018);
    animation: orbitalHalo 14s ease-in-out infinite alternate;
}

@keyframes orbitalHalo {
    from { transform: translate3d(0,-18px,0) scale(.94) rotate(-8deg); opacity: .55; }
    to { transform: translate3d(-5vw,38px,0) scale(1.08) rotate(16deg); opacity: .9; }
}

.hero-grid::before,
.hero-grid::after {
    content: "";
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(2px);
}

.hero-grid::before {
    width: 280px;
    height: 280px;
    left: -170px;
    top: 13%;
    background: radial-gradient(circle, rgba(105,198,236,.13), rgba(105,198,236,0) 70%);
    animation: heroAuraA 9s ease-in-out infinite alternate;
}

.hero-grid::after {
    width: 220px;
    height: 220px;
    right: 26%;
    bottom: -80px;
    background: radial-gradient(circle, rgba(62,178,226,.11), rgba(62,178,226,0) 72%);
    animation: heroAuraB 11s ease-in-out infinite alternate;
}

@keyframes heroAuraA { to { transform: translate3d(90px,45px,0) scale(1.18); } }
@keyframes heroAuraB { to { transform: translate3d(-65px,-35px,0) scale(.86); } }

.hero-kicker .kicker-line {
    position: relative;
    overflow: visible;
    transform-origin: left;
    animation: kickerLine 1.05s var(--ease-out-expo) .2s both;
}

.hero-kicker .kicker-line::after {
    content: "";
    position: absolute;
    top: -2px;
    right: -1px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--sky-deep);
    box-shadow: 0 0 0 5px rgba(22,143,195,.09);
}

@keyframes kickerLine { from { transform: scaleX(0); opacity: 0; } to { transform: scaleX(1); opacity: 1; } }

.motion-pro .hero-title .word-inner {
    will-change: transform, opacity, filter;
}

.motion-pro .hero:not(.is-ready) .hero-title .word-inner {
    filter: blur(10px);
}

.motion-pro .hero.is-ready .hero-title .word-inner {
    filter: blur(0);
    transition-property: transform, opacity, filter;
    transition-duration: .9s, .7s, .8s;
    transition-timing-function: var(--ease-out-expo), ease, ease;
}

.hero-title em {
    position: relative;
    text-shadow: 0 10px 35px rgba(22,143,195,.08);
}

.hero-image-wrap::after {
    content: "";
    position: absolute;
    z-index: 3;
    inset: -14px;
    pointer-events: none;
    border: 1px solid rgba(255,255,255,.62);
    border-radius: 50% 50% 40% 60% / 55% 40% 60% 45%;
    opacity: .52;
    transform: rotate(-2deg);
    transition: transform 1.1s var(--ease-out-expo), opacity .5s ease;
}

.hero-image-wrap:hover::after {
    transform: rotate(3deg) scale(1.018);
    opacity: .82;
}

.hero-image-overlay::after {
    content: "";
    position: absolute;
    inset: -25%;
    background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.28) 48%, transparent 61%);
    transform: translate3d(-55%,0,0) rotate(8deg);
    animation: heroSheen 7s ease-in-out 1.8s infinite;
}

@keyframes heroSheen {
    0%, 68% { transform: translate3d(-58%,0,0) rotate(8deg); opacity: 0; }
    76% { opacity: .9; }
    92%,100% { transform: translate3d(62%,0,0) rotate(8deg); opacity: 0; }
}

.hero-floating-card {
    will-change: transform;
}

.hero.is-ready .hero-floating-card-top { animation: floatCardA 5.8s ease-in-out 1.2s infinite; }
.hero.is-ready .hero-floating-card-bottom { animation: floatCardB 6.6s ease-in-out 1.6s infinite; }

@keyframes floatCardA { 0%,100% { translate: 0 0; } 50% { translate: 0 -9px; } }
@keyframes floatCardB { 0%,100% { translate: 0 0; } 50% { translate: 0 8px; } }

.hero-doctor-monogram {
    position: relative;
    overflow: visible;
}

.hero-doctor-monogram::after {
    content: "";
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 1px solid rgba(22,143,195,.18);
    animation: monogramPulse 3.8s ease-in-out infinite;
}

@keyframes monogramPulse { 50% { transform: scale(1.18); opacity: 0; } }

.hero-trust div {
    transition: transform .42s var(--ease-out-expo), background .3s ease;
}
.hero-trust div:hover { transform: translateY(-5px); }
.hero-trust span { transition: transform .35s var(--ease-spring); }
.hero-trust div:hover span { transform: translateX(4px); }

/* Reveal V6: alternado, blur y perspectiva */
.motion-pro .reveal {
    --reveal-x: 0px;
    --reveal-y: 34px;
    opacity: 0;
    filter: blur(8px);
    transform: perspective(1000px) translate3d(var(--reveal-x),var(--reveal-y),0) rotateX(2deg) scale(.985);
    transition:
        opacity .8s ease var(--reveal-delay,0ms),
        filter .9s ease var(--reveal-delay,0ms),
        transform 1s var(--ease-out-expo) var(--reveal-delay,0ms);
}

.motion-pro .reveal[data-reveal-dir="left"] { --reveal-x: -42px; --reveal-y: 10px; }
.motion-pro .reveal[data-reveal-dir="right"] { --reveal-x: 42px; --reveal-y: 10px; }
.motion-pro .reveal[data-reveal-dir="scale"] { --reveal-y: 12px; transform: perspective(1000px) translate3d(0,12px,0) scale(.93); }

.motion-pro .reveal.is-visible {
    opacity: 1;
    filter: blur(0);
    transform: perspective(1000px) translate3d(0,0,0) rotateX(0) scale(1);
}

/* Títulos de sección con palabras escalonadas */
.motion-word-mask {
    display: inline-block;
    overflow: clip;
    vertical-align: bottom;
    padding: .08em .02em .11em;
    margin: -.08em -.02em -.11em;
}
.motion-word-item {
    display: inline-block;
    opacity: 0;
    filter: blur(7px);
    transform: translate3d(0,105%,0) rotate(1.5deg);
    transition: transform .82s var(--ease-out-expo), opacity .6s ease, filter .7s ease;
    transition-delay: var(--word-delay,0ms);
}
.motion-title-ready.is-visible .motion-word-item,
.motion-title-ready.motion-title-visible .motion-word-item {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0,0,0) rotate(0);
}

/* Quick contact: onda luminosa al pasar */
.quick-contact-item {
    position: relative;
    overflow: hidden;
}
.quick-contact-item::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(170px circle at var(--btn-x) var(--btn-y), rgba(105,198,236,.16), transparent 70%);
    opacity: 0;
    transition: opacity .3s ease;
}
a.quick-contact-item:hover::after { opacity: 1; }
.quick-icon { transition: transform .42s var(--ease-spring), background .28s ease, color .28s ease; }
a.quick-contact-item:hover .quick-icon { transform: rotate(45deg) scale(1.08); color: var(--white); background: var(--sky-deep); }

/* Doctor */
.doctor-photo-card::before,
.family-photo::before,
.gallery-photo::before {
    content: "";
    position: absolute;
    z-index: 3;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background: linear-gradient(120deg, transparent 25%, rgba(255,255,255,.18) 45%, transparent 63%);
    transform: translateX(-120%);
    transition: transform 1.05s var(--ease-out-expo);
}
.doctor-photo-card:hover::before,
.family-photo:hover::before,
.gallery-photo:hover::before { transform: translateX(120%); }

.doctor-accent-card {
    overflow: hidden;
    transition: transform .55s var(--ease-out-expo), box-shadow .55s ease;
}
.doctor-accent-card::after {
    content: "";
    position: absolute;
    width: 140px;
    height: 140px;
    right: -55px;
    top: -65px;
    border-radius: 50%;
    border: 1px solid rgba(22,143,195,.13);
    box-shadow: 0 0 0 24px rgba(22,143,195,.025);
    transition: transform .7s var(--ease-out-expo);
}
.doctor-accent-card:hover { transform: translateY(-8px) rotate(-.4deg); box-shadow: var(--shadow-md); }
.doctor-accent-card:hover::after { transform: scale(1.25) translate(-8px,8px); }

.doctor-point { position: relative; transition: padding .42s var(--ease-out-expo), background .3s ease; }
.doctor-point::before {
    content: "";
    position: absolute;
    left: 0;
    top: 20%;
    bottom: 20%;
    width: 2px;
    border-radius: 9px;
    background: linear-gradient(var(--sky),var(--sky-deep));
    transform: scaleY(0);
    transition: transform .4s var(--ease-out-expo);
}
.doctor-point:hover { padding-left: 15px; background: linear-gradient(90deg,rgba(105,198,236,.05),transparent); }
.doctor-point:hover::before { transform: scaleY(1); }

/* Tratamientos: directorio vivo */
.treatment-entry {
    isolation: isolate;
    transition: transform .48s var(--ease-out-expo), background .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.treatment-entry::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: 210px;
    height: 210px;
    left: var(--entry-x,50%);
    top: var(--entry-y,50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(105,198,236,.13), transparent 70%);
    opacity: 0;
    transform: translate(-50%,-50%) scale(.45);
    transition: opacity .32s ease, transform .55s var(--ease-out-expo);
}
.treatment-entry:hover {
    transform: translate3d(7px,-3px,0);
    box-shadow: 0 18px 48px rgba(16,56,82,.055);
}
.treatment-entry:hover::before { opacity: 1; transform: translate(-50%,-50%) scale(1); }
.treatment-entry h3::after {
    content: " ↗";
    display: inline-block;
    color: var(--sky-deep);
    opacity: 0;
    transform: translate(-7px,6px);
    transition: opacity .3s ease, transform .4s var(--ease-spring);
}
.treatment-entry:hover h3::after { opacity: .55; transform: translate(2px,-2px); }
.treatment-entry-cta h3::after { content: ""; }

/* Family tabs */
.age-tabs { position: relative; }
.age-tab { overflow: hidden; transition: transform .35s var(--ease-spring), color .28s ease, background .28s ease, border-color .28s ease; }
.age-tab:hover { transform: translateY(-3px); }
.age-tab.is-active { box-shadow: 0 12px 30px rgba(22,143,195,.11); }
.age-panel { position: relative; overflow: hidden; }
.age-panel::after {
    content: "";
    position: absolute;
    right: -40px;
    bottom: -70px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(105,198,236,.11), transparent 70%);
    transition: transform .7s var(--ease-out-expo);
}
.age-panel:hover::after { transform: scale(1.2) translate(-18px,-10px); }
.age-panel-index { display: inline-block; transition: transform .45s var(--ease-spring); }
.age-panel:not(.is-switching):hover .age-panel-index { transform: translateY(-4px) rotate(-4deg); }

/* Experience: línea que se dibuja y pasos con spotlight */
.experience-steps { position: relative; }
.experience-step { position: relative; overflow: hidden; }
.experience-step::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(220px circle at var(--step-x,50%) var(--step-y,50%), rgba(105,198,236,.11), transparent 72%);
    opacity: 0;
    transition: opacity .32s ease;
}
.experience-step:hover::before { opacity: 1; }
.experience-step .step-line > span {
    display: inline-grid;
    place-items: center;
    transition: transform .42s var(--ease-spring), color .3s ease;
}
.experience-step:hover .step-line > span { transform: translateY(-5px) rotate(-5deg) scale(1.08); color: var(--sky); }

/* Galería */
.clinic-gallery-section { overflow: clip; }
.gallery-photo span {
    transition: transform .45s var(--ease-out-expo), background .3s ease;
    backdrop-filter: blur(10px);
}
.gallery-photo:hover span { transform: translate3d(0,-7px,0); }
.gallery-photo img { scale: 1.045; }
.gallery-photo:hover img { scale: 1.095; }

/* Location */
.map-card { transition: transform .6s var(--ease-out-expo), box-shadow .6s ease; }
.map-card:hover { transform: translateY(-7px); box-shadow: 0 35px 90px rgba(16,56,82,.16); }
.location-panel { position: relative; overflow: hidden; }
.location-panel::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    right: -140px;
    bottom: -140px;
    border-radius: 50%;
    border: 1px solid rgba(105,198,236,.12);
    box-shadow: 0 0 0 38px rgba(105,198,236,.025), 0 0 0 78px rgba(105,198,236,.018);
    pointer-events: none;
    transition: transform .8s var(--ease-out-expo);
}
.location-panel:hover::after { transform: scale(1.12) translate(-22px,-18px); }

/* Contacto */
.contact-section { overflow: hidden; }
.contact-section::before,
.contact-section::after {
    content: "";
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
}
.contact-section::before {
    width: 430px;
    height: 430px;
    left: -230px;
    top: -100px;
    border: 1px solid rgba(105,198,236,.11);
    box-shadow: 0 0 0 60px rgba(105,198,236,.018), 0 0 0 120px rgba(105,198,236,.012);
    animation: contactOrbit 14s ease-in-out infinite alternate;
}
.contact-section::after {
    width: 260px;
    height: 260px;
    right: -120px;
    bottom: -80px;
    background: radial-gradient(circle,rgba(105,198,236,.09),transparent 70%);
    animation: contactOrbit 11s ease-in-out infinite alternate-reverse;
}
@keyframes contactOrbit { to { transform: translate3d(70px,40px,0) rotate(16deg) scale(1.12); } }

.contact-form-card { transform-style: preserve-3d; }
.form-group { position: relative; }
.form-group::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    border-radius: 8px;
    background: linear-gradient(90deg,var(--sky),var(--sky-deep));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .4s var(--ease-out-expo);
}
.form-group:focus-within::after { transform: scaleX(1); }
.btn-submit svg { transition: transform .4s var(--ease-spring); }
.btn-submit:hover svg { transform: translateX(5px); }

/* Footer */
.site-footer { position: relative; overflow: hidden; }
.site-footer::before {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    right: -180px;
    top: -190px;
    border-radius: 50%;
    border: 1px solid rgba(105,198,236,.08);
    box-shadow: 0 0 0 50px rgba(105,198,236,.018), 0 0 0 100px rgba(105,198,236,.012);
}
.footer-column a { position: relative; width: fit-content; transition: color .25s ease, transform .35s var(--ease-out-expo); }
.footer-column a:hover { color: var(--sky); transform: translateX(5px); }

/* WhatsApp: pulso solo del halo, sin mover el botón */
.whatsapp-floating::after {
    content: "";
    position: absolute;
    inset: -7px;
    border: 1px solid rgba(37,211,102,.38);
    border-radius: inherit;
    pointer-events: none;
    animation: waHalo 2.8s ease-out infinite;
}
@keyframes waHalo { 0% { opacity: .8; transform: scale(.92); } 70%,100% { opacity: 0; transform: scale(1.22); } }

/* Scroll velocity: un poquito de vida en piezas ambientales */
.motion-pro .hero-stamp { rotate: calc(var(--scroll-v) * .5deg); }

@media (max-width: 820px) {
    body::before { opacity: .45; }
    .hero::after { width: 80vw; right: -55vw; top: 16vh; }
    .hero.is-ready .hero-floating-card-top,
    .hero.is-ready .hero-floating-card-bottom { animation-duration: 7.5s; }
    .motion-pro .reveal { --reveal-y: 25px; --reveal-x: 0px !important; filter: blur(5px); }
    .treatment-entry:hover { transform: translateY(-2px); }
}


@media (prefers-reduced-motion: reduce) {
    body::before,
    .hero::after,
    .hero-grid::before,
    .hero-grid::after,
    .hero-image-overlay::after,
    .hero-floating-card,
    .hero-doctor-monogram::after,
    .contact-section::before,
    .contact-section::after,
    .whatsapp-floating::after { animation: none !important; }

    .motion-pro .reveal,
    .motion-word-item {
        opacity: 1 !important;
        filter: none !important;
        transform: none !important;
        transition: none !important;
    }

}

/* Fixes de integración V6 */
body.menu-open .site-header { transform: translate3d(0,0,0) !important; }
.hero-stamp { translate: 0 var(--hero-scroll-shift,0px); }
.hero-floating-card { margin-top: var(--float-scroll,0px); }

/* =========================================================
   CLÍNICA ELIZONDO DENTAL — REFINAMIENTO EDITORIAL V7
   Objetivo: más jerarquía, menos saturación y mejor conversión.
========================================================= */

:root {
    --sky: #72c9ea;
    --sky-strong: #35add9;
    --sky-deep: #147fae;
    --sky-pale: #eaf7fc;
    --sky-mist: #f4fafc;
    --blue-900: #0d3044;
    --blue-800: #173f54;
    --blue-700: #456777;
    --blue-500: #718894;
    --ink: #0d3044;
    --text: #516c79;
    --muted: #7b909a;
    --off-white: #fafcfd;
    --line: #dfebef;
    --line-strong: #cfE2e9;
    --shadow-sm: 0 12px 34px rgba(13,48,68,.07);
    --shadow-md: 0 24px 70px rgba(13,48,68,.11);
    --shadow-xl: 0 42px 105px rgba(13,48,68,.16);
}

body {
    background: #fafcfd;
}

.section {
    padding-block: 108px;
}

/* Eyebrows: el celeste queda como acento, no como color dominante. */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 17px;
    color: #5f7884;
    letter-spacing: .14em;
}

.eyebrow::before {
    content: "";
    width: 22px;
    height: 1px;
    flex: 0 0 22px;
    background: var(--sky-deep);
}

/* Títulos: base oscura + una sola palabra/frase de acento. */
.section-title,
.clinic-gallery-copy h2 {
    color: var(--ink);
    font-weight: 500;
}

.section-title .title-accent,
.clinic-gallery-copy h2 .title-accent {
    color: var(--sky-deep);
}

.section-lead {
    color: #5c7581;
}

/* Header más sobrio y nítido. */
.site-header.is-scrolled {
    background: rgba(255,255,255,.94);
    border-color: rgba(207,226,233,.9);
    box-shadow: 0 10px 34px rgba(13,48,68,.055);
}

.main-nav a {
    color: #496978;
    font-weight: 650;
}

.main-nav a:hover,
.main-nav a.is-active {
    color: var(--ink);
}

.main-nav a::after {
    height: 2px;
    border-radius: 99px;
    background: var(--sky-deep);
}

/* CTAs: menos "neón", más clínica premium. */
.btn-primary {
    background: linear-gradient(135deg, #2fa8d5 0%, #147fae 58%, #116f98 100%);
    box-shadow: 0 14px 32px rgba(20,127,174,.20);
}

.btn-primary:hover {
    box-shadow: 0 18px 42px rgba(20,127,174,.26);
}

.btn-ghost {
    background: rgba(255,255,255,.68);
    border-color: #d4e4ea;
}

/* Hero: mantiene la identidad bicolor, pero con más aire editorial. */
.hero {
    background:
        radial-gradient(circle at 12% 12%, rgba(114,201,234,.17), transparent 27%),
        radial-gradient(circle at 89% 80%, rgba(114,201,234,.10), transparent 23%),
        linear-gradient(135deg, #fbfeff 0%, #f0f9fc 54%, #fbfdfe 100%);
}

.hero-title {
    max-width: 780px;
    color: var(--ink);
    font-weight: 500;
    text-wrap: balance;
}

.hero-title em {
    color: var(--sky-deep);
}

.hero-description {
    max-width: 655px;
    color: #536f7d;
    font-size: 1.02rem;
}

.hero-trust {
    border-color: #d5e7ed;
}

.hero-trust div + div {
    border-color: #d5e7ed;
}

.hero-trust span {
    color: #6f8d9b;
}

.hero-trust strong {
    color: #365a6c;
}

.glass-card {
    border-color: rgba(255,255,255,.95);
    background: rgba(255,255,255,.88);
    box-shadow: 0 18px 42px rgba(13,48,68,.11);
}

/* Barra de contacto: más compacta y de lectura rápida. */
.quick-contact-bar {
    border-color: #dce9ee;
    box-shadow: 0 12px 40px rgba(13,48,68,.035);
}

.quick-contact-item {
    min-height: 92px;
}

.quick-contact-item small {
    color: #80949d;
}

.quick-contact-item strong {
    color: var(--ink);
}

/* Secciones alternadas con diferencias muy sutiles. */
.doctor-section,
.family-section,
.location-section {
    background: #ffffff;
}

.treatments-section {
    background: linear-gradient(180deg, #f7fbfc 0%, #ffffff 100%);
}

.clinic-gallery-section {
    background: #f6fafc;
}

.faq-section {
    background: #f5fafc;
}

/* Doctor: menos efecto "tarjeta de app", más editorial. */
.doctor-accent-card {
    border-color: #d7e8ee;
    background: rgba(245,251,253,.96);
    box-shadow: 0 18px 46px rgba(13,48,68,.085);
}

.doctor-accent-card p {
    color: #365d70;
}

/* Tratamientos: interacción más contenida y profesional. */
.treatment-entry {
    transition: background .25s ease, transform .28s ease, box-shadow .28s ease;
}

.treatment-entry:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,.82);
    box-shadow: 0 14px 38px rgba(13,48,68,.04);
}

.treatment-entry h3::after {
    display: none !important;
}

.treatment-number {
    color: #7793a0;
}

/* Tabs: el estado activo usa tinta oscura; el celeste queda secundario. */
.age-tab:hover {
    color: var(--ink);
    background: var(--sky-pale);
    border-color: #cce4ee;
}

.age-tab.is-active,
.age-tab.is-active:hover {
    color: #fff;
    background: var(--ink);
    border-color: var(--ink);
    box-shadow: 0 12px 28px rgba(13,48,68,.12);
}

.age-panel {
    background: #f7fbfc;
    border-color: #d9e8ed;
}

/* Sección oscura: contraste alto sin exceso de celeste. */
.experience-section {
    background:
        radial-gradient(circle at 88% 20%, rgba(114,201,234,.10), transparent 30%),
        linear-gradient(140deg, #0b2d40 0%, #123d53 100%);
}

.experience-intro .eyebrow {
    color: #a8cbd9;
}

.experience-intro .eyebrow::before {
    background: #73c9e9;
}

.experience-intro .section-title .title-accent {
    color: #79cae9;
}

/* FAQ: estado abierto más claro, sin exceso de movimiento. */
.faq-item {
    border-color: #d7e7ed;
}

.faq-item[open] {
    background: rgba(255,255,255,.62);
}

.faq-item[open]::before {
    background: var(--sky-deep);
}

/* Contacto: la sección de conversión debe sentirse sólida y confiable. */
.contact-section {
    background:
        radial-gradient(circle at 84% 16%, rgba(114,201,234,.11), transparent 30%),
        linear-gradient(137deg, #092b3e 0%, #123f56 58%, #17556f 100%);
}

.contact-copy .eyebrow {
    color: #b0cfdb;
}

.contact-copy .eyebrow::before {
    background: #76cbe9;
}

.contact-title {
    font-weight: 500;
    text-wrap: balance;
}

.contact-title .title-accent {
    color: #78cbe9;
}

.contact-lead {
    color: #c5dbe4;
}

.contact-side-card {
    border-color: rgba(255,255,255,.13);
    background: rgba(255,255,255,.05);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}

.contact-form-card {
    padding: 34px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 28px;
    background: rgba(255,255,255,.985);
    box-shadow: 0 32px 90px rgba(4,24,37,.24);
}

.appointment-form {
    gap: 16px;
}

.form-group {
    gap: 7px;
}

.form-group::after {
    display: none;
}

.form-group label {
    color: #254c5e;
    font-size: .73rem;
    font-weight: 700;
}

.form-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.form-label-row > span {
    color: #8aa0aa;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
    min-height: 54px;
    color: var(--ink);
    background: #f8fbfc;
    border-color: #d8e6eb;
    border-radius: 14px;
}

.form-group textarea {
    min-height: 112px;
    line-height: 1.6;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: #c6dde6;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    background: #fff;
    border-color: var(--sky-deep);
    box-shadow: 0 0 0 4px rgba(20,127,174,.09);
}

.field-error {
    min-height: 14px;
}

.form-group-optional .field-error:empty {
    min-height: 0;
}

.btn-submit {
    min-height: 58px;
    margin-top: 2px;
}

.form-note {
    max-width: 440px;
    margin-inline: auto;
    color: #80949d;
    font-size: .68rem;
    line-height: 1.55;
}

/* Footer: profundidad y legibilidad. */
.site-footer {
    background: #082838;
}

.noventra-credit {
    cursor: default;
}

/* El WhatsApp flotante se mantiene visible, pero el halo deja de competir. */
.whatsapp-floating::after {
    opacity: .45;
}

/* Evita movimientos excesivos en piezas de contenido. */
.treatment-entry:hover,
.footer-column a:hover {
    translate: 0 0;
}

@media (max-width: 820px) {
    .section {
        padding-block: 84px;
    }

    .contact-section {
        padding-block: 88px;
    }

    .contact-form-card {
        padding: 25px 20px;
    }

    .hero-title,
    .section-title,
    .contact-title,
    .clinic-gallery-copy h2 {
        text-wrap: pretty;
    }
}

@media (max-width: 560px) {
    .section {
        padding-block: 72px;
    }

    .eyebrow {
        letter-spacing: .11em;
    }

    .quick-contact-item {
        min-height: 84px;
    }

    .contact-form-card {
        border-radius: 22px;
    }
}



/* =========================================================
   UI AUDIT / STABILITY FIXES — 2026
   Corrige conflictos entre el split animado y los acentos,
   estabiliza FAQ y reduce saltos visuales en hover/touch.
========================================================= */

/* Los spans creados por JS para animar palabras NO son acentos. */
.section-title,
.clinic-gallery-copy h2 { color: var(--ink); }

.section-title .title-accent,
.clinic-gallery-copy h2 .title-accent { color: var(--sky-deep); }

.experience-intro .section-title { color: var(--white); }
.experience-intro .section-title .title-accent { color: #79cae9; }

.contact-title { color: var(--white); }
.contact-title .title-accent { color: #78cbe9; }

/* FAQ: layout estable, icono +/- correcto y respuesta con aire. */
.faq-grid {
    grid-template-columns: minmax(300px,.82fr) minmax(0,1.18fr);
    gap: clamp(52px,6vw,84px);
}

.faq-heading .section-title {
    max-width: 520px;
    font-size: clamp(2.9rem,4.2vw,4.25rem);
    text-wrap: balance;
}

.faq-list {
    display: grid;
    gap: 10px;
    border-top: 0;
}

.faq-item {
    position: relative;
    overflow: visible;
    padding: 0 22px;
    border: 1px solid #d7e7ed;
    border-radius: 18px;
    background: rgba(255,255,255,.42);
    box-shadow: 0 1px 0 rgba(13,48,68,.01);
    transition: border-color .25s ease, background .25s ease, box-shadow .25s ease;
}

.faq-item::before { display: none; }

.faq-item summary {
    min-height: 78px;
    padding: 0;
    gap: 24px;
}

.faq-item summary span {
    color: var(--ink);
    transform: none !important;
    transition: color .2s ease;
}

.faq-item:hover summary span { color: #164f6d; transform: none !important; }

.faq-item summary i {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    background: rgba(255,255,255,.72);
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

/* El estado abierto debe mostrar un signo menos horizontal, no una barra vertical. */
.faq-item[open] summary i { transform: none !important; background: var(--sky-pale); border-color: #b9dce9; }
.faq-item[open] summary i::after { transform: translate(-50%,-50%) rotate(0deg); }

.faq-item p {
    max-width: none;
    margin: -2px 0 0;
    padding: 0 52px 23px 0;
    color: #5a7481;
    font-size: .94rem;
    line-height: 1.78;
}

.faq-item[open] {
    border-color: #c7e0e9;
    background: rgba(255,255,255,.92);
    box-shadow: 0 16px 44px rgba(13,48,68,.065);
}

/* Evitar micro saltos de layout en componentes de contenido. */
.treatment-entry:hover { transform: translateY(-2px); }
.doctor-point:hover { padding-left: 0; }
.contact-form-card:hover { transform: none; }
.map-card:hover { transform: translateY(-2px); }

/* Mejor foco en controles del FAQ. */
.faq-item summary:focus-visible {
    outline: 3px solid rgba(20,127,174,.22);
    outline-offset: 4px;
    border-radius: 12px;
}

@media (max-width: 920px) {
    .faq-grid { grid-template-columns: 1fr; gap: 34px; }
    .faq-heading .section-title { max-width: 720px; font-size: clamp(2.7rem,7.4vw,4.15rem); }
}

@media (max-width: 640px) {
    .faq-list { gap: 8px; }
    .faq-item { padding-inline: 17px; border-radius: 16px; }
    .faq-item summary { min-height: 72px; gap: 16px; font-size: 1.06rem; }
    .faq-item p { padding: 0 42px 20px 0; font-size: .9rem; }
    .faq-item summary i { width: 26px; height: 26px; flex-basis: 26px; }
}

@media (hover: none) {
    .treatment-entry:hover,
    .doctor-accent-card:hover,
    .doctor-point:hover,
    .age-tab:hover,
    .map-card:hover,
    .contact-form-card:hover { transform: none; }

    .doctor-point:hover { padding-left: 0; }
}


/* =========================================================
   FINAL UI STABILITY PATCH — anchors + doctor points
   ========================================================= */

/* El header es fijo. Damos margen real a cada destino de navegación para
   que el eyebrow/título nunca quede escondido debajo del header. */
#doctor,
#tratamientos,
#familias,
#ubicacion,
#preguntas,
#contacto {
    scroll-margin-top: calc(var(--header-h) + 28px);
}

/* Puntos del doctor: interacción sin mover el layout ni superponer el 01. */
.doctor-points {
    margin-top: 42px;
}

.doctor-point {
    position: relative;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
    padding: 25px 0;
    background: transparent;
    transition: background .28s ease;
}

.doctor-point::before {
    content: none;
}

.doctor-point::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 7px -14px;
    border: 1px solid rgba(22,143,195,.08);
    border-radius: 18px;
    background: linear-gradient(90deg, rgba(232,248,254,.72), rgba(255,255,255,.2));
    opacity: 0;
    transform: translateY(3px);
    transition: opacity .25s ease, transform .3s ease;
    pointer-events: none;
}

.doctor-point:hover {
    padding-left: 0;
    background: transparent;
}

.doctor-point:hover::after {
    opacity: 1;
    transform: translateY(0);
}

.doctor-point > span {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    color: var(--sky-deep);
    background: rgba(255,255,255,.88);
    font-family: var(--font-display);
    font-size: .72rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .02em;
    transition: border-color .25s ease, background .25s ease, color .25s ease;
}

.doctor-point:hover > span {
    border-color: rgba(22,143,195,.28);
    background: var(--sky-pale);
}

.doctor-point h3 {
    margin-top: 2px;
    font-size: .96rem;
    line-height: 1.35;
}

.doctor-point p {
    margin-top: 7px;
}

@media (max-width: 920px) {
    #doctor,
    #tratamientos,
    #familias,
    #ubicacion,
    #preguntas,
    #contacto {
        scroll-margin-top: calc(var(--header-h) + 18px);
    }
}

@media (max-width: 640px) {
    .doctor-point {
        grid-template-columns: 36px minmax(0, 1fr);
        gap: 15px;
        padding: 21px 0;
    }

    .doctor-point > span {
        width: 31px;
        height: 31px;
        font-size: .68rem;
    }

    .doctor-point::after {
        inset-inline: -9px;
    }
}

@media (hover: none) {
    .doctor-point::after {
        display: none;
    }
}
