/* =====================================================================
   JL Web Studio · dirección "Colour chapters" · carbón y primarios
   Cada sección es un cartel de un solo color, de borde a borde.
   ===================================================================== */

:root {
  /* Brand: JL ink black and electric blue, with a deep blue and a pale periwinkle */
  --charcoal: #16171c;
  --charcoal-2: #212329;
  --white: #ffffff;
  --black: #16171c;
  --red: #1f35d6;      /* deep blue field */
  --red-d: #172aa8;
  --blue: #304cff;     /* brand electric blue */
  --blue-l: #4b63ff;
  --blue-d: #1f35d6;
  --teal: #304cff;     /* the action colour on dark */
  --teal-d: #1f35d6;
  --yellow: #dde2ff;   /* pale periwinkle field, dark ink */
  --yellow-d: #c6ceff;
  --soft: #aab6ff;

  /* Type: Chivo, enormous and small */
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-price: clamp(2.5rem, 1.6rem + 2vw, 3.5rem);
  --step-head: clamp(2.5rem, 1.2rem + 5vw, 5.5rem);
  --step-display: clamp(2.75rem, 0.6rem + 8.4vw, 8.5rem);

  --margin: clamp(16px, 2.2vw, 32px);
  --gap: clamp(16px, 1.7vw, 24px);
  --header: 64px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

/* ---------- Chapters: one flat field each ---------- */
.ch { --f: var(--charcoal); --i: var(--white); --s: var(--charcoal-2); --a: var(--teal); --ai: var(--white); background: var(--f); color: var(--i); }
[data-ch="dark2"] { --f: var(--charcoal-2); --s: #303030; }
[data-ch="red"] { --f: var(--red); --i: var(--white); --s: var(--red-d); --a: var(--charcoal); --ai: var(--white); }
[data-ch="yellow"] { --f: var(--yellow); --i: var(--black); --s: var(--yellow-d); --a: var(--black); --ai: var(--yellow); }
[data-ch="blue"] { --f: var(--blue); --i: var(--white); --s: var(--blue-l); --a: var(--yellow); --ai: var(--black); }
[data-ch="teal"] { --f: var(--teal); --i: var(--white); --s: var(--teal-d); --a: var(--white); --ai: var(--teal); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header); overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--charcoal); color: var(--white);
  font-family: "Chivo", "Helvetica Neue", Arial, sans-serif;
  font-size: var(--step-body); line-height: 1.35; letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  scrollbar-color: var(--teal) var(--charcoal);
}
h1, h2, h3, p, ul, figure, fieldset { margin: 0; padding: 0; }
fieldset { border: 0; min-width: 0; }
ul { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; letter-spacing: inherit; }
::selection { background: var(--yellow); color: var(--black); }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
input { caret-color: currentColor; }
output { font-variant-numeric: tabular-nums; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: var(--margin); top: -100px; z-index: 60; background: var(--yellow); color: var(--black); padding: 12px 16px; text-decoration: none; font-weight: 700; }
.skip:focus { top: 12px; }
.noscript { padding: 24px var(--margin); background: var(--yellow); color: var(--black); }

/* Display type: Chivo black, capitals, letters nearly colliding */
.display, h1, h2 {
  font-weight: 900; text-transform: uppercase;
  letter-spacing: -0.05em; line-height: 0.88;
  text-wrap: balance;
}
h2 { font-size: var(--step-head); }
h3 { font-size: var(--step-lead); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
.line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.line > span { display: inline-block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 0 28px; border: 0; border-radius: 0;
  background: var(--a, var(--teal)); color: var(--ai, var(--white));
  font-size: var(--step-body); font-weight: 700; line-height: 1; text-decoration: none; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 180ms ease, color 180ms ease;
}
.btn:active { transform: scale(0.97); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: var(--step-small); }
.btn-accent { background: var(--teal); color: var(--white); }
.btn-accent:hover { background: var(--yellow); color: var(--black); }
.btn-ink { background: var(--black); color: var(--yellow); }
.btn-ink:hover { background: var(--charcoal-2); }
.btn-line { background: var(--white); color: var(--black); }
.btn-line:hover { background: var(--black); color: var(--yellow); }
.btn-block { width: 100%; }
.text-link {
  font-weight: 700; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 0.3em;
  transition: text-underline-offset 200ms var(--ease-out);
}
.text-link:hover { text-underline-offset: 0.45em; }

/* ---------- Header: takes the colour of the chapter beneath ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 40; height: var(--header);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-inline: var(--margin);
  background: var(--hbg, var(--charcoal)); color: var(--hink, var(--white));
  transition: background-color 300ms ease, color 300ms ease;
}
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: -0.04em; font-size: var(--step-lead); text-decoration: none; }
.wordmark img { width: 32px; height: 32px; border-radius: 0; flex: none; }
.nav-links { display: flex; gap: clamp(16px, 2vw, 32px); }
.nav-links a { text-decoration: none; font-weight: 700; font-size: var(--step-small); position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 3px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 220ms var(--ease-out); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.nav .btn { background: var(--hink, var(--white)); color: var(--hbg, var(--charcoal)); }
.nav-menu { display: none; background: none; border: 0; padding: 8px 0; font-weight: 700; font-size: var(--step-small); cursor: pointer; }
@media (max-width: 760px) {
  .wordmark { font-size: var(--step-body); }
  .nav-actions { gap: 14px; }
  .nav .btn-sm { padding: 0 14px; }
  .nav-menu { display: block; }
  .nav-links {
    position: absolute; top: var(--header); right: var(--margin); flex-direction: column; gap: 0; min-width: 210px;
    background: var(--hbg, var(--charcoal));
    box-shadow: 0 16px 40px rgb(0 0 0 / 0.35); /* taste-skill-ignore: a real dropdown menu floats */
    opacity: 0; transform: translateY(-6px); pointer-events: none; transform-origin: top right;
    transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out);
  }
  .nav-links.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 16px 20px; font-size: var(--step-body); }
  .nav-links a::after { display: none; }
}

/* =====================================================================
   1 · HERO: headline on the bare ground, a giant browser cropped by the edge
   ===================================================================== */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 100svh;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: center;
  padding: calc(var(--header) + 48px) var(--margin) 72px;
}
.hero-text { grid-column: 1 / span 6; position: relative; z-index: 2; display: grid; gap: 28px; }
.hero-text .try, .hero-text .hero-actions { max-width: 32rem; }
.hero-title { font-size: clamp(2.5rem, 1.2rem + 6.2vw, 7rem); }
.hero-sub { font-size: var(--step-lead); line-height: 1.3; max-width: 30ch; }
.try { display: grid; gap: 12px; }
.try-label { font-size: var(--step-small); font-weight: 700; }
.try input[type="text"] {
  width: 100%; max-width: 28rem; min-height: 60px; padding: 0 20px;
  border: 0; border-radius: 0; background: var(--white); color: var(--black);
  font-size: var(--step-lead); font-weight: 700; letter-spacing: -0.02em;
}
.try input::placeholder { color: #6b6b6b; font-weight: 400; }
.rubros { display: flex; flex-wrap: wrap; gap: 8px; }
.rubros label { position: relative; cursor: pointer; }
.rubros input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.rubros span {
  display: block; min-height: 44px; padding: 10px 16px; line-height: 24px;
  background: var(--charcoal-2); color: var(--white); font-size: var(--step-small); font-weight: 700;
  transition: background-color 180ms ease, color 180ms ease, transform 160ms var(--ease-out);
}
.rubros label:hover span { background: #333; }
.rubros label:active span { transform: scale(0.96); }
.rubros input:checked + span { background: var(--yellow); color: var(--black); }
.rubros input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 3px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }

/* The shape: a teal slab holding the visitor's own site, cropped by top, right and bottom */
.hero-shape {
  position: absolute; z-index: 1;
  left: calc(50% + var(--gap)); top: calc(var(--header) + 32px);
  height: 118vh; width: calc(118vh * 1.3);
  transform: translateY(var(--py, 0px));
}
.hero-shape-in { height: 100%; background: var(--teal); padding: 28px; }
.browser-xl { height: 100%; display: flex; flex-direction: column; }
.browser-xl .browser-bar { height: 52px; font-size: 16px; justify-content: flex-start; padding-left: 24px; }
.browser-xl .mini { flex: 1; }
.browser-xl .mini { display: flex; flex-direction: column; }
/* In the giant browser the visitor's page is a modern cover: the photo fills it, the name sits large on top. */
@container (min-width: 521px) {
  .browser-xl .mini-nav { position: relative; z-index: 2; }
  .browser-xl .mini-hero { position: relative; display: flex; flex: 1; min-height: 0; }
  .browser-xl .mini-pic { position: absolute; inset: 0; }
  .browser-xl .mini-pic::after { content: ""; position: absolute; inset: 0; background: rgb(0 0 0 / 0.4); }
  .browser-xl .mini-copy { position: relative; z-index: 1; max-width: 46%; justify-content: flex-start; padding: 9vh 4cqi 4cqi; gap: 2.4cqi; color: #fff; }
  .browser-xl .mini-title { font-size: 6.6cqi; color: #fff; }
  .browser-xl .mini-frase { font-size: max(16px, 1.5cqi); color: #fff; }
  .browser-xl .mini-btn { font-size: max(15px, 1.2cqi); padding: 1.2cqi 2cqi; }
  .browser-xl .mini-facts { max-width: 46%; padding: 2cqi 4cqi; font-size: max(13px, 1cqi); }
}

/* ---------- Browser frame + mini site (a real UI fragment) ---------- */
.browser { overflow: hidden; background: #f2f2f2; }
.browser-bar { display: flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; background: #f2f2f2; color: #333; font-size: 14px; font-weight: 700; letter-spacing: 0; }
.browser-bar .lock { color: #666; flex: none; }
.browser-url { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini { --m-bg: #2A1810; --m-ink: #F3E3CC; --m-ac: #E2793A; background: var(--m-bg); color: var(--m-ink); container-type: inline-size; transition: background-color 300ms ease, color 300ms ease; letter-spacing: 0; }
.mini-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 2.4cqi 4cqi; font-size: max(13px, 1.3cqi); }
.mini-logo { font-weight: 900; font-size: max(13px, 1.7cqi); letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-links { display: flex; gap: 2.6cqi; }
.mini-hero { display: grid; grid-template-columns: 1fr 1.05fr; min-height: 34cqi; }
.mini-copy { display: flex; flex-direction: column; justify-content: center; gap: 2.4cqi; padding: 3cqi 4cqi 5cqi; }
.mini-title { font-size: 4.6cqi; font-weight: 900; line-height: 0.95; letter-spacing: -0.04em; overflow-wrap: anywhere; text-wrap: balance; }
.mini-frase { font-size: max(13px, 1.7cqi); }
.mini-btn { align-self: start; padding: 1.2cqi 2.2cqi; background: var(--m-ac); color: var(--m-bg); font-weight: 700; font-size: max(13px, 1.4cqi); }
.mini-pic { position: relative; overflow: hidden; }
.mini-pic img { width: 100%; height: 100%; object-fit: cover; }
.mini-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2cqi; padding: 3cqi 4cqi; font-size: max(13px, 1.35cqi); font-weight: 700; }
.mini-shot { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
@container (max-width: 520px) {
  .mini-hero { grid-template-columns: 1fr; }
  .mini-pic { aspect-ratio: 16 / 9; order: -1; }
  .mini-title { font-size: 9cqi; }
  .mini-frase { font-size: 3.4cqi; }
  .mini-btn { font-size: 3cqi; padding: 2.4cqi 4cqi; }
  .mini-links { display: none; }
  .mini-nav { font-size: 3cqi; padding: 3.5cqi 5cqi; }
  .mini-logo { font-size: 3.6cqi; }
  .mini-copy { padding: 5cqi; gap: 3.5cqi; }
  .mini-facts { grid-template-columns: 1fr; font-size: 3.2cqi; padding: 0 5cqi 5cqi; gap: 1.5cqi; }
}

@media (max-width: 900px) {
  .hero { min-height: 0; padding-bottom: 0; align-items: start; }
  .hero-text { grid-column: 1 / -1; max-width: none; }
  .hero-shape {
    position: relative; grid-column: 1 / -1; left: auto; top: auto; transform: none;
    width: 100%; height: var(--sh); margin-top: 48px; overflow: hidden;
    --sh: clamp(360px, 60vw, 520px);
  }
  .hero-shape-in { height: calc(var(--sh) + 120px); padding: 12px; }
}
@media (max-width: 900px) {
  .browser-xl .browser-bar { height: 40px; font-size: 14px; justify-content: center; padding-left: 16px; }
}
@media (max-width: 600px) {
  .hero-shape { --sh: 112vw; }
}
@media (max-width: 760px) {
  .hero-sub { font-size: var(--step-body); }
  .try input[type="text"] { font-size: var(--step-body); }
}

/* ---------- Marquee: one per page, pausable ---------- */
.marquee { background: var(--yellow); color: var(--black); overflow: hidden; padding: 18px 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { font-size: var(--step-lead); font-weight: 900; text-transform: uppercase; letter-spacing: -0.03em; white-space: nowrap; padding-right: 1.4em; }
.marquee span::after { content: ""; display: inline-block; width: 0.42em; height: 0.42em; margin-left: 1.4em; background: var(--black); vertical-align: 0.12em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =====================================================================
   2 · TRABAJOS (red)
   ===================================================================== */
.trabajos {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start;
  min-height: 90svh; padding: clamp(96px, 10vw, 160px) var(--margin);
}
.names { grid-column: 1 / span 6; font-size: var(--step-price); font-weight: 900; text-transform: uppercase; letter-spacing: -0.05em; line-height: 0.98; }
.names h2 { display: inline; font-size: inherit; line-height: inherit; }
.name-wrap { white-space: nowrap; }
.name-btn {
  display: inline; padding: 0; border: 0; background: none; cursor: pointer; text-align: left;
  font: inherit; letter-spacing: inherit; text-transform: inherit; color: var(--soft);
  transition: color 180ms ease;
}
.name-btn:hover, .name-btn[aria-pressed="true"] { color: var(--white); }
.sep { color: var(--soft); }
.thumb { display: inline-block; vertical-align: baseline; width: 1.25em; height: 0.74em; margin-left: 0.16em; overflow: hidden; transform-origin: left 80%; transition: transform 280ms var(--ease-out); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.name-btn:hover .thumb, .name-btn[aria-pressed="true"] .thumb { transform: scale(1.4); }
.names-count { grid-column: 1 / span 6; margin-top: 28px; font-size: var(--step-small); font-weight: 700; }
.proof { grid-column: 7 / span 6; grid-row: 1 / span 2; display: grid; row-gap: 28px; }
.proof-text { display: grid; gap: 12px; max-width: 46ch; }
.proof-meta { font-size: var(--step-small); font-weight: 700; }
.proof-text .text-link { justify-self: start; }
.proof .mini { transition: opacity 220ms ease; }
.proof .mini.is-swapping { opacity: 0; }
@media (max-width: 900px) {
  .names, .names-count, .proof { grid-column: 1 / -1; }
  .proof { grid-row: auto; margin-top: 56px; }
  .thumb { display: none; }
}
@media (max-width: 760px) {
  .names { font-size: var(--step-price); }
  .thumb { display: none; }
}

/* =====================================================================
   3 · MOSAICO (yellow): one photograph cut across a board of tiles
   ===================================================================== */
.mosaico { padding: clamp(80px, 8vw, 128px) var(--margin); }
.board { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: auto; gap: 8px; grid-auto-flow: dense; }
.tile { aspect-ratio: 1; position: relative; overflow: hidden; }
.tile.ph { background: var(--charcoal); }
.ph-in { position: absolute; inset: 0; transition: transform 500ms var(--ease-out); }
.ph-in img { position: absolute; max-width: none; object-fit: fill; }
.tile.ph:hover .ph-in { transform: scale(1.08); }
.t-head { grid-column: 1 / span 2; grid-row: 1; aspect-ratio: auto; background: var(--charcoal); color: var(--white); padding: 20px; display: flex; align-items: flex-start; }
.t-head h2 { font-size: var(--step-price); line-height: 0.9; }
.t-fact { padding: 20px; display: flex; align-items: flex-end; color: var(--white); }
.t-fact p { font-size: var(--step-body); line-height: 1.25; }
.t-fact strong { display: block; font-weight: 900; text-transform: uppercase; letter-spacing: -0.03em; font-size: var(--step-lead); line-height: 1; margin-bottom: 8px; }
.t-f1 { grid-column: 4; grid-row: 2; background: var(--blue); }
.t-f2 { grid-column: 2; grid-row: 3; background: var(--white); color: var(--black); }
.t-f3 { grid-column: 6; grid-row: 3; background: var(--red); }
.t-act {
  grid-column: 4; grid-row: 4; background: var(--black); color: var(--yellow);
  padding: 20px; display: flex; flex-direction: column; justify-content: space-between;
  text-decoration: none; font-weight: 900; text-transform: uppercase; letter-spacing: -0.03em; font-size: var(--step-lead); line-height: 1;
  transition: background-color 180ms ease;
}
.t-act svg { align-self: flex-end; transition: transform 240ms var(--ease-out); }
.t-act:hover { background: var(--charcoal-2); }
.t-act:hover svg { transform: translateX(6px); }
.t-act:active { transform: scale(0.98); }
.board-cap { margin-top: 28px; max-width: 52ch; font-size: var(--step-lead); line-height: 1.3; font-weight: 700; color: var(--black); }
@media (max-width: 900px) {
  .board { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .t-head { grid-column: 1 / span 2; grid-row: 1; }
  .t-head h2 { font-size: var(--step-lead); }
  .t-f1 { grid-column: 3; grid-row: 3; }
  .t-f2 { grid-column: 1; grid-row: 4; }
  .t-f3 { grid-column: 2; grid-row: 6; }
  .t-act { grid-column: 3; grid-row: 5; }
  .t-fact, .t-act, .t-head { padding: 12px; }
  .t-fact strong { font-size: var(--step-body); margin: 0; }
}
@media (max-width: 600px) {
  .t-more { display: none; }
}

/* =====================================================================
   4 · PAQUETES (charcoal): tiles that step up like a bar chart
   ===================================================================== */
.paquetes { padding: clamp(96px, 10vw, 160px) var(--margin); }
/* The heading stands above the two short tiles; the two tall ones rise beside it. */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: auto auto; gap: 8px; align-items: end; }
.steps-head { grid-column: 1 / span 2; grid-row: 1; align-self: end; display: grid; gap: 20px; padding-bottom: 32px; }
.steps-head p { max-width: 40ch; font-size: var(--step-lead); line-height: 1.3; }
.step:nth-of-type(1), .step:nth-of-type(2) { grid-row: 2; }
.step:nth-of-type(3), .step:nth-of-type(4) { grid-row: 1 / span 2; }
.step {
  --c: var(--teal); --cd: var(--teal-d); --ci: var(--white);
  display: flex; flex-direction: column;
  background: var(--c); color: var(--ci);
  min-height: var(--h, 520px);
}
/* Light to deep: the bigger the package, the deeper its blue */
.step:nth-of-type(1) { --h: 540px; --c: var(--white); --cd: #e6e9f5; --ci: var(--black); }
.step:nth-of-type(2) { --h: 660px; --c: var(--yellow); --cd: var(--yellow-d); --ci: var(--black); }
.step:nth-of-type(3) { --h: 820px; --c: var(--blue); --cd: var(--blue-d); }
.step:nth-of-type(4) { --h: 960px; --c: var(--red); --cd: var(--red-d); }
.step-body { flex: 1; padding: 28px; display: grid; align-content: start; gap: 14px; }
.step-name { font-size: var(--step-lead); font-weight: 900; text-transform: uppercase; letter-spacing: -0.03em; line-height: 1; }
.step-price { font-size: var(--step-price); font-weight: 900; letter-spacing: -0.05em; line-height: 0.9; font-variant-numeric: tabular-nums; white-space: nowrap; }
.step-price small { font-size: var(--step-small); letter-spacing: 0; font-weight: 700; margin-right: 4px; vertical-align: 0.9em; }
.step-para { font-size: var(--step-body); }
.step-para strong { font-weight: 900; }
.step-when { font-size: var(--step-small); font-weight: 700; }
.step-list { display: grid; gap: 6px; padding-top: 6px; }
.step-list li { padding-left: 1em; position: relative; }
.step-list li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 0.4em; height: 0.4em; background: currentColor; }
.step-go {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 64px; padding: 0 28px; border: 0; cursor: pointer; text-align: left;
  background: var(--cd); color: var(--ci); font-weight: 900; text-transform: uppercase; letter-spacing: -0.02em; font-size: var(--step-body);
  transition: background-color 180ms ease;
}
.step-go svg { transition: transform 240ms var(--ease-out); }
.step-go:hover svg { transform: translateX(6px); }
.step-go:active { transform: scale(0.99); }
.step-go:focus-visible { outline-offset: -6px; }

.medida {
  margin-top: 8px; background: var(--charcoal-2);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 24px;
  padding: 36px 28px; align-items: start;
}
.medida-title { grid-column: 1 / span 4; display: grid; gap: 10px; }
.medida-title h3 { font-size: var(--step-lead); font-weight: 900; text-transform: uppercase; letter-spacing: -0.03em; line-height: 1; }
.medida-title .step-price { color: var(--yellow); }
.medida-text { grid-column: 5 / span 5; display: grid; gap: 14px; }
.medida-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 20px; }
.medida .btn { grid-column: 10 / span 3; align-self: end; background: var(--yellow); color: var(--black); }
.medida .btn:hover { background: var(--white); }

@media (max-width: 1180px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; align-items: stretch; }
  .steps-head { grid-column: 1 / -1; padding-bottom: 40px; }
  .step:nth-of-type(n) { grid-row: auto; min-height: 0; }
  .medida-title { grid-column: 1 / -1; }
  .medida-text { grid-column: 1 / span 8; }
  .medida .btn { grid-column: 9 / span 4; }
}
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; }
  .step-body, .step-go { padding-inline: 20px; }
  .medida { padding: 28px 20px; }
  .medida-text, .medida .btn { grid-column: 1 / -1; }
  .medida-list { grid-template-columns: 1fr; }
}

/* =====================================================================
   5 · COTIZADOR (blue): options left, the ticket right
   ===================================================================== */
.cotizar { padding: clamp(96px, 10vw, 160px) var(--margin); }
.cotizador { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
.cot-left { grid-column: 1 / span 7; display: grid; gap: 56px; }
.cot-head { display: grid; gap: 20px; }
.cot-head p { max-width: 46ch; font-size: var(--step-lead); line-height: 1.3; }
.cot-group legend { font-size: var(--step-lead); font-weight: 900; text-transform: uppercase; letter-spacing: -0.03em; margin-bottom: 16px; }
.opts { display: grid; gap: 6px; }
.opts-2 { grid-template-columns: 1fr 1fr; }
.opt {
  position: relative; display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 12px 16px;
  background: var(--blue-l); color: var(--white); cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, transform 160ms var(--ease-out);
}
.opt:hover { background: #5d73ff; }
.opt:active { transform: scale(0.985); }
.opt input[type="radio"], .opt input[type="checkbox"] {
  appearance: none; flex: none; width: 22px; height: 22px; margin: 0; border: 2.5px solid currentColor; background: transparent; cursor: pointer;
  display: grid; place-content: center;
}
.opt input[type="radio"] { border-radius: 50%; }
.opt input[type="radio"]::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; opacity: 0; transform: scale(0.5); transition: transform 160ms var(--ease-out), opacity 160ms var(--ease-out); }
.opt input[type="checkbox"]::after { content: ""; width: 11px; height: 6px; border-left: 3px solid currentColor; border-bottom: 3px solid currentColor; opacity: 0; transform: translateY(-1px) rotate(-45deg) scale(0.6); transition: transform 160ms var(--ease-out), opacity 160ms var(--ease-out); }
.opt input:checked::after { opacity: 1; transform: scale(1); }
.opt input[type="checkbox"]:checked::after { opacity: 1; transform: translateY(-1px) rotate(-45deg) scale(1); }
.opt input:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.opt:has(input:checked) { background: var(--yellow); color: var(--black); }
.opt-name { flex: 1; font-weight: 700; line-height: 1.2; }
.opt-name small { display: block; font-size: var(--step-small); font-weight: 400; margin-top: 2px; }
.opt-price { font-variant-numeric: tabular-nums; font-weight: 900; white-space: nowrap; }
.opt.is-disabled { opacity: 0.55; cursor: not-allowed; }
.opt.is-disabled:active { transform: none; }
.opt-toggle { margin-top: 12px; background: var(--blue-d); }
.qty { display: none; align-items: center; gap: 4px; }
.opt:has(input:checked) .qty { display: inline-flex; }
.qty button { width: 32px; height: 32px; border: 0; padding: 0; cursor: pointer; background: var(--black); color: var(--yellow); font-weight: 900; font-size: 18px; line-height: 1; transition: transform 140ms var(--ease-out); }
.qty button:active { transform: scale(0.9); }
.qty output { min-width: 1.4em; text-align: center; font-weight: 900; }

.cot-right { grid-column: 9 / span 4; position: sticky; top: calc(var(--header) + 24px); display: grid; gap: 16px; }
.ticket { background: var(--yellow); color: var(--black); position: relative; }
.ticket-main { padding: 28px 28px 24px; display: grid; gap: 16px; }
.ticket-title { font-size: var(--step-lead); font-weight: 900; text-transform: uppercase; letter-spacing: -0.03em; line-height: 1; overflow-wrap: anywhere; }
.ticket-nombre input {
  width: 100%; min-height: 48px; padding: 0 14px; border: 0; border-radius: 0;
  background: var(--yellow-d); color: var(--black); font-size: var(--step-body); font-weight: 700;
}
.ticket-nombre input::placeholder { color: #464c80; font-weight: 400; }
.ticket-rows { display: grid; gap: 10px; }
.ticket-rows li { display: flex; justify-content: space-between; gap: 16px; line-height: 1.3; animation: row-in 240ms var(--ease-out); }
.ticket-rows li span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 900; }
@keyframes row-in { from { opacity: 0; transform: translateY(-6px); } }
.ticket-plan { font-size: var(--step-small); font-weight: 700; }
.ticket-perf { position: relative; height: 28px; display: flex; align-items: center; justify-content: space-between; padding: 0 26px; }
.ticket-perf::before, .ticket-perf::after { content: ""; position: absolute; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--blue); }
.ticket-perf::before { left: -14px; }
.ticket-perf::after { right: -14px; }
.ticket-perf i { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.ticket-stub { padding: 20px 28px 28px; display: grid; gap: 20px; }
.ticket-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.ticket-total span { font-weight: 900; text-transform: uppercase; letter-spacing: -0.02em; white-space: nowrap; }
.ticket-total output { font-size: var(--step-price); font-weight: 900; letter-spacing: -0.05em; line-height: 0.9; }
.pedido-nota { font-size: var(--step-body); font-weight: 700; max-width: 40ch; }
.ticket-itbis { margin-top: -10px; font-size: var(--step-small); font-weight: 700; text-align: right; }

@media (max-width: 1100px) {
  .cot-left { grid-column: 1 / span 7; }
  .cot-right { grid-column: 8 / span 5; }
}
@media (max-width: 860px) {
  .cot-left, .cot-right { grid-column: 1 / -1; min-width: 0; }
  .cot-right { position: static; margin-top: 64px; }
}
@media (max-width: 520px) {
  .opts-2 { grid-template-columns: 1fr; }
  .ticket-main, .ticket-stub { padding-inline: 20px; }
  /* On narrow phones the total drops under its label instead of widening the page */
  .ticket-total { flex-wrap: wrap; row-gap: 6px; }
}

/* =====================================================================
   6 · PLANES (charcoal): a large table
   ===================================================================== */
.planes { padding: clamp(96px, 10vw, 160px) var(--margin); }
.tabla { width: 100%; border-collapse: collapse; font-size: var(--step-body); }
.tabla col.c-item { width: 28%; }
.tabla th, .tabla td { padding: 20px; text-align: left; vertical-align: top; }
.tabla thead th { vertical-align: bottom; padding-top: 28px; padding-bottom: 28px; }
.tabla thead th.t-corner { padding-left: 0; }
.t-plan { display: block; font-size: var(--step-lead); font-weight: 900; text-transform: uppercase; letter-spacing: -0.03em; line-height: 1; white-space: nowrap; }
.t-price { display: block; margin-top: 8px; font-size: var(--step-price); font-weight: 900; letter-spacing: -0.05em; line-height: 0.95; font-variant-numeric: tabular-nums; white-space: nowrap; }
.t-price small { font-size: var(--step-small); letter-spacing: 0; font-weight: 700; }
.t-rec { display: block; margin-top: 10px; font-size: var(--step-small); font-weight: 700; }
.tabla tbody th { font-weight: 700; padding-left: 16px; }
.tabla tbody tr:nth-child(odd) > * { background: var(--charcoal-2); }
.tabla .is-rec { background: var(--teal) !important; color: var(--white); }
.tabla tbody tr:nth-child(odd) > .is-rec { background: var(--teal-d) !important; }
.tabla tfoot td { padding-top: 24px; padding-bottom: 28px; }
.tabla tfoot .btn { width: 100%; background: var(--white); color: var(--black); }
.tabla tfoot .btn:hover { background: var(--yellow); }
.tabla tfoot .is-rec .btn { background: var(--yellow); color: var(--black); }
.planes-nota { margin-top: 40px; max-width: 70ch; }
.planes-nota strong { font-weight: 900; }
.planes-mobile { display: none; }
@media (max-width: 860px) {
  .tabla-wrap { display: none; }
  .planes-mobile { display: grid; gap: 8px; }
  .planes-mobile > h2 { margin-bottom: 32px; }
  .plan-block { background: var(--charcoal-2); padding: 24px 20px; }
  .plan-block.is-rec { background: var(--teal); }
  .plan-block h3 { font-size: var(--step-lead); font-weight: 900; text-transform: uppercase; letter-spacing: -0.03em; }
  .plan-block .pb-price { font-size: var(--step-price); font-weight: 900; letter-spacing: -0.05em; line-height: 1; margin-top: 6px; font-variant-numeric: tabular-nums; }
  .plan-block .pb-price small { font-size: var(--step-small); letter-spacing: 0; }
  .plan-block dl { margin: 20px 0 24px; display: grid; gap: 12px; }
  .plan-block dt { font-size: var(--step-small); font-weight: 700; }
  .plan-block dd { margin: 0; font-size: var(--step-body); }
  .plan-block .btn { width: 100%; background: var(--white); color: var(--black); }
  .plan-block.is-rec .btn { background: var(--yellow); }
}

/* =====================================================================
   7 · PREGUNTAS: a band per question
   ===================================================================== */
.band {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
  padding: 56px var(--margin);
}
.band h3 { grid-column: 1 / span 6; font-size: var(--step-price); font-weight: 900; text-transform: uppercase; letter-spacing: -0.045em; line-height: 0.95; text-wrap: balance; }
.band p { grid-column: 8 / span 5; max-width: 44ch; font-size: var(--step-lead); line-height: 1.35; }
.band-head { min-height: 40svh; align-items: end; padding-top: 96px; }
.band-head h2 { grid-column: 1 / -1; font-size: var(--step-display); }
@media (max-width: 900px) {
  .band { display: block; padding: 40px var(--margin); }
  .band h3 { font-size: var(--step-lead); max-width: 26ch; }
  .band p { margin-top: 14px; font-size: var(--step-body); }
}
@media (max-width: 760px) {
  .band { padding: 32px 20px; }
  .band-head { min-height: 30svh; display: flex; }
}

/* =====================================================================
   8 · CIERRE (yellow): a sentence with a blank
   ===================================================================== */
.blank { display: flex; align-items: center; padding: clamp(96px, 10vw, 180px) var(--margin); }
.blank-form { width: 100%; display: grid; gap: 0; }
.blank h2 { font-size: var(--step-display); }
.blank-line { display: flex; align-items: stretch; gap: 0.12em; font-size: var(--step-display); margin-top: 0.08em; }
.blank-line input {
  width: min(8.5em, 100%); height: 0.96em; padding: 0 0.12em; border: 0; border-radius: 0;
  background: var(--yellow-d); color: var(--black);
  font-weight: 900; text-transform: uppercase; letter-spacing: -0.05em; line-height: 1;
}
.blank-line input::placeholder { color: #464c80; }
.blank-go {
  height: 0.96em; padding: 0 0.16em; border: 0; border-radius: 0; cursor: pointer;
  background: var(--black); color: var(--yellow);
  font-weight: 900; text-transform: uppercase; letter-spacing: -0.05em; line-height: 1;
  display: inline-flex; align-items: center; gap: 0.08em;
  transition: transform 160ms var(--ease-out), background-color 180ms ease;
}
.blank-go:hover { background: var(--charcoal-2); }
.blank-go:active { transform: scale(0.97); }
.blank-go span { display: inline-block; transition: transform 240ms var(--ease-out); }
.blank-go:hover span { transform: translateX(0.08em); }
.blank-note { margin-top: 28px; font-size: var(--step-lead); font-weight: 700; max-width: 46ch; }
@media (max-width: 760px) {
  .blank-line { flex-wrap: wrap; gap: 8px; }
  .blank-line input { width: 100%; height: 1.1em; }
  .blank-go { height: 1.1em; }
}

/* =====================================================================
   9 · PIE (blue): the WhatsApp number is the headline
   ===================================================================== */
.footer { display: flex; flex-direction: column; padding: 40px var(--margin) 32px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.footer-notes { display: grid; gap: 4px; font-size: var(--step-small); }
.footer-notes a { font-weight: 700; }
.footer-top .text-link { font-size: var(--step-small); }
.footer-h { margin-top: clamp(120px, 14vw, 240px); font-size: inherit; letter-spacing: normal; line-height: 1; }
.footer-big {
  display: block; text-decoration: none;
  font-size: clamp(3.25rem, 13.4vw, 14rem); font-weight: 900; letter-spacing: -0.06em; line-height: 0.86;
  white-space: nowrap;
}
.footer-big:hover #footer-num { color: var(--yellow); }
#footer-num { transition: color 200ms ease; }
.footer-big-cap { margin-top: 16px; font-size: var(--step-lead); font-weight: 900; text-transform: uppercase; letter-spacing: -0.03em; }
.footer-meta { margin-top: 48px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: var(--step-small); }
.footer-meta a { font-weight: 700; }
#creditos { max-width: 62ch; }
@media (max-width: 760px) {
  .footer-top { flex-direction: column; }
  .footer-big { font-size: var(--step-display); }
  .footer-meta { flex-direction: column; }
}

/* =====================================================================
   MOTION: choreographed per section, visible without JS
   ===================================================================== */
/* Lines that rise out of a mask */
.js .line > span { transform: translateY(108%); }
.js .is-in .line > span, .js .line.is-in > span { transform: none; transition: transform 950ms var(--ease-out); transition-delay: calc(var(--l, 0) * 90ms + var(--d, 0ms)); }
/* Parts that rise */
.js .rise { opacity: 0; transform: translateY(28px); }
.js .rise.is-in { opacity: 1; transform: none; transition: opacity 700ms var(--ease-out), transform 800ms var(--ease-out); transition-delay: var(--d, 0ms); }
/* A picture that opens from a mask */
.js .open-mask { clip-path: inset(100% 0 0 0); }
.js .open-mask.is-in { clip-path: inset(0 0 0 0); transition: clip-path 1100ms var(--ease-in-out); }
/* Tiles in a diagonal wave */
.js .tile { opacity: 0; transform: scale(0.94); }
.js .board.is-in .tile { opacity: 1; transform: none; transition: opacity 600ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: var(--w, 0ms); }
/* Bars that rise from the base line */
.js .step { clip-path: inset(100% 0 0 0); }
.js .steps.is-in .step { clip-path: inset(0 0 0 0); transition: clip-path 1000ms var(--ease-in-out); transition-delay: var(--d, 0ms); }
/* Bands slide their question in */
.js .band h3, .js .band p { opacity: 0; transform: translateY(20px); }
.js .band.is-in h3, .js .band.is-in p { opacity: 1; transform: none; transition: opacity 600ms var(--ease-out), transform 700ms var(--ease-out); }
.js .band.is-in p { transition-delay: 90ms; }
/* Signature move: the hero's shape opens like a shutter, the page inside settles */
.js .hero-shape-in { animation: shutter 1150ms var(--ease-in-out) 150ms both; }
.js .browser-xl { animation: settle 1500ms var(--ease-out) 150ms both; }
@keyframes shutter { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
@keyframes settle { from { transform: scale(1.12); } }
/* One moving picture: a slow drift inside the mini site */
.mini-pic img { animation: drift 16s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.08) translateX(-1.5%); } }

@media (prefers-reduced-motion: reduce) {
  .js .line > span, .js .rise, .js .open-mask, .js .tile, .js .step, .js .band h3, .js .band p { opacity: 1; transform: none; clip-path: none; }
  .js .hero-shape-in, .js .browser-xl, .mini-pic img, .marquee-track, .ticket-rows li { animation: none; }
  .btn, .opt, .thumb, .ph-in { transition: none; }
}

/* =====================================================================
   Floating WhatsApp button
   ===================================================================== */
.wa-float {
  /* Extra lift above the corner. 0 on Cloudflare Pages; use ~60px if a host ever adds a badge there. */
  --wa-lift: 0px;
  position: fixed; z-index: 35;
  right: calc(var(--margin) + env(safe-area-inset-right));
  bottom: calc(var(--margin) + var(--wa-lift) + env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 0 22px 0 16px; border-radius: 999px;
  background: #25d366; color: #0b3d1f; text-decoration: none;
  font-weight: 900; font-size: 17px; letter-spacing: -0.01em;
  box-shadow: 0 10px 28px rgb(0 0 0 / 0.28), 0 2px 6px rgb(0 0 0 / 0.18);
  transition: transform 200ms var(--ease-out), opacity 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.wa-float svg { flex: none; }
@media (hover: hover) {
  .wa-float:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgb(0 0 0 / 0.32), 0 3px 8px rgb(0 0 0 / 0.2); }
}
.wa-float:active { transform: scale(0.97); }
.wa-float:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }
/* Hidden where the page already shows its own WhatsApp button (cotizador, footer) */
.wa-float.is-hidden { opacity: 0; transform: translateY(16px); pointer-events: none; }
/* On phones: round icon only, so it never covers content */
@media (max-width: 600px) {
  .wa-float { width: 58px; height: 58px; min-height: 0; padding: 0; justify-content: center; }
  .wa-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-float { transition: opacity 200ms linear; }
  .wa-float.is-hidden, .wa-float:hover, .wa-float:active { transform: none; }
}
