/* Da Rec Studio — dark theme. Brand: #111111 background, #ED1E24 red, white. */

/* Jost (SIL Open Font License 1.1), self-hosted variable font, Latin subset. */
@font-face {
  font-family: "Jost";
  src: url("/assets/fonts/jost-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --bg: #111111;
  --surface: #1a1a1a;
  --surface-2: #232323;
  --line: #2e2e2e;
  --text: #f5f5f5;
  --muted: #a3a3a3;
  --red: #ed1e24;
  --red-soft: rgba(237, 30, 36, 0.14);
  --red-button: #d91a21; /* white text on it passes WCAG AA (5.1:1); #ed1e24 stays for accents */
  --ok: #3ccf7a;
  --warn: #f2b33d;
  --radius: 14px;
  --font: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.55 var(--font); /* rem: respects the user's text size */
  -webkit-font-smoothing: antialiased;
  font-optical-sizing: auto;
  -webkit-tap-highlight-color: transparent;
}
a { color: var(--text); }
img { max-width: 100%; }
/* Tracking and leading are size-specific: tighter as type grows, slightly open when small. */
h1, h2, h3 { margin: 0 0 0.5em; font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.04; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.15; letter-spacing: -0.015em; }
h3 { font-size: 1.15rem; line-height: 1.25; letter-spacing: -0.005em; }
p { margin: 0 0 1em; text-wrap: pretty; }
.muted { color: var(--muted); }
.red { color: var(--red); }
.small { font-size: 0.88rem; letter-spacing: 0.01em; }
.num, .price-big, .amount { font-variant-numeric: tabular-nums; }

.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(680px, 100% - 32px); margin-inline: auto; }

.topbar { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.topbar img { height: 44px; width: auto; display: block; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  background: var(--red-button); color: #fff; font: 600 1rem var(--font); letter-spacing: 0.005em; cursor: pointer; text-decoration: none;
  touch-action: manipulation; /* no double-tap delay */
  transition: transform 100ms ease-out, background 150ms ease;
}
@media (hover: hover) { .btn:hover { background: #c4161c; } }
/* Feedback lives on the press, and it's instant. */
.btn:active, .choice:active, .option-card:active, .stepper button:active { transform: scale(0.97); transition-duration: 60ms; }
.btn:focus-visible, .choice:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid #fff; outline-offset: 2px;
}
.btn.ghost { background: transparent; border-color: #4a4a4a; color: var(--text); }
.btn.ghost:hover { border-color: var(--muted); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn.busy { pointer-events: none; }

.card { background: var(--lit); border: 1px solid var(--line); border-radius: 18px; padding: clamp(20px, 3vw, 28px); }
.stack > * + * { margin-top: 16px; }
.grid { display: grid; gap: 16px; }
@media (min-width: 760px) { .grid.two { grid-template-columns: 1fr 1fr; } .grid.three { grid-template-columns: repeat(3, 1fr); } }

.rec-dot { display: inline-block; width: 0.6em; height: 0.6em; border-radius: 50%; background: var(--red); margin-right: 0.35em; vertical-align: 0.05em; }
.pulse { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } .btn { transition: none; } }

/* Questionnaire */
.progress { height: 4px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--red); width: 0; transition: width 0.3s ease; }
.lead-in { color: var(--muted); font-size: 1.05rem; min-height: 1.5em; }
.question { font-size: clamp(1.35rem, 3vw, 1.75rem); font-weight: 600; margin: 4px 0 18px; }
.choices { display: grid; gap: 10px; }
.choice {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
  color: var(--text); font: 500 1rem var(--font); cursor: pointer; touch-action: manipulation;
  transition: transform 100ms ease-out, border-color 120ms ease, background 120ms ease;
}
@media (hover: hover) { .choice:hover { border-color: #555; } }
.choice[aria-pressed="true"] { border-color: var(--red); background: var(--red-soft); }
.choice .mark { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #555; flex: none; }
.choice[aria-pressed="true"] .mark { border-color: var(--red); background: var(--red); box-shadow: inset 0 0 0 3px var(--surface); }
.choice.multi .mark { border-radius: 6px; }
.actions { display: flex; gap: 12px; justify-content: space-between; align-items: center; margin-top: 22px; flex-wrap: wrap; }

input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="date"], input[type="url"], textarea, select {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--text); font: 400 1rem var(--font);
}
textarea { min-height: 96px; resize: vertical; }
label { display: block; font-weight: 500; margin-bottom: 6px; }
.field { margin-bottom: 18px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 5px; accent-color: var(--red); width: 18px; height: 18px; flex: none; }

.notice { border-left: 3px solid var(--red); padding: 12px 16px; background: var(--surface); border-radius: 0 10px 10px 0; }
.notice.ok { border-color: var(--ok); }
.notice.warn { border-color: var(--warn); }
.error { color: #ff6b6b; min-height: 1.4em; }

/* Proposal and configurator */
.price-big { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; }
.table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.table th, .table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table td.num, .table th.num { text-align: right; white-space: nowrap; }
.table-scroll { overflow-x: auto; }
.tag { display: inline-block; font-size: 0.75rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.tag.included { color: var(--ok); border-color: rgba(60, 207, 122, 0.4); }
.tag.additional { color: #fff; border-color: var(--red); }
.tag.quote { color: var(--warn); border-color: rgba(242, 179, 61, 0.4); }
.config-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 12px; border-bottom: 1px solid var(--line); border-radius: 12px; transition: background-color 180ms ease, box-shadow 180ms ease; }
/* What the client has selected must stand out from what they have not. */
@media (max-width: 600px) {
  .config-row { grid-template-columns: 1fr; gap: 8px; }
  .config-row .controls { justify-content: flex-start; flex-wrap: nowrap; }
  .config-row .controls select { width: auto; flex: 0 1 auto; min-width: 0; }
  .config-row > strong { padding-left: 28px; }
}
.config-row.on { background: rgba(217, 26, 33, 0.14); box-shadow: inset 4px 0 0 var(--red-button); border-bottom-color: transparent; }
.config-row.on strong, .config-row.on .check > span { color: #fff; }
.stepper.on { background: var(--red-button); border-color: var(--red-button); color: #fff; }
.stepper.on input { color: #fff; font-weight: 700; }
.stepper.on button { color: #fff; }
@media (prefers-contrast: more) { .config-row.on { background: transparent; box-shadow: inset 6px 0 0 #fff; outline: 2px solid #fff; } }
@media (prefers-reduced-motion: reduce) { .config-row { transition: none; } }
.config-row .controls { display: flex; gap: 8px; align-items: center; }
.config-row input[type="number"] { width: 84px; }
.config-row select { width: auto; }
.options { display: grid; gap: 14px; }
@media (min-width: 760px) { .options { grid-template-columns: 1fr 1fr; } }
.option-card { cursor: pointer; }
.option-card[aria-pressed="true"] { border-color: var(--red); background: var(--red-soft); }
.sticky-total { position: sticky; bottom: 0; background: rgba(17, 17, 17, 0.94); border-top: 1px solid var(--line); padding: 14px 0; backdrop-filter: blur(6px); }

footer { padding: 40px 0; color: var(--muted); font-size: 0.85rem; }
[hidden] { display: none !important; }
.sr-title { font-size: clamp(1.4rem, 3vw, 1.9rem); text-align: center; }

/* Materials: floating translucent chrome that content scrolls beneath, with a soft
   scroll-edge fade instead of a hard divider. */
.chrome {
  position: sticky; top: 0; z-index: 30;
  background: rgba(17, 17, 17, 0.72); backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%);
}
.chrome::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 16px; pointer-events: none;
  background: linear-gradient(rgba(17, 17, 17, 0.55), transparent);
}
.sticky-total {
  background: rgba(17, 17, 17, 0.72); backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-top: 1px solid rgba(255, 255, 255, 0.06); /* light catching the material's edge */
}
.sticky-total::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 20px; pointer-events: none;
  background: linear-gradient(transparent, rgba(17, 17, 17, 0.6));
}

/* Steppers: big targets, immediate response. */
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); }
.stepper button {
  width: 44px; height: 44px; border: 0; background: transparent; color: var(--text); font: 500 1.3rem/1 var(--font);
  border-radius: 999px; cursor: pointer; touch-action: manipulation; transition: transform 100ms ease-out, background 120ms ease;
}
.stepper button:disabled { opacity: 0.3; cursor: default; }
@media (hover: hover) { .stepper button:not(:disabled):hover { background: #2c2c2c; } }
.stepper output { min-width: 2.2ch; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Ongoing status: totals dim while the server recomputes, never blocking input. */
.recalculating { opacity: 0.55; transition: opacity 120ms ease; }
.settled { transition: opacity 200ms ease; }
.field-error { color: #ff6b6b; font-size: 0.85rem; margin-top: 6px; min-height: 1.2em; }
input[aria-invalid="true"] { border-color: #ff6b6b; }

/* Questionnaire step transitions: forward enters from the right, back from the left (same path). */
.step-enter-fwd { animation: step-in-fwd 320ms cubic-bezier(0.23, 1, 0.32, 1); }
.step-enter-back { animation: step-in-back 320ms cubic-bezier(0.23, 1, 0.32, 1); }
.step-leave { opacity: 0.35; transform: translateX(-12px); transition: opacity 180ms ease, transform 220ms cubic-bezier(0.23, 1, 0.32, 1); }
@keyframes step-in-fwd { from { opacity: 0; transform: translateX(24px); } }
@keyframes step-in-back { from { opacity: 0; transform: translateX(-24px); } }
.thinking { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .btn:active, .choice:active, .option-card:active, .stepper button:active { transform: none; }
  .step-enter-fwd, .step-enter-back { animation: step-fade 160ms ease-out; }
  .step-leave { transform: none; }
  .progress > span { transition: none; }
}
@keyframes step-fade { from { opacity: 0; } }
@media (prefers-reduced-transparency: reduce) {
  .chrome, .sticky-total { background: #161616; backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --muted: #d4d4d4; --line: #6b6b6b; }
  .chrome, .sticky-total { background: #000; border-bottom: 1px solid #fff; }
}

.sticky-total { transition: transform 280ms cubic-bezier(0.23, 1, 0.32, 1), opacity 200ms ease; }
.sticky-total.away { transform: translateY(110%); opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .sticky-total.away { transform: none; } }

/* Proposal: diagnosis lists */
.lead-text { font-size: clamp(1.1rem, 2vw, 1.3rem); line-height: 1.5; color: #dcdcdc; max-width: 62ch; }
.obstacles, .reasons { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.obstacles li, .reasons li { display: flex; flex-direction: column; gap: 4px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.obstacles li:last-child, .reasons li:last-child { border-bottom: 0; }
.obstacles .tag { align-self: flex-start; }
.insight { border-left: 3px solid var(--red-button); }
.insight p { margin: 0; max-width: 62ch; }
.reasons span { color: #cfcfcf; }

.tax-lines { display: grid; gap: 2px; margin: 8px 0; color: var(--muted, #a8a8a8); }
.tax-lines div { display: flex; justify-content: space-between; gap: 12px; }
fieldset.channel { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 0; }
fieldset.channel legend { padding: 0 6px; }
select { font: inherit; }
.small-btn { min-height: 44px; padding: 0 16px; font-size: 0.92rem; }

/* Proposal build-up: a full-screen moment between the diagnosis and the plan with its price. */
.prep { position: fixed; inset: 0; z-index: 100; display: grid; place-content: center; justify-items: center; gap: 22px; padding: 24px; background: var(--bg, #111); text-align: center; transition: opacity 420ms cubic-bezier(0.23, 1, 0.32, 1), visibility 0s linear 420ms; }
.prep.leaving { opacity: 0; visibility: hidden; }
.prep-ring { width: 84px; height: 84px; }
.prep-ring svg { width: 100%; height: 100%; overflow: visible; }
.prep-ring circle { fill: none; stroke-width: 4; }
.prep-ring .track { stroke: rgba(255, 255, 255, 0.08); }
.prep-ring .arc { stroke: var(--red); stroke-linecap: round; stroke-dasharray: 60 176; transform-origin: 32px 32px; animation: prep-spin 0.9s linear infinite; }
.prep-ring .check { fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; }
.prep.done .arc { animation: none; stroke-dasharray: 176 0; transition: stroke-dasharray 300ms ease-out; }
.prep.done .check { stroke-dashoffset: 0; transition: stroke-dashoffset 320ms cubic-bezier(0.65, 0, 0.35, 1) 120ms; }
.prep-step { margin: 0; font-size: clamp(1.35rem, 4.6vw, 1.9rem); font-weight: 600; letter-spacing: -0.01em; min-height: 1.3em; }
.prep-step.swap { animation: prep-swap 420ms cubic-bezier(0.22, 1, 0.36, 1); }
.prep-dots { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0; }
.prep-dots li { width: 28px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.12); transition: background 300ms ease; }
.prep-dots li.on { background: var(--red); }
@keyframes prep-spin { to { transform: rotate(360deg); } }
@keyframes prep-swap { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) {
  .prep-ring .arc { animation: none; stroke-dasharray: 120 56; }
  .prep-step.swap { animation: none; }
  .prep { transition: none; }
}

/* Paywall: header, subheader, value stack, proof, plans, main call to action. */
.paywall { display: grid; gap: 20px; text-align: center; max-width: 760px; margin-inline: auto; padding-top: 8px; }
.pw-kicker { margin: 0; color: var(--muted); font-size: 0.9rem; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 600; }
.paywall h1 { font-size: clamp(2rem, 6vw, 3.2rem); line-height: 1.06; letter-spacing: -0.025em; margin: 0; text-wrap: balance; }
.pw-sub { font-size: clamp(1.1rem, 2.6vw, 1.35rem); font-weight: 500; line-height: 1.45; color: #d6d6d6; margin: 0; text-wrap: balance; }
.value-stack { text-align: left; }
.value-stack h3 { margin: 0 0 12px; font-size: 1.15rem; }
.value-stack ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.value-stack li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; }
.vs-check { width: 22px; height: 22px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-size: 0.8rem; font-weight: 700; margin-top: 2px; }
.vs-value { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.vs-detail { color: var(--muted); font-size: 0.95rem; margin-top: 2px; }
.vs-for { display: inline-block; margin-top: 6px; font-size: 0.78rem; font-weight: 600; color: #fff; border: 1px solid var(--red); border-radius: 999px; padding: 1px 9px; }
.value-total { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 14px; display: grid; gap: 6px; font-variant-numeric: tabular-nums; }
.value-total > div { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.vs-strike { color: var(--muted); }
.vs-yours strong { font-size: 1.25rem; color: #fff; }
.proof-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; text-align: left; }
@media (min-width: 720px) { .proof-list { grid-template-columns: 1fr 1fr; } }
.proof-list li { position: relative; padding: 12px 14px 12px 40px; border: 1px solid var(--line); border-radius: 12px; font-size: 0.95rem; background: var(--surface); }
.proof-list li::before { content: ""; position: absolute; left: 14px; top: 15px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ok); }
.testimonial { margin: 0; text-align: left; border-left: 3px solid var(--red); padding: 8px 16px; }
.testimonial blockquote { margin: 0 0 6px; font-size: 1.05rem; }
.testimonial figcaption { color: var(--muted); font-size: 0.9rem; }
.plans { display: grid; gap: 14px; text-align: left; }
@media (min-width: 720px) { .plans { grid-template-columns: 1.08fr 1fr; align-items: stretch; } }
.plan { position: relative; color: inherit; font: inherit; padding-top: 30px; }
.plan.featured { border-width: 2px; }
.plan-badge { position: absolute; top: -12px; left: 18px; background: var(--red-button); color: #fff; font-size: 0.8rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.plan-radio { position: absolute; top: 18px; right: 18px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); }
.plan[aria-checked="true"] .plan-radio { border-color: var(--red); background: radial-gradient(circle, var(--red) 0 45%, transparent 50%); }
.plan h3 { margin: 0 0 6px; }
.pw-cta { width: 100%; min-height: 60px; font-size: 1.15rem; border-radius: 999px; }
.pw-fine { margin: -8px 0 0; }
details.more > summary { cursor: pointer; font-weight: 600; }
details.more[open] > summary { margin-bottom: 12px; }
details.more h3 { font-size: 1.05rem; margin: 18px 0 6px; }
.plan { text-align: left; }
.plan ul { padding-left: 1.1em; margin: 10px 0 0; }
.plan .price-big { margin-top: 2px; }
.vs-yours { align-items: baseline; }

/* Button system: one filled red primary per view, outlined secondaries, and a distinct
   outlined-red style for actions that destroy or end something. Rows put the primary last. */
.btn.danger { background: transparent; border-color: var(--red-button); color: #ff8a8e; }
@media (hover: hover) { .btn.danger:hover { background: rgba(217, 26, 33, 0.14); } }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px 10px; justify-content: flex-end; align-items: center; }
.btn-row.start { justify-content: flex-start; }

/* The Da Rec look, shared by every page (it started on the landing): red eyebrow labels,
   surfaces lit by a static red light, red number rings and icon tiles. Nothing animates. */
:root { --lit: radial-gradient(ellipse 75% 65% at 100% 0%, rgba(237, 30, 36, 0.11), transparent 70%), linear-gradient(135deg, var(--surface), #141010 60%, #121212); }
body.ambient { background: radial-gradient(ellipse 55% 45% at 100% 0%, rgba(237, 30, 36, 0.12), transparent 70%) no-repeat, radial-gradient(ellipse 40% 40% at 0% 70%, rgba(237, 30, 36, 0.05), transparent 70%) no-repeat, var(--bg); background-attachment: fixed; }
.eyebrow { display: flex; align-items: center; gap: 16px; margin: 0 0 14px; color: var(--red); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; line-height: 1.3; }
.eyebrow::after { content: ""; width: 96px; height: 1px; background: var(--line); }
.ring { display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--red); background: #1a0d0d; color: #fff; font-weight: 500; box-shadow: 0 0 20px rgba(237, 30, 36, 0.22); }
.glyph { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; border: 1px solid rgba(237, 30, 36, 0.4); background: rgba(237, 30, 36, 0.1); color: #ff6b6f; }
.option-card { background: var(--lit); }
.pw-kicker { color: var(--red); font-size: 0.75rem; letter-spacing: 0.24em; }
.stack > .eyebrow { margin-top: 28px; }
.stack > .eyebrow:first-child { margin-top: 0; }
.stack > .eyebrow + * { margin-top: 0; }
.pw-kicker { display: inline-flex; align-items: center; gap: 8px; }
/* The question is focused for screen readers when it changes; no visible ring needed. */
.question:focus { outline: none; }
/* Language switch: a small segmented control at the right end of the top bar. */
/* ES | EN: a slider. The white thumb sits under the current language and glides to the other one before the
   page changes; the next page finishes the glide (lang.js), so switching reads as one continuous move. */
.lang-switch { position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; border: 1px solid #4a4a4a; background: rgba(17, 17, 17, 0.6); box-shadow: inset 0 1px 6px rgba(0, 0, 0, 0.45); margin-left: auto; isolation: isolate; }
.lang-switch::before { content: ""; position: absolute; z-index: -1; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 4px); border-radius: 999px; background: var(--text); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45); transform: translateX(var(--thumb-x, 0)) scale(var(--thumb-s, 1)); transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1); }
.lang-switch[data-on="en"] { --thumb-x: calc(100% + 2px); }
.lang-switch.press { --thumb-s: 0.92; }
.lang-switch.instant::before, .lang-switch.instant a { transition: none; }
.topbar { gap: 12px; }
.topbar > :first-child { margin-right: auto; }
.topbar .lang-switch { margin-left: 0; }
.lang-switch a { display: inline-grid; place-items: center; min-width: 38px; min-height: 32px; padding: 0 8px; border-radius: 999px; color: var(--muted); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-decoration: none; transition: color 0.12s linear; }
.lang-switch[data-on="es"] a[lang="es"], .lang-switch[data-on="en"] a[lang="en"] { color: #111; }
@media (prefers-reduced-motion: reduce) { .lang-switch::before, .lang-switch a { transition: none; } }
@media (hover: hover) { .lang-switch a:not([aria-current]):hover { color: var(--text); } }
.lang-switch a:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.lang-switch.floating { position: fixed; top: 14px; right: 16px; z-index: 40; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
/* Proposal: the minimum-rate note, and its nudge when a change cannot move the price. */
.floor-note { border-left-color: var(--red) !important; }
.sticky-note { display: block; color: #ff8a8e; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; }
.sticky-note:empty { display: none; }
.floor-note.flash, .sticky-note.flash { animation: floor-flash 1.2s ease-out; }
@keyframes floor-flash { 0%, 30% { background-color: rgba(237, 30, 36, 0.28); } 100% { background-color: transparent; } }
@media (prefers-reduced-motion: reduce) { .floor-note.flash, .sticky-note.flash { animation: none; } }

/* The team: the three directors, on the landing page and in every proposal. */
.team-sec { padding-block: clamp(48px, 7vw, 120px); border-top: 1px solid var(--line); }
.team-h { font-size: clamp(1.9rem, 4.6vw, 4.2rem); line-height: 1.02; letter-spacing: -0.04em; margin: 0 0 16px; max-width: 20ch; text-wrap: balance; }
.team-lead { color: #cfcfcf; font-size: clamp(1rem, 1.35vw, 1.3rem); line-height: 1.55; max-width: 60ch; margin: 0 0 clamp(20px, 2.4vw, 36px); }
.team-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.team-list li { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 2px; align-content: start; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius, 16px); background: var(--surface, rgba(255, 255, 255, 0.03)); }
.team-ic { grid-row: span 3; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--red-soft, rgba(237, 30, 36, 0.12)); color: #ff4b50; }
.team-list strong { font-size: 1.05rem; letter-spacing: -0.01em; }
.team-role { color: var(--muted); font-size: 0.9rem; line-height: 1.4; }
.team-years { color: #ff4b50; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 4px; }
.team-promise { margin: 18px 0 0; font-weight: 600; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; }
.team-faq { margin-top: 18px; border: 1px solid var(--line); border-radius: var(--radius, 16px); padding: 0 18px; max-width: 72ch; }
.team-faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.team-faq summary::-webkit-details-marker { display: none; }
.team-faq summary::after { content: "+"; color: #ff4b50; font-size: 1.3em; line-height: 1; transition: transform 0.25s cubic-bezier(0.32, 0.72, 0, 1); }
.team-faq[open] summary::after { transform: rotate(45deg); }
.team-faq p { margin: 0 0 18px; color: #cfcfcf; line-height: 1.6; }
.team-prop { margin-top: 18px; }
.team-prop h3 { margin-top: 0; }
.team-prop .team-list { grid-template-columns: 1fr; margin-top: 12px; }
.team-ph { grid-row: span 3; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--red-soft, rgba(237, 30, 36, 0.35)); }
.team-list li:has(.team-ph) .team-ic { display: none; }
