/* =========================================================
   Ole tus webs — "workbook-paper-yolk"
   Warm cream graph-paper · heavy black grotesque · two-tone yolk highlighter chips ·
   white ink-outlined cards · mono uppercase micro-labels. Prices up-front.
   Mobile-first. Tokens from design-system/scale.json.
   ========================================================= */

:root {
  /* Palette — workbook-paper-yolk. Two-tone yolk: LIGHT carries ink text only; DEEP may carry paper/surface text. */
  --paper:      #FBF7EC;  /* page background */
  --surface:    #FFFFFF;  /* cards */
  --ink:        #1A1A17;  /* text + borders (16.3:1 on paper) */
  --ink-muted:  #5F5A4E;  /* secondary text (6:1) */
  --yolk:       #F5A623;  /* LIGHT yolk — accent fills carrying INK text only (ink-on-yolk 8.61:1); keeps 1px ink border */
  --yolk-deep:  #B34700;  /* DEEP yolk — emphasis fills/hover, may carry paper/surface text (5.14:1 / 5.50:1) */
  --grid:       #EAE3D2;  /* graph-paper lines */

  /* Tinted shadows — never pure black, never glow. Ink hue at low alpha. */
  --shadow-sm: 0 1px 2px rgba(26, 26, 23, 0.06), 0 1px 1px rgba(26, 26, 23, 0.05);
  --shadow-md: 0 4px 14px rgba(26, 26, 23, 0.08), 0 2px 4px rgba(26, 26, 23, 0.06);
  --shadow-lg: 0 14px 34px rgba(26, 26, 23, 0.12), 0 4px 8px rgba(26, 26, 23, 0.07);

  /* Hard offset shadows — DOCUMENTED BRAND EXCEPTION to the micro-polish soft-shadow
     rule. This identity is cartoon-brutalist: buttons, the featured price card and
     social icons "pop" on a solid offset shadow. These are ALWAYS var(--ink) or
     var(--yolk-deep) — NEVER #000, NEVER a glow. Soft --shadow-* still carry ambient
     depth (header, resting cards, FAB). */
  --shadow-hard-sm:   2px 2px 0 var(--ink);
  --shadow-hard:      4px 4px 0 var(--ink);
  --shadow-hard-lg:   6px 6px 0 var(--ink);
  --shadow-hard-yolk: 4px 4px 0 var(--yolk-deep);

  /* Type families */
  --display: "Gluten", "Comic Sans MS", "Arial Black", system-ui, sans-serif;
  --body:    "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono:    "Space Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --hand:    "Caveat", "Segoe Script", cursive;

  /* Modular type scale (major third, base 16) — clamps from scale.json */
  --fs-display: clamp(3.815rem, 2.4rem + 6.2vw, 4.768rem);
  --fs-h2:      clamp(2.441rem, 1.9rem + 2.5vw, 3.052rem);
  --fs-h3:      clamp(1.953rem, 1.6rem + 1.6vw, 2.441rem);
  --fs-lead:    1.25rem;
  --fs-body:    1rem;
  --fs-small:   0.875rem;

  /* Radii */
  --r-chip: 6px;
  --r-md:   10px;
  --r-card: 16px;
  --r-pill: 999px;

  /* Rhythm */
  --wrap-max: 1200px;
  --gutter: 1.5rem;                 /* 24px desktop gutter; tightened on mobile below */
  --section-pad: clamp(3rem, 8vw, 8rem);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  /* Graph-paper: double repeating gradient, 1px --grid lines every 24px, behind everything. */
  background-image:
    repeating-linear-gradient(to right, var(--grid) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(to bottom, var(--grid) 0 1px, transparent 1px 24px);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--ink); text-decoration: none; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;      /* even line lengths on headings */
}

p { text-wrap: pretty; }   /* avoid orphans in short/medium body */

ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 3px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

@media (max-width: 480px) {
  :root { --gutter: 1rem; }
}

/* Alternating cream bands sit ON the paper; lift slightly with a top/bottom ink hairline. */
.surface-band {
  background: color-mix(in srgb, var(--paper) 60%, #fff);
  border-top: 1px solid var(--grid);
  border-bottom: 1px solid var(--grid);
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  border-radius: var(--r-md);
}
.skip-link:focus { left: 1rem; top: 1rem; color: var(--paper); }

/* ---------- Mono micro-labels "(0X) TEXTO" ---------- */
.mono-label {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 1.25rem;
}
.mono-label span { margin-right: 0.4rem; font-variant-numeric: tabular-nums; }

.section-head { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-title { font-size: var(--fs-h2); max-width: 18ch; }
.section-lead {
  margin-top: 1rem;
  color: var(--ink-muted);
  max-width: 46ch;
  font-size: var(--fs-lead);
}

/* ---------- Chips ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: var(--r-chip);
  padding: 0.4rem 0.7rem;
  line-height: 1.2;
  rotate: var(--tilt, 0deg);   /* sticker-slap tilt — see TILT block below */
}
.chip--neutral { background: var(--paper); }
.chip--highlight { background: var(--yolk); color: var(--ink); }   /* ink on light yolk, never white */

.chip-row {
  display: flex;
  flex-wrap: wrap;         /* chips wrap, never truncate */
  gap: 0.6rem;
}

/* ---------- Sticker tilt ----------
   Uses the `rotate:` longhand (NOT transform: rotate) so it COMPOSES with the
   translate/scale presses buttons and cards already run on `transform`. EVERY
   angled sticker sets --tilt (the wobble keyframes below read it back). */
.chip-row .chip--neutral:nth-child(5n+1) { --tilt: 2deg; }
.chip-row .chip--neutral:nth-child(5n+2) { --tilt: -1.5deg; }
.chip-row .chip--neutral:nth-child(5n+3) { --tilt: 1deg; }
.chip-row .chip--neutral:nth-child(5n+4) { --tilt: -2.5deg; }
.chip-row .chip--neutral:nth-child(5n)   { --tilt: 1.5deg; }

.chip--highlight { --tilt: -2deg; }        /* hero teaser + (overridden below) price flag */
.wordmark-hl { display: inline-block; --tilt: -2deg; rotate: var(--tilt); }   /* inline-block: rotate is a no-op on inline boxes */
.work-caption { --tilt: -3deg; rotate: var(--tilt); }
.step-icon { --tilt: 4deg; rotate: var(--tilt); }
.direct-line--wa .direct-value { --tilt: -2deg; rotate: var(--tilt); }

/* Tiny phones: flatten every chip so tilted stickers never clip the viewport.
   --tilt must be zeroed too — the wobble animation reads it, and an animation
   would win over the static `rotate: 0` alone. */
@media (max-width: 400px) {
  .chip { --tilt: 0deg; rotate: 0deg; }
}

/* ---------- Living paper: sticker wobble + plan-card shake ----------
   Wobble: every angled sticker slowly breathes ±0.9deg around its own --tilt
   (one keyframes serves all angles); negative delays + varied tempos desync
   the chorus so it reads organic, not mechanical. Shake: plan cards do ONE
   quick cartoon wiggle on mouse-enter (finite animation — never loops).
   Both are motion-gated; .fold-icon is deliberately excluded (an animation
   would override its open/close rotate transition). */
@media (prefers-reduced-motion: no-preference) {
  @keyframes sticker-wobble {
    0%, 100% { rotate: calc(var(--tilt, 0deg) - 0.9deg); }
    50%      { rotate: calc(var(--tilt, 0deg) + 0.9deg); }
  }
  .chip,
  .wordmark-hl,
  .work-caption,
  .step-icon,
  .direct-line--wa .direct-value {
    animation: sticker-wobble 5.5s ease-in-out infinite;
  }
  .chip:nth-child(2n)   { animation-duration: 6.4s; animation-delay: -2.2s; }
  .chip:nth-child(3n)   { animation-duration: 7.1s; animation-delay: -3.6s; }
  .chip:nth-child(3n+1) { animation-delay: -1.2s; }
  .wordmark-hl { animation-duration: 7s; animation-delay: -1.8s; }

  @keyframes card-shake {
    0%, 100% { rotate: 0deg; }
    20%      { rotate: -0.9deg; }
    45%      { rotate: 0.75deg; }
    70%      { rotate: -0.45deg; }
    88%      { rotate: 0.2deg; }
  }
  @media (hover: hover) {
    .price-card:hover { animation: card-shake 0.55s ease-in-out; }  /* one shot per mouse-enter */
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;        /* WCAG hit area */
  padding: 0.7rem 1.4rem;
  font-family: var(--body);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.01em;
  border-radius: var(--r-pill);
  border: 1px solid var(--ink);
  cursor: pointer;
}
.btn span { transition: transform 0.22s ease; }
.btn:hover span { transform: translateX(3px); }

/* Hard-shadow buttons: rest sits on a small ink offset; hover lifts up-left onto a
   deeper/coloured offset; active presses down-right into a tight shadow. Motion uses
   the `translate` longhand so it never fights the span arrow-nudge transform. */
.btn-primary { background: var(--ink); color: var(--paper); box-shadow: var(--shadow-hard-sm); }
.btn-primary:hover { color: var(--paper); box-shadow: var(--shadow-hard-yolk); }

.btn-secondary { background: var(--paper); color: var(--ink); box-shadow: var(--shadow-hard-sm); }
.btn-secondary:hover { background: color-mix(in srgb, var(--yolk) 22%, var(--paper)); color: var(--ink); box-shadow: var(--shadow-hard); }

/* Header mini-CTA — compact primary */
.btn-mini {
  min-height: 40px;
  padding: 0.45rem 1rem;
  font-size: 0.92rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-pill);
  border: 1px solid var(--ink);
  box-shadow: var(--shadow-hard-sm);
}
.btn-mini:hover { color: var(--paper); box-shadow: 3px 3px 0 var(--yolk-deep); }

/* Translate presses + their transitions are motion — gated so reduced-motion gets
   instant shadow swaps only, never a moving button. */
@media (prefers-reduced-motion: no-preference) {
  .btn { transition: translate 0.18s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease; }
  .btn-primary:hover, .btn-secondary:hover, .btn-mini:hover { translate: -2px -2px; }
  .btn-primary:active, .btn-secondary:active, .btn-mini:active { translate: 1px 1px; box-shadow: 1px 1px 0 var(--ink); }
}

/* ===================== HEADER ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ink);
  transition: box-shadow 0.25s ease;
}
.site-header.is-stuck { box-shadow: var(--shadow-md); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 66px;
}
.wordmark {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-right: auto;      /* pushes nav + CTA right */
}
/* "webs" sits on an organic yolk SPLASH (inline SVG behind the text) instead of a box.
   isolation creates the stacking context that keeps the z-index:-1 splash inside the
   span (behind the glyphs, above the header) regardless of the rotate rule. */
.wordmark-hl {
  position: relative;
  isolation: isolate;
  padding: 0.06em 0.5em;
}
.wordmark-splash {
  position: absolute;
  left: -8%;
  top: -16%;
  width: 116%;
  height: 130%;
  z-index: -1;
  fill: var(--yolk);
  stroke: var(--ink);
  stroke-width: 2;  /* non-scaling-stroke in the SVG keeps this crisp despite the stretch */
}

.nav-list { display: flex; gap: 1.8rem; }
.nav-list a {
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--ink);
  position: relative;
  padding: 0.3rem 0;
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 3px;
  background: var(--yolk);
  border-radius: 2px;
  transition: width 0.25s ease;
}
.nav-list a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle-bar {
  display: block;
  width: 24px; height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  margin-inline: auto;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }

@media (max-width: 860px) {
  .btn-mini { display: none; }         /* mobile: CTA lives inside the nav sheet */
  .nav-toggle { display: flex; }
  .nav-list {
    position: fixed;
    inset: 66px 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--ink);
    padding: 0.5rem var(--gutter) 1.2rem;
    transform: translateY(-135%);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-lg);
  }
  .nav-list.is-open { transform: translateY(0); }
  .nav-list li { border-top: 1px solid var(--grid); }
  .nav-list a { display: block; padding: 1rem 0; font-size: 1.15rem; }
  .nav-list a::after { display: none; }
}

/* ===================== HERO ===================== */
.hero { padding-block: clamp(2.5rem, 7vw, 5rem) var(--section-pad); }
.hero-grid { display: grid; gap: clamp(1.5rem, 5vw, 3rem); align-items: center; }

.hero-title {
  font-size: var(--fs-display);
  font-weight: 800;
  line-height: 0.98;
  margin: 0.4rem 0 0;
}
/* "webs" carries the squiggle underline */
.hero-webs { position: relative; display: inline-block; white-space: nowrap; }
.hero-squiggle {
  position: absolute;
  left: -0.02em;
  right: -0.02em;
  bottom: -0.28em;
  width: 100%;
  height: 0.28em;
  overflow: visible;
}

.hero-lead {
  font-size: var(--fs-lead);
  color: var(--ink-muted);
  max-width: 40ch;
  margin: 1.75rem 0 0;
}
.hero-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}
.hero-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 1.75rem;
}
.hero-teaser {
  font-size: 0.9rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;   /* price digits share width */
  padding: 0.5rem 0.9rem;
}
.hero-place {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* Static decorative egg */
.hero-egg-wrap { display: flex; justify-content: center; }
.hero-egg {
  width: clamp(140px, 34vw, 210px);
  height: auto;
  overflow: visible;
}
.webo-body { fill: var(--surface); }
.webo-cheek { fill: var(--yolk); stroke: none; opacity: 0.5; }
.webo-eye { fill: var(--ink); stroke: none; }
.webo-z { stroke-width: 2.5; }

/* Doodles — hand-drawn ink accents */
.doodle-arrow--hero {
  display: none;                          /* only shows where there is room (desktop) */
  position: absolute;
  width: 62px; height: auto;
  right: -46px;
  top: -18px;
  transform: rotate(6deg);
  pointer-events: none;
}
.doodle-sparkle {
  position: absolute;
  width: 34px; height: 34px;
  right: -26px;
  top: -18px;
  pointer-events: none;
}
.doodle-circle {
  position: absolute;
  left: -12px; right: -12px;
  top: -10px; bottom: -10px;
  width: calc(100% + 24px);
  height: calc(100% + 20px);
  overflow: visible;
  pointer-events: none;
}

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.25fr 0.75fr; }
  .hero-copy { max-width: 100%; }
  .doodle-arrow--hero { display: block; }
}

/* ===================== QUÉ TE MONTAMOS ===================== */
.que { padding-block: var(--section-pad); }
.que .chip-row { gap: 0.7rem; }
.que .chip { font-size: 0.8rem; padding: 0.55rem 0.9rem; }

/* ===================== TRABAJOS ===================== */
.trabajos { padding-block: var(--section-pad); }
.work-grid { display: flex; flex-direction: column; gap: clamp(2.5rem, 6vw, 4rem); }

.work-card { max-width: 100%; }
.work-card-link { display: block; color: inherit; }

/* Browser-frame card: white surface + full ink border + tinted shadow */
.browser-frame {
  position: relative;
  border: 1px solid var(--ink);
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-md);   /* rest stays SOFT */
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding-inline: 14px;
  background: color-mix(in srgb, var(--paper) 70%, #fff);
  border-bottom: 1px solid var(--ink);
}
.browser-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--paper); border: 1px solid var(--ink); }
.browser-dot:nth-child(1) { background: var(--yolk); }
.browser-dot:nth-child(2) { background: var(--yolk-deep); }   /* traffic-light dots = the two yolk tones */
.browser-url {
  margin-left: 12px;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-muted);
  background: var(--surface);
  padding: 2px 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--ink);
}
.browser-shot {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  /* crisp light image edge without affecting layout */
  outline: 1px solid rgba(0, 0, 0, 0.1);
  outline-offset: -1px;
  transition: transform 0.5s ease;
}
.work-caption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--yolk);
  border: 1px solid var(--ink);
  padding: 0.4rem 0.8rem;
  border-radius: var(--r-chip);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
@media (hover: hover) {
  .work-card-link:hover .browser-frame,
  .work-card-link:focus-visible .browser-frame {
    box-shadow: 8px 8px 0 var(--ink);
  }
  .work-card-link:hover .browser-shot,
  .work-card-link:focus-visible .browser-shot { transform: scale(1.04); }
  .work-card-link:hover .work-caption,
  .work-card-link:focus-visible .work-caption { opacity: 1; transform: translateY(0); }
}
/* The card lift is motion — gated like the buttons; the shadow swap above stays instant. */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .browser-frame { transition: translate 0.3s ease, box-shadow 0.3s ease; }
  .work-card-link:hover .browser-frame,
  .work-card-link:focus-visible .browser-frame { translate: -4px -4px; }  /* hard cartoon lift up-left */
}

.work-meta { margin-top: 1.5rem; }
.work-name { font-family: var(--display); font-size: var(--fs-h3); font-weight: 800; }
.work-desc {
  color: var(--ink-muted);
  font-size: 1.08rem;
  margin: 0.5rem 0 1rem;
  max-width: 40ch;
}
.work-meta .chip-row { margin-bottom: 1.1rem; }
.work-cta {
  font-family: var(--body);
  font-weight: 500;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-bottom: 2px solid var(--yolk);
  padding-bottom: 2px;
}
.work-cta span { transition: transform 0.22s ease; }
.work-cta:hover span { transform: translateX(4px); }

/* Asymmetric/staggered grid — desktop only; mobile stacks clean */
@media (min-width: 880px) {
  .work-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: 2rem;
    row-gap: clamp(3.5rem, 7vw, 6rem);
    align-items: start;
  }
  .work-card--lg { grid-column: 1 / 8; }
  .work-card--sm { grid-column: 8 / 13; margin-top: 5rem; }
  .work-card--md { grid-column: 2 / 9; margin-top: -1rem; }
}

/* ===================== PRECIOS ===================== */
.precios { padding-block: var(--section-pad); }
.price-grid { display: grid; gap: 1.25rem; align-items: start; }

.price-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--ink);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-sm);
  padding: clamp(1.5rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.price-card .mono-label { margin: 0; }
.price { margin: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.5rem; }
.price-num {
  position: relative;
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 3rem);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  line-height: 1;
}
.price-num--free { color: var(--ink); }
.price-unit {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.price-desc { margin: 0; color: var(--ink-muted); font-size: 1.02rem; }
.price-includes { display: flex; flex-direction: column; gap: 0.55rem; margin-top: 0.25rem; }
.price-includes li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--ink);
  font-size: 0.98rem;
}
/* Ink check-tick bullet */
.price-includes li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.35em;
  width: 11px; height: 6px;
  border-left: 2.5px solid var(--ink);
  border-bottom: 2.5px solid var(--ink);
  transform: rotate(-45deg);
}
.price-cta { margin-top: auto; align-self: stretch; }

/* Featured tier — raised, yolk top flag */
.price-card--featured {
  border-width: 2px;
  box-shadow: var(--shadow-hard-lg);   /* the one hard-shadowed card; others stay soft */
}
.price-flag {
  position: absolute;
  top: 0;
  left: clamp(1.5rem, 3vw, 2rem);
  transform: translateY(-50%);   /* rotate longhand composes with this translate */
  --tilt: -3deg;                 /* steeper than the base highlight tilt */
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

@media (min-width: 820px) {
  .price-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .price-card--featured { transform: translateY(-16px); }   /* raised */
  .price-card--featured .price-cta { margin-bottom: 0; }
}

/* Care fee sticker on the featured card + shared bits reused by the photo fold. */
.price-care { margin: 0; }
.care-opt { color: var(--ink-muted); text-transform: none; letter-spacing: 0; }
.care-list { gap: 0.7rem; }
.care-list .chip { font-size: 0.78rem; }

/* Add-ons opcionales — collapsed disclosure rows (native <details>, zero JS).
   Kept visually quiet so the three tier cards keep the spotlight: closed folds
   read as buttons (cartoon lift on hover), open folds sit still. */
.folds { margin-top: clamp(2rem, 5vw, 3rem); display: grid; gap: 0.9rem; }
.fold {
  background: var(--surface);
  border: 1px solid var(--ink);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-sm);
}
.fold-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;                     /* 360px: label wraps above the price hint */
  gap: 0.35rem 1rem;
  padding: 1.1rem clamp(1.25rem, 3vw, 1.75rem);   /* ≥44px hit area */
  cursor: pointer;
  list-style: none;                    /* hide the default triangle (Firefox) */
}
.fold-summary::-webkit-details-marker { display: none; }  /* …and Safari */
.fold-label { margin: 0; font-size: 0.8rem; color: var(--ink); }
.fold-hint {
  margin-left: auto;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.fold-icon { flex: none; width: 15px; height: 15px; rotate: 4deg; }  /* hand-placed tilt */
.fold[open] .fold-icon { rotate: 49deg; }                            /* plus → cross */
.fold-body {
  border-top: 1px solid var(--grid);
  padding: 1.25rem clamp(1.25rem, 3vw, 1.75rem) 1.5rem;
  display: grid;
  gap: 1.1rem;
}
@media (hover: hover) {
  .fold:not([open]):hover { box-shadow: 4px 4px 0 var(--ink); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .fold { transition: box-shadow 0.2s ease, translate 0.18s ease; }
  .fold:not([open]):hover { translate: -2px -2px; }
  .fold-icon { transition: rotate 0.2s ease; }
}

/* Fotos y vídeo pro — content hooks inside its fold. */
.photo-bcn { color: var(--yolk-deep); font-weight: 700; }   /* Barcelona-only: a constraint, so it must read */
.photo-desc { margin: 0; max-width: 68ch; color: var(--ink-muted); font-size: var(--fs-small); }

/* "desde" prefix on the featured price — small mono, sits on the big number's baseline
   (the .price row is align-items:baseline) so the headline number never shrinks. */
.price-pre {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
}

/* Honesty lines under the tier grid — modest muted paragraphs ("desde" + care fee). */
.price-desde-note {
  margin: 1.5rem 0 0;
  max-width: 62ch;
  color: var(--ink-muted);
  font-size: var(--fs-small);
}
.price-desde-note + .price-desde-note { margin-top: 0.5rem; }  /* siblings sit tight */

/* ===================== CÓMO VA ===================== */
.como { padding-block: var(--section-pad); }
.steps { display: flex; flex-direction: column; gap: clamp(2rem, 4vw, 3rem); }
.step {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.5rem;
  align-items: start;
  border-top: 1px solid var(--ink);
  padding-top: clamp(1.25rem, 3vw, 2rem);
}
.step-num {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(3rem, 9vw, 5rem);
  line-height: 0.8;
  color: var(--ink);
  -webkit-text-stroke: 0;
}
.step-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.step-icon {
  color: var(--ink);
  background: var(--yolk);
  border: 1px solid var(--ink);
  border-radius: var(--r-chip);
  padding: 4px;
  width: 30px; height: 30px;
  flex: none;
}
.step-body p {
  color: var(--ink-muted);
  font-size: 1.08rem;
  margin: 0.6rem 0 0;
  max-width: 44ch;
}
.step-arrow { display: none; }

@media (min-width: 760px) {
  .steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    align-items: start;
  }
  .step { grid-template-columns: 1fr; gap: 0.75rem; }
  /* Hand-drawn arrow connectors between the steps */
  .step-arrow {
    display: block;
    position: absolute;
    top: 2.5rem;
    right: -2rem;
    width: 46px; height: auto;
    color: var(--ink);
    pointer-events: none;
  }
}

/* ===================== PREGUNTAS (FAQ) ===================== */
.faq { padding-block: var(--section-pad); }
.faq-list { display: flex; flex-direction: column; max-width: 64ch; }
.faq-item { border-top: 1px solid var(--ink); }
.faq-item:last-child { border-bottom: 1px solid var(--ink); }

.faq-item > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1.2rem 0;
  min-height: 44px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  color: var(--ink);
}
.faq-item > summary::-webkit-details-marker { display: none; }

.faq-mark { position: relative; flex: none; width: 20px; height: 20px; }
.faq-mark::before,
.faq-mark::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 14px; height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.faq-mark::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-mark::after { transform: translate(-50%, -50%) rotate(0); opacity: 0; }

.faq-answer { padding: 0 0 1.4rem; max-width: 60ch; }
.faq-answer p { color: var(--ink-muted); font-size: 1.05rem; margin: 0; }
@media (prefers-reduced-motion: no-preference) {
  .faq-item[open] .faq-answer { animation: faq-open 0.3s ease; }
}
@keyframes faq-open {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

/* ===================== CONTACTO ===================== */
.contacto { padding-block: var(--section-pad); }
.contacto-grid { display: grid; gap: clamp(2.5rem, 6vw, 4rem); }
.contacto-lead {
  font-size: var(--fs-lead);
  color: var(--ink-muted);
  margin: 1rem 0 2rem;
  max-width: 38ch;
}
.contacto-direct { display: flex; flex-direction: column; gap: 1.2rem; }
.direct-line {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  color: var(--ink);
  border-top: 1px solid var(--ink);
  padding-top: 1rem;
}
.direct-line--wa { border-top-color: var(--ink); }
.direct-line--wa .direct-value {
  background: var(--yolk);
  border: 1px solid var(--ink);
  border-radius: var(--r-chip);
  padding: 0.1em 0.4em;
  align-self: flex-start;
}
.direct-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.direct-value {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  font-variant-numeric: tabular-nums;
}
.direct-aside { font-family: var(--hand); font-size: 1.35rem; color: var(--ink-muted); margin: 0.4rem 0 0; }

.contacto-form { display: flex; flex-direction: column; gap: 1.2rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-family: var(--body); font-weight: 500; font-size: 0.92rem; }
.field-opt { color: var(--ink-muted); font-weight: 400; }
.field input,
.field textarea {
  font-family: var(--body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--ink);          /* real input outline — a11y affordance, kept */
  border-radius: var(--r-md);
  padding: 0.8rem 0.9rem;
  width: 100%;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--yolk) 60%, transparent);
}
.field textarea { resize: vertical; min-height: 110px; }

.form-note {
  font-family: var(--body);
  font-size: 0.92rem;
  color: var(--ink-muted);
  margin: 0;
  min-height: 1.2em;
}

@media (min-width: 880px) {
  .contacto-grid { grid-template-columns: 0.9fr 1.1fr; align-items: start; }
}

/* ===================== FOOTER ===================== */
.site-footer { padding-block: clamp(2.5rem, 6vw, 4rem); }
.footer-inner { display: grid; gap: 2rem; }
.wordmark--footer { font-size: 1.9rem; }
.footer-tagline { color: var(--ink-muted); margin: 0.6rem 0 0; max-width: 30ch; }
.footer-contact { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-contact a:hover { text-decoration: underline; text-decoration-color: var(--yolk); text-decoration-thickness: 3px; }
.footer-contact span { color: var(--ink-muted); }

.footer-social { display: flex; gap: 0.8rem; }
.footer-social a {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
  background: var(--surface);
  transition: background-color 0.2s ease, translate 0.18s ease, box-shadow 0.18s ease;
}
.footer-social a:hover { background: var(--yolk); box-shadow: var(--shadow-hard-sm); }
@media (prefers-reduced-motion: no-preference) {
  .footer-social a:hover { translate: -2px -2px; }
  .footer-social a:active { translate: 1px 1px; }   /* translate-press, consistent with buttons */
}

.footer-egg { justify-self: start; }
.footer-egg svg { width: 72px; height: auto; overflow: visible; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  border-top: 1px solid var(--ink);
  padding-top: 1.4rem;
  color: var(--ink-muted);
  font-size: 0.9rem;
}
.footer-signoff { font-family: var(--hand); font-size: 1.3rem; color: var(--ink); }

@media (min-width: 760px) {
  .footer-inner {
    grid-template-columns: 1.4fr 1fr auto auto;
    align-items: start;
    column-gap: 2.5rem;
  }
  .footer-bottom { grid-column: 1 / -1; }
}

/* ===================== HERO LOAD-REVEAL (one cascade) ===================== */
/* CSS-animation driven (auto-plays on load) so the reveal never depends on app.js
   executing. Scoped to .js so no-JS shows everything; reduced-motion skips the hide. */
@media (prefers-reduced-motion: no-preference) {
  .js .hero [data-hero-reveal] {
    opacity: 0;
    animation: hero-in 0.55s ease var(--hero-d, 0ms) forwards;
  }

  /* Squiggle draws in with the cascade; reduced-motion (outside this block) leaves it drawn. */
  .js .hero-squiggle path {
    stroke-dasharray: 260;
    stroke-dashoffset: 260;
    animation: squiggle-draw 0.8s ease 0.45s forwards;
  }
}
@keyframes hero-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
@keyframes squiggle-draw {
  to { stroke-dashoffset: 0; }
}

/* ===================== SCROLL REVEAL ===================== */
/* Only hidden when JS present AND motion allowed — never hides content for no-JS/reduced-motion. */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    will-change: opacity, transform;
  }
  .js [data-reveal].is-visible { opacity: 1; transform: none; }
}

/* ===================== WEBO — roaming egg companion ===================== */
/* Hidden entirely without JS (companion is an echo, never the sole source of info). */
.webo-companion { display: none; }
.js .webo-companion {
  display: block;
  position: fixed;
  left: 0;
  bottom: clamp(1rem, 3vw, 1.6rem);
  width: 192px;
  height: 232px;
  z-index: 80;
  pointer-events: none;                 /* container never blocks taps on content */
  transform: translate(var(--webo-x, 40vw), var(--webo-y, 0));
  transition: transform 0.55s cubic-bezier(0.34, 1.4, 0.64, 1);   /* gentle overshoot hop */
  will-change: transform;
}
/* Desktop hop anchors — alternate bottom-right / bottom-left.
   Right anchor rides ABOVE the WhatsApp FAB (56px tall + up-to-0.2rem larger bottom offset + gap),
   folded into the transform so the vertical clear animates with the same hop. */
.js .webo-companion[data-anchor="right"] { --webo-x: calc(100vw - 192px - clamp(1rem, 3vw, 1.6rem)); --webo-y: -76px; }
.js .webo-companion[data-anchor="left"]  { --webo-x: clamp(1rem, 3vw, 1.6rem); }

.webo-tap {
  position: absolute;
  bottom: 0; left: 0;
  width: 192px; height: 232px;
  margin: 0; padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  pointer-events: auto;                 /* egg itself is tappable */
}
#webo { width: 100%; height: 100%; overflow: visible; }

/* Pose mechanism: only the active data-pose group is shown (empty slots for now). */
#webo .pose { display: none; }
#webo[data-pose="idle"]    .pose-idle,
#webo[data-pose="wave"]    .pose-wave,
#webo[data-pose="present"] .pose-present,
#webo[data-pose="point"]   .pose-point,
#webo[data-pose="tag"]     .pose-tag,
#webo[data-pose="explain"] .pose-explain,
#webo[data-pose="thumbs"]  .pose-thumbs,
#webo[data-pose="sleep"]   .pose-sleep { display: block; }

/* Speech bubble — real text, Caveat, ink-outlined with a tail */
.webo-bubble {
  position: absolute;
  bottom: calc(100% + 12px);
  max-width: 288px;
  width: max-content;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  padding: 0.75rem 1.05rem;
  font-family: var(--hand);
  font-size: 1.5rem;
  line-height: 1.15;
  opacity: 0;
  transform: translateY(6px) scale(0.96);
  transform-origin: bottom left;
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}
.webo-bubble.is-open { opacity: 1; transform: none; pointer-events: auto; }
/* Tail: ink triangle sitting on the bubble's bottom edge, near the egg */
.webo-bubble::after {
  content: "";
  position: absolute;
  bottom: -11px;
  width: 20px; height: 11px;
  background: var(--surface);
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  transform: rotate(45deg) skew(-6deg);
  border-bottom-right-radius: 3px;
}
/* Bubble aligns toward screen centre so it never runs off-edge */
.webo-companion[data-anchor="right"] .webo-bubble { right: 0; transform-origin: bottom right; }
.webo-companion[data-anchor="right"] .webo-bubble::after { right: 28px; }
.webo-companion[data-anchor="left"] .webo-bubble { left: 0; }
.webo-companion[data-anchor="left"] .webo-bubble::after { left: 28px; }

.webo-companion[data-anchor="right"] .webo-bubble.is-open { transform: none; }

/* Mobile: dock bottom-LEFT (never collides with the WA FAB bottom-right); no hop, tap toggles bubble */
@media (max-width: 1023px) {
  .js .webo-companion {
    width: 128px;
    height: 156px;
    left: 12px;
    transform: none !important;         /* no hopping on mobile */
  }
  .webo-tap { width: 128px; height: 156px; }
  .webo-bubble {
    max-width: min(70vw, 300px);
    font-size: 1.35rem;
  }
  /* On mobile always open upward from the left dock */
  .webo-companion[data-anchor="right"] .webo-bubble,
  .webo-companion[data-anchor="left"] .webo-bubble { left: 0; right: auto; transform-origin: bottom left; }
  .webo-companion[data-anchor="right"] .webo-bubble::after,
  .webo-companion[data-anchor="left"] .webo-bubble::after { left: 18px; right: auto; }
}

/* Reduced-motion: no hop transition; pose + bubble text still swap discretely. */
@media (prefers-reduced-motion: reduce) {
  .js .webo-companion { transition: none; }
  .webo-bubble { transition: none; }
}

/* ===================== BOTÓN FLOTANTE WHATSAPP ===================== */
.floating-wa {
  position: fixed;
  right: clamp(1rem, 4vw, 1.8rem);
  bottom: clamp(1rem, 4vw, 1.8rem);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 56px;
  padding-inline: 18px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid var(--ink);
  box-shadow: var(--shadow-lg);
  transition: transform 0.22s ease, box-shadow 0.22s ease, opacity 0.25s ease;
}
.floating-wa:hover { color: var(--paper); box-shadow: var(--shadow-md); }
.floating-wa svg { flex: none; }
.floating-wa-label { white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) {
  .floating-wa:active { transform: scale(0.96); }
}
/* JS hides the FAB while the contact section is on screen (would be redundant). */
.floating-wa.is-hidden { opacity: 0; transform: translateY(12px) scale(0.9); pointer-events: none; }

/* Narrow phones: icon-only circle so it doesn't cover content */
@media (max-width: 460px) {
  .floating-wa { padding-inline: 0; width: 56px; justify-content: center; }
  .floating-wa-label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .floating-wa { transition: opacity 0.25s ease; }
  .floating-wa:active { transform: none; }
}
