/* ==========================================================================
   ALBA · ESTUDIO DENTAL · v3
   Índice
   1.  Tokens
   2.  Reset y base
   3.  Textura, scrollbar, selección y foco
   4.  Utilidades (contenedor, títulos, botones, indicadores, blobs)
   5.  Cursor (gota de luz)
   6.  Navegación + menú móvil
   7.  Hero (la sonrisa que te sigue)
   8.  Filosofía
   9.  Servicios
   10. Opiniones
   11. Contacto (formulario, ubicación y preguntas)
   12. Footer (la noche)
   13. Responsive
   14. Movimiento reducido y sin JS
   ========================================================================== */

/* ==========================================================================
   1. TOKENS
   ========================================================================== */
:root {
    /* Paleta "alba": luz de mañana, barro y miel. Sin azules ni verdes. */
    --luz: #FBF4EA;
    --manana: #FDEBDD;
    --arena: #F3E3D1;
    --atardecer: #F5DAC5;
    --atardecer-deep: #EEC3A9;
    --cantera: #EBCDB5;
    --durazno: #F2A983;
    --durazno-deep: #EE9470;
    --miel: #E8B55E;
    --miel-light: #F7CB76;
    --rosa: #EBC6BA;
    --bugambilia: #D9677A;
    --terracota: #C4623F;
    --barro: #9E4628;
    --ciruela: #3A2330;
    --ciruela-soft: #6B4A52;
    --noche: #2A1A24;
    --papel: #FFF9F1;
    --line: rgba(58, 35, 48, .12);

    /* Tipografía */
    --f-display: 'Fraunces', 'Georgia', serif;
    --f-body: 'Figtree', system-ui, sans-serif;
    --f-hand: 'Caveat', 'Comic Sans MS', cursive;

    /* Escala */
    --container: min(1280px, 100% - 56px);
    --section-y: clamp(100px, 12vw, 180px);
    --nav-h: 92px;
    --arch-w: min(460px, 35vw, calc((100svh - 240px) / 1.3));

    /* Movimiento */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ==========================================================================
   2. RESET Y BASE
   ========================================================================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html {
    background: var(--luz);
    color: var(--ciruela);
    font-family: var(--f-body);
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
}
html, body { overflow-x: clip; }
body { background: var(--luz); line-height: 1.55; font-size: 1rem; }
img, svg { display: block; max-width: 100%; }
svg use { pointer-events: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { font-weight: 400; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Lenis (smooth scroll) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }

.skip-link { position: fixed; left: 16px; top: -70px; z-index: 5000; background: var(--ciruela); color: var(--luz); padding: 12px 18px; border-radius: 999px; font-weight: 600; transition: top .3s var(--ease-out); }
.skip-link:focus { top: 16px; }

/* ==========================================================================
   3. TEXTURA, SCROLLBAR, SELECCIÓN Y FOCO
   ========================================================================== */
/* Grano de papel de algodón (capa fija, sin mezcla para no repintar al hacer scroll) */
body::after {
    content: ""; position: fixed; inset: 0; z-index: 900; pointer-events: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .45  0 0 0 0 .25  0 0 0 0 .2  0 0 0 .55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    opacity: .055;
}

/* Scrollbar: píldora con gradiente "amanecer" y un brillo interior */
::-webkit-scrollbar { width: 13px; }
::-webkit-scrollbar-track { background: var(--arena); }
::-webkit-scrollbar-thumb {
    background:
        linear-gradient(90deg, transparent 30%, rgba(255, 248, 236, .55) 30% 44%, transparent 44%) center / 100% 60% no-repeat,
        linear-gradient(180deg, var(--miel-light), var(--durazno) 55%, var(--terracota));
    border: 3px solid var(--arena); border-radius: 999px; min-height: 70px;
}
::-webkit-scrollbar-thumb:hover { background-color: var(--terracota); border-width: 2px; }
@supports not selector(::-webkit-scrollbar) {
    html { scrollbar-color: var(--durazno) var(--arena); }
}

::selection { background: var(--durazno); color: var(--ciruela); }

:focus-visible { outline: 2.5px solid var(--terracota); outline-offset: 4px; border-radius: 10px; }
.btn:focus-visible { outline-offset: 5px; border-radius: 999px; }

/* ==========================================================================
   4. UTILIDADES
   ========================================================================== */
.container { width: var(--container); margin-inline: auto; }
.section { position: relative; padding-block: var(--section-y); }

.display, .hero-title, .section-title, .manifesto, .promise-title, .logo-name, .mm-t {
    font-family: var(--f-display);
    font-optical-sizing: auto;
    font-variation-settings: "SOFT" 100, "WONK" 0;
}

.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: .76rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--barro);
    margin-bottom: 22px;
}
.eyebrow svg { width: 18px; height: 18px; color: var(--terracota); animation: spin 18s linear infinite; }

.section-title {
    font-size: clamp(2.6rem, 1.3rem + 4vw, 5rem);
    font-weight: 360; line-height: 1; letter-spacing: -.025em;
}
.section-title em, .hero-title em { font-style: italic; color: var(--terracota); font-variation-settings: "SOFT" 100, "WONK" 1; }

/* ---------- Botones ---------- */
.btn {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    height: 58px; padding: 0 28px; border-radius: 999px; overflow: hidden; isolation: isolate;
    font-weight: 600; font-size: 1rem; white-space: nowrap; will-change: transform;
    transition: color .45s ease .05s, border-color .45s, box-shadow .5s;
}
.btn-label { display: inline-flex; align-items: center; gap: 10px; pointer-events: none; will-change: transform; }
.btn svg { width: 19px; height: 19px; flex-shrink: 0; transition: transform .5s var(--ease-out); }
.btn--primary { background: var(--ciruela); color: var(--luz); box-shadow: 0 18px 34px -18px rgba(58, 35, 48, .75); }
.btn--soft { background: rgba(255, 250, 243, .55); color: var(--ciruela); border: 1.5px solid rgba(58, 35, 48, .18); }
.btn--soft .wa { color: var(--terracota); }
.btn--sm { height: 46px; padding: 0 20px; font-size: .92rem; }

/* El sol sale por debajo del botón y lo llena de luz */
.btn-sun {
    position: absolute; z-index: -1; left: 50%; top: 100%; width: 140%; aspect-ratio: 1; border-radius: 50%;
    background: radial-gradient(circle at 50% 38%, #FCDDA0 0%, var(--miel-light) 28%, var(--durazno) 66%, var(--durazno-deep) 100%);
    transform: translate(-50%, 0) scale(.35);
    transition: transform .95s var(--ease-out);
}
@media (hover: hover) {
    .btn:hover .btn-sun { transform: translate(-50%, -78%) scale(1); }
    .btn--primary:hover { color: var(--ciruela); box-shadow: 0 22px 40px -18px rgba(238, 148, 112, .9); }
    .btn--soft:hover { border-color: transparent; }
    .btn--soft:hover .wa { color: var(--ciruela); }
    .btn:hover svg:last-child:not(.wa) { transform: translateX(4px); }
}
/* "Florecer" al pulsar */
.bloom { position: absolute; z-index: -1; pointer-events: none; border-radius: 46% 54% 58% 42% / 52% 44% 56% 48%; background: rgba(255, 246, 230, .7); }

/* ---------- Indicadores ---------- */
.sun-dot { position: relative; width: 11px; height: 11px; border-radius: 50%; background: var(--miel); flex-shrink: 0; }
.sun-dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--miel); opacity: 0; animation: sunPulse 2.4s var(--ease-out) infinite; }
@keyframes sunPulse { 0% { transform: scale(.5); opacity: .9; } 100% { transform: scale(1.7); opacity: 0; } }
.is-closed .sun-dot { background: var(--rosa); }
.is-closed .sun-dot::after { animation: none; }
.suns { display: inline-flex; gap: 2px; color: var(--miel); }
.suns svg { width: 14px; height: 14px; }

/* ---------- Formas orgánicas flotantes ---------- */
.blob { position: absolute; pointer-events: none; border-radius: 58% 42% 55% 45% / 48% 60% 40% 52%; will-change: transform; animation: blobSpin 38s linear infinite; }
@keyframes blobSpin { to { rotate: 360deg; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   5. CURSOR · una gota de luz que sonríe sobre los botones
   ========================================================================== */
.cursor { display: none; }
.has-cursor, .has-cursor * { cursor: none !important; }
.has-cursor .cursor { display: block; }
.c-halo, .c-dot { position: fixed; left: 0; top: 0; z-index: 9999; pointer-events: none; will-change: transform; }
.c-halo { width: 0; height: 0; opacity: 0; transition: opacity .35s; }
.cursor.is-visible .c-halo, .cursor.is-visible .c-dot { opacity: 1; }
.cursor.is-hidden .c-halo, .cursor.is-hidden .c-dot { opacity: 0 !important; }
.c-halo-in { position: absolute; width: 46px; height: 46px; left: -23px; top: -23px; }
.c-fill {
    --s: 1;
    position: absolute; inset: 0; border-radius: 50%;
    background: radial-gradient(circle, rgba(242, 169, 131, .62) 0%, rgba(242, 169, 131, .28) 52%, rgba(242, 169, 131, 0) 72%);
    transform: scale(var(--s));
    transition: transform .55s var(--ease-back), background .4s;
}
.c-dot { width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--terracota); opacity: 0; transition: opacity .3s, scale .4s var(--ease-back); }
.c-smile, .c-rays { position: absolute; left: 0; top: 0; overflow: visible; max-width: none; }
.c-smile { width: 36px; height: 36px; margin: -18px 0 0 -18px; opacity: 0; transform: scale(.3) rotate(-30deg); transition: opacity .25s, transform .5s var(--ease-back); }
.c-smile circle { fill: var(--ciruela); }
.c-smile path { fill: none; stroke: var(--ciruela); stroke-width: 2.6; stroke-linecap: round; }
.c-rays { width: 78px; height: 78px; margin: -39px 0 0 -39px; opacity: 0; transition: opacity .3s; }
.c-rays circle { fill: none; stroke: var(--miel); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1.5 8.5; transform-origin: center; animation: spin 6s linear infinite; }
.c-label {
    position: absolute; left: 0; top: 0; transform: translate(-50%, -50%) scale(.5); opacity: 0;
    font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ciruela); white-space: nowrap;
    transition: opacity .25s, transform .45s var(--ease-back);
}

.cursor.is-link .c-fill { --s: 1.6; }
.cursor.is-link .c-dot { scale: .6; }
.cursor.is-smile .c-fill { --s: 2.05; background: radial-gradient(circle, var(--miel-light) 0%, var(--durazno) 64%, rgba(242, 169, 131, 0) 72%); }
.cursor.is-smile .c-smile { opacity: 1; transform: none; }
.cursor.is-smile .c-dot, .cursor.is-label .c-dot, .cursor.is-sun .c-dot { scale: 0; }
.cursor.is-label .c-fill { --s: 2.5; background: radial-gradient(circle, rgba(255, 249, 241, .95) 0%, rgba(255, 249, 241, .9) 62%, rgba(255, 249, 241, 0) 72%); }
.cursor.is-label .c-label { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.cursor.is-sun .c-fill { --s: 1.25; background: radial-gradient(circle, rgba(247, 203, 118, .9) 0%, rgba(247, 203, 118, .4) 55%, rgba(247, 203, 118, 0) 72%); }
.cursor.is-sun .c-rays { opacity: 1; }
.cursor.is-down .c-fill { transform: scale(calc(var(--s) * .78)); }
/* Cepillo sobre la boca del sol: las cerdas quedan en el puntero */
.c-brush { position: absolute; left: -6.5px; top: -2.5px; width: 72px; height: 24px; overflow: visible; max-width: none; opacity: 0; transform-origin: 10.5px 6.5px; transform: rotate(28deg) scale(.4); transition: opacity .2s, transform .45s var(--ease-back); filter: drop-shadow(0 4px 6px rgba(158, 70, 40, .3)); }
.cursor.is-brush .c-fill { --s: .4; opacity: 0; }
.cursor.is-brush .c-dot { background: transparent; }
.cursor.is-brush .c-brush { opacity: 1; transform: rotate(28deg) scale(1.15); }
.cursor.is-brush.is-down .c-brush { transform: rotate(18deg) scale(1.05); }
.cursor.on-dark .c-fill { background: radial-gradient(circle, rgba(255, 238, 214, .5) 0%, rgba(255, 238, 214, .18) 55%, rgba(255, 238, 214, 0) 72%); }
.cursor.on-dark .c-dot { background: var(--miel-light); }

/* ==========================================================================
   6. NAVEGACIÓN + MENÚ MÓVIL
   ========================================================================== */
.nav { position: fixed; inset: 14px 0 auto; z-index: 1000; pointer-events: none; transition: transform .7s var(--ease-out); }
.nav.is-hidden { transform: translateY(-130%); }
.nav-pill {
    pointer-events: auto; width: min(1320px, 100% - 28px); margin: 0 auto; height: 66px;
    display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 10px 0 16px;
    border-radius: 999px; border: 1px solid transparent;
    transition: background-color .5s, box-shadow .5s, border-color .5s, -webkit-backdrop-filter .5s, backdrop-filter .5s;
}
.nav.is-solid .nav-pill {
    background: rgba(251, 244, 234, .76); border-color: rgba(255, 255, 255, .7);
    -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
    box-shadow: 0 18px 44px -28px rgba(58, 35, 48, .5);
}
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-name { font-size: 1.85rem; font-style: italic; font-weight: 480; letter-spacing: -.02em; font-variation-settings: "SOFT" 100, "WONK" 1; }
.logo-sub { font-size: .56rem; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--barro); margin-top: 3px; }

.nav-links { display: flex; gap: clamp(18px, 2.2vw, 34px); }
.nav-links a { position: relative; padding: 8px 2px; font-size: .94rem; font-weight: 500; color: var(--ciruela-soft); transition: color .3s; }
/* Subrayado en forma de sonrisa */
.nav-links a::after {
    content: ""; position: absolute; left: 8%; right: 8%; bottom: 0; height: 9px;
    border-bottom: 2px solid var(--terracota); border-radius: 0 0 50% 50% / 0 0 100% 100%;
    transform: scaleX(0); transition: transform .5s var(--ease-back);
}
.nav-links a:hover, .nav-links a.is-current { color: var(--ciruela); }
.nav-links a:hover::after, .nav-links a.is-current::after { transform: scaleX(1); }

.nav-right { display: flex; align-items: center; gap: 14px; }
.daybar svg { width: 44px; height: 24px; overflow: visible; }
.db-track, .db-fill { fill: none; stroke-width: 2; stroke-linecap: round; }
.db-track { stroke: rgba(58, 35, 48, .14); stroke-dasharray: 1.5 4; }
.db-fill { stroke: var(--miel); stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.db-sun { fill: var(--durazno-deep); }

.burger { display: none; position: relative; width: 48px; height: 48px; border-radius: 50%; background: var(--ciruela); z-index: 2; }
.burger span { position: absolute; left: 15px; right: 15px; height: 2px; border-radius: 2px; background: var(--luz); transition: transform .55s var(--ease-out), top .55s var(--ease-out), left .4s; }
.burger span:first-child { top: 19px; }
.burger span:last-child { top: 27px; left: 21px; }
.menu-open .burger span:first-child { top: 23px; transform: rotate(45deg); }
.menu-open .burger span:last-child { top: 23px; left: 15px; transform: rotate(-45deg); }

/* Menú móvil: amanece desde abajo con forma de arco */
.mmenu { position: fixed; inset: 0; z-index: 990; visibility: hidden; transition: visibility 0s .9s; }
.menu-open .mmenu { visibility: visible; transition: visibility 0s; }
.mm-bg {
    position: absolute; inset: 0;
    background: radial-gradient(120% 70% at 50% 105%, #FBD89A 0%, var(--durazno) 52%, var(--durazno-deep) 100%);
    clip-path: inset(100% 0 0 0 round 50% 50% 0 0);
    transition: clip-path .85s var(--ease-in-out) .1s;
}
.menu-open .mm-bg { clip-path: inset(0 0 0 0 round 0 0 0 0); transition: clip-path .9s var(--ease-in-out); }
.mm-face { position: absolute; right: -34px; top: 16%; width: 150px; opacity: 0; transform: translate(40px, 40px) rotate(-40deg); transition: opacity .3s, transform .6s var(--ease-out); }
.menu-open .mm-face { opacity: 1; transform: none; transition: opacity .6s .5s, transform 1.2s var(--ease-back) .45s; }
.mmf-sun { fill: #FCE2B6; }
.mmf-eye, .mm-face .mmf-wink circle { fill: var(--ciruela); }
.mmf-wink { transform-box: fill-box; transform-origin: center; }
.menu-open .mmf-wink { animation: wink 3.6s ease-in-out 1.4s infinite; }
@keyframes wink { 0%, 86%, 100% { transform: scaleY(1); } 90%, 95% { transform: scaleY(.12); } }
.mmf-mouth { fill: none; stroke: var(--ciruela); stroke-width: 4; stroke-linecap: round; }
.mm-inner { position: relative; z-index: 2; height: 100%; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 26px; padding: calc(var(--nav-h) + 10px) 26px calc(26px + env(safe-area-inset-bottom)); }
.mm-links { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: clamp(2px, 1.2svh, 10px); }
.mm-links a { display: flex; align-items: flex-start; gap: 14px; width: fit-content; padding: 2px 0; }
.mm-num { padding-top: .8em; min-width: 22px; font-size: .68rem; font-weight: 700; letter-spacing: .14em; color: var(--barro); opacity: 0; transition: opacity .3s; }
.mm-t { display: block; overflow: hidden; padding-bottom: .1em; font-size: clamp(2.5rem, 11vw, 3.4rem); line-height: 1.02; font-weight: 380; }
.mm-t span { display: block; transform: translateY(110%) rotate(4deg); transform-origin: 0 100%; transition: transform .45s var(--ease-out); }
.menu-open .mm-t span { transform: none; transition: transform 1s var(--ease-out) calc(.5s + var(--i) * 70ms); }
.menu-open .mm-num { opacity: 1; transition-delay: calc(.75s + var(--i) * 70ms); }
.mm-links a:active .mm-t span, .mm-links a.is-current .mm-t span { font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1; }
.mm-foot { opacity: 0; transform: translateY(20px); transition: opacity .3s, transform .4s; }
.menu-open .mm-foot { opacity: 1; transform: none; transition: opacity .6s .95s, transform .9s var(--ease-out) .95s; }
.mm-foot .btn { width: 100%; }
.mm-addr { margin-top: 14px; text-align: center; font-size: .86rem; color: var(--ciruela); }
.mm-addr a { text-decoration: underline; text-underline-offset: 3px; }
.menu-open .nav.is-solid .nav-pill { background: transparent; border-color: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.menu-open .nav.is-hidden { transform: none; }

/* ==========================================================================
   7. HERO · "La sonrisa que te sigue"
   ========================================================================== */
.hero { position: relative; z-index: 1; background: var(--luz); overflow: hidden; }
.hero-pin { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; }
.hero-backdrop, .arch-blobs { position: absolute; inset: 0; pointer-events: none; }
.hero.is-off * { animation-play-state: paused !important; }
.is-paused, .is-paused * { animation-play-state: paused !important; }
.hero-light {
    position: absolute; inset: 0; pointer-events: none; will-change: transform;
    background:
        radial-gradient(55% 60% at 78% 30%, rgba(252, 221, 176, .75), transparent 70%),
        radial-gradient(45% 55% at 8% 92%, rgba(235, 198, 186, .45), transparent 70%),
        radial-gradient(40% 40% at 30% 10%, rgba(255, 252, 245, .9), transparent 70%);
}
/* Sombras de hojas proyectadas por el sol (se mecen y siguen al cursor) */
.leaf-shadows { position: absolute; inset: -4%; width: 108%; height: 108%; pointer-events: none; opacity: .1; filter: blur(7px); will-change: transform; }
.leaf-shadows path { fill: var(--ciruela); }
.leaf-shadows .stem { fill: none; stroke: var(--ciruela); }

.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(40px, 6vw, 110px); padding: calc(var(--nav-h) + 16px) 0 86px; }
.hero-text { position: relative; max-width: 640px; will-change: transform, opacity; }
/* Saludo: etiqueta de texto, lo dental en negritas */
.hero-hello { display: inline-flex; align-items: center; margin-bottom: 26px; padding: 9px 18px; border-radius: 999px; background: rgba(255, 250, 243, .78); border: 1px solid rgba(58, 35, 48, .08); box-shadow: 0 10px 24px -18px rgba(158, 70, 40, .5); font-size: .96rem; color: var(--ciruela-soft); }
.hero-hello strong { color: var(--ciruela); font-weight: 700; }

/* Título escalonado: la segunda línea entra con sangría */
.hero-title { font-size: clamp(2.9rem, 1rem + 4.6vw, 5.6rem); font-weight: 330; line-height: 1; letter-spacing: -.035em; }
.line { display: block; overflow: hidden; padding: .04em .06em .12em 0; margin-bottom: -.12em; white-space: nowrap; }
.line-in { display: inline-block; transform-origin: 0 100%; }
.line--indent { padding-left: 1.05em; }
.line--word { overflow: visible; padding-top: .06em; }

/* Palabra rotativa dentro de una cápsula durazno: rueda como un rodillo */
.word-pill {
    /* Con overflow: hidden la cápsula se alinea por su borde inferior, no por el texto:
       se baja lo que mide ese hueco (relleno + descendente) para que la palabra quede a la altura de "sin" */
    position: relative; display: inline-block; vertical-align: -.26em; overflow: hidden;
    padding: 0 .3em .05em; border-radius: 999px; line-height: 1.12; white-space: nowrap;
    background: linear-gradient(100deg, var(--miel-light) 0%, var(--durazno) 58%, var(--durazno-deep) 100%);
    box-shadow: inset 0 -.06em .12em rgba(158, 70, 40, .18), 0 .16em .4em -.2em rgba(238, 148, 112, .75);
    font-style: italic; font-weight: 360; color: var(--ciruela); font-variation-settings: "SOFT" 100, "WONK" 1;
    -webkit-mask-image: -webkit-radial-gradient(white, black); /* recorte redondeado en Safari */
}
.word-sizer { display: inline-block; white-space: nowrap; }
.js:not(.no-gsap):not(.reduced) .word-sizer { visibility: hidden; }
.word { position: absolute; left: .3em; top: 0; white-space: nowrap; }
.word .ch { display: inline-block; will-change: transform; }

/* Pie del hero: una sola columna (párrafo, acciones y confianza en una línea) */
.hero-foot { margin-top: clamp(30px, 4.2vh, 46px); }
.hero-desc { font-size: clamp(1.02rem, .96rem + .25vw, 1.16rem); line-height: 1.6; color: var(--ciruela-soft); max-width: 36ch; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.hero-wa { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 6px 0; font-weight: 600; font-size: .95rem; color: var(--ciruela); }
.hero-wa svg { width: 20px; height: 20px; color: var(--terracota); transition: transform .5s var(--ease-back); }
.hero-wa::after { content: ""; position: absolute; left: 28px; right: 0; bottom: -2px; height: 8px; border-bottom: 2px solid var(--miel); border-radius: 0 0 50% 50% / 0 0 100% 100%; transform-origin: left; transition: transform .5s var(--ease-back); }
.hero-wa:hover svg { transform: rotate(-12deg) scale(1.12); }
.hero-wa:hover::after { transform: scaleX(.6); }

/* Confianza: calificación + horario en vivo, en una línea discreta */
.hero-trust { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 30px; font-size: .86rem; color: var(--ciruela-soft); }
.hero-trust strong { color: var(--ciruela); font-weight: 700; }
.ht-live { display: inline-flex; align-items: center; gap: 9px; padding-left: 14px; border-left: 1.5px solid rgba(58, 35, 48, .14); font-weight: 600; color: var(--ciruela); }
.ht-live .sun-dot { width: 9px; height: 9px; }

/* ---------- Escenario del arco ---------- */
.arch-stage { position: relative; width: var(--arch-w); margin-right: clamp(0px, 3vw, 50px); }
.arch-zoom { position: relative; width: 100%; aspect-ratio: .8; transform-origin: 50% 12%; } /* sin will-change: escala hasta ~40× (ver main.js) */
.arch {
    position: absolute; inset: 0; overflow: hidden; isolation: isolate;
    border-radius: calc(var(--arch-w) / 2) calc(var(--arch-w) / 2) 0 0;
    box-shadow: inset 14px 20px 34px rgba(158, 70, 40, .2);
    transform: translateZ(0);
}
/* Con el zoom (hasta ~40×) una capa propia se rasterizaría gigante y agotaría la memoria de la GPU */
.hero.is-zooming .arch { transform: none; }
.arch-sky {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, var(--manana) 0%, var(--manana) 20%, #FCDCC4 56%, #F8C6A7 100%);
}
.cloud { position: absolute; height: 22px; border-radius: 999px; background: rgba(255, 252, 247, .75); filter: blur(3px); animation: cloud 38s linear infinite; }
.cloud::before { content: ""; position: absolute; left: 22%; top: -12px; width: 40%; height: 26px; border-radius: 50%; background: inherit; }
.cloud--1 { width: 110px; top: 16%; left: -30%; }
.cloud--2 { width: 80px; top: 28%; left: -30%; animation-duration: 52s; animation-delay: -24s; opacity: .7; }
.cloud--3 { width: 64px; top: 9%; left: -30%; animation-duration: 46s; animation-delay: -10s; opacity: .6; }
@keyframes cloud { to { transform: translateX(calc(var(--arch-w) * 1.7)); } }

.face { position: absolute; left: 0; bottom: 3%; width: 100%; height: auto; overflow: visible; }
/* Rayos en forma de pétalo: giran lento, en sentidos opuestos */
.rays { transform-box: view-box; transform-origin: 200px 215px; }
.rays--long { animation: spin 70s linear infinite; }
.rays--short { opacity: .85; animation: spin 90s linear infinite reverse; }
.sun-rim { fill: none; stroke: #FFF6E2; stroke-width: 7; stroke-linecap: round; opacity: .55; }
.brows path { fill: none; stroke: var(--ciruela); stroke-width: 2.6; stroke-linecap: round; }
.pupil > :first-child { fill: var(--ciruela); }
.glint { fill: #FFF6E8; }
.mouth { fill: none; stroke: var(--ciruela); stroke-width: 3.2; stroke-linecap: round; }
.mouth-fill { fill: #FFF8EE; stroke: var(--ciruela); stroke-width: 3.2; stroke-linejoin: round; opacity: 0; }
/* Separación de los dientes (recortada a la forma de la boca) */
.teeth path { fill: none; stroke: var(--ciruela); stroke-width: 1.8; stroke-linecap: round; opacity: .55; }
.brush-zone { outline: none; }
.foam { fill: #FFFBF4; stroke: rgba(232, 181, 94, .55); stroke-width: 1.2; }
.ting-text { font-family: var(--f-hand); font-size: 34px; font-weight: 700; fill: var(--barro); }
.sparkle { color: #FFF8EE; opacity: 0; transform-box: fill-box; transform-origin: center; }
.face-fx use { color: #FFF3D6; }
#faceFx { pointer-events: none; } /* la espuma y los destellos no tapan la zona de cepillado */

.arch-beam {
    position: absolute; inset: -20% -40% auto -10%; height: 140%; pointer-events: none;
    background: linear-gradient(115deg, rgba(255, 252, 245, .45) 0%, rgba(255, 252, 245, 0) 38%, rgba(255, 252, 245, .22) 48%, rgba(255, 252, 245, 0) 62%);
    animation: beam 9s ease-in-out infinite alternate;
}
@keyframes beam { to { transform: translateX(6%); opacity: .7; } }

/* Marco de cantera alrededor del arco */
.arch-frame {
    position: absolute; inset: -18px -18px 0; pointer-events: none;
    border: 18px solid var(--cantera); border-bottom: 0;
    border-radius: calc(var(--arch-w) / 2 + 18px) calc(var(--arch-w) / 2 + 18px) 0 0;
    box-shadow: 0 40px 70px -40px rgba(158, 70, 40, .55), inset 0 2px 0 rgba(255, 255, 255, .6);
}
.arch-frame::after {
    content: ""; position: absolute; inset: -12px -12px 0; border: 1.5px solid rgba(196, 98, 63, .28); border-bottom: 0;
    border-radius: calc(var(--arch-w) / 2 + 30px) calc(var(--arch-w) / 2 + 30px) 0 0;
}

/* Repisa con florero y taza de barro con cepillo de bambú */
.sill { position: relative; z-index: 3; height: 24px; margin: 0 -40px; border-radius: 10px; background: linear-gradient(#F1D6C1, #E2B79B); box-shadow: 0 20px 34px -18px rgba(158, 70, 40, .5), inset 0 2px 0 rgba(255, 255, 255, .55); }
.sill-art { position: absolute; left: 10px; right: 10px; bottom: calc(100% - 4px); width: calc(100% - 20px); overflow: visible; }
.sprigs, .brush { transform-box: fill-box; transform-origin: 50% 100%; }
.sprigs { animation: sway 5s ease-in-out infinite alternate; }
@keyframes sway { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }

/* Etiquetas de tratamientos colgadas de la repisa: papel con hilo y ojal.
   GSAP anima la entrada de .tag; el vaivén CSS vive solo en .tag-in */
.sill-tags { position: absolute; left: 4%; right: 4%; top: calc(100% - 4px); display: flex; justify-content: space-around; align-items: flex-start; list-style: none; pointer-events: none; }
.tag-in {
    position: relative; display: block; margin-top: var(--len); padding: 12px 11px 6px; border-radius: 4px 4px 9px 9px;
    background: var(--papel); box-shadow: 0 1px 2px rgba(58, 35, 48, .08), 0 12px 20px -12px rgba(158, 70, 40, .55);
    font-family: var(--f-hand); font-size: 1.28rem; font-weight: 600; line-height: .92; text-align: center; white-space: nowrap; color: var(--barro);
    transform: rotate(var(--r)); transform-origin: 50% calc(var(--len) * -1);
    animation: tagSway 3.4s ease-in-out var(--d) infinite alternate;
}
/* Hilo hasta la repisa y ojal del papel */
.tag-in::before { content: ""; position: absolute; left: 50%; bottom: calc(100% - 7px); width: 1.5px; height: calc(var(--len) + 7px); margin-left: -.75px; background: var(--terracota); opacity: .55; }
.tag-in::after { content: ""; position: absolute; left: 50%; top: 4px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--arena); box-shadow: inset 0 1px 1px rgba(58, 35, 48, .25); }
@keyframes tagSway { to { transform: rotate(calc(var(--r) * -1)); } }

.bugambilia { position: absolute; z-index: 4; top: -70px; right: -96px; width: 70%; overflow: visible; pointer-events: none; }
.bugambilia .stem { fill: none; }

.blob--a { width: 70%; aspect-ratio: 1; left: -34%; bottom: 4%; background: radial-gradient(circle at 40% 40%, rgba(242, 169, 131, .55), rgba(242, 169, 131, .12) 70%); }
.blob--b { width: 26%; aspect-ratio: 1; left: -20%; top: 6%; background: radial-gradient(circle at 40% 40%, rgba(235, 198, 186, .9), rgba(235, 198, 186, .25)); animation-duration: 28s; animation-direction: reverse; }
.blob--c { width: 34%; aspect-ratio: 1.1; right: -24%; top: 46%; background: radial-gradient(circle at 40% 40%, rgba(247, 203, 118, .6), rgba(247, 203, 118, .1) 75%); animation-duration: 44s; }

/* Pista manuscrita */
.hint { position: absolute; z-index: 5; left: -30%; top: 24%; display: flex; align-items: flex-start; gap: 4px; font-family: var(--f-hand); font-size: 1.55rem; line-height: 1; color: var(--barro); transform: rotate(-8deg); pointer-events: none; }
.hint svg { width: 82px; height: 56px; margin-top: 18px; overflow: visible; }
.hint-arrow { fill: none; stroke: var(--barro); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hint-touch { display: none; }

/* Bienvenida dentro de la casa (al final del zoom, solo escritorio) */
.hero-welcome { display: none; }
@media (min-width: 901px) {
    .js:not(.reduced):not(.no-gsap) .hero-welcome {
        position: absolute; inset: 0; z-index: 4; display: grid; place-content: center; justify-items: center; gap: 18px;
        text-align: center; pointer-events: none;
    }
}
.hw-text { font-family: var(--f-display); font-variation-settings: "SOFT" 100, "WONK" 0; font-size: clamp(3.4rem, 1.6rem + 5vw, 7.4rem); font-weight: 330; line-height: 1; letter-spacing: -.03em; }
.hw-text em { font-style: italic; color: var(--terracota); font-variation-settings: "SOFT" 100, "WONK" 1; }
.hw-w { display: inline-block; }
.hw-note { font-family: var(--f-hand); font-size: 1.6rem; color: var(--barro); transform: rotate(-3deg); }

/* Indicador de scroll: un sol que baja */
.scroll-cue { position: absolute; z-index: 3; left: 50%; bottom: 22px; translate: -50% 0; display: flex; flex-direction: column; align-items: center; gap: 8px; font-family: var(--f-hand); font-size: 1.2rem; color: var(--ciruela-soft); }
.sc-track { position: relative; width: 22px; height: 36px; border-radius: 999px; border: 1.5px solid rgba(58, 35, 48, .3); }
.sc-sun { position: absolute; left: 50%; top: 6px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--durazno-deep); animation: scSun 2s var(--ease-in-out) infinite; }
@keyframes scSun { 0% { transform: translateY(0); opacity: 0; } 25% { opacity: 1; } 80% { transform: translateY(16px); opacity: 0; } 100% { opacity: 0; } }

/* ==========================================================================
   8. FILOSOFÍA
   ========================================================================== */
.filosofia { z-index: 2; background: var(--manana); padding-top: clamp(90px, 9vw, 130px); }
.divider { position: absolute; left: 0; top: -89px; width: 100%; height: 90px; pointer-events: none; }
.divider path { fill: var(--manana); }
.blob--d { width: 46vw; max-width: 640px; aspect-ratio: 1; right: -16vw; top: 6%; background: radial-gradient(circle at 40% 40%, rgba(247, 203, 118, .32), transparent 70%); }
.blob--e { width: 40vw; max-width: 560px; aspect-ratio: 1; left: -18vw; bottom: 4%; background: radial-gradient(circle at 50% 50%, rgba(235, 198, 186, .55), transparent 70%); animation-direction: reverse; }

.filo-grid { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(48px, 7vw, 130px); align-items: start; }
.filo-media { position: sticky; top: calc(var(--nav-h) + 30px); }

/* Marco en arco (hueco de foto). La ilustración vive dentro de un SVG recortado por un blob */
.frame {
    position: relative; width: 100%; max-width: calc((100svh - var(--nav-h) - 120px) * .77); margin-inline: auto;
    aspect-ratio: 400 / 520; border-radius: 999px 999px 30px 30px; overflow: hidden;
    background: var(--arena); box-shadow: 0 60px 90px -60px rgba(158, 70, 40, .6);
    transform: translateZ(0);
}
.frame-svg { width: 100%; height: 100%; }
.lamp { transform-box: fill-box; transform-origin: 50% 0; animation: lamp 6s ease-in-out infinite alternate; }
@keyframes lamp { from { transform: rotate(-2.5deg); } to { transform: rotate(2.5deg); } }
.tea-steam path { opacity: 0; animation: teaSteam 3.6s ease-in-out infinite; }
.tea-steam path:nth-child(2) { animation-delay: 1.8s; }
@keyframes teaSteam { 0% { transform: translateY(6px); opacity: 0; } 40% { opacity: .9; } 100% { transform: translateY(-12px); opacity: 0; } }
.casona-beam { animation: casonaBeam 7s ease-in-out infinite alternate; }
@keyframes casonaBeam { to { opacity: .6; } }
.plant-leaves { transform-box: fill-box; transform-origin: 50% 100%; animation: sway 7s ease-in-out infinite alternate; }

/* Letrero colgante "¡Pasa!": cuelga de un clavo y se mece con el scroll */
.door-sign { position: absolute; z-index: 3; right: -46px; top: 9%; width: 158px; transform-origin: 50% 5px; will-change: transform; }
.ds-strings { display: block; width: 100%; height: 50px; overflow: visible; }
.ds-strings path { fill: none; stroke: var(--barro); stroke-width: 1.6; stroke-linecap: round; }
.ds-strings circle { fill: var(--ciruela); }
.ds-board {
    position: relative; margin-top: -4px; padding: 14px 14px 12px; border-radius: 18px; text-align: center; color: var(--luz);
    background: linear-gradient(165deg, #D3734D 0%, var(--terracota) 55%, #AE5131 100%);
    box-shadow: 0 22px 34px -16px rgba(158, 70, 40, .75), inset 0 1.5px 0 rgba(255, 236, 214, .35), inset 0 -3px 0 rgba(58, 35, 48, .14);
    transition: background .5s;
}
.ds-board::before, .ds-board::after { content: ""; position: absolute; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: rgba(58, 35, 48, .45); box-shadow: inset 0 1px 1px rgba(0, 0, 0, .3); }
.ds-board::before { left: 14px; } .ds-board::after { right: 14px; }
.ds-sun { width: 22px; height: 22px; margin: 0 auto 2px; color: var(--miel-light); animation: spin 14s linear infinite; }
.ds-big { display: block; font-family: var(--f-display); font-style: italic; font-weight: 460; font-size: 1.9rem; line-height: 1; letter-spacing: -.02em; font-variation-settings: "SOFT" 100, "WONK" 1; }
.ds-small { display: block; margin-top: 4px; font-family: var(--f-hand); font-size: 1.12rem; line-height: 1.05; opacity: .92; }
.door-sign.is-closed .ds-board { background: linear-gradient(165deg, #5A3A49 0%, var(--ciruela) 100%); }
.door-sign.is-closed .ds-sun { color: var(--rosa); }
.door-sign.is-closed .ds-big { font-size: 1.4rem; }
.frame-cap { position: absolute; left: 6%; bottom: -46px; font-family: var(--f-hand); font-size: 1.45rem; color: var(--barro); transform: rotate(-4deg); }

.filo-content { padding-top: clamp(0px, 3vw, 30px); }
.filo-content .section-title { max-width: 12ch; }

/* Manifiesto que se ilumina con luz de sol */
.manifesto { margin: 40px 0 70px; font-size: clamp(1.5rem, 1rem + 1.45vw, 2.3rem); font-weight: 340; line-height: 1.32; letter-spacing: -.012em; color: var(--ciruela); }
.manifesto .w { color: rgba(58, 35, 48, .16); }
.mk { position: relative; display: inline-block; white-space: nowrap; }
.mk-svg { position: absolute; pointer-events: none; overflow: visible; }
.mk-svg path { fill: none; stroke: var(--terracota); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.mk-svg--circle { left: -12%; top: -18%; width: 124%; height: 140%; }
.mk-svg--underline { left: -4%; bottom: -.18em; width: 108%; height: .4em; }
.mk-svg--scribble { left: -3%; bottom: -.22em; width: 106%; height: .5em; }
.mk-svg--sun { right: -.65em; top: -.45em; width: .9em; height: .9em; }
.mk-svg--sun path { stroke: var(--miel); stroke-width: 3; }

.promises { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.promise {
    position: relative; overflow: hidden; isolation: isolate;
    padding: 26px 22px 24px; border-radius: 30px 30px 30px 10px;
    background: rgba(255, 250, 243, .62); border: 1px solid rgba(255, 255, 255, .8);
    box-shadow: 0 30px 50px -40px rgba(158, 70, 40, .5);
    transition: box-shadow .6s;
}
/* La transición de transform se activa solo después del revelado (si no, choca con GSAP) */
.promise.is-ready, .doc-note.is-ready { transition: transform .7s var(--ease-back), box-shadow .6s; }
.promise:nth-child(2) { border-radius: 30px 30px 10px 30px; }
.promise::before { content: ""; position: absolute; z-index: -1; width: 180px; height: 180px; left: -60px; top: -70px; border-radius: 58% 42% 55% 45% / 48% 60% 40% 52%; background: radial-gradient(circle, rgba(247, 203, 118, .45), transparent 70%); transform: scale(.4); transition: transform .9s var(--ease-out); }
.promise-ico { width: 50px; height: 50px; margin-bottom: 16px; overflow: visible; }
.promise-ico * { fill: none; stroke: var(--terracota); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.promise-title { font-family: var(--f-display); font-size: clamp(1.15rem, .95rem + .4vw, 1.36rem); text-wrap: balance; font-weight: 420; line-height: 1.1; letter-spacing: -.015em; margin-bottom: 10px; }
.promise-txt { font-size: .93rem; line-height: 1.5; color: var(--ciruela-soft); }
@media (hover: hover) {
    .promise:hover { transform: translateY(-8px) rotate(-1.2deg); box-shadow: 0 40px 60px -40px rgba(158, 70, 40, .6); }
    .promise:nth-child(2):hover { transform: translateY(-8px) rotate(1.2deg); }
    .promise:hover::before { transform: scale(1.4); }
    .promise:hover .promise-ico { animation: wiggle .7s var(--ease-out); }
}
/* Trayectoria: 15 años, pacientes y 0 regaños en una línea discreta */
.filo-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 24px; font-size: .92rem; color: var(--ciruela-soft); }
.filo-facts span + span::before { content: "·"; margin-right: 22px; color: var(--terracota); }
.filo-facts strong { font-family: var(--f-display); font-size: 1.15rem; font-weight: 460; color: var(--terracota); font-variant-numeric: tabular-nums; }
@keyframes wiggle { 30% { transform: rotate(-10deg) scale(1.08); } 60% { transform: rotate(6deg); } }

/* Nota de la doctora */
.doc-note {
    position: relative; margin: 64px 0 0 auto; max-width: 470px; padding: 38px 34px 26px;
    background: var(--papel); border-radius: 6px 6px 18px 6px; transform: rotate(-2deg);
    box-shadow: 0 2px 4px rgba(58, 35, 48, .06), 0 34px 54px -32px rgba(58, 35, 48, .45);
}
.no-gsap .doc-note, .reduced .doc-note, .no-gsap .promise, .reduced .promise { transition: transform .7s var(--ease-back), box-shadow .6s; }
.doc-note::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: repeating-linear-gradient(transparent 0 33px, rgba(196, 98, 63, .1) 33px 34px); background-position: 0 30px; pointer-events: none; }
.doc-note:hover { transform: rotate(0) translateY(-4px); }
.tape { position: absolute; left: 50%; top: -14px; width: 118px; height: 30px; margin-left: -59px; background: rgba(235, 198, 186, .88); transform: rotate(-4deg); transform-origin: center; clip-path: polygon(0 8%, 4% 0, 96% 6%, 100% 0, 98% 92%, 100% 100%, 3% 94%, 0 100%); }
.doc-note blockquote p { position: relative; z-index: 1; font-family: var(--f-hand); font-size: clamp(1.55rem, 1.3rem + .6vw, 1.9rem); line-height: 1.12; color: var(--ciruela); }
.doc-note figcaption { position: relative; z-index: 1; display: grid; gap: 2px; margin-top: 14px; }
.signature { width: 170px; height: 54px; overflow: visible; }
.signature path { fill: none; stroke: var(--ciruela); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sig-name { font-weight: 700; font-size: .95rem; }
.sig-role { font-size: .82rem; color: var(--ciruela-soft); }

/* ==========================================================================
   9. SERVICIOS · mediodía: la luz más clara del día
   ========================================================================== */
.servicios { z-index: 3; background: var(--luz); padding-top: clamp(80px, 8vw, 120px); }
.divider--luz path { fill: var(--luz); }
.blob--f { width: 42vw; max-width: 600px; aspect-ratio: 1; left: 30%; top: -4%; background: radial-gradient(circle at 50% 50%, rgba(247, 203, 118, .28), transparent 70%); animation-duration: 46s; }

.svc-head { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 60px; margin-bottom: clamp(44px, 5vw, 70px); }
.svc-intro { max-width: 34ch; font-size: clamp(1rem, .95rem + .25vw, 1.14rem); line-height: 1.6; color: var(--ciruela-soft); }

/* Carta de tratamientos: la lista con precios a la izquierda, el carrete de fotos a la derecha */
.svc-grid { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(48px, 7vw, 120px); align-items: center; }

/* ---------- Carrete vertical con las fotos ---------- */
.svc-reel { --reel-w: min(420px, 100%, calc((100svh - 220px) * .8)); width: var(--reel-w); margin-inline: auto; }
.svc-reel-frame { position: relative; aspect-ratio: .8; overflow: hidden; border-radius: 28px; background: var(--arena); box-shadow: 0 50px 80px -46px rgba(158, 70, 40, .6); transform: translateZ(0); }
/* Sin animación: las fotos se encienden una sobre otra. Con GSAP (.svc-anim) van en una tira que se desliza */
.svc-track { position: absolute; inset: 0; will-change: transform; }
.svc-slide { position: absolute; inset: 0; overflow: hidden; opacity: 0; transition: opacity .7s var(--ease-out); }
.svc-slide.is-active { opacity: 1; }
.svc-anim .svc-track { bottom: auto; height: 500%; }
.svc-anim .svc-slide { position: relative; height: 20%; opacity: 1; transition: none; }
/* La imagen es más alta que su marco para el parallax interno; gradación cálida (nada de azules clínicos) */
.svc-ph { position: absolute; left: 0; top: -12%; width: 100%; height: 124%; object-fit: cover; filter: sepia(.3) saturate(.88) contrast(.97) brightness(1.03); }
.svc-reel-frame::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit; background: linear-gradient(180deg, rgba(252, 221, 176, .16), rgba(242, 169, 131, .1) 55%, rgba(158, 70, 40, .2)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
/* Pie: contador, línea fina y duración */
.svc-cap { display: flex; align-items: center; gap: 14px; margin-top: 18px; font-size: .78rem; font-weight: 700; letter-spacing: .18em; color: var(--ciruela-soft); }
.svc-count { flex-shrink: 0; display: inline-flex; gap: .4em; font-variant-numeric: tabular-nums; }
.svc-count-n, .svc-cap-txt { display: inline-block; overflow: hidden; vertical-align: bottom; }
.svc-count-n span, .svc-cap-txt span { display: inline-block; }
#svcCount { color: var(--terracota); }
.svc-cap-line { flex: 1; height: 1.5px; background: rgba(58, 35, 48, .16); transform-origin: 0 50%; }
.svc-cap-txt { flex-shrink: 0; font-family: var(--f-hand); font-size: 1.3rem; font-weight: 600; letter-spacing: 0; color: var(--barro); }

/* ---------- La carta ---------- */
.svc-menu { position: relative; grid-row: 1; grid-column: 1; }
.svc-reel { grid-row: 1; grid-column: 2; }
.svc-hint { position: absolute; right: 0; bottom: calc(100% + 6px); display: flex; align-items: flex-end; gap: 4px; font-family: var(--f-hand); font-size: 1.35rem; line-height: 1; color: var(--barro); transform: rotate(-3deg); pointer-events: none; }
.svc-hint > * { transition: opacity .6s; } /* GSAP anima la entrada de .svc-hint; CSS la esconde en los hijos */
.svc-hint svg { width: 44px; height: 24px; overflow: visible; transform: scaleX(-1); }
.svc-hint path { fill: none; stroke: var(--barro); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.svc-menu.is-touched .svc-hint > * { opacity: 0; }
.svc-list { border-top: 1.5px solid rgba(58, 35, 48, .16); }
.svc-item { position: relative; isolation: isolate; border-bottom: 1px solid var(--line); }
/* Luz de mediodía sobre el tratamiento elegido */
.svc-item::before { content: ""; position: absolute; inset: 0 -18px; z-index: -1; border-radius: 18px; background: linear-gradient(90deg, rgba(247, 203, 118, .26), rgba(247, 203, 118, 0) 75%); opacity: 0; transition: opacity .5s; }
.svc-item.is-active::before { opacity: 1; }
.svc-btn { width: 100%; display: flex; align-items: baseline; gap: 14px; padding: 20px 2px; text-align: left; }
.svc-num { flex-shrink: 0; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; transform: translateY(-4px); font-size: .7rem; font-weight: 700; letter-spacing: .06em; color: var(--barro); border: 1.5px solid rgba(196, 98, 63, .3); transition: background-color .4s, color .4s, border-color .4s; }
.svc-name { font-family: var(--f-display); font-variation-settings: "SOFT" 100, "WONK" 0; font-size: clamp(1.45rem, .9rem + 1.5vw, 2.3rem); font-weight: 360; line-height: 1.05; letter-spacing: -.02em; transition: color .4s, translate .6s var(--ease-out); }
.svc-dots { flex: 1; min-width: 16px; border-bottom: 2px dotted rgba(196, 98, 63, .35); transform-origin: 0 50%; }
.svc-price { flex-shrink: 0; font-family: var(--f-hand); font-size: 1.25rem; line-height: 1; white-space: nowrap; color: var(--barro); }
.svc-price strong { font-size: 1.6rem; font-weight: 700; color: var(--terracota); }
.svc-item.is-active .svc-num { background: var(--terracota); border-color: var(--terracota); color: var(--luz); }
.svc-item.is-active .svc-name { color: var(--terracota); translate: 6px 0; }
@media (hover: hover) {
    .svc-btn:hover .svc-name { translate: 6px 0; }
}
/* La descripción se abre como un cajón (solo CSS: GSAP no toca su altura) */
.svc-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease-out); }
.svc-item.is-active .svc-more { grid-template-rows: 1fr; }
.svc-more-in { min-height: 0; overflow: hidden; padding-left: 46px; }
.svc-more p { max-width: 44ch; padding-bottom: 22px; font-size: .98rem; line-height: 1.55; color: var(--ciruela-soft); }
.svc-meta { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* la duración se ve en la etiqueta; aquí queda para lectores de pantalla */
.svc-note { margin-top: 26px; font-family: var(--f-hand); font-size: 1.3rem; color: var(--barro); }
.svc-card-ph, .svc-pager { display: none; } /* solo en el carrusel móvil */

/* ==========================================================================
   10. OPINIONES · la tarde: la luz se vuelve arena
   ========================================================================== */
.opiniones { z-index: 4; background: var(--arena); padding-top: clamp(80px, 8vw, 120px); }
.divider--arena path { fill: var(--arena); }
.blob--g { width: 44vw; max-width: 620px; aspect-ratio: 1; right: -12vw; top: 10%; background: radial-gradient(circle at 50% 50%, rgba(242, 169, 131, .3), transparent 70%); animation-duration: 42s; }
.op-title { margin-bottom: clamp(50px, 6vw, 90px); }
.op-title em { white-space: nowrap; } /* "al salir." nunca se parte */

/* ---------- Mariana, la protagonista ---------- */
.op-main { position: relative; max-width: 1060px; margin: 0 auto clamp(60px, 7vw, 100px); padding-left: clamp(0px, 6vw, 90px); }
.op-qmark { position: absolute; left: clamp(-10px, 1vw, 10px); top: -.32em; font-family: var(--f-display); font-variation-settings: "SOFT" 100, "WONK" 1; font-style: italic; font-size: clamp(7rem, 4rem + 9vw, 14rem); line-height: 1; color: var(--durazno); opacity: .55; pointer-events: none; }
.op-quote { position: relative; font-family: var(--f-display); font-variation-settings: "SOFT" 100, "WONK" 0; font-size: clamp(2rem, 1rem + 3.4vw, 4.2rem); font-weight: 340; line-height: 1.12; letter-spacing: -.025em; color: var(--ciruela); text-wrap: balance; }
/* Marcas a mano: "miedo" tachado, "pena irme" subrayado con una sonrisa */
.op-mk { position: relative; display: inline-block; white-space: nowrap; }
.op-mk svg { position: absolute; left: -3%; width: 106%; overflow: visible; pointer-events: none; }
.op-mk path { fill: none; stroke: var(--terracota); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.op-mk--strike svg { top: 38%; height: .32em; }
.op-mk--smile { font-style: italic; color: var(--terracota); font-variation-settings: "SOFT" 100, "WONK" 1; }
.op-mk--smile svg { bottom: -.24em; height: .34em; }
.op-mk--smile path { stroke: var(--miel); stroke-width: 3.4; }

.op-who { display: flex; align-items: center; gap: 14px; margin-top: 30px; font-size: .95rem; color: var(--ciruela-soft); }
.op-who strong { display: block; font-weight: 700; color: var(--ciruela); }
.op-since { display: block; font-size: .86rem; }
.op-avatar { flex-shrink: 0; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; font-family: var(--f-display); font-style: italic; font-size: 1.35rem; font-variation-settings: "SOFT" 100, "WONK" 1; color: var(--ciruela); background: radial-gradient(circle at 35% 30%, var(--miel-light), var(--durazno) 70%); box-shadow: inset 0 -3px 6px rgba(158, 70, 40, .18); }
.op-avatar--miel { background: radial-gradient(circle at 35% 30%, #FCE2B6, var(--miel) 75%); }
.op-avatar--rosa { background: radial-gradient(circle at 35% 30%, #F8DCD2, var(--rosa) 75%); }
.op-who--sm { gap: 12px; margin-top: 22px; }
.op-who--sm .op-avatar { width: 38px; height: 38px; font-size: 1.1rem; }

/* ---------- Dos reseñas cortas + la calificación ---------- */
.op-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, .9fr); gap: 16px; align-items: stretch; }
.op-card {
    position: relative; padding: 30px 28px 26px; border-radius: 26px;
    background: rgba(255, 249, 241, .72); border: 1px solid rgba(255, 255, 255, .8);
    box-shadow: 0 30px 50px -40px rgba(158, 70, 40, .55);
}
/* La transición de transform se activa solo después del revelado (si no, choca con GSAP) */
.op-card.is-ready, .no-gsap .op-card, .reduced .op-card { transition: transform .7s var(--ease-back), box-shadow .6s; }
.op-card p { font-family: var(--f-display); font-variation-settings: "SOFT" 100, "WONK" 0; font-size: clamp(1.15rem, .95rem + .45vw, 1.4rem); font-weight: 380; line-height: 1.3; letter-spacing: -.01em; color: var(--ciruela); }
@media (hover: hover) {
    .op-card:hover { transform: translateY(-6px) rotate(-.8deg); box-shadow: 0 40px 60px -40px rgba(158, 70, 40, .6); }
    .op-card:nth-child(2):hover { transform: translateY(-6px) rotate(.8deg); }
}
.op-score { display: flex; align-items: center; gap: 18px; padding: 26px 28px; border-radius: 26px; background: var(--ciruela); color: var(--luz); }
.op-num { font-family: var(--f-display); font-variation-settings: "SOFT" 100, "WONK" 0; font-size: clamp(3.6rem, 2.4rem + 2.6vw, 5.2rem); font-weight: 340; line-height: .9; letter-spacing: -.04em; font-variant-numeric: tabular-nums; color: var(--miel-light); }
.op-score .suns { color: var(--miel-light); }
.op-score .suns svg { width: 15px; height: 15px; }
.op-count { margin-top: 8px; font-size: .9rem; color: rgba(251, 244, 234, .78); }
.op-count strong { color: var(--luz); font-weight: 700; }
.op-hand { margin-top: 2px; font-family: var(--f-hand); font-size: 1.25rem; line-height: 1; color: var(--durazno); transform: rotate(-3deg); transform-origin: 0 50%; }

/* ==========================================================================
   11. CONTACTO · el atardecer: la luz se entibia antes de la noche ciruela
   ========================================================================== */
.contacto { z-index: 5; background: linear-gradient(180deg, var(--atardecer) 0%, var(--atardecer) 35%, var(--atardecer-deep) 100%); padding-top: clamp(80px, 8vw, 120px); }
.divider--tarde path { fill: var(--atardecer); }
.blob--h { width: 46vw; max-width: 660px; aspect-ratio: 1; left: -16vw; top: 18%; background: radial-gradient(circle at 50% 50%, rgba(247, 203, 118, .34), transparent 70%); animation-duration: 50s; }
.ct-title { max-width: 14ch; margin-bottom: clamp(44px, 5vw, 76px); }
.ct-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }

/* ---------- Formulario de primera visita ---------- */
.ct-form-card { position: relative; padding: clamp(28px, 3vw, 44px); border-radius: 32px; background: var(--papel); box-shadow: 0 2px 4px rgba(58, 35, 48, .05), 0 50px 80px -50px rgba(158, 70, 40, .6); scroll-margin-top: calc(var(--nav-h) + 20px); }
.ct-h { font-family: var(--f-display); font-variation-settings: "SOFT" 100, "WONK" 0; font-size: clamp(1.6rem, 1.2rem + 1vw, 2.2rem); font-weight: 380; line-height: 1.05; letter-spacing: -.02em; }
.ct-lead { margin: 10px 0 26px; max-width: 42ch; font-size: .95rem; line-height: 1.55; color: var(--ciruela-soft); }
.field { margin-bottom: 20px; }
.field label { display: block; margin-bottom: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--barro); }
.field input, .field textarea {
    width: 100%; padding: 13px 16px; border-radius: 14px; border: 1.5px solid rgba(58, 35, 48, .14); background: var(--luz);
    font: inherit; font-size: 1rem; color: var(--ciruela); resize: vertical;
    transition: border-color .3s, background-color .3s, box-shadow .3s;
}
.field textarea { min-height: 92px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(107, 74, 82, .55); }
.field input:hover, .field textarea:hover { border-color: rgba(196, 98, 63, .4); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--terracota); background: #fff; box-shadow: 0 0 0 4px rgba(242, 169, 131, .3); }
.field input:focus-visible, .field textarea:focus-visible { outline: 2.5px solid var(--terracota); outline-offset: 2px; }
.field [aria-invalid="true"] { border-color: var(--bugambilia); background: #FFF6F4; }
.field-hint { margin-top: 6px; font-size: .8rem; color: var(--ciruela-soft); }
.field-err { min-height: 0; margin-top: 6px; font-size: .84rem; font-weight: 600; color: #B4475A; }
.field-err:empty { display: none; }
/* Frases rápidas */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.chip { padding: 7px 13px 6px; border-radius: 999px; border: 1.5px solid rgba(196, 98, 63, .28); font-family: var(--f-hand); font-size: 1.12rem; line-height: 1; color: var(--barro); transition: background-color .3s, border-color .3s, color .3s; }
.chip:hover { border-color: var(--terracota); background: rgba(247, 203, 118, .22); }
.chip[aria-pressed="true"] { background: var(--terracota); border-color: var(--terracota); color: var(--luz); }
.ct-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 28px; }
.ct-note { max-width: 24ch; font-family: var(--f-hand); font-size: 1.2rem; line-height: 1.1; color: var(--barro); }
/* Después de enviar */
.ct-done { padding: clamp(10px, 3vw, 40px) 0; text-align: center; }
.ct-done:focus { outline: none; }
.ct-done .ct-lead { margin-inline: auto; }
.ct-check { width: 84px; height: 84px; margin: 0 auto 18px; overflow: visible; }
.ct-check circle { fill: rgba(247, 203, 118, .3); stroke: var(--miel); stroke-width: 3; }
.ct-check path { fill: none; stroke: var(--terracota); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }
.ct-demo { font-family: var(--f-hand); font-size: 1.25rem; color: var(--barro); }
.ct-demo a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--miel); }
.ct-again { margin-top: 18px; padding: 8px 0; font-weight: 600; font-size: .92rem; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--miel); }

/* ---------- Ubicación ---------- */
.ct-place { display: grid; gap: 18px; }
.ct-map { position: relative; border-radius: 26px; overflow: hidden; box-shadow: 0 50px 80px -50px rgba(158, 70, 40, .6); background: #F7E3D3; }
.ct-map > svg { width: 100%; height: auto; }
/* Botón para ver el mapa real y el iframe de Google encima del ilustrado */
.map-toggle { position: absolute; z-index: 3; right: 14px; top: 14px; display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 999px; background: var(--ciruela); color: var(--luz); font-size: .84rem; font-weight: 600; box-shadow: 0 12px 24px -14px rgba(58, 35, 48, .8); transition: background-color .3s, color .3s; }
.map-toggle svg { width: 17px; height: 17px; color: var(--miel-light); }
.map-toggle:hover { background: var(--terracota); }
.map-real { position: absolute; inset: 0; z-index: 2; background: var(--arena); }
.map-real iframe { display: block; width: 100%; height: 100%; border: 0; }
.map-bg { fill: #F7E3D3; }
.map-blocks rect { fill: #EFD2BC; }
.map-park { fill: #F4CB9C; }
.map-trees circle { fill: #E8B07A; }
.map-streets path { fill: none; stroke: var(--papel); stroke-width: 9; stroke-linecap: round; }
.map-sosa { fill: none; stroke: var(--papel); stroke-width: 20; stroke-linecap: round; }
.map-label { font-family: var(--f-hand); font-size: 17px; font-weight: 600; fill: var(--barro); }
.map-label--street { font-size: 15px; fill: var(--terracota); dominant-baseline: middle; }
.map-label--sm { font-size: 15px; }
.map-route { fill: none; stroke: var(--terracota); stroke-width: 3; stroke-linecap: round; stroke-dasharray: .1 9; }
.map-metro circle { fill: var(--ciruela); }
.map-metro text { font-family: var(--f-body); font-size: 13px; font-weight: 800; fill: var(--luz); }
.map-compass circle { fill: none; stroke: rgba(58, 35, 48, .25); stroke-width: 1.5; }
.map-compass path { fill: var(--terracota); }
.map-compass text { font-family: var(--f-body); font-size: 10px; font-weight: 800; fill: var(--ciruela-soft); }
.map-pin-in path { fill: var(--terracota); }
.map-pin-in circle { fill: var(--papel); }
.map-pulse { fill: rgba(196, 98, 63, .28); transform-box: fill-box; transform-origin: center; animation: mapPulse 2.6s var(--ease-out) infinite; }
@keyframes mapPulse { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(2.6); opacity: 0; } }
.map-tag rect { fill: var(--ciruela); }
.map-tag text { font-family: var(--f-display); font-style: italic; font-size: 19px; font-weight: 480; fill: var(--luz); font-variation-settings: "SOFT" 100, "WONK" 1; }
.ct-info { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 30px; align-items: start; padding: 24px 26px; border-radius: 26px; background: rgba(255, 249, 241, .66); border: 1px solid rgba(255, 255, 255, .75); }
.ct-addr { font-family: var(--f-display); font-variation-settings: "SOFT" 100, "WONK" 0; font-size: 1.3rem; font-weight: 420; letter-spacing: -.01em; }
.ct-status { display: inline-flex; align-items: center; gap: 9px; margin-top: 8px; font-size: .9rem; font-weight: 600; }
.ct-status .sun-dot { width: 9px; height: 9px; }
.ct-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; }
.ct-links a { display: inline-flex; align-items: center; gap: 7px; font-size: .9rem; font-weight: 600; }
.ct-links svg { width: 18px; height: 18px; color: var(--terracota); }
.ct-links a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--miel); }
.ct-hours { display: grid; gap: 6px; min-width: 230px; font-size: .88rem; color: var(--ciruela-soft); }
.ct-hours li { display: flex; justify-content: space-between; gap: 16px; padding: 7px 12px; border-radius: 10px; transition: background-color .4s; }
.ct-hours li.is-today { background: rgba(247, 203, 118, .32); color: var(--ciruela); font-weight: 600; }
.ct-hours li.is-today span:first-child::after { content: " · hoy"; font-family: var(--f-hand); font-size: 1.1rem; font-weight: 600; color: var(--barro); }

/* ---------- Preguntas frecuentes ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(30px, 5vw, 90px); margin-top: clamp(70px, 8vw, 120px); }
.faq-title { font-family: var(--f-display); font-variation-settings: "SOFT" 100, "WONK" 0; font-size: clamp(2rem, 1.3rem + 2vw, 3.2rem); font-weight: 360; line-height: 1; letter-spacing: -.025em; }
.faq-title em { font-style: italic; color: var(--terracota); font-variation-settings: "SOFT" 100, "WONK" 1; }
.faq-note { margin-top: 16px; max-width: 28ch; font-family: var(--f-hand); font-size: 1.3rem; line-height: 1.15; color: var(--barro); }
.faq-list { border-top: 1.5px solid rgba(58, 35, 48, .16); }
.faq-item { border-bottom: 1px solid rgba(58, 35, 48, .14); transition: background-color .45s, box-shadow .45s, border-color .45s; }
/* La pregunta abierta se separa del fondo: papel cálido y respuesta en ciruela */
.faq-item.is-open { border-radius: 18px; background: rgba(255, 249, 241, .82); border-bottom-color: transparent; box-shadow: 0 24px 40px -34px rgba(158, 70, 40, .6); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 18px; text-align: left; font-family: var(--f-display); font-variation-settings: "SOFT" 100, "WONK" 0; font-size: clamp(1.2rem, 1rem + .6vw, 1.55rem); font-weight: 380; letter-spacing: -.01em; transition: color .3s; }
.faq-q:hover, .faq-q[aria-expanded="true"] { color: var(--terracota); }
/* Más que gira hasta volverse menos (solo CSS: GSAP no lo toca) */
.faq-ico { position: relative; flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid rgba(196, 98, 63, .35); transition: background-color .4s, border-color .4s, transform .6s var(--ease-back); }
.faq-ico::before, .faq-ico::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.8px; margin: -.9px 0 0 -6px; border-radius: 2px; background: var(--terracota); transition: transform .5s var(--ease-out), background-color .4s; }
.faq-ico::after { transform: rotate(90deg); }
.faq-q[aria-expanded="true"] .faq-ico { background: var(--terracota); border-color: var(--terracota); transform: rotate(180deg); }
.faq-q[aria-expanded="true"] .faq-ico::before, .faq-q[aria-expanded="true"] .faq-ico::after { background: var(--luz); }
.faq-q[aria-expanded="true"] .faq-ico::after { transform: rotate(0deg); }
/* Sin JS las respuestas quedan abiertas; con JS se pliegan y abre una a la vez */
.faq-a { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .55s var(--ease-out); }
.js .faq-a { grid-template-rows: 0fr; }
.js .faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a-in { min-height: 0; overflow: hidden; }
.faq-a p { max-width: 58ch; padding: 0 68px 24px 18px; font-size: 1rem; line-height: 1.6; color: var(--ciruela); }

/* ==========================================================================
   12. FOOTER · la noche cálida que cierra el día
   ========================================================================== */
.footer {
    position: relative; z-index: 6; color: var(--luz); padding-top: clamp(90px, 9vw, 140px); /* sin overflow: hidden, o recorta la ola */
    background:
        radial-gradient(60% 300px at 50% 340px, rgba(238, 148, 112, .18), transparent 70%), /* la última luz, detrás del título (en el borde de arriba no hay brillo: empata con la ola) */
        linear-gradient(180deg, var(--ciruela) 0%, var(--noche) 70%);
}
.footer .divider { top: -89px; }
.divider--noche path { fill: var(--ciruela); }
.footer :focus-visible { outline-color: var(--miel-light); }
/* Estrellas tibias que titilan (solo CSS) */
.ft-stars { position: absolute; inset: 0 0 auto; height: clamp(110px, 14vw, 180px); pointer-events: none; } /* solo en el cielo, arriba del título */
.ft-stars svg { position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); color: var(--miel-light); opacity: .5; animation: twinkle 4.2s ease-in-out var(--d) infinite; }
@keyframes twinkle { 0%, 100% { opacity: .25; transform: scale(.7); } 50% { opacity: .9; transform: scale(1); } }

/* Cierre con el último botón */
.ft-cta { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 30px 60px; padding-bottom: clamp(50px, 6vw, 80px); border-bottom: 1px solid rgba(251, 244, 234, .12); }
.ft-title { font-family: var(--f-display); font-variation-settings: "SOFT" 100, "WONK" 0; font-size: clamp(2.8rem, 1.2rem + 5vw, 6rem); font-weight: 330; line-height: .98; letter-spacing: -.03em; }
.ft-title em { font-style: italic; color: var(--durazno); font-variation-settings: "SOFT" 100, "WONK" 1; }
.ft-cta-side { max-width: 360px; }
.ft-lead { margin-bottom: 22px; font-size: 1.02rem; line-height: 1.55; color: rgba(251, 244, 234, .72); }
.btn--light { background: var(--luz); color: var(--ciruela); box-shadow: 0 18px 34px -18px rgba(0, 0, 0, .6); }
@media (hover: hover) {
    .btn--light:hover { box-shadow: 0 22px 40px -18px rgba(238, 148, 112, .7); }
}

/* Datos en cuatro columnas */
.ft-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; padding: clamp(40px, 5vw, 64px) 0; }
.ft-h { margin-bottom: 14px; font-size: .74rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--durazno); }
.ft-col p { font-size: .95rem; line-height: 1.6; color: rgba(251, 244, 234, .78); }
.ft-col a { display: block; width: fit-content; }
.ft-col .nw { white-space: nowrap; }
.ft-link, .ft-social a { margin-top: 6px; font-size: .95rem; color: var(--luz); text-decoration: underline; text-decoration-color: rgba(251, 244, 234, .25); text-underline-offset: 4px; transition: text-decoration-color .3s, color .3s; }
.ft-link:hover, .ft-social a:hover { color: var(--miel-light); text-decoration-color: var(--miel-light); }
.ft-wa { display: inline-flex !important; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(251, 244, 234, .1); font-weight: 600; font-size: .92rem; transition: background-color .3s, color .3s; }
.ft-wa svg { width: 18px; height: 18px; color: var(--miel-light); }
.ft-wa:hover { background: var(--miel-light); color: var(--ciruela); }
.ft-wa:hover svg { color: var(--ciruela); }
.ft-wa + .ft-link { margin-top: 12px; }
.ft-status { display: inline-flex; align-items: center; gap: 9px; margin-top: 12px; font-weight: 600; color: var(--luz) !important; }
.ft-status .sun-dot { width: 9px; height: 9px; }

/* Despedida firmada por la doctora */
.ft-sign { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: clamp(10px, 2vw, 30px) 0 clamp(40px, 5vw, 64px); text-align: center; }
.ft-sign-svg { width: clamp(170px, 18vw, 230px); height: auto; overflow: visible; }
.ft-sign-svg path { fill: none; stroke: var(--durazno); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ft-sign-txt { font-size: .9rem; font-weight: 600; color: var(--luz); }
.ft-sign-txt span { display: block; margin-top: 2px; font-family: var(--f-hand); font-size: 1.25rem; font-weight: 600; color: var(--durazno); }
.ft-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 30px; padding: 22px 0 calc(26px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(251, 244, 234, .12); font-size: .84rem; color: rgba(251, 244, 234, .55); }
.ft-top { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--luz); }
.ft-top svg { width: 16px; height: 16px; transform: rotate(-90deg); transition: transform .5s var(--ease-back); }
.ft-top:hover svg { transform: rotate(-90deg) translateX(4px); }

/* ==========================================================================
   13. RESPONSIVE
   ========================================================================== */

/* Laptops de 13–14" (poca altura) */
@media (min-width: 901px) and (max-height: 820px) {
    :root { --nav-h: 84px; --arch-w: min(400px, 32vw, calc((100svh - 210px) / 1.3)); }
    .hero-title { font-size: clamp(2.6rem, .9rem + 3.8vw, 4.6rem); }
    .hero-hello { margin-bottom: 18px; }
    .hero-desc { margin-bottom: 22px; font-size: 1rem; }
    .hero-foot { margin-top: 24px; }
    .hero-trust { margin-top: 22px; }
    .btn { height: 54px; }
    .hero-inner { padding-bottom: 70px; }
    .scroll-cue { display: none; } /* poca altura: no cabe bajo el texto */
    .bugambilia { top: -46px; right: -54px; width: 60%; } /* que no roce el botón del nav */
    .tag-in { margin-top: calc(var(--len) * .4); padding: 10px 9px 5px; font-size: 1.12rem; transform-origin: 50% calc(var(--len) * -.4); }
    .tag-in::before { height: calc(var(--len) * .4 + 7px); }
}

/* Laptops: el hero se agrupa al centro (más aire en las orillas, menos hueco entre texto y arco)
   y el menú usa el mismo ancho: el logo cae sobre el texto y el botón sobre el borde del arco */
@media (min-width: 901px) and (max-width: 1600px) {
    :root { --hero-w: min(1180px, 100% - 9vw, calc(620px + clamp(40px, 5vw, 80px) + var(--arch-w))); }
    .hero-inner { width: var(--hero-w); grid-template-columns: minmax(0, 1fr) auto; gap: clamp(40px, 5vw, 80px); }
    .arch-stage { margin-right: 0; }
    .nav-pill { width: calc(var(--hero-w) + 26px); } /* + el relleno de la píldora (16px izq. y 10px der.) */
}

@media (max-width: 1180px) {
    .nav-links { gap: 16px; }
    .nav-links a { font-size: .88rem; }
    .daybar { display: none; }
}

/* Opiniones: las dos reseñas arriba y la calificación a lo ancho */
@media (max-width: 1180px) and (min-width: 901px) {
    .op-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .op-score { grid-column: 1 / -1; justify-content: center; }
}

/* Contacto: en pantallas medianas el horario baja debajo de la dirección */
@media (max-width: 1180px) and (min-width: 901px) {
    .ct-info { grid-template-columns: minmax(0, 1fr); }
    .ft-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1020px) {
    .nav-links { display: none; }
    .nav-right .btn { display: none; }
    .burger { display: block; }
}

@media (max-width: 900px) {
    :root { --nav-h: 78px; --container: min(1280px, 100% - 40px); --arch-w: min(52vw, 190px, calc(32svh * .8)); }
    .nav { inset: 10px 0 auto; }
    .nav-pill { height: 60px; padding: 0 6px 0 12px; }
    .logo-name { font-size: 1.6rem; }

    /* Hero */
    .hero-pin { align-items: flex-start; }
    .hero-inner { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 30px; padding: calc(var(--nav-h) + 34px) 0 64px; }
    .arch-stage { margin: 34px 0 0; } /* el texto va primero; el sol asoma debajo e invita a bajar */
    .hero-text { display: flex; flex-direction: column; align-items: center; text-align: center; }
    .hero-hello { margin-bottom: 18px; font-size: .82rem; padding: 8px 14px; }
    .eyebrow { font-size: .68rem; margin-bottom: 14px; }
    .hero-title { font-size: clamp(2.5rem, 11.4vw, 3.9rem); }
    .line { padding-right: 0; }
    .line--indent { padding-left: .5em; }
    .hero-foot { display: flex; flex-direction: column; align-items: center; margin-top: 22px; }
    .hero-desc { font-size: 1rem; max-width: 36ch; margin-bottom: 22px; }
    .hero-actions { flex-direction: column; width: 100%; gap: 10px; }
    .hero-actions .btn { width: 100%; max-width: 380px; }
    .hero-trust { justify-content: center; margin-top: 24px; font-size: .82rem; }
    .ht-live { padding-left: 0; border-left: 0; } /* en móvil baja a su propio renglón */
    .arch-frame { inset: -12px -12px 0; border-width: 12px; border-radius: calc(var(--arch-w) / 2 + 12px) calc(var(--arch-w) / 2 + 12px) 0 0; }
    .arch-frame::after { display: none; }
    .sill { height: 18px; margin: 0 -26px; }
    .arch-stage { margin-bottom: 52px; } /* espacio para las etiquetas que cuelgan */
    .sill-tags { left: 0; right: 0; }
    .tag-in { margin-top: calc(var(--len) * .5); padding: 10px 7px 4px; font-size: 1rem; transform-origin: 50% calc(var(--len) * -.5); }
    .tag-in::before { height: calc(var(--len) * .5 + 7px); }
    .bugambilia { top: -46px; right: -64px; }
    .hint { left: auto; right: -26%; top: auto; bottom: 22%; font-size: 1.2rem; flex-direction: column-reverse; align-items: center; transform: rotate(6deg); }
    .hint svg { width: 46px; height: 34px; margin: 0; transform: scale(-1, -1); }
    .hint-mouse { display: none; } .hint-touch { display: inline; }
    .scroll-cue { display: none; }
    .blob--a { left: -28%; }

    /* Filosofía */
    .divider { top: -59px; height: 60px; }
    /* Texto primero: título y manifiesto, luego la casona y al final compromisos, trayectoria y nota.
       Así la casona no queda pegada al sol del hero (dos ilustraciones seguidas sin texto) */
    .filo-grid { display: flex; flex-direction: column; }
    .filo-content { display: contents; }
    .filo-content > .eyebrow { align-self: flex-start; }
    .filo-media { order: 1; position: relative; top: 0; width: min(64vw, 270px, calc(42svh * .77)); margin: 4px auto 72px; }
    .promises, .filo-facts, .doc-note { order: 2; }
    .frame { max-width: none; }
    .door-sign { width: 112px; right: -14px; top: -7%; } /* arriba en la esquina: más abajo tapaba la lámpara o la radiografía */
    .ds-big { font-size: 1.55rem; }
    .ds-small { font-size: 1rem; }
    .manifesto { margin: 30px 0 52px; }
    .promises { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .promise { display: grid; grid-template-columns: auto 1fr; column-gap: 18px; align-items: center; padding: 20px; }
    .promise-ico { grid-row: span 2; width: 42px; height: 42px; margin: 0; }
    .promise-title { margin-bottom: 4px; }
    .filo-facts { gap: 4px 18px; }
    .filo-facts span + span::before { content: none; } /* sin puntos: al partirse quedarían sueltos */
    .doc-note { margin: 56px auto 0; padding: 34px 24px 22px; }

    /* Servicios: sin carrete; la carta se vuelve tarjetas con foto que se deslizan de lado (scroll-snap) */
    .svc-head { margin-bottom: 30px; }
    .svc-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .svc-reel { display: none; }
    .svc-hint { bottom: calc(100% + 8px); font-size: 1.2rem; }
    .svc-hint svg { display: none; }
    .svc-hint .hint-touch::after { content: " →"; }
    .svc-list {
        display: flex; gap: 14px; margin-inline: -20px; padding: 4px 20px 30px; border-top: 0;
        overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 20px;
        scrollbar-width: none; -webkit-overflow-scrolling: touch;
    }
    .svc-list::-webkit-scrollbar { display: none; }
    .svc-item {
        flex: 0 0 84%; display: flex; flex-direction: column; overflow: hidden; scroll-snap-align: start;
        border: 0; border-radius: 24px; background: var(--papel);
        box-shadow: 0 1px 2px rgba(58, 35, 48, .06), 0 26px 40px -30px rgba(158, 70, 40, .6);
    }
    .svc-item::before { display: none; }
    .svc-card-ph { display: block; position: relative; aspect-ratio: 1.3; overflow: hidden; background: var(--arena); }
    .svc-card-ph img { position: absolute; top: 0; left: -8%; width: 116%; max-width: none; height: 100%; object-fit: cover; filter: sepia(.3) saturate(.88) contrast(.97) brightness(1.03); }
    .svc-card-ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(252, 221, 176, .14), rgba(158, 70, 40, .18)); }
    /* Número y nombre arriba, precio debajo del nombre */
    .svc-btn { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 4px 10px; padding: 18px 18px 8px; pointer-events: none; }
    .svc-num { width: 26px; height: 26px; font-size: .64rem; transform: none; }
    .svc-name { font-size: 1.45rem; }
    .svc-dots { display: none; }
    .svc-price { grid-column: 2; font-size: 1.05rem; }
    .svc-price strong { font-size: 1.35rem; }
    .svc-item.is-active .svc-name { translate: none; }
    /* En la tarjeta todo va abierto; la duración se ve a mano al pie */
    .svc-more, .svc-item.is-active .svc-more { grid-template-rows: 1fr; flex: 1; }
    .svc-more-in { display: flex; flex-direction: column; padding: 0 18px 18px; }
    .svc-more p { flex: 1; padding-bottom: 14px; font-size: .92rem; }
    .svc-meta { position: static; width: auto; height: auto; overflow: visible; clip: auto; align-self: flex-start; padding: 6px 12px 4px; border-radius: 999px; background: rgba(247, 203, 118, .28); font-family: var(--f-hand); font-size: 1.1rem; line-height: 1; color: var(--barro); }
    .svc-pager { display: flex; justify-content: center; gap: 6px; margin-top: 2px; }
    .svc-pager span { width: 8px; height: 4px; border-radius: 4px; background: rgba(58, 35, 48, .16); transition: width .5s var(--ease-out), background-color .4s; }
    .svc-pager span.is-active { width: 26px; background: var(--terracota); }
    .svc-note { margin-top: 18px; font-size: 1.15rem; }

    /* Opiniones: todo en una columna */
    .op-title { margin-bottom: 30px; }
    .op-main { padding-left: 0; padding-top: 70px; margin-bottom: 48px; }
    .op-qmark { left: -6px; top: -.12em; font-size: 7.5rem; }
    .op-quote { font-size: clamp(1.75rem, 7.6vw, 2.3rem); }
    .op-who { margin-top: 24px; }
    .op-avatar { width: 42px; height: 42px; font-size: 1.2rem; }
    .op-row { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .op-card { padding: 24px 22px 22px; }
    .op-score { padding: 22px 24px; }

    /* Contacto: formulario, ubicación y preguntas en una columna */
    .ct-title { margin-bottom: 34px; }
    .ct-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .ct-form-card { padding: 26px 20px; border-radius: 26px; }
    .ct-actions { flex-direction: column; align-items: stretch; text-align: center; }
    .ct-actions .btn { width: 100%; }
    .ct-note { max-width: none; }
    .map-label { font-size: 22px; } /* el mapa se encoge: etiquetas más grandes en unidades del SVG */
    .map-label--street, .map-label--sm { font-size: 18px; }
    .ct-info { grid-template-columns: minmax(0, 1fr); padding: 22px 20px; }
    .ct-hours { min-width: 0; }
    .faq { grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 64px; }
    .faq-q { padding: 18px 14px; }
    .faq-a p { padding: 0 14px 20px; }

    /* Footer */
    .footer .divider { top: -59px; height: 60px; }
    .ft-cta { flex-direction: column; align-items: flex-start; }
    .ft-cta-side .btn { width: 100%; }
    .ft-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 20px; }
    .ft-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 900px) and (max-height: 720px) {
    .hero-desc { display: none; }
    :root { --arch-w: min(48vw, 170px, calc(30svh * .8)); }
}

@media (max-width: 420px) {
    .hh-hi { display: none; }
}

/* ==========================================================================
   14. MOVIMIENTO REDUCIDO Y SIN JS
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
    .manifesto .w { color: var(--ciruela); }
}
/* Sin animación de revelado, el blob que recorta la casona queda abierto del todo */
.reduced .reveal-blob, .no-gsap .reveal-blob { transform-box: view-box; transform-origin: 200px 257px; transform: scale(3.1); }
/* Mientras la entrada del hero no arranca, hero y nav esperan ocultos (sin parpadeo del estado inicial) */
@media (prefers-reduced-motion: no-preference) {
    .js.is-intro .hero-pin, .js.is-intro .nav { visibility: hidden; }
}
/* Sin pin del hero, el divisor de Filosofía sube encima: aire para las etiquetas de la repisa */
@media (min-width: 901px) {
    .reduced .hero-inner, .no-gsap .hero-inner { padding-bottom: 150px; }
}
.no-gsap .manifesto .w, .reduced .manifesto .w { color: var(--ciruela); }
/* Sin GSAP no hay interacción: la carta de servicios se muestra abierta */
.no-gsap .svc-more { grid-template-rows: 1fr; }
.no-gsap .svc-hint, .no-gsap .svc-pager { display: none; } /* el indicador lo mueve el JS */
