/* Podóloga Aurora · El alba de Aurora
   La página amanece al bajar: cada capítulo es un campo plano con el siguiente color del amanecer.
   El arco (tope semicircular, base recta) recorta toda imagen. Controles en píldora; lo demás, esquina recta. */

@font-face {
    font-family: "Albert Sans";
    src: url("../fonts/albert-sans-latin-wght-normal.woff2") format("woff2-variations"),
         url("../fonts/albert-sans-latin-wght-normal.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    /* campos del amanecer */
    --noche: #0F2537;
    --alba: #F2B8A2;
    --sol: #F08A2C;
    --dorado: #F5C85A;
    --cielo: #BEE1F0;
    --dia: #F3F7F9;
    --mediodia: #63B9E6;
    /* tinta y papel */
    --ink: #0D1E2C;
    --paper: #FFFFFF;
    --paper-soft: #C9D7E3;
    /* pasos de tono para superficies sobre cada campo */
    --step-ink: rgba(13, 30, 44, 0.07);
    --step-paper: rgba(255, 255, 255, 0.08);

    --font: "Albert Sans", "Segoe UI", system-ui, sans-serif;
    --text: 1.125rem;          /* 18px */
    --text-lg: 1.375rem;       /* 22px */
    --gutter: clamp(16px, 2.3vw, 32px);
    --gap-section: clamp(96px, 11vw, 192px);
    --nav-h: 76px;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
}

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

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: calc(var(--nav-h) + 16px);
    background: var(--noche);
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
    font-family: var(--font);
    font-size: var(--text);
    line-height: 1.55;
    color: var(--ink);
    background: var(--dia);
    font-kerning: normal;
    font-optical-sizing: auto;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

img, video, iframe, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
ul, ol { list-style: none; }
button, input, select { font: inherit; color: inherit; }
strong { font-weight: 700; }

::selection { background: var(--sol); color: var(--ink); }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
html { scrollbar-color: var(--sol) var(--noche); }

h1, h2, h3, h4 { font-weight: 800; letter-spacing: -0.03em; line-height: 1; text-wrap: balance; }
p, li, dd, figcaption { text-wrap: pretty; }
.tnum { font-variant-numeric: tabular-nums; }

/* Títulos que siempre caben en dos líneas: el tamaño sale del ancho de su columna y de su número de caracteres */
.cq { container-type: inline-size; }
.display {
    font-size: min(var(--max, 8.5rem), calc(172cqi / (var(--chars, 20) * 0.56)));
    line-height: 0.92;
    letter-spacing: -0.04em;
}
.title {
    font-size: min(var(--max, 5rem), calc(172cqi / (var(--chars, 30) * 0.56)));
    line-height: 0.96;
    letter-spacing: -0.035em;
}
@supports not (font-size: 1cqi) {
    .display { font-size: clamp(3rem, 8vw, 8rem); }
    .title { font-size: clamp(2rem, 4.5vw, 4.5rem); }
}

.skip {
    position: absolute; left: var(--gutter); top: -100px; z-index: 100;
    background: var(--sol); color: var(--ink); padding: 12px 20px; border-radius: 999px; font-weight: 700;
}
.skip:focus { top: 12px; }

.frame { padding-inline: var(--gutter); }

/* ── Capítulos de color ─────────────────────────────── */
.chapter { position: relative; }
.chapter-noche   { background: var(--noche);   color: var(--paper); --surface: var(--step-paper); --soft: var(--paper-soft); }
.chapter-alba    { background: var(--alba);    color: var(--ink);   --surface: var(--step-ink);   --soft: #3A2A25; }
.chapter-sol     { background: var(--sol);     color: var(--ink);   --surface: var(--step-ink);   --soft: #2E1A08; }
.chapter-dorado  { background: var(--dorado);  color: var(--ink);   --surface: var(--step-ink);   --soft: #33280A; }
.chapter-cielo   { background: var(--cielo);   color: var(--ink);   --surface: var(--step-ink);   --soft: #183447; }
.chapter-dia     { background: var(--dia);     color: var(--ink);   --surface: #E3ECF1;           --soft: #2B3C4A; }
.chapter-mediodia{ background: var(--mediodia);color: var(--ink);   --surface: var(--step-ink);   --soft: #0E2A3D; }

/* ── El arco: el sol que asoma, la curva del borde de una uña ── */
.arch { border-radius: 999px 999px 0 0; overflow: hidden; background: var(--surface, rgba(0,0,0,.06)); isolation: isolate; }
.arch img, .arch video, .arch iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }

/* ── Botones: píldora total, una sola tinta ─────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 52px; padding: 0 28px; border-radius: 999px; border: 0;
    font-weight: 700; font-size: 1.0625rem; line-height: 1.1; letter-spacing: -0.005em;
    text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: background-color .25s var(--ease-out), color .25s var(--ease-out), transform .18s var(--ease-out);
}
.btn:active { transform: scale(0.97); transition-duration: .08s; }
.btn-action { background: var(--ink); color: var(--paper); }
.btn-action:hover { background: #22405A; }
.chapter-noche .btn-action, .btn-sun { background: var(--sol); color: var(--ink); }
.chapter-noche .btn-action:hover, .btn-sun:hover { background: #F7A04E; }
.btn-plain { background: var(--surface); color: inherit; }
.btn-plain:hover { background: color-mix(in srgb, currentColor 16%, transparent); }

/* ── Barra de navegación ─────────────────────────────── */
.nav {
    position: sticky; top: 0; z-index: 50;
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    min-height: var(--nav-h); padding: 10px var(--gutter);
    background: var(--noche); color: var(--paper);
    transition: transform .35s var(--ease-out);
}
.nav-logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; font-size: 1.5rem; letter-spacing: -0.03em; min-height: 48px; }
.nav-logo img { width: 52px; height: 52px; border-radius: 50%; background: var(--paper); }
.nav-menu { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 40px); }
.nav-list { display: flex; align-items: center; gap: clamp(4px, 1.2vw, 20px); }
.nav-list > li { position: relative; }
.nav-list > li > a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 10px; text-decoration: none; font-weight: 600; font-size: 1.0625rem; border-radius: 999px; transition: background-color .2s var(--ease-out); }
.nav-list > li > a:hover, .nav-group:focus-within > a { background: var(--step-paper); }
.nav-sub {
    position: absolute; top: calc(100% + 6px); left: 0; min-width: 260px; padding: 10px;
    background: var(--paper); color: var(--ink); border-radius: 0;
    box-shadow: 0 18px 40px -12px rgba(5, 14, 22, 0.45);
    opacity: 0; transform: translateY(-6px); visibility: hidden;
    transition: opacity .18s var(--ease-in), transform .18s var(--ease-in), visibility 0s .18s;
}
.nav-group:hover > .nav-sub, .nav-group:focus-within > .nav-sub {
    opacity: 1; transform: none; visibility: visible;
    transition: opacity .28s var(--ease-out), transform .28s var(--ease-out), visibility 0s;
}
.nav-sub a { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 0; text-decoration: none; font-weight: 500; }
.nav-sub a:hover, .nav-sub a:focus-visible { background: var(--dia); }
.nav-toggle { display: none; }
.nav .nav-cta { min-height: 48px; padding: 0 22px; background: var(--sol); color: var(--ink); }
.nav .nav-cta:hover { background: #F7A04E; }

@media (max-width: 980px) {
    :root { --nav-h: 68px; }
    .nav-logo img { width: 44px; height: 44px; }
    .nav-toggle {
        display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px;
        border: 0; border-radius: 999px; background: var(--step-paper); color: var(--paper); font-weight: 700; cursor: pointer;
    }
    .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s var(--ease-out); }
    .nav-toggle-bars { position: relative; }
    .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
    .nav-toggle-bars::before { top: -6px; } .nav-toggle-bars::after { top: 6px; }
    .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
    .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }
    .nav-menu {
        position: fixed; inset: var(--nav-h) 0 auto 0; max-height: calc(100dvh - var(--nav-h)); overflow-y: auto;
        flex-direction: column; align-items: stretch; gap: 20px; padding: 16px var(--gutter) 32px;
        background: var(--noche); display: none;
    }
    .nav.is-open .nav-menu { display: flex; }
    .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
    .nav-list > li > a { font-size: 1.5rem; font-weight: 800; min-height: 56px; padding: 0; }
    .nav-sub { position: static; opacity: 1; transform: none; visibility: visible; background: transparent; color: var(--paper-soft); box-shadow: none; padding: 0 0 12px; min-width: 0; display: grid; grid-template-columns: 1fr 1fr; }
    .nav-sub a { padding: 0; font-size: 1.0625rem; }
    .nav-sub a:hover { background: transparent; text-decoration: underline; }
    .nav-cta { width: 100%; min-height: 56px; }
}

/* ── Barra fija en celular (sólida, respeta el área segura) ── */
.mobile-bar { display: none; }
@media (max-width: 760px) {
    .cita-result .btn { display: none; }
    .mobile-bar {
        position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 40;
        display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; border-radius: 999px;
        background: var(--ink); color: var(--paper); font-weight: 700; text-decoration: none;
        box-shadow: 0 12px 28px -10px rgba(5, 14, 22, 0.55);
    }
    .mobile-bar:active { transform: scale(0.98); }
    body { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
}

/* ── Inicio · primera luz ───────────────────────────── */
.hero { padding-top: clamp(28px, 4vw, 56px); overflow: hidden; }
.hero-grid {
    display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: clamp(24px, 4vw, 72px); align-items: end;
    min-height: calc(100svh - var(--nav-h) - clamp(28px, 4vw, 56px));
}
.hero-text { align-self: center; padding-bottom: clamp(32px, 4vw, 64px); }
.hero-text h1 { --max: 8.75rem; margin-bottom: 28px; }
.hero .subtitle { font-size: var(--text-lg); line-height: 1.4; max-width: 34ch; color: var(--paper); }
.hero .tagline { margin-top: 28px; color: var(--paper-soft); max-width: 40ch; font-size: 1.0625rem; }
.hero-media { position: relative; align-self: stretch; width: 100%; min-height: 520px; margin-top: clamp(16px, 3vw, 48px); }
.hero-media figcaption, .media-caption {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 18px;
    font-size: 0.9375rem; line-height: 1.3; color: var(--paper); background: rgba(8, 20, 30, 0.72);
}

.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 28px; padding-block: 22px 26px; background: var(--step-paper); font-size: 1rem; }
.hero-facts li { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.hero-facts a { display: inline-flex; align-items: center; min-height: 44px; }
.hero-facts .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--sol); flex: none; }
.hero-facts .is-closed .dot { background: var(--paper-soft); }

/* La cosa viva: arma tu cita */
.cita { margin-top: 36px; display: grid; gap: 20px; max-width: 760px; }
.cita fieldset { border: 0; min-width: 0; }
.cita legend { font-weight: 700; font-size: 1.0625rem; margin-bottom: 10px; color: var(--paper); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pill span {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px;
    background: var(--step-paper); color: var(--paper); font-weight: 600; font-size: 1rem; cursor: pointer;
    transition: background-color .2s var(--ease-out), color .2s var(--ease-out), transform .15s var(--ease-out);
}
.pill span:hover { background: rgba(255, 255, 255, 0.16); }
.pill input:checked + span { background: var(--paper); color: var(--ink); }
.pill input:focus-visible + span { outline: 3px solid var(--sol); outline-offset: 2px; }
.pill input:active + span { transform: scale(0.96); }
.pill input:disabled + span { opacity: .55; cursor: not-allowed; text-decoration: line-through; }
.cita-result { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; padding-top: 6px; }
.cita-price { font-size: 1.1875rem; font-weight: 700; color: var(--paper); font-variant-numeric: tabular-nums; min-height: 1.4em; flex: 1 1 260px; }
.cita-price small { display: block; font-size: 0.9375rem; font-weight: 500; color: var(--paper-soft); }

/* ── Inicio · servicios (alba) ──────────────────────── */
.services-intro { padding-block: var(--gap-section); }
.intro-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px clamp(32px, 5vw, 96px); align-items: end; }
.intro-grid h2 { --max: 6.5rem; }
.intro-grid .section-subtitle { font-size: var(--text-lg); line-height: 1.45; max-width: 44ch; }
.intro-index { grid-column: 1 / -1; margin-top: clamp(40px, 6vw, 88px); display: grid; gap: 0; }
.intro-index li:nth-child(even) a { background: rgba(13, 30, 44, 0.035); }
.intro-index a {
    display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) auto; align-items: center; gap: 12px clamp(20px, 3vw, 48px);
    min-height: 96px; padding: 18px clamp(16px, 2vw, 28px); background: var(--surface); text-decoration: none;
    transition: background-color .25s var(--ease-out);
}
.intro-index a:hover { background: rgba(13, 30, 44, 0.14); }
.intro-index b { font-size: clamp(1.625rem, 2.6vw, 2.5rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1; }
.intro-index span { font-size: 1.0625rem; line-height: 1.4; }
.intro-index em { font-style: normal; font-weight: 700; font-size: 1.0625rem; display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.intro-index em::after { content: ""; width: 22px; height: 11px; border-radius: 22px 22px 0 0; background: currentColor; transition: transform .25s var(--ease-out); }
.intro-index a:hover em::after { transform: translateY(-3px); }

/* ── Inicio · capítulos de servicio ─────────────────── */
.service-category { padding-block: var(--gap-section); }
.cat-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); align-items: center; }
.cat-text h2 { --max: 5.75rem; margin-bottom: 28px; }
.cat-grid h2 a { text-decoration: none; }
.cat-grid h2 a:hover { text-decoration: underline; text-decoration-thickness: 0.06em; }
.cat-text .service-description { font-size: var(--text-lg); line-height: 1.45; max-width: 46ch; }
.cat-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.cat-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--surface); text-decoration: none; font-weight: 600; font-size: 1rem; transition: background-color .2s var(--ease-out); }
.cat-links a:hover { background: rgba(13, 30, 44, 0.16); }
.cat-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.cat-media { position: relative; }

/* clínica: texto a la izquierda, video y precios a la derecha */
.cat-clinica .cat-text { grid-column: 1 / span 6; }
.cat-clinica .cat-side { grid-column: 7 / span 6; display: grid; gap: 28px; }
.cat-clinica .cat-media { aspect-ratio: 5 / 4; }
.prices h3 { font-size: 1.375rem; letter-spacing: -0.02em; margin-bottom: 8px; }
.prices dl { display: grid; grid-template-columns: 1fr auto; }
.prices dt, .prices dd { padding: 12px 0; font-size: 1.0625rem; }
.prices dt { font-weight: 600; }
.prices dd { font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.prices dd small { font-weight: 500; font-size: 0.9375rem; display: block; }
.prices dt:nth-of-type(odd), .prices dd:nth-of-type(odd) { background: var(--surface); }
.prices dt { padding-left: 14px; } .prices dd { padding-right: 14px; }

/* spa: el arco nace del borde inferior del capítulo, como el sol en el horizonte */
.cat-spa { padding-bottom: 0; }
.cat-spa .cat-grid { align-items: end; }
.cat-spa .cat-media { grid-column: 1 / span 6; aspect-ratio: 4 / 4.6; }
.cat-spa .cat-text { grid-column: 8 / span 5; align-self: center; padding-bottom: var(--gap-section); }

/* masajes: título ancho arriba, texto a la derecha y un arco a todo lo ancho que asoma desde abajo */
.cat-masaje { padding-bottom: 0; }
.cat-masaje .cat-grid { align-items: start; row-gap: clamp(40px, 5vw, 72px); }
.cat-masaje .cat-head { grid-column: 1 / span 7; }
.cat-masaje .cat-head h2 { --max: 6rem; }
.cat-masaje .cat-text { grid-column: 8 / span 5; padding-top: 8px; }
.cat-horizon { grid-column: 1 / -1; aspect-ratio: 2.3 / 1; }
.cat-horizon img { object-position: 50% 40%; }

/* verrugas: título a todo lo ancho, tres columnas debajo */
.cat-verrugas .cat-text { grid-column: 1 / -1; }
.cat-verrugas .cat-text h2 { --max: 6rem; }
.cat-verrugas .cat-row { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.cat-verrugas .cat-media { aspect-ratio: 4 / 5; }
.cat-verrugas .steps-mini li { padding: 16px 0 16px 34px; position: relative; font-size: 1.0625rem; }
.cat-verrugas .steps-mini li::before { content: ""; position: absolute; left: 0; top: 24px; width: 18px; height: 9px; border-radius: 18px 18px 0 0; background: var(--sol); }

.cat-verrugas .steps-mini { background: var(--surface); padding: 12px 22px; }

/* ── Mapa (mediodía) ────────────────────────────────── */
.map-section { padding-block: var(--gap-section); }
.map-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 96px); align-items: end; }
.map-text { container-type: inline-size; }
.map-text h2 { font-size: min(5.25rem, calc(186cqi / (32 * 0.56))); line-height: .96; letter-spacing: -0.035em; margin-bottom: 28px; }
.map-address { font-size: var(--text-lg); line-height: 1.45; }
.map-facts { margin-top: 28px; display: grid; gap: 10px; }
.map-facts li { display: grid; gap: 2px; font-size: 1.0625rem; font-weight: 600; }
.map-facts span { font-weight: 500; font-size: 1rem; }
.map-facts a { display: inline-flex; min-height: 44px; align-items: center; }
.map-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.map-frame { aspect-ratio: 1 / 1; max-height: 720px; width: 100%; position: relative; }
.map-frame iframe { position: relative; z-index: 1; }
.map-fallback { position: absolute; inset: auto 0 0 0; z-index: 0; display: flex; align-items: center; justify-content: center; min-height: 50%; font-weight: 700; font-size: 1.25rem; }

/* ── Pie: la noche vuelve ───────────────────────────── */
.footer { padding-top: var(--gap-section); overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px clamp(24px, 4vw, 64px); }
.footer-logo { width: 72px; height: 72px; border-radius: 50%; background: var(--paper); margin-bottom: 24px; }
.footer-tagline { font-size: 1.375rem; line-height: 1.3; font-weight: 700; max-width: 26ch; }
.footer-slogan { margin-top: 12px; color: var(--paper-soft); }
.footer h4 { font-size: 1.125rem; letter-spacing: -0.01em; margin-bottom: 14px; color: var(--paper); }
.footer ul li a, .footer-contact li { display: flex; align-items: center; min-height: 44px; line-height: 1.3; color: var(--paper-soft); text-decoration: none; font-size: 1rem; }
.footer-contact li { min-height: 36px; }
.footer ul li a:hover { color: var(--paper); text-decoration: underline; }
.footer-bottom { margin-top: 56px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 24px; background: var(--step-paper); font-size: 1rem; color: var(--paper-soft); }
.footer-word {
    font-weight: 800; letter-spacing: -0.04em; line-height: 0.78; color: var(--sol);
    font-size: 26.5vw; text-align: center; margin-top: 28px; margin-bottom: -0.17em; user-select: none;
}

/* Pausa de video: pastilla de 44px sobre el arco */
.video-toggle {
    position: absolute; right: 14px; bottom: 62px; z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 999px;
    background: rgba(8, 20, 30, 0.72); color: var(--paper); cursor: pointer; display: grid; place-items: center;
    transition: background-color .2s var(--ease-out), transform .15s var(--ease-out);
}
.video-toggle:hover { background: rgba(8, 20, 30, 0.9); }
.video-toggle:active { transform: scale(0.94); }
.video-toggle::before { content: ""; width: 12px; height: 14px; border-left: 4px solid currentColor; border-right: 4px solid currentColor; box-sizing: border-box; }
.video-toggle[data-state="paused"]::before { width: 0; height: 0; border: 0; border-left: 13px solid currentColor; border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 4px; }

/* ── Revelado al entrar (solo si hay JS y se permite movimiento) ── */
@media (prefers-reduced-motion: no-preference) {
    .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease-out), transform .9s var(--ease-out); transition-delay: calc(var(--i, 0) * 75ms); }
    .js [data-reveal].is-in { opacity: 1; transform: none; }
    .js .arch[data-reveal] { opacity: 1; transform: none; clip-path: inset(100% 0 0 0 round 999px 999px 0 0); transition: clip-path 1.1s var(--ease-out); transition-delay: calc(var(--i, 0) * 75ms); }
    .js .arch[data-reveal].is-in { clip-path: inset(0 0 0 0 round 999px 999px 0 0); }
    .arch img[data-drift] { transform: scale(1.08); transition: transform 2.4s var(--ease-out); }
    .is-in img[data-drift], .arch.is-in img[data-drift] { transform: scale(1); }
    .footer-word { transform: translateY(var(--rise, 0)); }
}

/* ── Tablet ─────────────────────────────────────────── */
@media (max-width: 1080px) {
    .cat-clinica .cat-text, .cat-clinica .cat-side, .cat-spa .cat-text, .cat-masaje .cat-text, .cat-masaje .cat-head { grid-column: 1 / -1; }
    .cat-spa .cat-media { grid-column: 1 / span 8; }
    .cat-spa .cat-text { padding-bottom: 0; }
    .cat-horizon { aspect-ratio: 1.7 / 1; }
    .cat-verrugas .cat-row { grid-template-columns: 1fr 1fr; }
    .cat-verrugas .cat-row > :first-child { grid-column: 1 / -1; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
    .hero-grid { grid-template-columns: 1fr; min-height: 0; gap: 0; }
    .hero-text { display: contents; }
    .hero-text h1 { order: 1; }
    .hero .subtitle { order: 2; }
    .hero-media { order: 3; justify-self: stretch; width: 100%; height: auto; min-height: 0; aspect-ratio: 2 / 1; margin-top: 24px; }
    .hero-media video { object-position: 50% 42%; }
    .hero-media figcaption { display: none; }
    .hero-media .video-toggle { bottom: 12px; }
    .cita { order: 4; margin-top: 20px; }
    .cita-result { order: -1; padding-top: 0; }
    .hero .tagline { order: 5; margin-bottom: 28px; }
    .intro-grid, .map-grid { grid-template-columns: 1fr; }
    .cat-spa .cat-media { grid-column: 1 / -1; width: min(100%, 520px); margin-top: 24px; }
    .cat-spa .cat-text { order: -1; }
    .cat-horizon { aspect-ratio: 1.15 / 1; }
}

/* ── Celular ────────────────────────────────────────── */
@media (max-width: 560px) {
    :root { --text: 1.0625rem; --text-lg: 1.1875rem; }
    .intro-index a { grid-template-columns: 1fr auto; }
    .intro-index span { grid-column: 1 / -1; grid-row: 2; }
    .cat-verrugas .cat-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .cita-result .btn { width: 100%; }
    .prices dt, .prices dd { font-size: 1rem; }
    .footer-word { font-size: 29vw; }
}

/* Movimiento reducido: el contenido queda, se va el recorrido */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ── Plantillas compartidas (servicio y categoría) ──── */
.container { padding-inline: var(--gutter); }
.group-sol   { --group: var(--sol);    --group-deep: #C2620E; --group-tint: #FCE3CC; }
.group-dorado{ --group: var(--dorado); --group-deep: #B7860F; --group-tint: #FCF0CF; }
.group-cielo { --group: var(--cielo);  --group-deep: #2F8FC4; --group-tint: #E2F2FA; }

.service-hero, .category-hero { padding-top: clamp(24px, 3vw, 48px); overflow: hidden; }
.service-hero > .container, .category-hero > .container {
    display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 72px); align-items: end;
    min-height: min(820px, calc(100svh - var(--nav-h) - 120px));
}
.service-hero-content, .category-hero-content { align-self: center; padding-bottom: clamp(40px, 5vw, 80px); }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 1rem; margin-bottom: clamp(24px, 3vw, 40px); }
.breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; font-weight: 600; }
.breadcrumb .current { font-weight: 500; }
.service-hero h1, .category-hero h1 { --max: 7.5rem; margin-bottom: 28px; }
.service-hero-description, .category-hero-description { font-size: var(--text-lg); line-height: 1.45; max-width: 48ch; }
.service-hero-cta, .category-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-arch { position: relative; align-self: end; aspect-ratio: 4 / 5; width: 100%; max-height: calc(100svh - var(--nav-h) - 40px); }

.service-strip, .category-strip { background: var(--group); }
.service-strip-grid, .category-strip-grid {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; background: var(--group);
}
.service-strip-item:nth-child(even), .category-strip-item:nth-child(even) { background: rgba(13, 30, 44, 0.13); }
.service-strip-item, .category-strip-item { background: var(--step-ink); padding: 22px clamp(16px, 2vw, 28px); }
.service-strip-text strong, .category-strip-text strong { display: block; font-size: 1.125rem; font-weight: 800; letter-spacing: -0.01em; }
.service-strip-text span, .category-strip-text span { display: block; font-size: 1rem; margin-top: 2px; }

.service-cta-banner, .category-cta-banner { padding-block: var(--gap-section); }
.service-cta-banner, .category-process { background: var(--noche); color: var(--paper); --surface: var(--step-paper); }
.category-cta-banner { background: var(--group); color: var(--ink); --surface: var(--step-ink); }
.service-cta-banner-content, .category-cta-banner-content { container-type: inline-size; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px clamp(32px, 5vw, 96px); align-items: end; }
.service-cta-banner-content h2, .category-cta-banner-content h2 { --max: 6rem; grid-column: 1 / -1; font-size: min(var(--max), calc(172cqi / (var(--chars, 30) * 0.56))); }
.cta-has-media { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: end; }
.cta-has-media > h2 { grid-column: 1; font-size: min(var(--max), calc(108cqi / (var(--chars, 30) * 0.56))); }
.cta-has-media > p, .cta-has-media > .cta-banner-buttons { grid-column: 1; justify-content: flex-start; }
.cta-figure { grid-column: 2; grid-row: 1 / span 3; position: relative; aspect-ratio: 4 / 4.8; align-self: end; margin-bottom: calc(-1 * var(--gap-section)); }
.service-cta-banner-content p, .category-cta-banner-content p { font-size: var(--text-lg); line-height: 1.4; max-width: 34ch; }
.service-cta-banner-content p { color: var(--paper-soft); }
.cta-banner-buttons { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.service-cta-banner .btn-action { background: var(--sol); color: var(--ink); }
.service-cta-banner .btn-action:hover { background: #F7A04E; }

.service-faq, .category-faq { background: var(--dia); padding-block: var(--gap-section); }
.service-faq > .container, .category-faq > .container { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 32px clamp(32px, 5vw, 96px); align-items: start; }
.service-faq > .container, .category-faq > .container { container-type: inline-size; }
.service-faq h2, .category-faq h2 { --max: 4.5rem; position: sticky; top: calc(var(--nav-h) + 32px); font-size: min(var(--max), calc(68cqi / (var(--chars, 30) * 0.56))); }
.faq-list { display: grid; gap: 0; }
.faq-item { background: var(--paper); }
.faq-item:nth-child(even) { background: #E8F0F4; }
.faq-q {
    list-style: none; cursor: pointer; position: relative;
    display: flex; align-items: center; min-height: 72px; padding: 18px 64px 18px 24px;
    font-size: 1.1875rem; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em;
    transition: background-color .2s var(--ease-out);
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q:hover { background: var(--group-tint, #EEF4F7); }
.faq-q::before, .faq-q::after { content: ""; position: absolute; right: 26px; top: 50%; width: 18px; height: 2.5px; margin-top: -1px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease-out); }
.faq-q::after { transform: rotate(90deg); }
.faq-item[open] .faq-q::after { transform: rotate(0deg); }
.faq-a { padding: 0 24px 24px; max-width: 70ch; }
.faq-a p { font-size: 1.0625rem; line-height: 1.6; }
@media (prefers-reduced-motion: no-preference) {
    .faq-item[open] .faq-a { animation: faq-in .35s var(--ease-out); }
    @keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
}

@media (max-width: 980px) {
    .service-strip-grid, .category-strip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .service-faq > .container, .category-faq > .container { grid-template-columns: 1fr; }
    .service-faq h2, .category-faq h2 { position: static; font-size: min(var(--max), calc(172cqi / (var(--chars, 30) * 0.56))); }
    .cta-has-media { grid-template-columns: 1fr; }
    .cta-has-media > h2 { font-size: min(var(--max), calc(172cqi / (var(--chars, 30) * 0.56))); }
    .cta-figure { grid-column: 1; grid-row: auto; width: min(100%, 420px); justify-self: end; }
    .service-cta-banner-content, .category-cta-banner-content { grid-template-columns: 1fr; }
    .cta-banner-buttons { justify-content: flex-start; }
}
@media (max-width: 860px) {
    .service-hero > .container, .category-hero > .container { grid-template-columns: 1fr; min-height: 0; }
    .service-hero-content, .category-hero-content { padding-bottom: 8px; }
    .hero-arch { justify-self: center; width: min(100%, 440px); aspect-ratio: 4 / 4.4; }
}
@media (max-width: 560px) {
    .service-strip-grid, .category-strip-grid { grid-template-columns: 1fr; }
    .faq-q { font-size: 1.0625rem; padding-left: 18px; }
    .faq-a { padding: 0 18px 20px; }
}
.cat-grid h2 a { display: inline-block; padding-block: 2px; }
.cat-masaje, .map-section { overflow: clip; }
