@font-face { font-family: "Bricolage"; src: url("fonts/bricolage.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/figtree-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/figtree-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/figtree-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Instrument"; src: url("fonts/instrument-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --ink: #16224d; --ink-2: #1f2f6b; --deep: #0d1534; --sky: #2b86c5; --sky-soft: #d9ebf6;
  --paper: #f7f3ee; --paper-2: #efe7de; --skin: #e8cfbd; --text: #1b2340; --muted: #5b6380; --line: #ddd5cb;
  --radius: 22px; --top-h: 72px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --display: "Bricolage", "Figtree", system-ui, sans-serif;
  --serif: "Instrument", Georgia, serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top-h) + 12px); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 1.0625rem/1.6 var(--sans); overflow-x: clip; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; letter-spacing: -0.025em; line-height: 1.02; text-wrap: balance; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ink); color: #fff; border-radius: 10px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
.wrap { width: min(1240px, 100% - 40px); margin-inline: auto; }
.eyebrow { font: 600 0.8125rem/1.2 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--sky); margin-bottom: 16px; }
.h2 { font-size: clamp(2.1rem, 5vw, 4.1rem); color: var(--ink); }
.lede { max-width: 54ch; margin-top: 18px; color: var(--muted); font-size: 1.125rem; }
.small { font-size: 0.9rem; color: var(--muted); }

.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--sky), var(--ink-2)); transform-origin: 0 50%; transform: scaleX(0); }

/* Botones */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 999px; border: 1.5px solid transparent; font: 600 1rem/1 var(--sans); text-decoration: none; cursor: pointer; overflow: hidden; isolation: isolate; transition: transform .35s var(--ease), background .3s, color .3s, border-color .3s; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--sky); transform: translateY(101%); transition: transform .45s var(--ease); }
.btn:hover::after { transform: translateY(0); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-line { border-color: currentColor; color: var(--ink); background: transparent; }
.btn-line:hover { color: #fff; border-color: var(--sky); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { color: #fff; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 0.9375rem; }
.btn-block { width: 100%; }
.btn:active { transform: scale(.97); }
.linkish { padding: 0; border: 0; background: none; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; color: inherit; }

/* Cabecera */
.top { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--top-h); transition: background .35s, box-shadow .35s, transform .45s var(--ease); }
.top.is-scrolled { background: rgb(247 243 238 / .86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.top.is-hidden { transform: translateY(-100%); }
.top-in { display: flex; align-items: center; gap: 28px; height: 100%; width: min(1320px, 100% - 32px); margin-inline: auto; }
.brand img { width: 190px; height: auto; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { position: relative; padding: 10px 12px; font-weight: 500; font-size: 0.95rem; text-decoration: none; color: var(--ink); }
.nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--sky); transform: scaleX(0); transform-origin: 0 50%; transition: transform .35s var(--ease); }
.nav a:hover::after, .nav a.is-on::after { transform: scaleX(1); }
.menu { display: none; position: relative; }
.menu summary { list-style: none; display: grid; place-content: center; gap: 6px; width: 46px; height: 46px; border-radius: 50%; background: var(--ink); cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { display: block; width: 18px; height: 2px; background: #fff; transition: transform .3s; }
.menu[open] summary span:first-child { transform: translateY(4px) rotate(45deg); }
.menu[open] summary span:last-child { transform: translateY(-4px) rotate(-45deg); }
.menu-panel { position: absolute; right: 0; top: 56px; display: grid; min-width: 230px; padding: 10px; border-radius: 18px; background: #fff; box-shadow: 0 20px 50px rgb(22 34 77 / .18); }
.menu-panel a { padding: 13px 14px; border-radius: 10px; text-decoration: none; font-weight: 500; color: var(--ink); }
.menu-panel a:hover { background: var(--paper); }

/* Portada */
.hero { position: relative; min-height: 100svh; padding: calc(var(--top-h) + 28px) 0 64px; overflow: hidden; background:
  radial-gradient(60% 55% at 78% 48%, #fff 0%, rgb(255 255 255 / 0) 70%),
  radial-gradient(50% 60% at 10% 100%, var(--sky-soft) 0%, rgb(217 235 246 / 0) 70%), var(--paper); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; width: min(1320px, 100% - 40px); margin-inline: auto; min-height: calc(100svh - var(--top-h) - 92px); }
.hero-title { font-size: clamp(3rem, 7.4vw, 7.2rem); line-height: .94; color: var(--ink); letter-spacing: -0.04em; }
.hero-title em { display: inline; color: var(--sky); font-size: 1.08em; letter-spacing: -0.02em; }
.hero-lead { max-width: 46ch; margin-top: 26px; font-size: 1.2rem; color: var(--muted); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 34px 0 0; padding: 0; list-style: none; font-size: .9rem; color: var(--muted); }
.hero-proof li { display: flex; align-items: center; gap: 8px; }
.hero-proof li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sky); }
.hero-stage { position: relative; height: min(78svh, 760px); min-height: 520px; }
.arch { position: absolute; left: 50%; top: 50%; width: min(78%, 440px); aspect-ratio: 11 / 15; margin: 0; translate: -50% -50%; border-radius: 999px 999px 32px 32px; overflow: hidden; background: #e9e6e2; box-shadow: 0 40px 90px -30px rgb(22 34 77 / .45); }
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.lens-ring { position: absolute; left: 50%; top: 50%; width: min(96%, 560px); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; border: 1.5px dashed rgb(43 134 197 / .45); pointer-events: none; }
.reel { position: absolute; width: clamp(110px, 12vw, 168px); aspect-ratio: 9 / 16; margin: 0; border-radius: 18px; overflow: hidden; background: var(--ink); box-shadow: 0 24px 50px -16px rgb(13 21 52 / .55); border: 4px solid #fff; }
.reel video { width: 100%; height: 100%; object-fit: cover; }
.reel figcaption { position: absolute; inset: auto 6px 6px; padding: 6px 8px; border-radius: 10px; background: rgb(13 21 52 / .72); color: #fff; font-size: .72rem; line-height: 1.25; font-weight: 600; }
.reel-a { left: 0; top: 8%; rotate: -7deg; }
.reel-b { right: 0; top: 2%; rotate: 6deg; }
.reel-c { right: 4%; bottom: 4%; rotate: -4deg; }
.ig-badge { position: absolute; left: 4%; bottom: 8%; padding: 12px 16px; border-radius: 16px; background: #fff; box-shadow: 0 16px 40px -14px rgb(22 34 77 / .35); font-size: .9rem; color: var(--muted); max-width: 190px; line-height: 1.3; }
.ig-badge b { display: block; font: 700 1.6rem/1 var(--display); color: var(--ink); letter-spacing: -0.03em; }
.hero-after { display: none; }
.motion .hero-after { display: block; position: absolute; right: calc(100% + 40px); top: 50%; width: min(560px, 42vw); translate: 0 -50%; font: 700 clamp(2.4rem, 4.4vw, 4.4rem)/1 var(--display); letter-spacing: -0.035em; color: var(--ink); opacity: 0; pointer-events: none; }
.motion .hero-after em { color: var(--sky); }
.scroll-cue { position: absolute; left: 50%; bottom: 20px; translate: -50% 0; width: 26px; height: 42px; border: 1.5px solid var(--ink); border-radius: 20px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--ink); animation: cue 1.8s infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* Franja */
.marquee { padding: 26px 0; background: var(--ink); color: #fff; overflow: hidden; }
.marquee-row { display: flex; width: max-content; white-space: nowrap; font: 600 clamp(1.4rem, 3vw, 2.4rem)/1.25 var(--display); letter-spacing: -0.02em; }
.marquee-alt { color: var(--sky-soft); font-family: var(--serif); font-style: italic; font-weight: 400; }
.marquee-row span { padding-right: .3em; }

/* Sobre mí */
.about { padding: clamp(80px, 12vw, 160px) 0 clamp(70px, 10vw, 130px); }
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.about-photo { position: relative; }
.about-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50% 50% var(--radius) var(--radius); }
.about-sign { margin-top: 18px; font: 700 1.15rem/1.25 var(--display); color: var(--ink); }
.about-sign span { font: 400 1rem var(--sans); color: var(--muted); }
.statement { font: 600 clamp(1.6rem, 3.3vw, 2.8rem)/1.18 var(--display); letter-spacing: -0.025em; color: var(--ink); }
.about-more { margin-top: 26px; max-width: 52ch; color: var(--muted); font-size: 1.125rem; }
.formacion { margin-top: clamp(80px, 10vw, 140px); display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 90px); }
.formacion .h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
.timeline { position: relative; padding-left: 40px; }
.timeline-line { position: absolute; left: 9px; top: 6px; width: 4px; height: calc(100% - 12px); overflow: visible; }
.timeline-line line { stroke: var(--sky); stroke-width: 2; vector-effect: non-scaling-stroke; }
.timeline ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 30px; }
.timeline li { position: relative; display: grid; gap: 4px; }
.timeline li::before { content: ""; position: absolute; left: -38px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 3px solid var(--sky); }
.timeline b { font: 700 1.2rem/1.25 var(--display); color: var(--ink); letter-spacing: -0.015em; }
.timeline span { color: var(--muted); }
.badges { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; }
.badges li { padding: 12px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 500; font-size: .95rem; color: var(--ink); transition: transform .3s var(--ease), border-color .3s; }
.badges li:hover { transform: translateY(-3px); border-color: var(--sky); }

/* Buscador */
.finder { padding: clamp(80px, 11vw, 140px) 0; background: #fff; border-radius: 40px 40px 0 0; }
.finder-head { max-width: 760px; }
.finder-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 40px 0 26px; position: sticky; top: calc(var(--top-h) + 8px); z-index: 5; padding: 12px; border-radius: 22px; background: rgb(255 255 255 / .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 10px 30px -18px rgb(22 34 77 / .35); }
.search { flex: 1 1 320px; display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 18px; border-radius: 16px; background: var(--paper); border: 1.5px solid transparent; transition: border-color .3s, background .3s; }
.search:focus-within { border-color: var(--sky); background: #fff; }
.search svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; flex: none; }
.search input { flex: 1; min-width: 0; border: 0; background: none; font: 500 1.0625rem var(--sans); color: var(--text); outline: none; }
.seg { position: relative; display: inline-flex; padding: 4px; border-radius: 14px; background: var(--paper); }
.seg label { position: relative; z-index: 1; cursor: pointer; }
.seg input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 11px 16px; border-radius: 10px; font-weight: 600; font-size: .95rem; color: var(--muted); transition: color .3s; }
.seg input:checked + span { color: #fff; background: var(--ink); }
.seg.has-ink input:checked + span { background: none; }
.seg input:focus-visible + span { outline: 3px solid var(--sky); }
.seg-ink { position: absolute; top: 4px; bottom: 4px; left: 0; border-radius: 10px; background: var(--ink); z-index: 0; }
.count { margin-left: auto; color: var(--muted); font-size: .95rem; padding-right: 6px; }
.count b { color: var(--ink); font-family: var(--display); font-size: 1.2rem; }
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.item { position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 140px; padding: 18px; border-radius: 18px; background: var(--paper); border: 1px solid transparent; transition: transform .35s var(--ease), box-shadow .35s, border-color .35s, background .35s; }
.item:hover { transform: translateY(-4px); background: #fff; border-color: var(--line); box-shadow: 0 18px 40px -22px rgb(22 34 77 / .4); }
.item[hidden] { display: none; }
.item b { font: 600 1.12rem/1.2 var(--display); color: var(--ink); letter-spacing: -0.01em; }
.tag { align-self: flex-start; padding: 4px 10px; border-radius: 999px; background: var(--sky-soft); color: var(--ink-2); font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.tag-p { background: var(--skin); color: #5c3624; }
.item-wa { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 9px 13px; border-radius: 999px; background: var(--ink); color: #fff; font-size: .85rem; font-weight: 600; text-decoration: none; transition: background .3s, gap .3s var(--ease); }
.item-wa svg { width: 16px; height: 16px; }
.item-wa:hover { background: var(--sky); gap: 12px; }
.item mark { background: var(--sky-soft); color: inherit; border-radius: 3px; }
.empty { margin-top: 20px; padding: 30px; border-radius: 22px; background: var(--paper); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.empty b { display: block; font: 700 1.3rem var(--display); color: var(--ink); }
.empty[hidden] { display: none; }

/* Servicios */
.services { padding: clamp(80px, 10vw, 130px) 0 clamp(60px, 8vw, 100px); background: #fff; }
.stack { display: grid; gap: 24px; margin-top: 46px; }
.card-s { position: sticky; top: calc(var(--top-h) + 24px); }
.card-s-in { display: grid; grid-template-columns: 1.4fr .6fr; align-items: center; gap: 30px; min-height: 380px; padding: clamp(26px, 4vw, 54px); border-radius: 32px; background: var(--paper-2); overflow: hidden; transform-origin: 50% 0; box-shadow: 0 -20px 40px -30px rgb(22 34 77 / .4); }
.card-s:nth-child(2) .card-s-in { background: var(--sky-soft); }
.card-s:nth-child(3) .card-s-in { background: var(--skin); }
.card-s-dark .card-s-in { background: var(--ink); color: #fff; }

.num { font: 600 1rem var(--sans); color: var(--sky); letter-spacing: .1em; }
.card-s h3 { margin: 14px 0 16px; font-size: clamp(2rem, 4.4vw, 3.8rem); color: var(--ink); }
.card-s p { max-width: 46ch; font-size: 1.15rem; color: var(--muted); }
.card-s.card-s-dark h3, .card-s.card-s-dark .num { color: #fff; }
.card-s.card-s-dark p { color: rgb(255 255 255 / .8); }
.card-s img { width: 100%; height: auto; max-width: 230px; justify-self: end; aspect-ratio: 9 / 14; object-fit: cover; border-radius: 22px; rotate: 3deg; box-shadow: 0 24px 40px -20px rgb(0 0 0 / .45); }

/* ABCD */
.abcd { background: var(--deep); color: #fff; }
.abcd-pin { min-height: 100svh; display: flex; align-items: center; padding: calc(var(--top-h) + 30px) 0 60px; }
.abcd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.abcd-visual { position: relative; width: min(100%, 480px); justify-self: center; }
.mole-svg { width: 100%; height: auto; }
.guide { fill: none; stroke: #7fc4f0; stroke-width: 3; stroke-dasharray: 8 8; opacity: 0; }
.no-motion .guide, html:not(.motion) .guide { opacity: .9; }
.lens { position: absolute; left: 50%; top: 50%; width: 38%; aspect-ratio: 1; margin: -19% 0 0 -19%; border-radius: 50%; border: 6px solid #fff; box-shadow: 0 0 0 2px rgb(127 196 240 / .6), 0 30px 60px rgb(0 0 0 / .5), inset 0 0 0 999px rgb(127 196 240 / .08); -webkit-backdrop-filter: saturate(1.5) contrast(1.15); backdrop-filter: saturate(1.5) contrast(1.15); pointer-events: none; }
.lens span { position: absolute; right: -8px; bottom: 6px; padding: 4px 9px; border-radius: 999px; background: #fff; color: var(--ink); font: 700 .8rem var(--sans); }
.ill-note { position: absolute; right: 6%; top: 4%; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: rgb(255 255 255 / .6); }
.abcd .eyebrow { color: #7fc4f0; }
.abcd .h2 { color: #fff; }
.abcd .h2 em { color: #7fc4f0; }
.abcd-list { margin: 34px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.abcd-list li { display: flex; align-items: center; gap: 18px; padding: 14px 18px; border-radius: 18px; background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .1); transition: background .4s, border-color .4s, opacity .4s; }
.motion .abcd-list li { opacity: .38; }
.motion .abcd-list li.is-on { opacity: 1; background: rgb(127 196 240 / .14); border-color: rgb(127 196 240 / .5); }
.abcd-list b { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 14px; background: #fff; color: var(--ink); font: 800 1.7rem var(--display); }
.abcd-list span { font-size: 1.1rem; color: rgb(255 255 255 / .85); }
.abcd-list strong { color: #fff; font-weight: 600; }
.abcd-note { margin: 26px 0 28px; max-width: 50ch; color: rgb(255 255 255 / .75); }

/* Aprende */
.learn { padding: clamp(80px, 11vw, 140px) 0; }
.learn-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.learn-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-height: 290px; padding: 28px; border-radius: 26px; border: 1px solid var(--line); background: #fff; text-align: left; cursor: pointer; overflow: hidden; transition: transform .45s var(--ease), box-shadow .45s, border-color .3s; }
.learn-card:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: 0 30px 60px -30px rgb(22 34 77 / .45); border-color: var(--sky); }
.learn-ico svg { width: 56px; height: 56px; fill: var(--skin); stroke: var(--ink); stroke-width: 2; }
.learn-card b { margin-top: auto; font: 700 1.9rem/1 var(--display); color: var(--ink); letter-spacing: -0.03em; }
.learn-card > span:not(.learn-ico) { color: var(--muted); }
.learn-card i { font-style: normal; font-weight: 600; color: var(--sky); display: inline-flex; gap: 8px; align-items: center; }
.learn-card i::after { content: "→"; transition: transform .35s var(--ease); }
.learn-card:hover i::after { transform: translateX(5px); }
.disclaimer { margin-top: 24px; font-size: .9rem; color: var(--muted); }

/* Instagram */
.insta { padding: clamp(80px, 10vw, 130px) 0; background: var(--paper-2); overflow: hidden; }
.insta-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.insta-track { display: flex; gap: 18px; margin-top: 44px; padding: 0 max(20px, calc((100vw - 1240px) / 2)); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(20px, calc((100vw - 1240px) / 2)); scrollbar-width: thin; padding-bottom: 14px; }
.ig-card { flex: 0 0 clamp(220px, 22vw, 280px); scroll-snap-align: start; display: flex; flex-direction: column; gap: 12px; }
.ig-media { position: relative; aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; background: var(--ink); transition: transform .5s var(--ease); }
.ig-card:hover .ig-media { transform: translateY(-6px) scale(1.015); }
.ig-media video { width: 100%; height: 100%; object-fit: cover; }
.ig-card p { font: 600 1.05rem/1.3 var(--display); color: var(--ink); letter-spacing: -0.01em; }
.ig-card a { font-weight: 600; font-size: .9rem; color: var(--sky); }

/* Pasos */
.steps { background: var(--paper); overflow: hidden; }
.steps-pin { padding: clamp(80px, 10vw, 120px) 0; }
.steps-track { display: flex; gap: 20px; margin-top: 44px; padding: 0 max(20px, calc((100vw - 1240px) / 2)); width: max-content; }
.step { flex: none; width: min(380px, 80vw); min-height: 320px; padding: 30px; border-radius: 28px; background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.step-n { font: 800 4.2rem/1 var(--display); color: var(--sky-soft); -webkit-text-stroke: 1.5px var(--sky); letter-spacing: -0.04em; }
.step h3 { font-size: 1.7rem; color: var(--ink); }
.step p { color: var(--muted); }
.step-price { background: var(--ink); color: #fff; border: 0; justify-content: center; }
.step-price .price-label { font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: .85rem; color: #7fc4f0; }
.step-price .price { font: 800 4.6rem/1 var(--display); letter-spacing: -0.04em; color: #fff; }
.step-price .price small { font-size: 1.3rem; font-weight: 600; }
.step-price p { color: rgb(255 255 255 / .75); }
.step-price .btn { align-self: flex-start; margin-top: 8px; }
.steps h2 em { color: var(--sky); }
html:not(.motion) .steps-track { width: auto; overflow-x: auto; scroll-padding-inline: max(20px, calc((100vw - 1240px) / 2)); scroll-snap-type: x mandatory; padding-bottom: 14px; }
html:not(.motion) .step { scroll-snap-align: start; }

/* Consultorios */
.places { padding: clamp(80px, 10vw, 130px) 0; background: #fff; }
.places-grid { display: grid; grid-template-columns: 1fr 1fr 1.15fr; gap: 18px; margin-top: 44px; }
.place { display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: 26px; background: var(--paper); transition: transform .4s var(--ease); }
.place:hover { transform: translateY(-4px); }
.place-zone { font-weight: 600; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--sky); }
.place h3 { font-size: 1.6rem; color: var(--ink); }
.place p { color: var(--muted); }
.link-arrow { margin-top: auto; align-self: flex-start; font-weight: 600; color: var(--ink); text-underline-offset: .25em; }
.link-arrow::after { content: " ↗"; }
.place-hours { background: var(--ink); color: #fff; }
.place-hours h3 { color: #fff; }
.place-hours .small, .place-hours p { color: rgb(255 255 255 / .72); }
.hours { margin: 6px 0; display: grid; gap: 2px; }
.hours div { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid rgb(255 255 255 / .12); }
.hours dt { font-weight: 600; }
.hours dd { margin: 0; text-align: right; color: rgb(255 255 255 / .85); }
.phones a { color: #fff; font-weight: 600; white-space: nowrap; }

/* Agendar */
.book { padding: clamp(80px, 10vw, 130px) 0; background: linear-gradient(180deg, #fff 0%, var(--sky-soft) 100%); }
.book-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: start; }
.book-alt { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.book-alt a { font-weight: 600; color: var(--ink); text-underline-offset: .2em; }
.form { display: grid; gap: 18px; padding: clamp(22px, 3vw, 36px); border-radius: 28px; background: #fff; box-shadow: 0 30px 70px -40px rgb(22 34 77 / .5); }
.field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: .95rem; color: var(--ink); padding: 0; }
.field legend { margin-bottom: 8px; }
.opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--paper); font: 500 1rem var(--sans); color: var(--text); transition: border-color .3s, background .3s; }
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sky); background: #fff; }
.seg-wide { display: flex; width: 100%; }
.seg-wide label { flex: 1; text-align: center; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; color: var(--muted); cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--ink); flex: none; }
.form-ok { padding: 12px 16px; border-radius: 12px; background: var(--sky-soft); color: var(--ink); font-weight: 600; }
.form-ok[hidden] { display: none; }

/* Pie */
.foot { padding: 56px 0 90px; background: var(--deep); color: rgb(255 255 255 / .75); }
.foot-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; align-items: flex-end; }
.foot-logo { width: 220px; height: auto; }
.foot-legal { margin-top: 16px; font-size: .9rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-links a, .foot-links button { color: #fff; font-weight: 500; text-underline-offset: .2em; }

.fab { position: fixed; right: 16px; bottom: 16px; z-index: 40; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 14px 30px -8px rgb(0 0 0 / .35); transition: transform .35s var(--ease); }
.fab svg { width: 30px; height: 30px; }
.fab:hover { transform: scale(1.08); }

/* Fichas */
.sheet { width: min(720px, 100% - 24px); max-height: min(86svh, 860px); padding: 0; border: 0; border-radius: 28px; background: #fff; color: var(--text); box-shadow: 0 40px 100px rgb(13 21 52 / .4); overflow: hidden; }
.sheet[open] { display: flex; flex-direction: column; }
.sheet::backdrop { background: rgb(13 21 52 / .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sheet-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: clamp(24px, 4vw, 44px); }
.sheet-body h2 { font-size: clamp(2.2rem, 5vw, 3.2rem); color: var(--ink); margin-bottom: 8px; }
.sheet-body h3 { margin: 26px 0 8px; font-size: 1.35rem; color: var(--ink); }
.sheet-body p + p { margin-top: 10px; }
.sheet-body p { color: #3c4462; }
.sheet-actions { flex: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 16px clamp(20px, 4vw, 44px); border-top: 1px solid var(--line); background: #fff; }
.tag-demo { display: inline-block; margin-bottom: 14px; padding: 6px 12px; border-radius: 10px; background: #fff4d6; color: #6b4b00; font-size: .85rem; font-weight: 600; }
.sheet.is-anim { animation: sheet-in .5s var(--ease); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(30px) scale(.97); } }

/* Estados iniciales solo con movimiento activo */
.motion .hero-eyebrow, .motion .hero-lead, .motion .hero-cta, .motion .hero-proof, .motion .ig-badge { opacity: 0; }

@media (max-width: 1080px) {
  .nav { display: none; }
  .menu { display: block; }
  .top .btn-sm { margin-left: auto; }
  .places-grid { grid-template-columns: 1fr 1fr; }
  .place-hours { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  :root { --top-h: 64px; }
  .brand img { width: 150px; }
  .hero { padding-top: calc(var(--top-h) + 20px); }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; gap: 10px; }
  .hero-stage { height: 520px; min-height: 0; order: -1; }
  .motion .hero-after { display: none; }
  .hero-title { font-size: clamp(2.7rem, 11vw, 4.4rem); }
  .about-grid, .formacion, .abcd-grid, .book-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 360px; }
  .learn-grid { grid-template-columns: 1fr; }
  .learn-card { min-height: 0; }
  .card-s-in { grid-template-columns: 1fr; min-height: 0; }
  .card-s img { display: none; }
  .places-grid { grid-template-columns: 1fr; }
  .steps-track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 20px; padding-bottom: 14px; }
  .step { scroll-snap-align: start; }
  .abcd-visual { width: min(100%, 360px); }
  .scroll-cue { display: none; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 32px); }
  .top .btn-sm span { display: none; }
  .top .btn-sm { width: 44px; padding: 0; }
  .hero-stage { height: 440px; }
  .arch { width: 64%; }
  .reel { width: 92px; border-width: 3px; border-radius: 14px; }
  .reel figcaption { display: none; }
  .ig-badge { left: 0; bottom: 2%; padding: 9px 12px; max-width: 150px; font-size: .8rem; }
  .ig-badge b { font-size: 1.3rem; }
  .hero-lead { font-size: 1.08rem; }
  .hero-cta .btn { flex: 1 1 100%; }
  .finder-bar { padding: 10px; gap: 10px; }
  .seg { width: 100%; }
  .seg label { flex: 1; text-align: center; }
  .seg span { padding: 10px 6px; font-size: .88rem; }
  .count { margin-left: 4px; }
  .items { grid-template-columns: 1fr 1fr; gap: 10px; }
  .item { min-height: 0; padding: 14px; }
  .item b { font-size: 1rem; }
  .item-wa span { display: none; }
  .finder { border-radius: 28px 28px 0 0; }
  .finder-bar { position: static; box-shadow: none; padding: 0; background: none; }
  .hours div { flex-direction: column; gap: 2px; }
  .hours dd { text-align: left; }
  .abcd-list li { padding: 12px 14px; gap: 14px; }
  .abcd-list b { width: 44px; height: 44px; font-size: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .scroll-cue span { animation: none; }
}
