/* Casa Lotus — site styles. Tokens live in tokens.css; rules in docs/design-system.md. */

/* ── Reset & base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html { overflow-x: clip; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 var(--t-body)/var(--lh-body) var(--font-sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip; transition: background-color var(--d-slow) var(--ease-inout);
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3 { margin: 0; font-weight: inherit; text-wrap: balance; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--c-pilates); color: var(--navy); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; border-radius: 6px; }
.nowrap { white-space: nowrap; }

.skip { position: fixed; left: 1rem; top: -4rem; z-index: 100; padding: .75rem 1.1rem; border-radius: var(--r-pill); background: var(--navy); color: var(--paper); text-decoration: none; transition: top var(--d-fast) var(--ease-out); }
.skip:focus { top: 1rem; }

.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
section[id] { scroll-margin-top: 88px; }
.class-card { cursor: pointer; }

/* ── Type roles ─────────────────────────────────────────── */
.display {
  font-family: var(--font-display); font-weight: 400; color: var(--navy);
  line-height: var(--lh-tight); letter-spacing: var(--tr-display);
}
.h2 { font-size: var(--t-h2); }
.h3 { font: 600 var(--t-h3)/var(--lh-snug) var(--font-sans); color: var(--navy); letter-spacing: -0.015em; }
.lead { font: 300 var(--t-lead)/1.42 var(--font-sans); color: var(--ink); max-width: 34ch; letter-spacing: -0.005em; }
.eyebrow {
  font: 600 var(--t-label)/1.2 var(--font-sans); letter-spacing: var(--tr-label); text-transform: uppercase;
  font-feature-settings: "case"; color: var(--muted); display: inline-flex; align-items: center; gap: .75rem;
}
.eyebrow::before { content: ""; width: 1.75rem; height: 1px; background: currentColor; opacity: .6; }
.note { color: var(--muted); font-size: var(--t-small); margin-top: var(--gap-m); }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  --bg: var(--navy); --fg: var(--paper);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .7rem;
  min-height: 56px; padding: 0 1.75rem; border-radius: var(--r-pill);
  background: var(--bg); color: var(--fg); border: 1px solid var(--bg);
  font: 500 1.0625rem/1 var(--font-sans); letter-spacing: -0.005em; text-decoration: none; white-space: nowrap;
  transition: background-color var(--d-fast), color var(--d-fast), border-color var(--d-fast), box-shadow var(--d-base) var(--ease-out);
  will-change: transform;
}
.btn:hover { box-shadow: var(--shadow-lift); }
.btn--primary:hover { --bg: var(--navy-900); }
.btn--ghost { --bg: transparent; --fg: var(--navy); border-color: color-mix(in srgb, var(--navy) 28%, transparent); }
.btn--ghost:hover { border-color: var(--navy); background: var(--white); box-shadow: none; }
.btn--line { --bg: transparent; --fg: var(--navy); border-color: var(--navy); width: 100%; }
.btn--line:hover { --bg: var(--navy); --fg: var(--paper); }
.btn--lime { --bg: var(--lime); --fg: var(--navy-900); font-weight: 600; min-height: 64px; padding: 0 2.25rem; font-size: 1.125rem; }
.btn--lime:hover { --bg: #B4EC9C; }
.btn--sm { min-height: 44px; padding: 0 1.2rem; font-size: .9375rem; }
.btn .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); flex: none; box-shadow: 0 0 0 0 rgb(153 226 124 / .6); animation: pulse 2.8s var(--ease-breath) infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgb(153 226 124 / .55); } 50% { box-shadow: 0 0 0 6px rgb(153 226 124 / 0); } }
.btn > * { pointer-events: none; }
@media (max-width: 520px) {
  .btn { white-space: normal; text-align: center; line-height: 1.25; padding-block: .85rem; }
  .btn--lime { font-size: 1rem; padding-inline: 1.5rem; }
}

.link-arrow { display: inline-flex; align-items: center; gap: .6rem; color: var(--navy); font-weight: 600; text-decoration: none; margin-top: auto; }
.link-arrow::after { content: ""; width: 34px; height: 34px; border-radius: 50%; border: 1px solid currentColor; background: no-repeat center / 14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23165472' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8h10M9 4l4 4-4 4'/%3E%3C/svg%3E"); transition: transform var(--d-base) var(--ease-out), background-color var(--d-fast); }
.link-arrow:hover::after { transform: translateX(4px); background-color: var(--white); }

/* ── Header ─────────────────────────────────────────────── */
.header { position: fixed; inset: 0 0 auto; z-index: 50; transition: transform var(--d-base) var(--ease-out), background-color var(--d-base), color var(--d-base); color: var(--navy); }
.header__inner { display: flex; align-items: center; gap: 2rem; min-height: 84px; }
.header.is-scrolled { background: color-mix(in srgb, var(--paper) 78%, transparent); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); box-shadow: 0 1px 0 color-mix(in srgb, var(--navy) 8%, transparent); }
.header.is-hidden { transform: translateY(-100%); }
.header.is-dark { color: var(--paper); }
.header.is-dark.is-scrolled { background: color-mix(in srgb, var(--navy-900) 80%, transparent); box-shadow: none; }
.header.is-dark .btn--primary { --bg: var(--lime); --fg: var(--navy-900); }
.header.is-dark .btn .dot { background: var(--navy-900); }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: inherit; text-decoration: none; }
.brand__mark { width: 38px; fill: currentColor; }
.brand__word { width: 118px; fill: currentColor; margin-top: 4px; }
.nav { display: flex; gap: clamp(1rem, 2vw, 2.25rem); margin-left: auto; }
.nav a { position: relative; text-decoration: none; font-weight: 500; font-size: .9875rem; padding: .5rem 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: .2rem; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform var(--d-base) var(--ease-out); }
.nav a:hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); transform-origin: left; }
.menu-btn { display: none; min-height: 44px; padding: 0 1.1rem; border-radius: var(--r-pill); border: 1px solid currentColor; font-weight: 500; margin-left: auto; }
@media (max-width: 1080px) { .nav { display: none; } .header__cta { margin-left: auto; } }
@media (max-width: 720px) { .header__cta { display: none; } .menu-btn { display: inline-flex; align-items: center; } .header__inner { min-height: 72px; } }

.menu { position: fixed; inset: 0; z-index: 60; background: var(--navy-900); color: var(--paper); }
.menu[hidden] { display: none; }
.menu__inner { min-height: 100svh; display: flex; flex-direction: column; padding-block: 1rem 2rem; gap: 2rem; }
.menu-btn--close { display: inline-flex; align-self: flex-end; align-items: center; color: var(--paper); }
.menu__nav { display: flex; flex-direction: column; gap: .25rem; margin-top: auto; }
.menu__nav a { font: 400 clamp(2.4rem, 11vw, 4rem)/1.08 var(--font-display); letter-spacing: var(--tr-display); text-decoration: none; }
.menu .btn { --bg: var(--lime); --fg: var(--navy-900); align-self: flex-start; }
.menu .btn .dot { background: var(--navy-900); }


/* ── Atmosphere: layered light in depth ─────────────────── */
.atmos { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; perspective: 1000px; perspective-origin: 50% 45%; }
.atmos__scene { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
.orb { position: absolute; left: var(--x); top: var(--y); width: var(--s); aspect-ratio: 1; transform-style: preserve-3d;
  transform: translate3d(0, 0, calc((var(--depth, .5) - .5) * 700px)); }
.orb__s, .orb__d { position: absolute; inset: 0; display: block; border-radius: 50%; will-change: transform; }
.orb__d { opacity: var(--o, .6);
  background: radial-gradient(closest-side, color-mix(in srgb, var(--orb) 95%, transparent) 0%, color-mix(in srgb, var(--orb) 55%, transparent) var(--soft, 45%), transparent 100%); }
@media (max-width: 720px) { .orb--near { display: none; } }

/* ── Hero ───────────────────────────────────────────────── */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 120px 0 var(--gap-l); overflow: hidden; isolation: isolate; }
/* silk: two canvases for depth, the far one blurred */
.silk { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; will-change: transform; transition: transform 1.4s var(--ease-out); }
.silk--back { filter: blur(9px); opacity: .9; }
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: var(--gap-l); }
.hero__copy { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap-m); justify-items: start; }
.hero__title { font-size: clamp(3.6rem, 1.4rem + 8.4vw, 10.5rem); max-width: 9ch; }
.hero__lead { max-width: 30ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: .25rem; }

/* the mark: laid in once like a ribbon, then still (it never animates after the entrance) */
.hero__mark { position: relative; color: var(--navy); width: min(100%, 540px); justify-self: end; aspect-ratio: 985 / 883; }
.hero__mark svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.lotus-draw { fill: currentColor; }
/* the shadow is a static, pre-blurred layer that only fades: no filter re-renders while the ribbon moves */
.lotus-draw__shadow { fill: var(--navy); filter: blur(14px); opacity: .16; transform: translateY(3.4%); }
/* the ribbon that flies in: same width as the mark's stroke (70 units), round ends */
/* paper veil: one fixed layer painted as a single radial gradient (JS rebuilds the stops every frame), so the
   discs stay crisp at any size and cost one repaint. Above the header, under the grain (the paper gets its tooth). */
.paper-veil { position: fixed; inset: 0; z-index: 70; pointer-events: none; }
html.motion-off .paper-veil { display: none; }
.ribbon-fly { fill: none; stroke: currentColor; stroke-width: 70; stroke-linecap: round; stroke-linejoin: round; }
.ribbon-measure { display: none; }
html.js .ribbon-fly, html.js .lotus-part, html.js .lotus-draw__shadow { opacity: 0; }   /* until the entrance starts */
html.motion-off .lotus-part { opacity: 1; }
html.motion-off .lotus-draw__shadow { opacity: .16; }
html.motion-off .ribbon-fly { display: none; }

@media (max-width: 860px) {
  .hero { justify-content: flex-end; padding-top: 96px; }
  .hero__grid { grid-template-columns: 1fr; gap: var(--gap-m); }
  .hero__mark { order: -1; width: 50vw; max-width: 250px; justify-self: start; }
}

.facts { display: flex; gap: 0; margin-top: var(--gap-xl); border-top: 1px solid var(--line); max-width: 980px; }
.facts li { flex: 1; display: flex; align-items: baseline; gap: .7rem; padding: 1.4rem 0; }
.facts li + li { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.facts strong { font: 400 1.75rem/1 var(--font-display); color: var(--navy); letter-spacing: -0.02em; }
.facts span { color: var(--muted); font-size: var(--t-small); }

@media (max-width: 860px) {
  .facts { flex-direction: column; margin-top: var(--gap-l); }
  .facts li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}
}

/* ── Manifesto ──────────────────────────────────────────── */
.manifesto { padding-block: var(--section); }
.manifesto__text { font: 300 clamp(1.9rem, 1rem + 3.4vw, 4.4rem)/1.18 var(--font-sans); letter-spacing: -0.025em; color: var(--navy); max-width: 22ch; }
.manifesto__text .w { opacity: .16; transition: opacity .2s linear; }

/* ── Sections ───────────────────────────────────────────── */
.section { padding-block: var(--section); position: relative; }
.section__head { display: grid; gap: var(--gap-m); margin-bottom: var(--gap-xl); }
.section__head .h2 { max-width: 14ch; }
.section__lead { max-width: 38ch; }
.section__head--row { grid-template-columns: 1fr auto; align-items: end; }
@media (max-width: 760px) { .section__head--row { grid-template-columns: 1fr; } }

/* ── Classes ────────────────────────────────────────────── */
.classes__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap-l) var(--gap-l); }
.classes__grid > :nth-child(even) { margin-top: var(--gap-xl); }
.classes__grid { perspective: 1600px; }
.class-card {
  --field: color-mix(in srgb, var(--c) 52%, var(--white));
  --rx: 0deg; --ry: 0deg; --lift: 0px; --mx: 50%; --my: 30%;
  position: relative; transform-style: preserve-3d; transform: translateY(var(--lift)) rotateX(var(--rx)) rotateY(var(--ry));
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--gap-m);
  padding: clamp(1rem, .6rem + 1.4vw, 1.6rem); border-radius: var(--r-l); background: var(--field);
  transition: background-color var(--d-slow) var(--ease-out), box-shadow var(--d-slow) var(--ease-out);
}
.class-card:hover { --field: color-mix(in srgb, var(--c) 88%, var(--white)); box-shadow: var(--shadow-soft); }
.class-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity var(--d-base);
  background: radial-gradient(520px circle at var(--mx) var(--my), rgb(255 255 255 / .55), transparent 45%); mix-blend-mode: soft-light; }
.class-card:hover::after { opacity: 1; }
.class-card__media { transform: translateZ(46px); }
.class-card__body { transform: translateZ(26px); }
.class-card__media { border-radius: var(--r-m); overflow: hidden; min-height: 340px; background: var(--c); }
.class-card__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.4s var(--ease-out); }
.class-card:hover .class-card__media img { transform: scale(1.08); }
.class-card__body { display: flex; flex-direction: column; gap: 1rem; padding: .5rem .25rem .5rem 0; }
.tag { align-self: flex-start; padding: .4rem .85rem; border-radius: var(--r-pill); background: var(--white); color: var(--navy); font: 600 .75rem/1 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; }
.benefits { display: grid; gap: .7rem; color: var(--ink); font-size: var(--t-small); margin-bottom: 1rem; }
.benefits li { display: grid; grid-template-columns: 14px 1fr; gap: .7rem; align-items: start; }
.benefits li::before { content: ""; width: 14px; height: 13px; margin-top: .3em; background: var(--navy); -webkit-mask: url(../images/logo/simbolo.svg) center / contain no-repeat; mask: url(../images/logo/simbolo.svg) center / contain no-repeat; } /* the logo as bullet */
@media (max-width: 1100px) { .class-card { grid-template-columns: 1fr; } .class-card__media { min-height: 0; aspect-ratio: 4 / 3; } }
@media (max-width: 760px) { .classes__grid { grid-template-columns: 1fr; } .classes__grid > :nth-child(even) { margin-top: 0; } }

/* ── First class ────────────────────────────────────────── */
.first__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--gap-xl); align-items: start; }
.first__head { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap-m); justify-items: start; position: sticky; top: 140px; }
.first__head { container-type: inline-size; }
.price { font: 400 min(27cqi, 11rem)/.85 var(--font-display); color: var(--navy); letter-spacing: -0.05em; display: flex; align-items: flex-start; }
.price__cur { font-size: .42em; margin: .12em .08em 0 0; letter-spacing: 0; }
.steps { position: relative; display: grid; gap: var(--gap-l); padding-left: 4.75rem; counter-reset: s; }
.steps::before, .steps::after { content: ""; position: absolute; left: 1.45rem; top: 1rem; bottom: 1rem; width: 1px; background: color-mix(in srgb, var(--navy) 16%, transparent); }
.steps::after { background: var(--navy); transform: scaleY(var(--progress, 0)); transform-origin: top; }
.step { position: relative; display: grid; gap: .8rem; }
.step__n { position: absolute; left: -4.75rem; top: -.2rem; width: 2.9rem; height: 2.9rem; border-radius: 50%; display: grid; place-items: center; background: var(--mist); border: 1px solid var(--navy); color: var(--navy); font: 400 1.2rem/1 var(--font-display); z-index: 1; transition: background-color var(--d-base), color var(--d-base); }
.step.is-on .step__n { background: var(--navy); color: var(--paper); }
.step p { color: var(--ink); max-width: 44ch; }
.step a { color: var(--teal); }
@media (max-width: 900px) { .first__grid { grid-template-columns: 1fr; } .first__head { position: static; } }

/* ── Schedule ───────────────────────────────────────────── */
.days { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap-l); }
.day__name { font: 600 var(--t-label)/1 var(--font-sans); letter-spacing: var(--tr-label); text-transform: uppercase; color: var(--muted); padding-bottom: 1.25rem; }
.slot { display: grid; grid-template-columns: clamp(9rem, 6rem + 8vw, 15rem) minmax(0, 1fr) auto; align-items: center; gap: clamp(1rem, 3vw, 2.5rem); padding: 1.75rem 1.25rem; margin-inline: -1.25rem; border-top: 1px solid var(--line); border-radius: var(--r-m); text-decoration: none; transition: background-color var(--d-base) var(--ease-out), border-color var(--d-base); }
.slot:hover { background: var(--white); border-top-color: transparent; }
.slot:hover + .slot { border-top-color: transparent; }
.slot__time { font: 400 clamp(2.6rem, 1.8rem + 3vw, 4.5rem)/1 var(--font-display); color: var(--navy); letter-spacing: -0.04em; display: inline-flex; align-items: baseline; gap: .35rem; }
.slot__time small { font: 500 .9rem/1 var(--font-sans); letter-spacing: 0; color: var(--muted); white-space: nowrap; }
.slot__meta { display: grid; gap: .75rem; }
.slot__class { font-weight: 500; color: var(--ink); }
.slot__next { font-size: var(--t-small); color: var(--teal); font-weight: 500; }
.slot__next:empty { display: none; }
.swings { display: flex; gap: 10px; height: 22px; }
.swings i { position: relative; width: 8px; transform-origin: 50% 0; }
.swings i::before { content: ""; position: absolute; left: 50%; top: 0; width: 1px; height: 12px; background: color-mix(in srgb, var(--navy) 45%, transparent); }
.swings i::after { content: ""; position: absolute; left: 0; bottom: 0; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--navy); }
.slot:hover .swings i { animation: sway 1.4s var(--ease-out) both; animation-delay: calc(var(--n, 0) * 60ms); }
/* a booked swing is filled; the count comes from the bookings (data-taken), never written by hand */
.swings i.is-taken::after { background: var(--navy); }
@keyframes sway { 0% { transform: rotate(0); } 25% { transform: rotate(14deg); } 50% { transform: rotate(-9deg); } 75% { transform: rotate(4deg); } 100% { transform: rotate(0); } }
.slot__go { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--navy); background: no-repeat center / 18px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23165472' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8h10M9 4l4 4-4 4'/%3E%3C/svg%3E"); transition: background-color var(--d-base), transform var(--d-base) var(--ease-out); }
.slot:hover .slot__go { background-color: var(--lime); border-color: var(--lime); transform: rotate(-45deg); }
@media (max-width: 760px) { .days { grid-template-columns: 1fr; } .slot { margin-inline: 0; padding-inline: .25rem; } .slot__go { width: 44px; height: 44px; } }

/* ── Plans ──────────────────────────────────────────────── */
.toggle { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 5px; border-radius: var(--r-pill); background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.toggle button { position: relative; z-index: 1; min-height: 46px; padding: 0 1.4rem; border-radius: var(--r-pill); font-weight: 500; color: var(--muted); transition: color var(--d-base); }
.toggle button[aria-checked="true"] { color: var(--paper); }
.toggle__pill { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: var(--r-pill); background: var(--navy); transition: transform var(--d-base) var(--ease-out); }
.toggle[data-state="trimestre"] .toggle__pill { transform: translateX(100%); }
.plans__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.plans__grid { perspective: 1400px; }
.plan { --rx: 0deg; --ry: 0deg; --lift: 0px; position: relative; display: flex; flex-direction: column; gap: .6rem; padding: 3.75rem 1.6rem 1.6rem; border-radius: var(--r-l); background: var(--white);
  transform-style: preserve-3d; transform: translateY(var(--lift)) rotateX(var(--rx)) rotateY(var(--ry)); transition: box-shadow var(--d-slow) var(--ease-out); }
.plan:hover { box-shadow: var(--shadow-soft); }
.plan__n span { display: inline-block; transform: translateZ(40px); }
.plan__price { transform: translateZ(22px); }
.plan__n { color: var(--muted); font-size: var(--t-small); display: grid; gap: .25rem; }
.plan__n span { font: 400 clamp(4rem, 3rem + 3vw, 6rem)/.9 var(--font-display); color: var(--navy); letter-spacing: -0.05em; }
.plan__price { font: 600 1.75rem/1.1 var(--font-sans); color: var(--navy); letter-spacing: -0.02em; margin-top: 1.2rem; }
.plan__per { color: var(--muted); font-size: var(--t-small); }
.plan__save { color: var(--teal); font-size: var(--t-small); font-weight: 600; min-height: 1.4em; margin-bottom: 1.2rem; }
.plan .btn { margin-top: auto; width: 100%; }
.plan--best { background: var(--navy); color: var(--paper); }
.plan--best .plan__n, .plan--best .plan__per { color: color-mix(in srgb, var(--paper) 72%, transparent); }
.plan--best .plan__n span, .plan--best .plan__price { color: var(--paper); }
.plan--best .plan__save { color: var(--lime); }
.plan--best .btn--primary { --bg: var(--lime); --fg: var(--navy-900); }
.plan--best .btn .dot { background: var(--navy-900); }
.plan__badge { position: absolute; top: 1.4rem; left: 1.6rem; padding: .35rem .7rem; border-radius: var(--r-pill); background: var(--lime); color: var(--navy-900); font: 600 .6875rem/1 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; }
.pay { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap-m); margin-top: var(--gap-l); color: var(--ink); font-size: var(--t-small); max-width: 980px; }
.pay strong { color: var(--navy); }
@media (max-width: 1100px) { .plans__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .plans__grid { grid-template-columns: 1fr; } .pay { grid-template-columns: 1fr; } }

/* ── Method ─────────────────────────────────────────────── */
.method__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--gap-xl); align-items: center; }
.method__frame { overflow: hidden; border-radius: var(--r-l); aspect-ratio: 3 / 4; background: var(--mist); }
.method__frame img, .method__frame video { display: block; width: 100%; height: 100%; object-fit: cover; }
/* every animated photo lives in a frame that clips it: a clip-path hides overflow on screen, but
   phones still count it and widen the page (the "slight zoom on load" bug) */
[data-media] { overflow: hidden; }
/* la sala: six clips hung from the top of the section at different heights, like the swings */
.sala__reel { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 28px);
  width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; padding-top: 3rem; }
.sala__clip { position: relative; margin: 0; transform-origin: 50% -3rem; }
.sala__clip:nth-child(6n+1) { margin-top: 0; }
.sala__clip:nth-child(6n+2) { margin-top: 5.5rem; }
.sala__clip:nth-child(6n+3) { margin-top: 1.5rem; }
.sala__clip:nth-child(6n+4) { margin-top: 7rem; }
.sala__clip:nth-child(6n+5) { margin-top: 2.5rem; }
.sala__clip:nth-child(6n+6) { margin-top: 4rem; }
/* the strap: a hairline from the rig down to the clip */
.sala__clip::before { content: ""; position: absolute; left: 50%; bottom: 100%; width: 1px; height: 100vh; max-height: calc(3rem + var(--drop, 0rem));
  background: linear-gradient(to top, color-mix(in srgb, var(--navy) 40%, transparent), transparent); }
.sala__clip:nth-child(6n+2)::before { --drop: 5.5rem; } .sala__clip:nth-child(6n+3)::before { --drop: 1.5rem; }
.sala__clip:nth-child(6n+4)::before { --drop: 7rem; } .sala__clip:nth-child(6n+5)::before { --drop: 2.5rem; }
.sala__clip:nth-child(6n+6)::before { --drop: 4rem; }
.sala__clip video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: var(--r-m); background: var(--mist);
  box-shadow: 0 24px 50px -30px rgb(22 84 114 / .45); }
@media (max-width: 860px) {
  /* phones: a row you swipe, snapping clip by clip, inside its own box (no page overflow) */
  .sala__reel { display: flex; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
    width: 100%; padding: 3rem 16px 1rem; scroll-padding-inline: 16px; }
  .sala__reel::-webkit-scrollbar { display: none; }
  .sala__clip { flex: 0 0 56%; scroll-snap-align: start; }
}
/* play mark shared by every tap-to-watch video */
.play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; z-index: 1; display: grid; place-items: center; width: 64px; aspect-ratio: 1;
  border-radius: 50%; background: var(--lime); box-shadow: 0 14px 34px -12px rgb(14 58 78 / .55); transition: scale var(--d-base) var(--ease-out); }
.play::before { content: ""; margin-left: 5px; border-left: 17px solid var(--navy); border-block: 11px solid transparent; }
/* first class: her video, one tap from the price */
.clip-note { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 1.1rem; align-items: center; max-width: 440px; padding: .6rem 1.2rem .6rem .6rem;
  border: 0; border-radius: var(--r-l); background: rgb(255 255 255 / .6); color: var(--ink); text-align: left; font: inherit; cursor: pointer;
  box-shadow: 0 18px 40px -30px rgb(22 84 114 / .5); transition: background-color var(--d-base), box-shadow var(--d-base); }
.clip-note:hover { background: var(--white); box-shadow: var(--shadow-soft); }
.clip-note:hover .play { scale: 1.08; }
.clip-note__thumb { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: calc(var(--r-l) - .6rem); overflow: hidden; background: var(--mist); }
.clip-note__thumb img { width: 100%; height: 100%; object-fit: cover; }
.clip-note__thumb .play { width: 40px; }
.clip-note__thumb .play::before { margin-left: 3px; border-left-width: 11px; border-block-width: 7px; }
.clip-note__text { display: grid; gap: .35rem; font-size: var(--t-small); line-height: 1.45; }
.clip-note__text strong { font: 400 1.15rem/1.25 var(--font-display); color: var(--navy); }
.clip-note__time { margin-top: .25rem; color: var(--teal); font-weight: 600; font-size: .8125rem; letter-spacing: .04em; }
/* testimonials: three portrait videos, quote underneath */
.stories__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-l); align-items: start; }
.stories__row > :nth-child(2) { margin-top: var(--gap-l); }
.story { display: grid; gap: 1.1rem; margin: 0; }
.story__open { position: relative; display: block; width: 100%; padding: 0; border: 0; aspect-ratio: 9 / 16; border-radius: var(--r-l); overflow: hidden;
  background: var(--mist); cursor: pointer; box-shadow: var(--shadow-soft); }
.story__open img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.story__open::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(to top, rgb(14 58 78 / .55), transparent); pointer-events: none; }
.story__open:hover img { transform: scale(1.04); }
.story__open:hover .play { scale: 1.08; }
.story__time { position: absolute; left: 1.1rem; bottom: 1rem; z-index: 1; color: var(--white); font-size: .8125rem; font-weight: 600; letter-spacing: .06em; }
.story__quote { font: 400 clamp(1.1rem, .95rem + .5vw, 1.4rem)/1.3 var(--font-display); color: var(--navy); max-width: 24ch; }
@media (max-width: 860px) {
  .stories__row { display: flex; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter)); padding: .5rem var(--gutter) 1rem; scroll-padding-inline: var(--gutter); gap: 1rem; }
  .stories__row::-webkit-scrollbar { display: none; }
  .stories__row > .story { flex: 0 0 68%; scroll-snap-align: start; }
  .stories__row > :nth-child(2) { margin-top: 0; }
}
/* booking: one short form that holds a swing; WhatsApp stays one tap away */
.book { width: min(100% - 2rem, 480px); max-width: none; max-height: min(92vh, 92svh); margin: auto; padding: 0; border: 0; border-radius: var(--r-l); background: var(--paper); color: var(--ink); box-shadow: var(--shadow-soft); overflow: auto; overscroll-behavior: contain; }
.book::backdrop { background: rgb(14 58 78 / .72); }
.book__form, .book__done { display: grid; gap: 1rem; padding: clamp(1.5rem, 1rem + 2vw, 2.25rem); }
.book__form[hidden], .book__done[hidden] { display: none; }
.book__title { font: 400 clamp(1.9rem, 1.5rem + 1.6vw, 2.5rem)/1.05 var(--font-display); color: var(--navy); margin: -.25rem 0 .25rem; }
.book__close { position: absolute; top: 12px; right: 12px; width: 44px; aspect-ratio: 1; border: 0; border-radius: 50%; background: var(--white); cursor: pointer; }
.book__close::before, .book__close::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 2px; background: var(--navy); translate: -50% -50%; rotate: 45deg; }
.book__close::after { rotate: -45deg; }
.book__dates { border: 0; padding: 0; margin: 0; display: grid; gap: .6rem; }
.book__dates legend { font-weight: 600; color: var(--navy); margin-bottom: .6rem; }
.book__options { display: grid; gap: .5rem; }
.book__opt { display: grid; grid-template-columns: auto 1fr auto; gap: .75rem; align-items: center; padding: .85rem 1rem; border: 1.5px solid var(--line); border-radius: var(--r-m); background: var(--white); cursor: pointer; transition: border-color var(--d-fast), background-color var(--d-fast); }
.book__opt:has(input:checked) { border-color: var(--navy); background: color-mix(in srgb, var(--mint) 35%, var(--white)); }
.book__opt input { width: 20px; height: 20px; accent-color: var(--navy); margin: 0; }
.book__opt small { display: block; color: var(--muted); font-size: .8125rem; }
.book__hora { display: block; white-space: nowrap; }
.book__opt em { font-style: normal; font-size: .8125rem; font-weight: 600; color: var(--teal); white-space: nowrap; }
.book__opt.is-off { opacity: .5; cursor: not-allowed; }
.book__opt.is-off em { color: var(--muted); }
.book__submit:disabled { opacity: .45; cursor: progress; }
.book__loading { margin: 0; padding: 1.1rem 1rem; border: 1.5px dashed var(--line); border-radius: var(--r-m); color: var(--muted); font-size: var(--t-small); text-align: center; animation: book-wait 1.6s ease-in-out infinite; }
@keyframes book-wait { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .book__loading { animation: none; } }
.book__field { display: grid; gap: .4rem; font-weight: 600; color: var(--navy); font-size: var(--t-small); }
.book__field input { min-height: 52px; padding: 0 1rem; border: 1.5px solid var(--line); border-radius: var(--r-m); background: var(--white); font: 400 1rem var(--font-sans); color: var(--ink); }
.book__field input:focus { outline: 2px solid var(--navy); outline-offset: 1px; border-color: transparent; }
.book__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.book__check { display: grid; grid-template-columns: auto 1fr; gap: .75rem; align-items: start; font-size: var(--t-small); color: var(--ink); }
.book__check input { width: 20px; height: 20px; margin: .1rem 0 0; accent-color: var(--navy); }
.book__note { margin: 0; font-size: var(--t-small); color: var(--muted); }
.book__error { margin: 0; color: #9c3a2e; font-size: var(--t-small); font-weight: 600; }
.book__error:empty { display: none; }
.book__submit { width: 100%; justify-content: center; }
.book__alt { justify-self: center; color: var(--teal); font-size: var(--t-small); font-weight: 600; }
.book__when { margin: 0; font-weight: 600; color: var(--ink); }
.book__steps { margin: 0; padding-left: 1.2rem; display: grid; gap: .6rem; }
.book__steps strong { color: var(--navy); font-size: 1.05em; letter-spacing: .04em; }
@media (max-width: 560px) { .book { width: 100%; max-height: 94svh; margin: auto 0 0; border-radius: var(--r-l) var(--r-l) 0 0; } }
/* the viewer: one portrait video over a navy veil */
.viewer { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; }
.viewer[open] { display: grid; place-items: center; }
.viewer::backdrop { background: rgb(14 58 78 / .86); }
.viewer__video { display: block; height: min(86vh, 86svh); max-width: 92vw; aspect-ratio: 9 / 16; border-radius: var(--r-l); background: #000; object-fit: contain; }
.viewer__close { position: fixed; top: max(16px, env(safe-area-inset-top)); right: 16px; width: 48px; aspect-ratio: 1; border: 0; border-radius: 50%; background: var(--white); cursor: pointer; }
.viewer__close::before, .viewer__close::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 2px; background: var(--navy); translate: -50% -50%; rotate: 45deg; }
.viewer__close::after { rotate: -45deg; }
.method__media figcaption { margin-top: .9rem; color: var(--muted); font-size: var(--t-small); }
.method__copy { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap-m); justify-items: start; }
/* the official AÉREO® logo, untouched (licensed mark: never redrawn), next to what it certifies */
.seal { display: inline-flex; align-items: center; gap: 1.25rem; margin-top: .5rem; padding: 1rem 1.5rem 1rem 1.25rem; border-radius: var(--r-m); background: var(--white); box-shadow: 0 18px 40px -28px rgb(22 84 114 / .45); }
.seal__logo { display: block; width: clamp(128px, 11vw, 168px); height: auto; }
.seal__label { padding-left: 1.25rem; border-left: 1px solid var(--line); font-size: var(--t-small); font-weight: 600; letter-spacing: .08em; line-height: 1.35; text-transform: uppercase; color: var(--navy); }
@media (max-width: 860px) { .method__grid { grid-template-columns: 1fr; } .method__media { max-width: 420px; } }

/* ── FAQ ────────────────────────────────────────────────── */
.faq__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: var(--gap-xl); align-items: start; }
.faq__grid .section__head { position: sticky; top: 140px; margin-bottom: 0; }
.qa { border-top: 1px solid var(--line); }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.6rem 0; cursor: pointer; font: 500 clamp(1.1rem, 1rem + .5vw, 1.35rem)/1.3 var(--font-sans); color: var(--navy); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--navy) 30%, transparent);
  background: no-repeat center / 14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23165472' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M8 3v10M3 8h10'/%3E%3C/svg%3E");
  transition: transform var(--d-base) var(--ease-out), background-color var(--d-fast); }
.qa summary:hover::after { background-color: var(--white); }
.qa[open] summary::after { transform: rotate(135deg); }
.qa__a { overflow: hidden; }
.qa__a p { padding: 0 3.5rem 1.8rem 0; color: var(--ink); max-width: 56ch; }
@media (max-width: 900px) { .faq__grid { grid-template-columns: 1fr; gap: var(--gap-l); } .faq__grid .section__head { position: static; } }

/* ── Closing & footer ───────────────────────────────────── */
.closing { position: relative; padding-block: var(--section); background: var(--navy-900); color: var(--paper); overflow: hidden; isolation: isolate; }
.closing__atmos { position: absolute; inset: 0; z-index: -1; perspective: 900px; pointer-events: none; }
.glow { position: absolute; border-radius: 50%; mix-blend-mode: screen; will-change: transform; }
.glow--a { width: 60vmax; height: 60vmax; left: 45%; top: -30%; background: radial-gradient(closest-side, rgb(178 212 224 / .38), transparent); animation: glow 19s var(--ease-breath) infinite alternate; }
.glow--b { width: 46vmax; height: 46vmax; left: -12%; top: 30%; background: radial-gradient(closest-side, rgb(1 100 100 / .55), transparent); animation: glow 23s var(--ease-breath) infinite alternate-reverse; }
.glow--c { width: 24vmax; height: 24vmax; left: 62%; top: 55%; background: radial-gradient(closest-side, rgb(153 226 124 / .28), transparent); animation: glow 15s var(--ease-breath) infinite alternate; }
@keyframes glow { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-8vw, 6vh, 0) scale(1.18); } }
.closing__lotus { position: absolute; right: -6vmax; top: 50%; width: 70vmax; translate: 0 -50%; fill: none; stroke: rgb(246 248 252 / .09); stroke-width: 3; } /* static, like every instance of the mark */
.closing__inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap-l); justify-items: start; }
.closing__title { color: var(--paper); font-size: clamp(3rem, 1.4rem + 7vw, 9rem); max-width: 12ch; }
.footer { background: var(--navy-900); color: color-mix(in srgb, var(--paper) 82%, transparent); padding-block: var(--gap-l) 2rem; font-size: var(--t-small); }
.footer a { color: var(--paper); text-decoration: none; }
.footer a:hover { text-decoration: underline; text-underline-offset: .25em; }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: var(--gap-m); padding-top: var(--gap-l); border-top: 1px solid color-mix(in srgb, var(--paper) 14%, transparent); }
.footer__label { font: 600 var(--t-label)/1 var(--font-sans); letter-spacing: var(--tr-label); text-transform: uppercase; color: var(--sage); margin-bottom: .8rem; }
.brand--footer { color: var(--paper); align-self: start; }
.brand--footer .brand__mark { width: 52px; }
.brand--footer .brand__word { width: 150px; }
.footer__legal { margin-top: var(--gap-l); color: color-mix(in srgb, var(--paper) 55%, transparent); font-size: .8125rem; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } .brand--footer { grid-column: 1 / -1; } }

/* ── Mobile CTA bar ─────────────────────────────────────── */
.mobile-cta { display: none; }
@media (max-width: 720px) {
  .mobile-cta { position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 60px; padding: 0 .5rem 0 1.25rem; border-radius: var(--r-pill); background: var(--navy); color: var(--paper); text-decoration: none; box-shadow: var(--shadow-soft); transform: translateY(150%); transition: transform var(--d-base) var(--ease-out); }
  .mobile-cta.is-visible { transform: none; }
  .mobile-cta__go { min-height: 46px; display: inline-flex; align-items: center; padding: 0 1.1rem; border-radius: var(--r-pill); background: var(--lime); color: var(--navy-900); font-weight: 600; }
}

/* ── Cursor (fine pointers only) ────────────────────────── */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  html.has-cursor, html.has-cursor a, html.has-cursor button, html.has-cursor summary { cursor: none; }
  .cursor { display: block; position: fixed; inset: 0; z-index: 90; pointer-events: none; }
  .cursor__dot, .cursor__ring { position: fixed; left: 0; top: 0; border-radius: 50%; will-change: transform; }
  .cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--navy); transition: opacity var(--d-fast); }
  .cursor__ring { width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 1px solid color-mix(in srgb, var(--navy) 55%, transparent); display: grid; place-items: center;
    transition: width var(--d-base) var(--ease-out), height var(--d-base) var(--ease-out), margin var(--d-base) var(--ease-out), background-color var(--d-base), border-color var(--d-base); }
  .cursor__label { font: 600 .75rem/1 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--navy-900); opacity: 0; transition: opacity var(--d-fast); white-space: nowrap; }
  .cursor.is-hover .cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: color-mix(in srgb, var(--lime) 30%, transparent); border-color: transparent; }
  .cursor.has-label .cursor__ring { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--lime); border-color: transparent; }
  .cursor.has-label .cursor__label { opacity: 1; }
  .cursor.has-label .cursor__dot { opacity: 0; }
  .cursor.is-dark .cursor__dot { background: var(--paper); }
  .cursor.is-dark .cursor__ring { border-color: color-mix(in srgb, var(--paper) 55%, transparent); }
  .cursor.is-hidden { opacity: 0; }
}

/* ── Texture ────────────────────────────────────────────── */
.grain { position: fixed; inset: 0; z-index: 80; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ── Motion states (only when JS + motion are available) ── */
html.js [data-reveal], html.js [data-split] { visibility: hidden; }
html.js.motion-off [data-reveal], html.js.motion-off [data-split] { visibility: visible; }
.split-line { overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }

@media (prefers-reduced-motion: reduce) {
  .btn .dot, .glow { animation: none !important; }
}

/* ── Pending content (visible only on localhost) ────────── */
html.dev [data-todo] { outline: 1.5px dashed #D98E04; outline-offset: 4px; border-radius: 4px; }
