/* ============================================================
   CENTRAL DE SONRISAS — STYLES.CSS
   Estética: editorial dental premium · Fraunces + Manrope
   Mobile-first · Paleta azul confianza + arena cálida
   ============================================================ */

/* -----------------------------------------------------------
   0. PRELOADER
----------------------------------------------------------- */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--c-bg, #FBFAF7);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.8s cubic-bezier(0.76, 0, 0.24, 1),
                opacity 0.4s ease 0.4s;
}

.preloader.is-done {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.preloader__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

/* Logo-wrap: icon + wordmark */
.preloader__logo-wrap {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    opacity: 0;
    animation: plFadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
}

.preloader__icon {
    width: 52px;
    height: 52px;
    color: #165DFF;
    flex-shrink: 0;
}

/* SVG path draw-on animation */
.preloader__tooth {
    stroke-dasharray: 140;
    stroke-dashoffset: 140;
    animation: drawTooth 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.05s forwards;
}

.preloader__dot-icon {
    opacity: 0;
    animation: plFadeUp 0.3s ease 0.8s forwards;
}

@keyframes drawTooth {
    to { stroke-dashoffset: 0; }
}

.preloader__name {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.preloader__name-l1 {
    font-family: "Fraunces", "Times New Roman", serif;
    font-size: 1.6rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: #0F1A2E;
}

.preloader__name-l2 {
    font-family: "Fraunces", "Times New Roman", serif;
    font-size: 1.35rem;
    font-style: italic;
    color: #5C6470;
    margin-top: 2px;
}

/* Progress bar */
.preloader__bar {
    width: 140px;
    height: 2px;
    background: #E6E9EF;
    border-radius: 2px;
    overflow: hidden;
    opacity: 0;
    animation: plFadeUp 0.4s ease 0.55s forwards;
}

.preloader__progress {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #165DFF, #4D87FF);
    border-radius: 2px;
    animation: plProgress 1.1s cubic-bezier(0.4, 0, 0.2, 1) 0.6s forwards;
}

@keyframes plProgress {
    to { width: 100%; }
}

.preloader__tagline {
    font-size: 0.78rem;
    color: #8A93A0;
    letter-spacing: 0.04em;
    opacity: 0;
    animation: plFadeUp 0.4s ease 0.7s forwards;
}

@keyframes plFadeUp {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* -----------------------------------------------------------
   1. VARIABLES
----------------------------------------------------------- */
:root {
    /* Color */
    --c-blue: #165DFF;
    --c-blue-hover: #0E47D9;
    --c-blue-deep: #071B3A;
    --c-blue-soft: #EAF3FF;
    --c-blue-line: #D7E5FA;

    --c-white: #FFFFFF;
    --c-bg: #FBFAF7;
    /* off-white editorial cálido */
    --c-bg-alt: #F7F9FC;
    --c-sand: #F5EFE6;
    /* acento cálido (pared de ladrillo) */
    --c-sand-deep: #E9DFCE;

    --c-text: #0F1A2E;
    --c-text-soft: #5C6470;
    --c-text-muted: #8A93A0;
    --c-border: #E6E9EF;

    --c-accent: #C2532E;
    /* terracota sutil inspirada en ladrillo */

    /* Tipografía */
    --font-display: "Fraunces", "Times New Roman", serif;
    --font-body: "Manrope", system-ui, -apple-system, sans-serif;

    /* Spacing scale */
    --s-1: 0.25rem;
    --s-2: 0.5rem;
    --s-3: 0.75rem;
    --s-4: 1rem;
    --s-5: 1.5rem;
    --s-6: 2rem;
    --s-7: 3rem;
    --s-8: 4rem;
    --s-9: 6rem;
    --s-10: 8rem;

    /* Layout */
    --container: 1240px;
    --radius-sm: 10px;
    --radius: 18px;
    --radius-lg: 28px;
    --radius-xl: 36px;

    /* Shadows */
    --shadow-sm: 0 2px 10px rgba(15, 26, 46, 0.04);
    --shadow: 0 8px 30px rgba(15, 26, 46, 0.06);
    --shadow-lg: 0 24px 60px rgba(15, 26, 46, 0.10);

    /* Motion */
    --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
    --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
}

/* -----------------------------------------------------------
   2. RESET & BASE
----------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--c-text);
    background: var(--c-bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Padding inferior para barra mobile sticky */
    padding-bottom: 70px;
}

@media (min-width: 900px) {
    body {
        padding-bottom: 0;
    }
}

img,
svg,
video {
    display: block;
    max-width: 100%;
    height: auto;
}

img {
    object-fit: cover;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    cursor: pointer;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-display);
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--c-text);
    line-height: 1.08;
}

p {
    max-width: 65ch;
}

:focus-visible {
    outline: 2px solid var(--c-blue);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Selección */
::selection {
    background: var(--c-blue);
    color: var(--c-white);
}

/* -----------------------------------------------------------
   3. LAYOUT & UTILIDADES
----------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.25rem;
}

@media (min-width: 900px) {
    .container {
        padding: 0 2rem;
    }
}

section {
    padding: var(--s-8) 0;
}

@media (min-width: 900px) {
    section {
        padding: var(--s-10) 0;
    }
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--c-blue);
    margin-bottom: 1.25rem;
}

.eyebrow__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--c-blue);
    box-shadow: 0 0 0 4px rgba(22, 93, 255, 0.12);
}

.eyebrow--light {
    color: rgba(255, 255, 255, 0.85);
}

.eyebrow--light::before {
    content: "";
    width: 24px;
    height: 1px;
    background: rgba(255, 255, 255, 0.4);
    display: inline-block;
}

.section-header {
    max-width: 720px;
    margin-bottom: 3rem;
}

.section-header--center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-header--center .eyebrow {
    justify-content: center;
}

.section-title {
    font-size: clamp(1.85rem, 4vw + 1rem, 3.5rem);
    line-height: 1.05;
}

.section-title--xl {
    font-size: clamp(2.2rem, 5vw + 1rem, 4.5rem);
}

.section-title em {
    font-style: italic;
    color: var(--c-blue);
    font-weight: 400;
}

.section-lead {
    font-size: clamp(1rem, 0.5vw + 0.95rem, 1.2rem);
    color: var(--c-text-soft);
    margin-top: 1.25rem;
    line-height: 1.5;
    max-width: 56ch;
}

.section-header--center .section-lead {
    margin-left: auto;
    margin-right: auto;
}

/* Link con flecha */
.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--c-blue);
    padding-bottom: 3px;
    border-bottom: 1px solid currentColor;
    transition: gap 0.3s var(--ease), color 0.2s ease;
}

.link-arrow svg {
    transition: transform 0.3s var(--ease);
}

.link-arrow:hover {
    gap: 0.9rem;
    color: var(--c-blue-hover);
}

.link-arrow:hover svg {
    transform: translateX(3px);
}

.link-arrow--sm {
    font-size: 0.95rem;
}

/* Imagen placeholder genérica */
.img-placeholder {
    min-height: 200px;
    background: var(--c-blue-soft);
    display: block;
}

/* -----------------------------------------------------------
   4. BUTTONS
----------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.85rem 1.5rem;
    border-radius: 100px;
    border: 1px solid transparent;
    transition: all 0.25s var(--ease);
    white-space: nowrap;
    cursor: pointer;
    line-height: 1;
}

.btn--lg {
    padding: 1.05rem 1.9rem;
    font-size: 1rem;
}

.btn--sm {
    padding: 0.6rem 1.15rem;
    font-size: 0.85rem;
}

.btn--primary {
    background: var(--c-blue);
    color: var(--c-white);
    box-shadow: 0 4px 14px rgba(22, 93, 255, 0.28);
}

.btn--primary:hover {
    background: var(--c-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(22, 93, 255, 0.32);
}

.btn--ghost {
    background: transparent;
    color: var(--c-text);
    border-color: var(--c-border);
}

.btn--ghost:hover {
    background: var(--c-white);
    border-color: var(--c-text);
    transform: translateY(-2px);
}

.btn--ghost-light {
    background: transparent;
    color: var(--c-white);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn--ghost-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--c-white);
}

.btn--outline {
    background: transparent;
    color: var(--c-text);
    border-color: var(--c-blue);
    color: var(--c-blue);
}

.btn--outline:hover {
    background: var(--c-blue);
    color: var(--c-white);
}

/* -----------------------------------------------------------
   5. HEADER / NAV
----------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: transparent;
    padding: 1.1rem 0;
    transition: background 0.3s var(--ease), padding 0.3s var(--ease), box-shadow 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
}

.site-header.is-scrolled {
    background: rgba(251, 250, 247, 0.85);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    box-shadow: 0 1px 0 rgba(15, 26, 46, 0.06);
    padding: 0.7rem 0;
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--c-text);
    transition: opacity 0.2s ease;
}

.brand:hover {
    opacity: 0.75;
}

.brand__mark {
    width: 32px;
    height: 32px;
    color: var(--c-blue);
    flex-shrink: 0;
}

.brand__name {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand__line1 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.brand__line2 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-style: italic;
    color: var(--c-text-soft);
    margin-top: 1px;
}

/* Nav desktop */
.nav {
    display: none;
}

@media (min-width: 1000px) {
    .nav {
        display: block;
        flex: 1;
    }

    .nav__list {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        list-style: none;
    }

    .nav__list a {
        font-size: 0.92rem;
        font-weight: 500;
        color: var(--c-text-soft);
        position: relative;
        padding: 0.25rem 0;
        transition: color 0.2s ease;
    }

    .nav__list a::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -2px;
        width: 0;
        height: 1px;
        background: currentColor;
        transition: width 0.3s var(--ease);
    }

    .nav__list a:hover {
        color: var(--c-text);
    }

    .nav__list a:hover::after {
        width: 100%;
    }
}

.header__cta {
    display: none;
}

@media (min-width: 1000px) {
    .header__cta {
        display: inline-flex;
    }
}

/* Nav toggle (hamburger) */
.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    align-items: center;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.nav-toggle:hover {
    background: var(--c-blue-soft);
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--c-text);
    border-radius: 2px;
    transition: transform 0.3s var(--ease), opacity 0.2s ease;
}

.nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 1000px) {
    .nav-toggle {
        display: none;
    }
}

/* Nav mobile panel */
@media (max-width: 999px) {
    .nav {
        position: fixed;
        inset: 0;
        background: var(--c-bg);
        z-index: 99;
        padding: 6rem 1.5rem 3rem;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
        overflow-y: auto;
    }

    .nav.is-open {
        display: block;
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav__list {
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .nav__list li {
        border-bottom: 1px solid var(--c-border);
    }

    .nav__list a {
        display: block;
        padding: 1.25rem 0;
        font-family: var(--font-display);
        font-size: 1.6rem;
        letter-spacing: -0.01em;
        color: var(--c-text);
    }
}

/* -----------------------------------------------------------
   6. HERO
----------------------------------------------------------- */
.hero {
    position: relative;
    padding-top: 2rem;
    padding-bottom: var(--s-8);
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: -100px;
    right: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(22, 93, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Custom Load Animations for Hero */
.hero__content > * {
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeUp 0.8s var(--ease-smooth) forwards;
}

.hero__content .eyebrow { animation-delay: 0.1s; }
.hero__content .hero__title { animation-delay: 0.2s; }
.hero__content .hero__sub { animation-delay: 0.3s; }
.hero__content .hero__cta { animation-delay: 0.4s; }
.hero__content .hero__microcopy { animation-delay: 0.5s; }
.hero__content .hero__badges { animation-delay: 0.6s; }

.hero__visual {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
    animation: heroScaleIn 1s var(--ease-smooth) 0.3s forwards;
}

@keyframes heroFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroScaleIn {
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.hero__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

@media (min-width: 1000px) {
    .hero {
        padding-top: 3rem;
        padding-bottom: var(--s-10);
    }

    .hero__grid {
        grid-template-columns: 1.05fr 0.95fr;
        gap: 4rem;
    }
}

.hero__title {
    font-size: clamp(2.2rem, 4.5vw + 1rem, 4.4rem);
    line-height: 1.02;
    letter-spacing: -0.025em;
    margin-bottom: 1.4rem;
}

.hero__title em {
    font-style: italic;
    color: var(--c-blue);
    font-weight: 400;
}

.hero__sub {
    font-size: clamp(1rem, 0.5vw + 0.95rem, 1.2rem);
    color: var(--c-text-soft);
    margin-bottom: 2rem;
    line-height: 1.55;
    max-width: 52ch;
}

.hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.hero__microcopy {
    font-size: 0.85rem;
    color: var(--c-text-muted);
    margin-bottom: 2.5rem;
}

.hero__badges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    list-style: none;
    padding-top: 2rem;
    border-top: 1px solid var(--c-border);
}

.hero__badges li {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.hero__badges strong {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 2.5vw + 0.5rem, 2.4rem);
    font-weight: 500;
    color: var(--c-text);
    letter-spacing: -0.03em;
    line-height: 1;
}

.hero__badges span {
    font-size: 0.78rem;
    color: var(--c-text-soft);
    line-height: 1.3;
}

/* Visual del hero */
.hero__visual {
    position: relative;
}

.hero__image-wrap {
    position: relative;
    aspect-ratio: 4/5;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--c-blue-soft);
    box-shadow: var(--shadow-lg);
}

.hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__image-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: linear-gradient(145deg, var(--c-blue-soft) 0%, var(--c-sand) 100%);
    color: var(--c-blue-deep);
    opacity: 0;
    pointer-events: none;
    z-index: -1;
}

.hero__image-fallback svg {
    width: 120px;
    height: 120px;
    opacity: 0.5;
}

.hero__image-fallback span {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1rem;
    color: var(--c-text-soft);
}

/* Cuando la imagen falla, onerror agrega .img-placeholder */
.hero__image.img-placeholder {
    opacity: 0;
}

.hero__image.img-placeholder+.hero__image-fallback {
    opacity: 1;
    z-index: 1;
}

.hero__floating-card {
    position: absolute;
    bottom: 24px;
    left: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-radius: var(--radius);
    padding: 1.1rem 1.25rem;
    box-shadow: var(--shadow);
    animation: float-in 0.8s var(--ease-smooth) 0.4s both;
}

@media (min-width: 1000px) {
    .hero__floating-card {
        left: -30px;
        right: auto;
        max-width: 310px;
    }
}

.hero__floating-card-inner {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.hero__floating-card-inner svg {
    color: var(--c-blue);
    flex-shrink: 0;
    margin-top: 2px;
}

.hero__floating-card p {
    font-size: 0.9rem;
    line-height: 1.45;
    color: var(--c-text);
}

.hero__floating-card strong {
    color: var(--c-blue-deep);
}

@keyframes float-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* -----------------------------------------------------------
   7. BARRA DE CONFIANZA
----------------------------------------------------------- */
.trust-bar {
    padding: 1.75rem 0;
    border-top: 1px solid var(--c-border);
    border-bottom: 1px solid var(--c-border);
    background: var(--c-white);
}

.trust-bar__list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 1rem;
}

@media (min-width: 700px) {
    .trust-bar__list {
        grid-template-columns: repeat(4, 1fr);
    }
}

.trust-bar__list li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.trust-bar__list svg {
    width: 34px;
    height: 34px;
    color: var(--c-blue);
    flex-shrink: 0;
    padding: 6px;
    background: var(--c-blue-soft);
    border-radius: 10px;
}

.trust-bar__list strong {
    display: block;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--c-text);
    line-height: 1.25;
}

.trust-bar__list span {
    font-size: 0.78rem;
    color: var(--c-text-muted);
    line-height: 1.3;
}

/* -----------------------------------------------------------
   8. EMPATÍA
----------------------------------------------------------- */
.empathy {
    background: var(--c-bg-alt);
}

.empathy__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 900px) {
    .empathy__grid {
        grid-template-columns: 1fr 1fr;
        gap: 5rem;
        align-items: center;
    }
}

.empathy__cards {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.empathy__card {
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 1.25rem;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--c-text);
    line-height: 1.3;
    transition: all 0.3s var(--ease);
    min-height: 110px;
    display: flex;
    align-items: center;
}

.empathy__card:hover {
    border-color: var(--c-blue);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.empathy__card--accent {
    background: var(--c-blue-deep);
    color: var(--c-white);
    border-color: var(--c-blue-deep);
    font-style: italic;
    grid-column: span 2;
}

.empathy__card--accent:hover {
    border-color: var(--c-blue);
}

/* -----------------------------------------------------------
   9. SERVICES / TRATAMIENTOS
----------------------------------------------------------- */
.services__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 700px) {
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1000px) {
    .services__grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: minmax(440px, auto);
    }

    .service-card--lg {
        grid-column: span 2;
        grid-row: span 1;
    }
}

.service-card {
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--c-blue-line);
}

.service-card__image {
    position: relative;
    aspect-ratio: 4/3;
    background: var(--c-blue-soft);
    overflow: hidden;
}

.service-card--lg .service-card__image {
    aspect-ratio: 16/10;
}

.service-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease);
}

.service-card:hover .service-card__image img {
    transform: scale(1.05);
}

.service-card__body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.service-card__tag {
    display: inline-block;
    width: fit-content;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--c-blue);
    background: var(--c-blue-soft);
    padding: 0.3rem 0.65rem;
    border-radius: 6px;
}

.service-card__tag--urgent {
    color: var(--c-accent);
    background: rgba(194, 83, 46, 0.1);
}

.service-card h3 {
    font-size: 1.7rem;
    font-weight: 400;
    letter-spacing: -0.02em;
}

.service-card p {
    color: var(--c-text-soft);
    font-size: 0.95rem;
    line-height: 1.55;
    flex: 1;
}

.service-card .link-arrow--sm {
    margin-top: 0.5rem;
    align-self: flex-start;
}

.service-card--accent {
    background: var(--c-sand);
    border-color: var(--c-sand-deep);
}

.service-card--accent h3 {
    color: var(--c-text);
}

/* -----------------------------------------------------------
   10. PROCESS / PRIMERA CITA
----------------------------------------------------------- */
.process {
    background: var(--c-blue-deep);
    color: var(--c-white);
    position: relative;
    overflow: hidden;
}

.process::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 1000px;
    height: 1000px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(22, 93, 255, 0.2) 0%, transparent 60%);
    pointer-events: none;
}

.process .section-title {
    color: var(--c-white);
}

.process .section-lead {
    color: rgba(255, 255, 255, 0.7);
}

.timeline {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    counter-reset: step;
    position: relative;
    z-index: 1;
}

@media (min-width: 800px) {
    .timeline {
        grid-template-columns: repeat(5, 1fr);
        gap: 1rem;
    }
}

.timeline__step {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    padding: 1.5rem 1.25rem;
    transition: all 0.3s var(--ease);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.timeline__step:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-3px);
}

.timeline__num {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 400;
    color: var(--c-blue);
    line-height: 1;
    letter-spacing: -0.03em;
}

.timeline__step h3 {
    color: var(--c-white);
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1.25;
}

.timeline__step p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.88rem;
    line-height: 1.5;
}

/* Bloque "Para agendar solo necesitamos" */
.process__needs {
    margin-top: 4rem;
    background: var(--c-white);
    color: var(--c-text);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

@media (min-width: 900px) {
    .process__needs {
        grid-template-columns: 1.3fr 1fr;
        padding: 3rem 3.5rem;
        gap: 3rem;
    }
}

.process__needs h3 {
    font-size: clamp(1.5rem, 2vw + 0.8rem, 2rem);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.process__needs ul {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 600px) {
    .process__needs ul {
        grid-template-columns: 1fr 1fr;
    }
}

.process__needs ul li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--c-text);
    padding: 0.75rem 0;
    border-top: 1px solid var(--c-border);
}

.process__needs ul li:first-child,
.process__needs ul li:nth-child(2) {
    border-top: 0;
}

.process__needs ul li em {
    color: var(--c-text-muted);
    font-style: italic;
    font-size: 0.85rem;
}

.process__needs ul li span {
    font-family: var(--font-display);
    color: var(--c-blue);
    font-size: 0.9rem;
    font-weight: 500;
    min-width: 24px;
}

.process__needs-cta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
}

.process__needs-cta small {
    color: var(--c-text-muted);
    font-size: 0.82rem;
}

/* -----------------------------------------------------------
   11. SPECIALISTS
----------------------------------------------------------- */
.specialists__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 700px) {
    .specialists__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.specialist-card {
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.4s var(--ease);
}

.specialist-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--c-blue-line);
}

.specialist-card__image {
    position: relative;
    aspect-ratio: 4/5;
    background: linear-gradient(145deg, var(--c-blue-soft), var(--c-sand));
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.specialist-card__image img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease);
}

.specialist-card:hover .specialist-card__image img {
    transform: scale(1.04);
}

.specialist-card__initials {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 4.5rem;
    font-weight: 400;
    color: var(--c-blue-deep);
    opacity: 0.35;
    letter-spacing: -0.04em;
    z-index: 1;
}

.specialist-card__image.has-initials img {
    display: none;
}

.specialist-card__body {
    padding: 1.75rem;
}

.specialist-card__role {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--c-blue);
    display: block;
    margin-bottom: 0.5rem;
}

.specialist-card h3 {
    font-size: 1.75rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.specialist-card p {
    color: var(--c-text-soft);
    font-size: 0.95rem;
    line-height: 1.55;
}

/* -----------------------------------------------------------
   12. CLINIC / GALERÍA
----------------------------------------------------------- */
.clinic {
    background: var(--c-sand);
    position: relative;
}

.clinic__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    grid-auto-rows: 160px;
}

@media (min-width: 700px) {
    .clinic__grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
        grid-auto-rows: 200px;
    }
}

@media (min-width: 1000px) {
    .clinic__grid {
        grid-auto-rows: 240px;
    }
}

.clinic__item {
    position: relative;
    background: var(--c-sand-deep);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.5s var(--ease);
}

.clinic__item:hover {
    transform: scale(1.015);
}

.clinic__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease);
}

.clinic__item:hover img {
    transform: scale(1.06);
}

.clinic__item--tall {
    grid-row: span 2;
}

.clinic__item--wide {
    grid-column: span 2;
}

@media (min-width: 700px) {
    .clinic__item--tall {
        grid-row: span 2;
    }

    .clinic__item--wide {
        grid-column: span 2;
    }
}

.clinic__item--neon figcaption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 1rem 1.25rem;
    background: linear-gradient(to top, rgba(7, 27, 58, 0.85), transparent);
    color: var(--c-white);
    font-family: var(--font-display);
    font-style: italic;
    font-size: 0.95rem;
    line-height: 1.3;
}

/* -----------------------------------------------------------
   13. DIFERENCIADORES
----------------------------------------------------------- */
.differentiators__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 700px) {
    .differentiators__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1000px) {
    .differentiators__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.diff-card {
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: all 0.3s var(--ease);
    position: relative;
}

.diff-card:hover {
    border-color: var(--c-blue);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.diff-card__num {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--c-blue);
    font-weight: 500;
    letter-spacing: 0.05em;
}

.diff-card h3 {
    font-size: 1.3rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.diff-card p {
    color: var(--c-text-soft);
    font-size: 0.92rem;
    line-height: 1.55;
}

/* -----------------------------------------------------------
   14. BRANCHES / SUCURSALES
----------------------------------------------------------- */
.branches {
    background: var(--c-bg-alt);
}

.branches__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 3rem;
}

@media (min-width: 800px) {
    .branches__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

.branch-card {
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all 0.4s var(--ease);
}

.branch-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--c-blue-line);
}

.branch-card--featured {
    background: var(--c-blue-deep);
    color: var(--c-white);
    border-color: var(--c-blue-deep);
}

.branch-card--featured h3 {
    color: var(--c-white);
}

.branch-card--featured p {
    color: rgba(255, 255, 255, 0.7);
}

.branch-card--featured .branch-card__index {
    color: var(--c-blue);
}

.branch-card--featured .btn--outline {
    border-color: rgba(255, 255, 255, 0.4);
    color: var(--c-white);
}

.branch-card--featured .btn--outline:hover {
    background: var(--c-white);
    color: var(--c-blue-deep);
    border-color: var(--c-white);
}

.branch-card__head {
    display: flex;
    align-items: baseline;
    gap: 1rem;
}

.branch-card__index {
    font-family: var(--font-display);
    font-size: 0.95rem;
    color: var(--c-text-muted);
    letter-spacing: 0.05em;
}

.branch-card h3 {
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: -0.02em;
}

.branch-card p {
    color: var(--c-text-soft);
    font-size: 0.92rem;
    flex: 1;
}

.branch-card .btn {
    align-self: flex-start;
}

/* Lista de detalles de sucursal (dirección, tel, horario) */
.branch-card__info {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    flex: 1;
}

.branch-card__info li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.88rem;
    color: var(--c-text-soft);
    line-height: 1.45;
}

.branch-card__info li svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--c-blue);
}

.branch-card__info li a {
    color: var(--c-blue);
    font-weight: 600;
    transition: color 0.2s ease;
}

.branch-card__info li a:hover {
    color: var(--c-blue-hover);
}

/* Info en tarjeta azul oscuro (sucursal destacada) */
.branch-card--featured .branch-card__info li {
    color: rgba(255, 255, 255, 0.75);
}

.branch-card--featured .branch-card__info li svg {
    color: rgba(255, 255, 255, 0.5);
}

.branch-card--featured .branch-card__info li a {
    color: #7EB3FF;
}

.branch-card--featured .branch-card__info li a:hover {
    color: var(--c-white);
}

/* Título de la sucursal destacada (Norte em) */
.branch-card--featured h3 em {
    font-size: 0.75em;
    opacity: 0.7;
    font-style: italic;
}

.branches__map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--c-sand);
    aspect-ratio: 16/6;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.branches__map img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.branches__map figcaption {
    position: absolute;
    bottom: 1rem;
    left: 1.25rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(6px);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.8rem;
    color: var(--c-text);
    font-weight: 500;
}

/* -----------------------------------------------------------
   15. FAQ
----------------------------------------------------------- */
.faq__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 1000px) {
    .faq__grid {
        grid-template-columns: 0.8fr 1.2fr;
        gap: 5rem;
        align-items: start;
    }

    .faq__intro {
        position: sticky;
        top: 100px;
    }
}

.faq__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.faq__item {
    border-top: 1px solid var(--c-border);
    overflow: hidden;
}

.faq__item:last-child {
    border-bottom: 1px solid var(--c-border);
}

.faq__q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem 0;
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 1vw + 0.9rem, 1.4rem);
    font-weight: 400;
    color: var(--c-text);
    text-align: left;
    letter-spacing: -0.01em;
    transition: color 0.2s ease;
}

.faq__q:hover {
    color: var(--c-blue);
}

.faq__q svg {
    transition: transform 0.4s var(--ease);
    flex-shrink: 0;
    color: var(--c-blue);
}

.faq__q[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.faq__a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease);
}

.faq__a p {
    color: var(--c-text-soft);
    font-size: 1rem;
    line-height: 1.6;
    padding: 0 0 1.5rem;
    max-width: 60ch;
}

/* -----------------------------------------------------------
   16. CTA FINAL
----------------------------------------------------------- */
.cta-final {
    background: var(--c-blue-deep);
    color: var(--c-white);
    position: relative;
    overflow: hidden;
}

.cta-final::before {
    content: "";
    position: absolute;
    top: -150px;
    right: -150px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(22, 93, 255, 0.25) 0%, transparent 70%);
    pointer-events: none;
}

.cta-final__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

@media (min-width: 1000px) {
    .cta-final__grid {
        grid-template-columns: 1.3fr 0.7fr;
        gap: 4rem;
    }
}

.cta-final .section-title {
    color: var(--c-white);
}

.cta-final .section-title em {
    color: #78A6FF;
}

.cta-final .section-lead {
    color: rgba(255, 255, 255, 0.75);
}

.cta-final__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

.cta-final__micro {
    margin-top: 1.25rem;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.55);
}

.cta-final__visual {
    aspect-ratio: 4/5;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: linear-gradient(145deg, #1a4db3, #0a2355);
    box-shadow: var(--shadow-lg);
}

.cta-final__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* -----------------------------------------------------------
   17. FOOTER
----------------------------------------------------------- */
.footer {
    background: var(--c-bg-alt);
    padding: 4rem 0 0;
    border-top: 1px solid var(--c-border);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

@media (min-width: 700px) {
    .footer__grid {
        grid-template-columns: 1.3fr 0.8fr 0.8fr 0.8fr;
        gap: 3rem;
    }
}

.brand--footer {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.brand--footer .brand__mark {
    width: 28px;
    height: 28px;
}

.footer__brand p {
    color: var(--c-text-soft);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    max-width: 36ch;
}

.footer__col h4 {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--c-text-muted);
    margin-bottom: 1rem;
}

.footer__col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer__col li,
.footer__col a {
    font-size: 0.92rem;
    color: var(--c-text);
    transition: color 0.2s ease;
}

.footer__col a:hover {
    color: var(--c-blue);
}

.footer__bottom {
    margin-top: 3rem;
    border-top: 1px solid var(--c-border);
    padding: 1.5rem 0;
}

.footer__bottom-inner {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer__bottom-inner small {
    font-size: 0.78rem;
    color: var(--c-text-muted);
}

/* -----------------------------------------------------------
   18. BOTÓN FLOTANTE WHATSAPP
----------------------------------------------------------- */
.wa-float {
    position: fixed;
    bottom: 88px; /* Por encima de la mobile-bar en móvil */
    right: 20px;
    z-index: 55;
    background: #25D366;
    color: var(--c-white);
    padding: 0.9rem 1.25rem;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
    font-size: 0.92rem;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.wa-float:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 14px 34px rgba(37, 211, 102, 0.45);
}

.wa-float::before {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 100px;
    background: #25D366;
    opacity: 0;
    z-index: -1;
    animation: wa-pulse 2.5s ease-out infinite;
}

@keyframes wa-pulse {
    0%   { transform: scale(1);   opacity: 0.5; }
    70%  { transform: scale(1.2); opacity: 0; }
    100% { transform: scale(1.2); opacity: 0; }
}

@media (min-width: 900px) {
    .wa-float {
        bottom: 28px;
        right: 28px;
        display: inline-flex;
    }
}

/* -----------------------------------------------------------
   19. BARRA MOBILE STICKY
----------------------------------------------------------- */
.mobile-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--c-border);
    padding: 0.6rem 0.75rem;
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 0.5rem;
    box-shadow: 0 -4px 20px rgba(15, 26, 46, 0.06);
}

.mobile-bar__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.85rem 0.75rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.88rem;
    transition: transform 0.2s ease;
}

.mobile-bar__btn:active {
    transform: scale(0.97);
}

.mobile-bar__btn--primary {
    background: var(--c-blue);
    color: var(--c-white);
}

.mobile-bar__btn--secondary {
    background: transparent;
    color: var(--c-text);
    border: 1px solid var(--c-border);
}

@media (min-width: 900px) {
    .mobile-bar {
        display: none;
    }
}

/* -----------------------------------------------------------
   20. ANIMACIONES REVEAL
----------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s var(--ease-smooth), transform 0.8s var(--ease-smooth);
    will-change: opacity, transform;
}

/* Fallback: si el JS no cargó (archivo local, etc.), mostrar todo */
body:not(.js-ready) .reveal {
    opacity: 1;
    transform: none;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal--delay {
    transition-delay: 0.15s;
}

/* Stagger para colecciones (cards) */
.services__grid .reveal:nth-child(1) {
    transition-delay: 0s;
}

.services__grid .reveal:nth-child(2) {
    transition-delay: 0.08s;
}

.services__grid .reveal:nth-child(3) {
    transition-delay: 0.16s;
}

.services__grid .reveal:nth-child(4) {
    transition-delay: 0.24s;
}

.services__grid .reveal:nth-child(5) {
    transition-delay: 0.32s;
}

.services__grid .reveal:nth-child(6) {
    transition-delay: 0.4s;
}

.specialists__grid .reveal:nth-child(1) {
    transition-delay: 0s;
}

.specialists__grid .reveal:nth-child(2) {
    transition-delay: 0.12s;
}

.specialists__grid .reveal:nth-child(3) {
    transition-delay: 0.24s;
}

.differentiators__grid .reveal:nth-child(1) {
    transition-delay: 0s;
}

.differentiators__grid .reveal:nth-child(2) {
    transition-delay: 0.06s;
}

.differentiators__grid .reveal:nth-child(3) {
    transition-delay: 0.12s;
}

.differentiators__grid .reveal:nth-child(4) {
    transition-delay: 0.18s;
}

.differentiators__grid .reveal:nth-child(5) {
    transition-delay: 0.24s;
}

.differentiators__grid .reveal:nth-child(6) {
    transition-delay: 0.3s;
}

.empathy__cards .reveal:nth-child(1) {
    transition-delay: 0s;
}

.empathy__cards .reveal:nth-child(2) {
    transition-delay: 0.06s;
}

.empathy__cards .reveal:nth-child(3) {
    transition-delay: 0.12s;
}

.empathy__cards .reveal:nth-child(4) {
    transition-delay: 0.18s;
}

.empathy__cards .reveal:nth-child(5) {
    transition-delay: 0.24s;
}

.empathy__cards .reveal:nth-child(6) {
    transition-delay: 0.3s;
}

.timeline .reveal:nth-child(1) {
    transition-delay: 0s;
}

.timeline .reveal:nth-child(2) {
    transition-delay: 0.1s;
}

.timeline .reveal:nth-child(3) {
    transition-delay: 0.2s;
}

.timeline .reveal:nth-child(4) {
    transition-delay: 0.3s;
}

.timeline .reveal:nth-child(5) {
    transition-delay: 0.4s;
}

.trust-bar__list .reveal:nth-child(1) {
    transition-delay: 0s;
}

.trust-bar__list .reveal:nth-child(2) {
    transition-delay: 0.08s;
}

.trust-bar__list .reveal:nth-child(3) {
    transition-delay: 0.16s;
}

.trust-bar__list .reveal:nth-child(4) {
    transition-delay: 0.24s;
}

/* -----------------------------------------------------------
   21. PREFERS-REDUCED-MOTION
----------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .wa-float::before {
        display: none;
    }
}

/* -----------------------------------------------------------
   22. MICRO-ANIMACIONES AMBIENTALES
   Sutiles · No intrusivas · Respetan prefers-reduced-motion
----------------------------------------------------------- */

/* 1. Hero image — float suave continuo */
.hero__image-wrap {
    animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-10px); }
}

/* 2. Eyebrow dot — pulso de brillo */
.eyebrow__dot {
    animation: dotPulse 2.8s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(22, 93, 255, 0.12); }
    50%       { box-shadow: 0 0 0 8px rgba(22, 93, 255, 0.22); }
}

/* 3. Segundo orb decorativo hero abajo-izquierda */
.hero::after {
    content: "";
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(194, 83, 46, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    animation: orbDrift2 15s ease-in-out infinite alternate;
}

/* Orb principal hero */
.hero::before {
    animation: orbDrift 12s ease-in-out infinite alternate;
}

@keyframes orbDrift {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(-40px, 30px) scale(1.15); }
}

@keyframes orbDrift2 {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(30px, -20px) scale(1.2); }
}

/* 4. WhatsApp flotante — anillo pulsante adicional (solo el ::before en micro-anim) */
/* El .wa-float { position } ya está definido en la sección 18, no redefinir aquí */
.wa-float::before {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 100px;
    background: rgba(37, 211, 102, 0.35);
    animation: waRing 2.5s ease-out infinite;
    z-index: -1;
}

@keyframes waRing {
    0%   { transform: scale(1);   opacity: 0.6; }
    100% { transform: scale(1.55); opacity: 0; }
}

/* 5. Cards — shimmer (brillo cruzado) al hover */
.service-card::after,
.specialist-card::after,
.branch-card::after,
.diff-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(255, 255, 255, 0.42) 50%,
        transparent 60%
    );
    transition: left 0.55s ease;
    pointer-events: none;
}

.service-card:hover::after,
.specialist-card:hover::after,
.branch-card:hover::after,
.diff-card:hover::after {
    left: 140%;
}

/* 6. Hero badges — pop-in escalonado */
.hero__badges li {
    animation: badgePopIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero__badges li:nth-child(1) { animation-delay: 0.65s; }
.hero__badges li:nth-child(2) { animation-delay: 0.75s; }
.hero__badges li:nth-child(3) { animation-delay: 0.85s; }

@keyframes badgePopIn {
    from { opacity: 0; transform: scale(0.85) translateY(8px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* 7. Specialist card image — zoom suave al hover */
.specialist-card__image img {
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.specialist-card:hover .specialist-card__image img {
    transform: scale(1.07);
}

/* 8. Timeline numero — pop al aparecer con reveal */
.timeline__step.is-visible .timeline__num {
    animation: numPop 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes numPop {
    from { transform: scale(0.7); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}

/* 9. FAQ chevron — rotación suave */
.faq__q svg {
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq__q[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

/* 10. Link flecha — subrayado animado (reemplaza border estático) */
.link-arrow {
    border-bottom: none;
    background-image: linear-gradient(currentColor, currentColor);
    background-size: 100% 1px;
    background-repeat: no-repeat;
    background-position: left bottom 2px;
    padding-bottom: 3px;
}

/* 11. Empathy cards — entrada con escalado */
.empathy__card {
    transition: border-color 0.3s var(--ease), transform 0.35s var(--ease),
                box-shadow 0.35s var(--ease), background 0.3s ease;
}

/* 12. Número grande en hero — parpadeo de cursor al cargar */
.hero__badges strong {
    display: inline-block;
}

/* Glow sutil en botón primary en hover */
.btn--primary {
    position: relative;
    overflow: hidden;
}

.btn--primary::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
    pointer-events: none;
}

.btn--primary:hover::after {
    opacity: 1;
}

/* -----------------------------------------------------------
   OVERRIDE: prefers-reduced-motion para micro-animaciones
----------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .hero__image-wrap,
    .eyebrow__dot,
    .hero::before,
    .hero::after,
    .wa-float::before,
    .hero__badges li,
    .hero__content > * {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .hero__visual {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ================================================================
   23. RESPONSIVE OVERHAUL — Mobile-first refinements
   Breakpoints: 400 · 480 · 600 · 700 · 800 · 900 · 1000 · 1200px
================================================================ */

/* ---- GLOBAL ---- */
/* Body padding corregido para la barra mobile sticky (altura real ~72px) */
body {
    padding-bottom: 74px;
}

@media (min-width: 900px) {
    body { padding-bottom: 0; }
}

/* Evitar overflow horizontal en toda la página */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* ---- HERO — móvil pequeño (< 480px) ---- */
@media (max-width: 479px) {
    .hero__title {
        font-size: 1.9rem;
        line-height: 1.08;
    }

    .hero__cta {
        flex-direction: column;
    }

    .hero__cta .btn {
        width: 100%;
        justify-content: center;
    }

    .hero__badges {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .hero__badges li:last-child {
        grid-column: span 2;
    }

    .hero__floating-card {
        font-size: 0.82rem;
        padding: 0.85rem 1rem;
    }
}

/* Hero imagen — aspect-ratio más amigable en móvil */
@media (max-width: 699px) {
    .hero__image-wrap {
        aspect-ratio: 4/3;
        max-height: 320px;
    }
}

/* ---- BARRA DE CONFIANZA ---- */
@media (max-width: 479px) {
    .trust-bar__list {
        grid-template-columns: 1fr;
    }
}

/* ---- EMPATÍA ---- */
@media (max-width: 479px) {
    .empathy__cards {
        grid-template-columns: 1fr;
    }

    .empathy__card--accent {
        grid-column: span 1;
    }
}

/* ---- SERVICIOS / TRATAMIENTOS ---- */
/* Una columna en móvil pequeño */
@media (max-width: 479px) {
    .services__grid {
        grid-template-columns: 1fr;
    }
}

/* La card grande no ocupa 2 cols en tablet medio */
@media (min-width: 700px) and (max-width: 999px) {
    .service-card--lg {
        grid-column: span 2;
    }
}

/* ---- ESPECIALISTAS ---- */
.specialists__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 600px) {
    .specialists__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .specialists__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ---- GALERÍA CONSULTORIO ---- */
@media (max-width: 699px) {
    .clinic__grid {
        grid-template-columns: 1fr !important;
    }

    .clinic__item--tall,
    .clinic__item--wide,
    .clinic__item--neon {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }
}

/* ---- DIFERENCIADORES ---- */
@media (max-width: 479px) {
    .differentiators__grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 480px) and (max-width: 699px) {
    .differentiators__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---- SUCURSALES ---- */
@media (max-width: 479px) {
    .branches__grid {
        grid-template-columns: 1fr;
    }

    .branch-card h3 {
        font-size: 1.6rem;
    }
}

@media (min-width: 480px) and (max-width: 799px) {
    .branches__grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Mapa — más alto en móvil para que el SVG sea visible */
@media (max-width: 699px) {
    .branches__map {
        aspect-ratio: 16/9;
    }
}

/* ---- FAQ ---- */
@media (max-width: 699px) {
    .faq__q {
        font-size: 0.95rem;
    }

    .faq__q span {
        max-width: calc(100% - 36px);
    }
}

/* ---- CTA FINAL ---- */
@media (max-width: 699px) {
    .cta-final__buttons {
        flex-direction: column;
    }

    .cta-final__buttons .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ---- FOOTER ---- */
@media (max-width: 699px) {
    .footer__grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .footer__col ul li small {
        font-size: 0.78rem;
        color: var(--c-text-muted);
    }
}

@media (min-width: 700px) and (max-width: 999px) {
    .footer__grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ---- TIMELINE — móvil ---- */
@media (max-width: 599px) {
    .timeline__step {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* ---- PROCESO / PRIMERA CITA ---- */
@media (max-width: 699px) {
    .process__needs {
        flex-direction: column;
        gap: 2rem;
    }

    .process__needs-cta {
        align-items: flex-start;
    }

    .process__needs-cta .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ---- SECCIÓN GENERAL — padding reducido en mobile pequeño ---- */
@media (max-width: 479px) {
    section {
        padding: 3.5rem 0;
    }
}

/* ---- TIPOGRAFÍA — ajuste fino por breakpoint ---- */
@media (max-width: 479px) {
    .section-title {
        font-size: 1.75rem;
    }

    .section-lead {
        font-size: 0.97rem;
    }

    .branch-card p,
    .service-card__body p {
        font-size: 0.9rem;
    }
}

/* ---- PRELOADER — asegurar visibilidad en todos los tamaños ---- */
@media (max-width: 479px) {
    .preloader__name-l1 { font-size: 1.35rem; }
    .preloader__name-l2 { font-size: 1.15rem; }
    .preloader__icon    { width: 42px; height: 42px; }
}
