
/* =========================================
   DR. ALEXANDER — MEDICINA CLÍNICA
   Identidad "Clínica editorial":
   · voz humana (serif) para las afirmaciones
   · voz clínica (sans) para la información
   · estructura por filetes y tono, no por cajas
   ========================================= */

:root {
    /* ===== COLOR ===== */
    --navy: #122a42;
    --navy-deep: #0c1e30;
    --blue: #3d6a8f;
    --blue-deep: #2c5170;
    --blue-light: #e9f0f6;
    --blue-wash: #eef2f6;
    --text: #22323f;
    --muted: #5c6b7a;
    --background: #f6f7f8;
    --white: #ffffff;
    --border: #dde4ea;
    --border-strong: #c6d2dc;
    --accent: #9dbdd2;

    /* ===== TIPOGRAFÍA ===== */
    --font-heading: "DM Serif Display", Georgia, "Times New Roman", serif;
    --font-body: "DM Sans", system-ui, -apple-system, sans-serif;

    --fs-eyebrow: .8125rem;   /* 13px */
    --fs-meta: .8125rem;      /* 13px */
    --fs-caption: .9375rem;    /* 15px */
    --fs-body: 1rem;          /* 16px */
    --fs-lead: 1.0625rem;     /* 17px */
    --fs-h3: 1.5rem;          /* 24px */
    --fs-h2: clamp(2rem, 3.4vw, 2.9rem);
    --fs-h1: clamp(2.6rem, 5vw, 4.2rem);

    --track-label: .14em;

    /* ===== RETÍCULA ===== */
    --container: 1160px;
    --header-height: 86px;
    --radius: 8px;
    --radius-sm: 6px;

    --dur: .25s;
}

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

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

body {
    min-width: 320px;
    background: var(--background);
    color: var(--text);
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

body,
button,
a {
    -webkit-tap-highlight-color: transparent;
}

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

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

button {
    font: inherit;
}

button,
a,
summary {
    touch-action: manipulation;
}

button:focus-visible,
a:focus-visible,
summary:focus-visible {
    outline: 2px solid var(--blue-deep);
    outline-offset: 4px;
}

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

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

.section-padding {
    padding-block: 104px;
}

/* =========================================
   ENCABEZADO
   ========================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

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

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

.logo-symbol {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-sm);
    background: var(--navy);
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 27px;
    line-height: 1;
}

.logo-copy {
    display: grid;
    gap: 3px;
    line-height: 1.2;
}

.logo-copy strong {
    color: var(--navy);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .1em;
}

.logo-copy small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .14em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links > a {
    color: var(--text);
    font-size: var(--fs-eyebrow);
    font-weight: 500;
    letter-spacing: .02em;
    transition: color var(--dur) ease;
}

.nav-links > a:hover {
    color: var(--blue);
}

.nav-links .nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    background: var(--navy);
    color: var(--white);
    font-weight: 600;
    transition: background var(--dur) ease;
}

.nav-links .nav-cta:hover {
    background: var(--blue);
}

.nav-cta span {
    font-size: 15px;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--white);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 5px auto;
    background: var(--navy);
    transition: transform var(--dur) ease;
}

.menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(3.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
}

/* =========================================
   TIPOGRAFÍA Y CONTROLES
   ========================================= */

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--blue);
    font-size: var(--fs-eyebrow);
    font-weight: 700;
    letter-spacing: var(--track-label);
    line-height: 1.5;
    text-transform: uppercase;
}

/* La cruz del logotipo, dibujada con CSS. */
.eyebrow-dot {
    position: relative;
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    color: var(--blue);
}

.eyebrow-dot::before,
.eyebrow-dot::after {
    content: "";
    position: absolute;
    background: currentColor;
}

.eyebrow-dot::before {
    top: 0;
    left: 5px;
    width: 2px;
    height: 12px;
}

.eyebrow-dot::after {
    top: 5px;
    left: 0;
    width: 12px;
    height: 2px;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 400;
    color: var(--navy);
    line-height: 1.12;
    letter-spacing: -.01em;
}

h1 span,
h2 span {
    color: var(--blue);
}

h1 {
    max-width: 15ch;
    margin-top: 22px;
    font-size: var(--fs-h1);
    line-height: 1.05;
}

h2 {
    font-size: var(--fs-h2);
    line-height: 1.12;
}

p {
    color: var(--muted);
}

.button {
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 15px 24px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-size: var(--fs-caption);
    font-weight: 600;
    letter-spacing: .04em;
    line-height: 1.4;
    transition:
        background var(--dur) ease,
        color var(--dur) ease,
        border-color var(--dur) ease;
}

.button span {
    font-size: 17px;
}

.button-primary {
    background: var(--navy);
    color: var(--white);
}

.button-primary:hover {
    background: var(--blue);
}

.button-light {
    background: var(--white);
    color: var(--navy);
}

.button-light:hover {
    background: var(--blue-light);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--navy);
    font-size: var(--fs-caption);
    font-weight: 600;
    transition: color var(--dur) ease;
}

.text-link:hover {
    color: var(--blue);
}

.text-link span {
    font-size: 17px;
}

/* =========================================
   HERO
   ========================================= */

.hero {
    padding-top: 92px;
    padding-bottom: 104px;
    overflow: clip;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 78px;
}

.hero-content {
    padding-block: 20px;
}

.hero-description {
    max-width: 46ch;
    margin-top: 24px;
    font-size: var(--fs-lead);
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 26px;
    margin-top: 34px;
}

.hero-note {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 46px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.note-mark {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    color: var(--blue);
}

.hero-note p {
    max-width: 42ch;
    font-size: var(--fs-caption);
    line-height: 1.65;
}

.hero-visual {
    position: relative;
    min-width: 0;
}

/* Firma de la casa: retrato con arco. */
.hero-image-wrap {
    position: relative;
    z-index: 1;
    height: 540px;
    overflow: hidden;
    border-radius: 48% 48% var(--radius) var(--radius);
    background: var(--blue-light);
}

.hero-image {
    height: 100%;
    object-fit: cover;
    object-position: center 28%;
}

.image-label {
    position: absolute;
    right: 18px;
    bottom: 18px;
    left: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border-radius: var(--radius-sm);
    background: var(--white);
}

.image-label-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    background: var(--blue-light);
    color: var(--navy);
    font-family: var(--font-heading);
    font-size: 25px;
    line-height: 1;
}

.image-label div {
    display: grid;
    gap: 3px;
}

.image-label strong {
    color: var(--navy);
    font-size: var(--fs-caption);
    font-weight: 600;
}

.image-label small {
    color: var(--muted);
    font-size: var(--fs-meta);
}

/* =========================================
   SOBRE MÍ
   ========================================= */

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

.about-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    gap: 96px;
}

.about-visual {
    position: relative;
    padding: 0 36px 36px 0;
}

/* Firma de la casa: horizontal con esquina cortada. */
.about-image-wrap {
    height: 520px;
    overflow: hidden;
    border-radius: var(--radius) var(--radius) 96px var(--radius);
    background: var(--blue-light);
}

.about-image-wrap img {
    height: 100%;
    object-fit: cover;
    /* Encuadre centrado en el profesional, no en el borde de la foto. */
    object-position: 72% center;
}

.about-caption {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 280px;
    padding: 24px 26px;
    border: 1px solid var(--border);
    border-radius: var(--radius) var(--radius) var(--radius) 0;
    background: var(--white);
}

.caption-mark {
    color: var(--blue);
    font-family: Georgia, serif;
    font-size: 34px;
    line-height: 1;
}

.about-caption p {
    margin-top: 6px;
    color: var(--navy);
    font-family: var(--font-heading);
    font-size: var(--fs-lead);
    line-height: 1.45;
}

.about-content h2 {
    margin-top: 18px;
    max-width: 20ch;
}

.about-content > p {
    max-width: 52ch;
    margin-top: 20px;
    font-size: var(--fs-lead);
    line-height: 1.75;
}

.about-content > p + p {
    margin-top: 14px;
}

.about-points {
    display: grid;
    gap: 24px;
    margin-block: 34px;
}

.about-point {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.point-mark {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    color: var(--blue);
}

.about-point strong {
    color: var(--navy);
    font-size: var(--fs-body);
    font-weight: 600;
}

.about-point p {
    margin-top: 2px;
    font-size: var(--fs-caption);
    line-height: 1.6;
}

/* =========================================
   SERVICIOS — índice editorial
   ========================================= */

.services {
    background: var(--blue-wash);
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 45px;
    margin-bottom: 46px;
}

.section-heading h2 {
    max-width: 16ch;
    margin-top: 16px;
}

.section-heading > p {
    max-width: 34ch;
    font-size: var(--fs-caption);
    line-height: 1.75;
}

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

.service-row {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr) auto;
    align-items: start;
    gap: 30px;

    padding: 34px 18px 34px 0;
    border-bottom: 1px solid var(--border-strong);

    transition: background-color var(--dur) ease;
}

.service-row:hover {
    background: var(--white);
}

.service-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    line-height: 1;
    color: var(--muted);
}

.service-body h3 {
    margin-bottom: 8px;
    font-size: var(--fs-h3);
    line-height: 1.15;
}

.service-body p {
    max-width: 58ch;
    font-size: var(--fs-caption);
    line-height: 1.7;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    align-self: center;
    white-space: nowrap;

    padding-bottom: 4px;
    border-bottom: 1px solid var(--border-strong);

    color: var(--navy);
    font-size: var(--fs-caption);
    font-weight: 600;

    transition: color var(--dur) ease, border-color var(--dur) ease;
}

.service-link span {
    color: var(--blue);
    font-size: 16px;
    transition: transform var(--dur) ease;
}

.service-link:hover {
    color: var(--blue);
    border-bottom-color: var(--blue);
}

.service-link:hover span {
    transform: translate(3px, -3px);
}

.services-disclaimer {
    margin-top: 22px;
    font-size: var(--fs-meta);
    color: var(--muted);
}

/* =========================================
   ENFOQUE DE ATENCIÓN
   ========================================= */

.attention {
    overflow: clip;
    background: var(--navy);
    color: var(--white);
}

.attention-grid {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    align-items: center;
    gap: 86px;
}

.eyebrow-light {
    color: var(--accent);
}

.attention-content h2 {
    margin-top: 20px;
    color: var(--white);
    max-width: 24ch;
}

.attention-content h2 span {
    color: var(--accent);
}

.attention-content > p {
    max-width: 48ch;
    margin-top: 24px;
    color: #c6d3de;
    font-size: var(--fs-lead);
    line-height: 1.75;
}

.attention-list {
    display: grid;
    gap: 0;
    margin-top: 38px;
}

.attention-list > div {
    display: flex;
    align-items: baseline;
    gap: 20px;

    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .16);
}

.attention-list > div:last-child {
    border-bottom: 0;
}

.attention-list > div > span {
    color: var(--accent);
    font-size: var(--fs-meta);
    font-weight: 700;
    letter-spacing: .1em;
}

.attention-list p {
    color: #c6d3de;
    font-size: var(--fs-caption);
}

.attention-list strong {
    color: var(--white);
    font-weight: 600;
}

.attention-visual {
    position: relative;
    padding: 0 0 36px 36px;
}

.attention-visual > img {
    height: 470px;
    border-radius: var(--radius) var(--radius) 80px var(--radius);
    object-fit: cover;
}

.attention-image-caption {
    position: absolute;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 320px;
    padding: 20px 24px;
    border-radius: var(--radius) var(--radius) var(--radius) 0;
    background: var(--white);
}

.attention-image-caption > span {
    color: var(--blue);
    font-family: var(--font-heading);
    font-size: 26px;
    line-height: 1;
}

.attention-image-caption p {
    color: var(--navy);
    font-size: var(--fs-caption);
    font-weight: 600;
}

/* Foco visible sobre el campo oscuro. */
.attention :focus-visible,
.appointment-box :focus-visible {
    outline-color: var(--accent);
}

/* =========================================
   TURNO
   ========================================= */

.appointment {
    padding-block: 84px;
    background: var(--white);
}

.appointment-box {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
    overflow: hidden;
    padding: 52px 56px;
    border-radius: var(--radius);
    background: var(--navy);
}

.appointment-content {
    position: relative;
    z-index: 1;
    max-width: 620px;
}

.appointment-content h2 {
    margin-top: 14px;
    color: var(--white);
    font-size: clamp(1.9rem, 3.2vw, 2.6rem);
    line-height: 1.1;
}

.appointment-content > p {
    max-width: 54ch;
    margin-top: 14px;
    color: #c6d3de;
    font-size: var(--fs-caption);
    line-height: 1.75;
}

.appointment-box .button {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.appointment-decoration {
    position: absolute;
    top: -110px;
    right: 28%;
    color: rgba(255, 255, 255, .06);
    font-family: var(--font-heading);
    font-size: 320px;
    line-height: 1;
    pointer-events: none;
}

/* =========================================
   PREGUNTAS FRECUENTES
   ========================================= */

.faq {
    background: var(--background);
}

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

.faq-intro h2 {
    margin-top: 18px;
    max-width: 18ch;
}

.faq-intro > p {
    max-width: 38ch;
    margin-top: 20px;
    font-size: var(--fs-caption);
    line-height: 1.75;
}

.faq-intro .text-link {
    margin-top: 26px;
}

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

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

.faq-item summary {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 24px 0;
    color: var(--navy);
    font-size: var(--fs-body);
    font-weight: 600;
    line-height: 1.5;
    list-style: none;
    cursor: pointer;
}

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

.faq-plus {
    position: relative;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    border: 1px solid var(--border-strong);
    border-radius: 50%;
}

.faq-plus::before,
.faq-plus::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 9px;
    height: 1px;
    background: var(--navy);
    content: "";
    transform: translate(-50%, -50%);
}

.faq-plus::after {
    transform: translate(-50%, -50%) rotate(90deg);
    transition: transform var(--dur) ease;
}

.faq-item[open] .faq-plus::after {
    transform: translate(-50%, -50%);
}

.faq-item > p {
    max-width: 60ch;
    padding: 0 46px 24px 0;
    font-size: var(--fs-caption);
    line-height: 1.75;
}

/* =========================================
   CONTACTO
   ========================================= */

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

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    align-items: center;
    gap: 96px;
}

.contact-content h2 {
    margin-top: 18px;
    max-width: 20ch;
}

.contact-content > p {
    max-width: 44ch;
    margin-top: 20px;
    font-size: var(--fs-lead);
    line-height: 1.75;
}

.contact-content .button {
    margin-top: 28px;
}

.contact-content .contact-note {
    max-width: 46ch;
    margin-top: 18px;
    font-size: var(--fs-meta);
    line-height: 1.7;
}

.contact-card {
    padding: 34px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--background);
}

.contact-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.contact-symbol {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-sm);
    background: var(--navy);
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 28px;
    line-height: 1;
}

.contact-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: var(--fs-meta);
    font-weight: 600;
    letter-spacing: .08em;
}

.contact-status > span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #6f9c86;
}

.contact-card h3 {
    margin-top: 26px;
    font-size: 1.65rem;
}

.contact-specialty {
    margin-top: 6px;
    font-size: var(--fs-caption);
}

.contact-divider {
    height: 1px;
    margin-block: 26px;
    background: var(--border-strong);
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 20px;
}

.detail-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--blue);
    font-size: 17px;
}

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

.contact-detail small {
    color: var(--muted);
    font-size: var(--fs-meta);
}

.contact-detail strong {
    color: var(--navy);
    font-size: var(--fs-caption);
    font-weight: 600;
}

.demo-notice {
    margin-top: 28px;
    padding: 13px 14px;
    border-radius: var(--radius-sm);
    background: var(--blue-light);
    color: var(--blue-deep);
    font-size: var(--fs-meta);
    line-height: 1.65;
}

/* =========================================
   FOOTER
   ========================================= */

.site-footer {
    border-top: 1px solid rgba(255, 255, 255, .1);
    background: var(--navy-deep);
    color: var(--white);
}

.footer-inner {
    min-height: 108px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    padding-block: 22px;
}

.footer-logo .logo-symbol {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--navy);
    font-size: 25px;
}

.footer-logo .logo-copy strong {
    color: var(--white);
    font-size: 12px;
}

.footer-logo .logo-copy small {
    color: #9db0c1;
    font-size: 10px;
}

.footer-inner > p,
.footer-copy {
    color: #b3c2cf;
    font-size: var(--fs-meta);
}

/* =========================================
   ANIMACIONES AL DESPLAZARSE
   ========================================= */

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

.reveal.reveal-pending {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 700ms ease,
        transform 700ms cubic-bezier(0.2, 0.65, 0.3, 1);
    transition-delay: var(--delay, 0ms);
}

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

/* =========================================
   TABLETS
   ========================================= */

@media (max-width: 1050px) {
    :root {
        --header-height: 78px;
    }

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

    .section-padding {
        padding-block: 84px;
    }

    .nav-links {
        gap: 18px;
    }

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

    .hero-grid {
        gap: 46px;
    }

    .hero-image-wrap {
        height: 470px;
    }

    .about-grid,
    .attention-grid,
    .contact-grid {
        gap: 56px;
    }

    .about-image-wrap {
        height: 460px;
    }

    .service-row {
        grid-template-columns: 64px minmax(0, 1fr) auto;
        gap: 24px;
    }

    .appointment-box {
        padding: 42px;
    }

    .faq-grid {
        gap: 56px;
    }
}

/* =========================================
   CELULARES Y TABLETS PEQUEÑAS
   ========================================= */

@media (max-width: 760px) {
    :root {
        --header-height: 72px;
    }

    .container {
        width: calc(100% - 40px);
    }

    .section-padding {
        padding-block: 68px;
    }

    .navbar {
        gap: 15px;
    }

    .logo-symbol {
        width: 38px;
        height: 38px;
        font-size: 24px;
    }

    .logo-copy strong {
        font-size: 12px;
    }

    .logo-copy small {
        font-size: 10px;
    }

    .menu-toggle {
        display: block;
        flex-shrink: 0;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 1px);
        right: 0;
        left: 0;
        display: flex;
        align-items: stretch;
        flex-direction: column;
        gap: 0;
        padding: 10px 20px 20px;
        border-bottom: 1px solid var(--border);
        background: var(--white);
        visibility: hidden;
        opacity: 0;
        transform: translateY(-8px);
        transition:
            opacity var(--dur) ease,
            transform var(--dur) ease,
            visibility var(--dur) ease;
    }

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

    .nav-links > a {
        padding: 15px 4px;
        border-bottom: 1px solid var(--border);
        font-size: 14px;
    }

    .nav-links .nav-cta {
        justify-content: space-between;
        margin-top: 14px;
        padding: 15px 18px;
        border-bottom: 0;
    }

    .hero {
        padding-top: 56px;
        padding-bottom: 76px;
    }

    .hero-grid,
    .about-grid,
    .attention-grid,
    .contact-grid,
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .hero-content {
        padding-block: 0;
    }

    h1 {
        margin-top: 18px;
        font-size: clamp(2.3rem, 8.4vw, 3.2rem);
    }

    h2 {
        font-size: clamp(1.8rem, 6.6vw, 2.4rem);
    }

    .hero-description {
        margin-top: 20px;
        font-size: var(--fs-body);
    }

    .hero-actions {
        align-items: flex-start;
        gap: 20px;
        margin-top: 26px;
    }

    .hero-note {
        margin-top: 32px;
    }

    .hero-visual {
        width: min(100%, 460px);
        margin-inline: auto;
    }

    .hero-image-wrap {
        height: clamp(340px, 92vw, 480px);
        border-radius: 45% 45% var(--radius) var(--radius);
    }

    .about-grid {
        gap: 52px;
    }

    .about-visual {
        width: min(100%, 460px);
        padding-right: 26px;
    }

    .about-image-wrap {
        height: clamp(320px, 88vw, 460px);
    }

    .about-caption {
        width: 240px;
        padding: 20px 22px;
    }

    .about-content h2 {
        margin-top: 16px;
    }

    .about-content > p {
        font-size: var(--fs-body);
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
        margin-bottom: 30px;
    }

    .section-heading h2 {
        margin-top: 14px;
    }

    .service-row {
        grid-template-columns: 46px minmax(0, 1fr);
        gap: 16px;
        padding: 26px 0;
    }

    .service-number {
        font-size: 1.5rem;
    }

    .service-link {
        grid-column: 2;
        justify-self: start;
        margin-top: 6px;
    }

    .attention-grid {
        gap: 40px;
    }

    .attention-visual {
        width: min(100%, 490px);
        margin-inline: auto;
        padding-left: 20px;
    }

    .attention-visual > img {
        height: clamp(300px, 80vw, 420px);
    }

    .appointment {
        padding-block: 56px;
    }

    .appointment-box {
        align-items: flex-start;
        flex-direction: column;
        gap: 26px;
        padding: 34px 26px;
    }

    .appointment-content h2 {
        font-size: 1.8rem;
    }

    .appointment-decoration {
        top: -50px;
        right: 0;
        font-size: 220px;
    }

    .faq-grid {
        gap: 34px;
    }

    .faq-intro > p {
        max-width: 44ch;
    }

    .contact-grid {
        gap: 36px;
    }

    .contact-card {
        padding: 26px;
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
        padding-block: 28px;
    }
}

/* =========================================
   CELULARES ESTRECHOS
   ========================================= */

@media (max-width: 380px) {
    .container {
        width: calc(100% - 32px);
    }

    h1 {
        font-size: 2.15rem;
    }

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

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

    .hero-actions .text-link {
        align-self: flex-start;
    }

    .image-label {
        right: 10px;
        bottom: 10px;
        left: 10px;
        padding: 13px;
    }

    .about-caption {
        width: 215px;
        padding: 17px;
    }

    .contact-card {
        padding: 21px;
    }

    .contact-status {
        font-size: 11px;
        letter-spacing: .04em;
    }
}

/* =========================================
   ACCESIBILIDAD: RESPETAR PREFERENCIAS DE MOVIMIENTO
   ========================================= */

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

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

    .reveal.reveal-pending,
    .reveal.reveal-pending.is-visible {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
