/* ==========================================================================
   PÁGINAWEB.STUDIO — design system
   Our own shop window: ink black, warm bone, Klein blue. Syne display type.
   The site itself is the sales argument — every detail has to feel expensive.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Palette */
  --ink-950: #060609;
  --ink-900: #0A0A10;   /* page anchor */
  --ink-800: #0E0E16;
  --ink-700: #14141F;
  --ink-600: #1D1D2B;
  --bone:     #F2EFE7;  /* warm bone for light sections */
  --bone-dim: #E8E4D8;
  --white:    #FBFAF6;
  --accent:          #2B3AFF;  /* Klein blue */
  --accent-bright:   #5F6CFF;  /* legible accent on dark */
  --accent-on-light: #2230E8;  /* AA on bone */
  --accent-dim: rgba(95, 108, 255, 0.35);
  --ink-on-light: #131318;
  --muted-on-dark: rgba(242, 239, 231, 0.6);
  --muted-on-light: rgba(19, 19, 24, 0.62);
  --hairline-dark: rgba(242, 239, 231, 0.14);
  --hairline-light: rgba(19, 19, 24, 0.14);

  /* Typography */
  --font-display: "Syne", "Futura", "Avenir Next", sans-serif;
  --font-body: "Inter", -apple-system, "Helvetica Neue", Arial, sans-serif;

  /* Fluid type scale */
  /* floor sized so the widest rotating word ("convierten.") fits a 320px
     phone — nowrap words propagate min-width to the mobile layout viewport
     (2rem verified: 294.5px right edge vs 300px clip at 320w) */
  --fs-hero:    clamp(2rem, 10vw, 8.5rem);
  --fs-display: clamp(2.1rem, 5.2vw, 4.25rem);
  --fs-title:   clamp(1.5rem, 3vw, 2.25rem);
  --fs-lead:    clamp(1.375rem, 2.6vw, 2.25rem);
  --fs-body:    clamp(0.9375rem, 1.1vw, 1.0625rem);
  --fs-small:   0.8125rem;
  --fs-eyebrow: 0.6875rem;

  /* Spacing & layout */
  --space-section: clamp(5rem, 12vw, 10rem);
  --space-block: clamp(2.5rem, 6vw, 5rem);
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --w-wide: 1520px;
  --w-content: 1200px;
  --w-narrow: 780px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-luxe: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 0.35s;
  --dur-slow: 0.9s;

  /* Elevation / z-index */
  --z-nav: 100;
  --z-menu: 110;
  --z-overture: 120;
  --z-cursor: 130;

  --radius: 4px;
  --radius-card: 14px;
}

/* --------------------------------------------------------------------------
   2. RESET & BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  /* No scroll-behavior:smooth here — it corrupts ScrollTrigger pin
     measurements and cancels anchored-load scrolls. Lenis smooths for us;
     no-JS visitors get it via the gate below. */
  -webkit-text-size-adjust: 100%;
}
html:not(.js) { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--bone);
  background-color: var(--ink-900);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* film grain over everything — the quiet premium layer */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: 1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.035;
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
::selection { background: var(--accent); color: var(--white); }

:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
}

/* Reveal system: content hides pre-animation ONLY when JS + GSAP confirmed. */
html.js:not(.no-gsap) [data-animate] { opacity: 0; }
html.js:not(.no-gsap) [data-hero-title] .hero__line-inner { transform: translateY(115%); display: inline-block; }
html.js:not(.no-gsap) [data-lines] { visibility: hidden; }
html.no-gsap [data-animate] { opacity: 1 !important; transform: none !important; }
html.no-gsap [data-hero-title] .hero__line-inner { transform: none !important; }
html.no-gsap [data-lines] { visibility: visible !important; }
@media (prefers-reduced-motion: reduce) {
  html.js [data-animate] { opacity: 1 !important; transform: none !important; }
  html.js [data-hero-title] .hero__line-inner { transform: none !important; }
  html.js [data-lines] { visibility: visible !important; }
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.15s !important;
  }
}

/* --------------------------------------------------------------------------
   3. TYPOGRAPHY & UTILITIES
   -------------------------------------------------------------------------- */
.container { width: min(100% - 2 * var(--gutter), var(--w-content)); margin-inline: auto; }
.container--wide { width: min(100% - 2 * var(--gutter), var(--w-wide)); margin-inline: auto; }
.container--narrow { width: min(100% - 2 * var(--gutter), var(--w-narrow)); margin-inline: auto; }

.display, .title, .hero__title, .cta-title {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.022em;
}
.display { font-size: var(--fs-display); text-wrap: balance; }
.title { font-size: var(--fs-title); }
.lead {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-lead);
  line-height: 1.32;
  letter-spacing: -0.015em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent-bright);
}
.eyebrow::before {
  content: "";
  width: 2.25rem;
  height: 1px;
  background: var(--accent-dim);
}
.eyebrow--bare::before { display: none; }
.section--light .eyebrow { color: var(--accent-on-light); }

.muted { color: var(--muted-on-dark); }
.section--light .muted { color: var(--muted-on-light); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* Pixel sparkle — the studio's signature accent mark. SVG-masked so it
   inherits currentColor and stays crisp at any size. Purely decorative. */
.pix {
  display: inline-block;
  width: 0.62em;
  height: 0.62em;
  vertical-align: 0.02em;
  background: currentColor;
  color: var(--accent-bright);
  -webkit-mask: var(--pix-mask) center / contain no-repeat;
  mask: var(--pix-mask) center / contain no-repeat;
}
:root {
  --pix-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Crect x='4' y='4' width='4' height='4'/%3E%3Crect x='5' y='0' width='2' height='4'/%3E%3Crect x='5' y='8' width='2' height='4'/%3E%3Crect x='0' y='5' width='4' height='2'/%3E%3Crect x='8' y='5' width='4' height='2'/%3E%3C/svg%3E");
}

.section { padding-block: var(--space-section); position: relative; }
.section--dark { background: var(--ink-900); color: var(--bone); }
.section--light { background: var(--bone); color: var(--ink-on-light); }
/* Trabajo keeps default section padding (La Prueba, which it used to tuck under, is gone) */
.section__head { max-width: 48rem; margin-bottom: var(--space-block); }
.section__head .display { margin-top: 1.1rem; }
.section__head p { margin-top: 1.25rem; max-width: 40rem; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center p { margin-inline: auto; }

/* keep page content above the hero wall / decorative layers */
main { position: relative; z-index: 2; }
main > :where(:not(.hero)) { position: relative; z-index: 1; }

/* --------------------------------------------------------------------------
   4. LINKS & BUTTONS
   -------------------------------------------------------------------------- */
.link-underline {
  position: relative;
  padding-bottom: 2px;
}
.link-underline::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease-luxe);
}
.link-underline:hover::after,
.link-underline:focus-visible::after { transform: scaleX(1); transform-origin: left; }

.btn {
  --btn-bg: transparent;
  --btn-fg: var(--bone);
  --btn-line: var(--hairline-dark);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 3.25rem;
  padding: 0.9rem 2.1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid var(--btn-line);
  border-radius: 999px; /* pill: modern studio, not corporate */
  overflow: hidden;
  transition: color var(--dur-fast) var(--ease-luxe), border-color var(--dur-fast) var(--ease-luxe);
  will-change: transform;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateY(101%);
  transition: transform 0.5s var(--ease-luxe);
  z-index: 0;
}
.btn > * { position: relative; z-index: 1; }
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn:hover, .btn:focus-visible { color: var(--white); border-color: var(--accent); }

.btn--accent {
  --btn-bg: var(--accent);
  --btn-fg: var(--white);
  --btn-line: var(--accent);
}
.btn--accent::before { background: var(--ink-950); }

.btn--ghost-light { --btn-fg: var(--ink-on-light); --btn-line: var(--hairline-light); }

/* WhatsApp button — recognizable green converts better than brand-blue for chat */
.btn--wa { --btn-bg: #25D366; --btn-fg: #08130B; --btn-line: #25D366; }
.btn--wa::before { background: #1EA956; }
.btn--wa:hover, .btn--wa:focus-visible { color: #08130B; border-color: #1EA956; }
.btn--wa svg { width: 1.15em; height: 1.15em; }

.btn__arrow { width: 1em; height: 1em; transition: transform var(--dur-fast) var(--ease-luxe); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   5. NAVIGATION
   -------------------------------------------------------------------------- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-nav);
  padding-block: 1.3rem;
  transition: background-color 0.45s ease, padding 0.45s ease;
}
.site-nav::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--hairline-dark);
  opacity: 0;
  transition: opacity 0.45s ease;
}
.site-nav.is-solid {
  background: rgba(8, 8, 14, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  padding-block: 0.85rem;
}
.site-nav.is-solid::after { opacity: 1; }

.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  /* shrinks below ~417px so the burger stays on-screen at 320w */
  font-size: clamp(0.95rem, 4.6vw, 1.2rem);
  letter-spacing: -0.02em;
  color: var(--bone);
  line-height: 1;
  white-space: nowrap;
}
.nav-logo span { color: var(--accent-bright); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.1rem;
}
.nav-link {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
  transition: color var(--dur-fast) ease;
}
.nav-link:hover { color: var(--bone); }

.nav-actions { display: flex; align-items: center; gap: 1.25rem; }
.nav-cta { min-height: 2.75rem; padding: 0.65rem 1.5rem; font-size: 0.71875rem; }

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  width: 44px; height: 44px;
  align-items: center;
}
.nav-burger span {
  display: block;
  width: 26px; height: 1.5px;
  background: var(--bone);
  transition: transform 0.4s var(--ease-luxe), opacity 0.3s ease;
}
.nav-burger[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
  background: var(--ink-950);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3rem;
  padding: 6rem var(--gutter) 3rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
body.menu-open .site-nav { z-index: calc(var(--z-menu) + 1); background: transparent; }
body.menu-open .site-nav::after { opacity: 0; }
body.menu-open .nav-cta, body.menu-open .nav-links { visibility: hidden; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 0.4rem; }
.mobile-menu__link {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 8vw, 3rem);
  letter-spacing: -0.02em;
  color: var(--bone);
  transition: color 0.3s ease, transform 0.4s var(--ease-luxe);
}
.mobile-menu__link:hover { color: var(--accent-bright); transform: translateX(8px); }
.mobile-menu__foot { display: flex; flex-direction: column; gap: 0.6rem; color: var(--muted-on-dark); }

/* --------------------------------------------------------------------------
   6. OVERTURE — a web draws itself
   -------------------------------------------------------------------------- */
.overture {
  position: fixed;
  inset: 0;
  z-index: var(--z-overture);
  background: var(--ink-950);
  color: var(--bone);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}
.overture__svg {
  width: min(78vw, 620px);
  height: auto;
}
html.js:not(.no-gsap) .ov-fills .ov-fill { opacity: 0; }
.overture__word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  letter-spacing: -0.02em;
  opacity: 0;
}
.overture__word span { color: var(--accent-bright); }
html:not(.js) .overture { display: none; }

/* --------------------------------------------------------------------------
   7. HERO — headline over the drifting work wall
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: clip;
  background:
    radial-gradient(120% 90% at 82% 10%, rgba(43, 58, 255, 0.16), transparent 55%),
    var(--ink-900);
}

.hero__wall {
  position: absolute;
  top: -12%;
  right: -7%;
  height: 124%;
  display: flex;
  gap: clamp(0.9rem, 1.6vw, 1.5rem);
  transform: rotate(7deg);
  transform-origin: center;
  opacity: 0.9;
}
.wall__col {
  display: flex;
  flex-direction: column;
  gap: clamp(0.9rem, 1.6vw, 1.5rem);
  width: clamp(220px, 24vw, 380px);
  will-change: transform;
}
.wall__set {
  display: flex;
  flex-direction: column;
  gap: clamp(0.9rem, 1.6vw, 1.5rem);
}
.wall__item {
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--hairline-dark);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  background: var(--ink-700);
}
.wall__item img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }

.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--ink-900) 26%, rgba(10, 10, 16, 0.82) 46%, rgba(10, 10, 16, 0.25) 78%, rgba(10, 10, 16, 0.45) 100%),
    linear-gradient(0deg, var(--ink-900) 2%, transparent 24%);
}

.hero__content { position: relative; z-index: 2; padding-block: 8rem 6rem; }

.hero__title {
  font-size: var(--fs-hero);
  max-width: 9em;
  margin-top: 1.4rem;
}
.hero__line { display: block; overflow: hidden; }
.hero__line-inner { display: inline-block; will-change: transform; }
.hero__title em { font-style: normal; color: var(--accent-bright); }

.hero__sub {
  max-width: 32rem;
  margin-top: 1.75rem;
  font-size: clamp(1rem, 1.35vw, 1.1875rem);
  color: var(--muted-on-dark);
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
}

/* Above-the-fold trust signals */
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.4rem;
  margin-top: 1.75rem;
  font-size: var(--fs-small);
  color: var(--muted-on-dark);
}
.hero__trust li { display: inline-flex; align-items: center; gap: 0.5rem; white-space: nowrap; }
.hero__trust .pix { width: 0.55em; height: 0.55em; }

.scroll-cue {
  position: absolute;
  right: var(--gutter);
  bottom: 2rem;
  z-index: 2;
  font-size: 0.6875rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
  writing-mode: vertical-rl;
}
.scroll-cue::after {
  content: "";
  display: block;
  width: 1px;
  height: 2.5rem;
  margin-top: 0.8rem;
  margin-inline: auto;
  background: var(--hairline-dark);
  animation: cue 2.2s var(--ease-luxe) infinite;
  transform-origin: top;
}
@keyframes cue {
  0% { transform: scaleY(0); }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* --------------------------------------------------------------------------
   8. MARQUEE
   -------------------------------------------------------------------------- */
.marquee {
  position: relative;
  z-index: 1;
  overflow: clip;
  padding-block: clamp(1.5rem, 3vw, 2.5rem);
  border-block: 1px solid var(--hairline-dark);
  background: var(--ink-950);
}
.marquee__track {
  display: flex;
  width: max-content;
  will-change: transform;
}
.marquee__group {
  display: inline-block;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  letter-spacing: -0.01em;
  line-height: 1;
  padding-right: 0.35em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(242, 239, 231, 0.38);
}
.marquee__group i {
  font-style: normal;
  color: var(--accent-bright);
  -webkit-text-stroke: 0;
}
.marquee__group .pix {
  width: 0.4em;
  height: 0.4em;
  margin: 0 0.14em;
  vertical-align: 0.16em;
}

/* --------------------------------------------------------------------------
   9. MANIFESTO & STATS
   -------------------------------------------------------------------------- */
.manifesto .lead { max-width: 100%; }

/* Numbered principles — the studio manifesto */
.manifesto__principles {
  margin-top: var(--space-block);
  padding-top: var(--space-block);
  border-top: 1px solid var(--hairline-dark);
}
.manifesto__eye { margin-bottom: clamp(1.6rem, 3vw, 2.4rem); }
.principles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem) clamp(2.5rem, 6vw, 5.5rem);
}
.principle { display: flex; flex-direction: column; gap: 0.55rem; }
.principle__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  color: var(--accent-bright);
}
.principle__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  letter-spacing: -0.018em;
  line-height: 1.08;
}
.principle__body { color: var(--muted-on-dark); max-width: 34rem; font-size: var(--fs-small); }

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  margin-top: var(--space-block);
  padding-top: var(--space-block);
  border-top: 1px solid var(--hairline-dark);
}
.stat__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 5.5vw, 4.5rem);
  line-height: 1;
  color: var(--bone);
}
.stat__num sup {
  font-size: 0.45em;
  color: var(--accent-bright);
  margin-left: 0.08em;
}
.stat__label {
  margin-top: 0.75rem;
  max-width: 17rem;
  font-size: var(--fs-small);
  color: var(--muted-on-dark);
}

/* --------------------------------------------------------------------------
   10. BEFORE / AFTER — la prueba
   -------------------------------------------------------------------------- */
.ba__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.4rem;
}
.ba__tab {
  padding: 0.7rem 1.4rem;
  border: 1px solid var(--hairline-light);
  border-radius: 999px;
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--muted-on-light);
  transition: color var(--dur-fast) ease, background-color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}
.ba__tab:hover { color: var(--ink-on-light); border-color: var(--ink-on-light); }
.ba__tab.is-active {
  background: var(--ink-on-light);
  border-color: var(--ink-on-light);
  color: var(--bone);
}

.ba__stage {
  position: relative;
  aspect-ratio: 16 / 10;
  max-height: 76vh;
  width: 100%;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(19, 19, 24, 0.28);
  /* pan-y, NOT none: vertical flicks must keep scrolling the page —
     horizontal drags still reach the pointer handlers */
  touch-action: pan-y;
  cursor: ew-resize;
  background: var(--ink-700);
}
.ba__layer {
  position: absolute;
  inset: 0;
  margin: 0;
}
.ba__layer img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
/* the "after" sits on top and is clipped from the left by --ba (0-100) */
.ba__layer--after { clip-path: inset(0 0 0 var(--ba, 50%)); }

.ba__tag {
  position: absolute;
  top: 1.1rem;
  z-index: 2;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font-size: 0.71875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.ba__tag--before {
  left: 1.1rem;
  background: rgba(19, 19, 24, 0.72);
  color: rgba(242, 239, 231, 0.85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.ba__tag--after {
  right: 1.1rem;
  background: var(--accent);
  color: var(--white);
}

.ba__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--ba, 50%);
  z-index: 3;
  width: 2px;
  background: var(--white);
  box-shadow: 0 0 0 1px rgba(19, 19, 24, 0.2), 0 0 24px rgba(0, 0, 0, 0.35);
  cursor: ew-resize;
}
.ba__grip {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--white);
  color: var(--ink-on-light);
  box-shadow: 0 10px 30px rgba(19, 19, 24, 0.35);
  transition: transform 0.3s var(--ease-luxe);
}
.ba__handle:hover .ba__grip,
.ba__handle:focus-visible .ba__grip { transform: translate(-50%, -50%) scale(1.08); }
.ba__grip svg { width: 22px; height: 22px; }

.ba__note {
  margin-top: 1.2rem;
  font-size: var(--fs-small);
}
.ba__demo-link { color: var(--accent-on-light); font-weight: 600; }

/* --------------------------------------------------------------------------
   11. WORK CARDS
   -------------------------------------------------------------------------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  perspective: 1200px;
}
/* three cards → one clean row on desktop, stacked below 1024 */
@media (max-width: 1024px) { .work-grid { grid-template-columns: 1fr; } }
.work-card {
  border-radius: var(--radius-card);
  background: var(--white);
  border: 1px solid var(--hairline-light);
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
  transition: box-shadow 0.4s ease;
}
.work-card:hover { box-shadow: 0 34px 80px rgba(19, 19, 24, 0.22); }
.work-card__link { display: block; height: 100%; }
.work-card__media { overflow: hidden; }
.work-card__media img,
.work-card__media video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
  transition: transform 0.9s var(--ease-luxe);
}
.work-card:hover .work-card__media img,
.work-card:hover .work-card__media video { transform: scale(1.045); }
.work-card__body { padding: clamp(1.4rem, 2.5vw, 2.2rem); }
.work-card__meta {
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-on-light);
}
.work-card__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-title);
  letter-spacing: -0.02em;
  margin-top: 0.7rem;
}
.work-card__blurb { margin-top: 0.8rem; color: var(--muted-on-light); max-width: 34rem; }
.work-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.2rem;
}
.work-card__tags span {
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--hairline-light);
  border-radius: 999px;
  font-size: 0.71875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-on-light);
}
.work-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.4rem;
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-on-light);
}
.work-card__cta svg { transition: transform var(--dur-fast) var(--ease-luxe); }
.work-card:hover .work-card__cta svg { transform: translateX(4px); }
.work-card:hover .work-card__cta { color: var(--accent-on-light); }

/* --------------------------------------------------------------------------
   12. PROCESO — sticky-stacked steps
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  gap: clamp(1.2rem, 2.5vw, 2rem);
}
.step-card {
  position: sticky;
  top: clamp(5.5rem, 12vh, 8rem);
  display: grid;
  grid-template-columns: minmax(90px, 0.9fr) 3fr;
  gap: clamp(1rem, 4vw, 4rem);
  padding: clamp(1.6rem, 3.5vw, 3rem);
  border-radius: var(--radius-card);
  background: var(--ink-800);
  border: 1px solid var(--hairline-dark);
  will-change: transform;
}
.step-card__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 4.75rem);
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1.2px var(--accent-bright);
}
.step-card__when {
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-bright);
}
.step-card__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-title);
  letter-spacing: -0.02em;
  margin-block: 0.5rem 0.7rem;
}
.step-card__body { min-width: 0; } /* grid cell must shrink below min-content on tiny screens */
.step-card__title { hyphens: auto; overflow-wrap: break-word; }
.step-card__body p:last-child { color: var(--muted-on-dark); max-width: 40rem; }

/* --------------------------------------------------------------------------
   13. PLANES
   -------------------------------------------------------------------------- */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 1.8vw, 1.6rem);
  align-items: stretch;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.6rem, 2.2vw, 2.2rem);
  border-radius: var(--radius-card);
  background: var(--white);
  border: 1px solid var(--hairline-light);
  transition: transform 0.45s var(--ease-luxe), box-shadow 0.45s ease;
}
.plan:hover { transform: translateY(-8px); box-shadow: 0 30px 70px rgba(19, 19, 24, 0.16); }

.plan--featured {
  border: 2px solid var(--accent);
  box-shadow: 0 24px 60px rgba(43, 58, 255, 0.16);
}
.plan__badge {
  position: absolute;
  top: -0.85rem;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--white);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* Entry-tier marker on Exprés — clean solid pill (was transparent, which let the
   card's top border show through the text). Secondary to the filled blue badge. */
.plan__badge--ghost {
  background: var(--white);
  color: var(--accent-on-light);
  border: 1px solid var(--accent-dim);
  box-shadow: 0 5px 16px rgba(19, 19, 24, 0.12);
  letter-spacing: 0.16em;
}

.plan--dark {
  background: var(--ink-900);
  border-color: var(--ink-900);
  color: var(--bone);
}
.plan--dark .plan__for, .plan--dark .plan__terms { color: var(--muted-on-dark); }
.plan--dark .plan__list li { color: rgba(242, 239, 231, 0.82); border-color: var(--hairline-dark); }
.plan--dark .plan__list li::before { color: var(--accent-bright); }

.plan__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}
.plan__price { margin-top: 1.1rem; display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; }
.plan__amount {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 2.6vw, 2.5rem);
  letter-spacing: -0.02em;
  line-height: 1;
}
.plan--featured .plan__amount { color: var(--accent-on-light); }
.plan__terms { font-size: var(--fs-small); color: var(--muted-on-light); }
.plan__for {
  margin-top: 0.9rem;
  font-size: var(--fs-small);
  color: var(--muted-on-light);
  min-height: 3.2em;
}
.plan__list { margin-top: 1.1rem; flex: 1; }
.plan__list li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.5rem;
  font-size: var(--fs-small);
  border-top: 1px solid var(--hairline-light);
}
.plan__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-on-light);
  font-weight: 600;
}
.plan__cta { margin-top: 1.4rem; width: 100%; }

.always {
  margin-top: var(--space-block);
  padding-top: var(--space-block);
  border-top: 1px solid var(--hairline-light);
}
.always__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}
.always__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem 2rem;
  margin-top: 1.4rem;
}
.always__grid li {
  position: relative;
  padding-left: 1.6rem;
  font-size: var(--fs-small);
  color: var(--muted-on-light);
}
.always__grid li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-on-light);
  font-weight: 600;
}
.plans__fine { margin-top: 1.8rem; font-size: 0.75rem; }

/* --------------------------------------------------------------------------
   14. FAQ
   -------------------------------------------------------------------------- */
.faq { border-top: 1px solid var(--hairline-dark); }
.faq__item { border-bottom: 1px solid var(--hairline-dark); }
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  padding: 1.4rem 0;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  letter-spacing: -0.01em;
  transition: color var(--dur-fast) ease;
}
.faq__q:hover { color: var(--accent-bright); }
.faq__icon {
  flex: 0 0 auto;
  width: 16px; height: 16px;
  transition: transform 0.45s var(--ease-luxe);
}
.faq__q[aria-expanded="true"] .faq__icon { transform: rotate(45deg); }
.faq__a {
  height: 0;
  overflow: hidden;
}
.faq__a p {
  padding-bottom: 1.6rem;
  max-width: 40rem;
  color: var(--muted-on-dark);
}
html.no-gsap .faq__a, html:not(.js) .faq__a { height: auto; }

/* --------------------------------------------------------------------------
   15. CTA / CONTACTO
   -------------------------------------------------------------------------- */
.section--cta {
  background:
    radial-gradient(90% 70% at 50% 110%, rgba(43, 58, 255, 0.22), transparent 60%),
    var(--ink-950);
}
.cta-title {
  /* sized so "¿Hablamos?" stays one line down to ~360px-wide phones —
     no white-space:nowrap here, it forces mobile horizontal overflow */
  font-size: clamp(2.1rem, 8.4vw, 7.75rem);
  line-height: 1;
}
.cta-title .char { display: inline-block; }
.cta-sub { margin-top: 1.4rem; max-width: 34rem; color: var(--muted-on-dark); }

.contact-split {
  display: grid;
  grid-template-columns: 7fr 4fr;
  gap: clamp(2rem, 5vw, 5rem);
  margin-top: var(--space-block);
}

.contact-form { display: flex; flex-direction: column; gap: 1.3rem; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.3rem;
}
.form-field { display: flex; flex-direction: column; gap: 0.45rem; }
.form-field label {
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
}
.form-field input,
.form-field select,
.form-field textarea {
  font: inherit;
  color: var(--bone);
  background: var(--ink-800);
  /* brighter than --hairline-dark: form boundaries must clear WCAG 1.4.11 (3:1) */
  border: 1px solid rgba(242, 239, 231, 0.45);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  transition: border-color var(--dur-fast) ease, background-color var(--dur-fast) ease;
}
.form-field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23F2EFE7' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; }
.form-field textarea { resize: vertical; min-height: 7rem; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent-bright);
  background: var(--ink-700);
}
.form-field input::placeholder, .form-field textarea::placeholder { color: rgba(242, 239, 231, 0.35); }

.form-error { color: #FF7A7A; font-size: var(--fs-small); }
.contact-form__submit { align-self: flex-start; }
.form-reassure { margin-top: -0.4rem; font-size: 0.75rem; }
.form-success {
  padding: 1.4rem 1.6rem;
  border: 1px solid var(--accent-dim);
  border-radius: var(--radius-card);
  background: rgba(43, 58, 255, 0.1);
}
.form-success__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
  color: var(--accent-bright);
}

.contact-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.1rem;
  padding-top: 0.4rem;
}
.contact-side__label {
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
}
.contact-side__mail {
  font-family: var(--font-display);
  font-weight: 700;
  /* sized so the full gmail fits one line in the narrow column — break-all was
     splitting the trailing ".com" onto its own line */
  font-size: clamp(0.95rem, 1.25vw, 1.15rem);
  letter-spacing: -0.015em;
  word-break: normal;
  overflow-wrap: anywhere;
}
.contact-side__wa svg { color: currentColor; }
.contact-side__note { font-size: var(--fs-small); max-width: 18rem; }

/* --------------------------------------------------------------------------
   16. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  z-index: 2;
  background: var(--ink-950);
  border-top: 1px solid var(--hairline-dark);
  padding-block: 2.6rem;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2.5rem;
  flex-wrap: wrap;
}
.footer__tag { font-size: var(--fs-small); }
.footer__links { display: flex; gap: 1.8rem; font-size: var(--fs-small); }
.footer__legal-links { display: flex; flex-wrap: wrap; gap: 0.7rem 1.4rem; font-size: 0.75rem; opacity: 0.72; }
.footer__legal { font-size: 0.75rem; }

/* --------------------------------------------------------------------------
   16b. FLOATING WHATSAPP — always-reachable chat CTA (converts best in ES)
   -------------------------------------------------------------------------- */
.wa-fab {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: calc(var(--z-nav) + 3);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  height: 3.5rem;
  padding: 0 1.15rem;
  border-radius: 999px;
  background: #25D366;
  color: #08130B;
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35), 0 0 0 6px rgba(37, 211, 102, 0.14);
  transform: translateY(0);
  transition: transform 0.45s var(--ease-luxe), opacity 0.35s ease, box-shadow 0.35s ease;
  will-change: transform;
}
.wa-fab svg { width: 1.55rem; height: 1.55rem; flex: 0 0 auto; }
.wa-fab__label { white-space: nowrap; }
.wa-fab:hover, .wa-fab:focus-visible { box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 0 8px rgba(37, 211, 102, 0.2); }
/* tuck away while the contact section (with its own WhatsApp) is on screen */
.wa-fab.is-hidden { transform: translateY(160%); opacity: 0; pointer-events: none; }
@media (max-width: 520px) {
  /* icon-only on small phones so it never covers content */
  .wa-fab { height: 3.25rem; padding: 0; width: 3.25rem; justify-content: center; }
  .wa-fab__label { display: none; }
}
@media (prefers-reduced-motion: reduce) { .wa-fab { transition: opacity 0.2s ease; } }

/* --------------------------------------------------------------------------
   17. CURSOR
   -------------------------------------------------------------------------- */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  z-index: var(--z-cursor);
  pointer-events: none;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease, width 0.3s var(--ease-luxe), height 0.3s var(--ease-luxe);
}
.cursor-dot { width: 6px; height: 6px; background: var(--accent-bright); }
.cursor-ring { width: 34px; height: 34px; border: 1px solid var(--accent-dim); }
html.cursor-on .cursor-dot, html.cursor-on .cursor-ring { opacity: 1; }
html.cursor-hover .cursor-ring { width: 56px; height: 56px; border-color: var(--accent-bright); }
@media (pointer: coarse) { .cursor-dot, .cursor-ring { display: none; } }

/* --------------------------------------------------------------------------
   18. MEDIA FALLBACK
   -------------------------------------------------------------------------- */
.media-fallback {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--ink-700), var(--ink-950));
}

/* --------------------------------------------------------------------------
   20. WOW LAYER — rotating hero word, cursor labels, smart nav, progress
   rails, footer wordmark. Everything here degrades to nothing without JS.
   -------------------------------------------------------------------------- */

/* Rotating accent word in the hero — words stacked in one grid cell */
.hero__swap { display: inline-grid; justify-items: start; }
.hero__swap > span {
  grid-area: 1 / 1;
  white-space: nowrap;
  will-change: transform;
}

/* Scroll progress hairline */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: calc(var(--z-nav) + 2);
  background: var(--accent-bright);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

/* Smart nav: hides scrolling down, returns scrolling up */
.site-nav {
  transition: background-color 0.45s ease, padding 0.45s ease, transform 0.5s var(--ease-luxe);
}
.site-nav.is-hidden { transform: translateY(-110%); }
body.menu-open .site-nav.is-hidden { transform: none; }
/* keyboard users: focusing a nav link brings the hidden nav back */
.site-nav.is-hidden:focus-within { transform: none; }

/* Scrollspy: current section lights up in the nav */
.nav-link.is-active { color: var(--bone); }
.nav-link.is-active::after { transform: scaleX(1); transform-origin: left; }

/* Cursor label ("Arrastra", "Ver demo") — rides below the ring */
.cursor-ring__label {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  scale: 0.8;
  transition: opacity 0.25s ease, scale 0.25s var(--ease-luxe);
}
html.cursor-label-on .cursor-ring__label { opacity: 1; scale: 1; }
html.cursor-label-on .cursor-ring { border-color: var(--accent-bright); }

/* Manifesto emphasis */
.manifesto .lead em { font-style: normal; color: var(--accent-bright); }

/* Proceso progress rail */
.steps-progress {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: clamp(1.2rem, 2.5vw, 2rem);
}
.steps-progress__label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: var(--bone);
  min-width: 4.6em;
}
.steps-progress__label #stepNow { color: var(--accent-bright); }
.steps-progress__of { color: var(--muted-on-dark); }
.steps-progress__bar {
  flex: 1;
  height: 1px;
  background: var(--hairline-dark);
  position: relative;
  overflow: hidden;
}
.steps-progress__fill {
  position: absolute;
  inset: 0;
  background: var(--accent-bright);
  transform: scaleX(0);
  transform-origin: left;
}

/* Featured plan: quiet breathing glow */
@keyframes planGlow {
  0%, 100% { box-shadow: 0 24px 60px rgba(43, 58, 255, 0.14); }
  50% { box-shadow: 0 24px 72px rgba(43, 58, 255, 0.3); }
}
.plan--featured { animation: planGlow 4.5s ease-in-out infinite; }

/* Footer: giant wordmark that fills with bone as you arrive */
.footer__mark {
  position: relative;
  display: block;
  width: fit-content;
  margin: 0 auto clamp(2rem, 5vw, 4rem);
  padding-top: clamp(2.5rem, 6vw, 5rem);
  font-family: var(--font-display);
  font-weight: 800;
  /* nowrap text propagates min-width to the mobile layout viewport —
     the 16-char wordmark measures ~12.5em in Syne 800, so 7vw ≈ 88vw wide */
  font-size: clamp(1.3rem, 7vw, 8.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
  user-select: none;
}
.footer__mark-outline {
  color: transparent;
  -webkit-text-stroke: 1px rgba(242, 239, 231, 0.22);
}
.footer__mark-fill {
  position: absolute;
  inset: clamp(2.5rem, 6vw, 5rem) 0 0 0;
  color: var(--bone);
  clip-path: inset(0 100% 0 0);
}
.footer__mark-fill b { color: var(--accent-bright); font-weight: inherit; }

/* --------------------------------------------------------------------------
   21. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .plans-grid { grid-template-columns: repeat(2, 1fr); }
  .plan--featured { transform: none; }
  .contact-split { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(3, 1fr); }
  /* burger takes over at 1080, not 900 — between 901–1079px the five links
     plus the CTA don't fit and "La prueba" wraps to two lines */
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-cta { display: none; }
}

@media (max-width: 900px) {
  .work-grid { grid-template-columns: 1fr; }
  .hero__wall { opacity: 0.42; right: -26%; }
  .hero__scrim {
    background:
      linear-gradient(90deg, var(--ink-900) 30%, rgba(10, 10, 16, 0.72) 70%, rgba(10, 10, 16, 0.5) 100%),
      linear-gradient(0deg, var(--ink-900) 2%, transparent 24%);
  }
  .stats-row { grid-template-columns: 1fr; gap: 2rem; }
  .stat__label { max-width: 26rem; }
  .principles { grid-template-columns: 1fr; }
  .always__grid { grid-template-columns: repeat(2, 1fr); }
  .step-card { grid-template-columns: 1fr; gap: 1rem; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .plans-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .always__grid { grid-template-columns: 1fr; }
  .ba__stage { aspect-ratio: 4 / 3; }
  .ba__grip { width: 44px; height: 44px; }
  .hero__ctas .btn { width: 100%; }
  .scroll-cue { display: none; }
}

/* ==========================================================================
   22. iOS / iPhone POLISH + ENHANCED MOTION LAYER (additive)
   Most traffic is iPhone: safe areas, real tap targets, dvh, GPU-friendly
   motion that stays smooth on Safari and degrades cleanly.
   ========================================================================== */

/* --- iOS viewport: prefer dynamic viewport height where supported --- */
@supports (height: 100dvh) {
  .hero { min-height: 100dvh; }
}

/* --- Safe-area insets (notch / home indicator / landscape) --- */
.site-nav { padding-top: max(1.3rem, env(safe-area-inset-top)); }
.site-nav.is-solid { padding-top: max(0.85rem, env(safe-area-inset-top)); }
.site-nav__inner { padding-inline: env(safe-area-inset-left) env(safe-area-inset-right); }
.wa-fab { bottom: max(clamp(1rem, 3vw, 2rem), calc(env(safe-area-inset-bottom) + 0.6rem)); right: max(clamp(1rem, 3vw, 2rem), calc(env(safe-area-inset-right) + 0.4rem)); }
.mobile-menu { padding-top: max(6rem, calc(env(safe-area-inset-top) + 4.5rem)); padding-bottom: max(3rem, calc(env(safe-area-inset-bottom) + 1.5rem)); }

/* --- Tap targets: every link comfortably ≥44px on touch --- */
@media (pointer: coarse) {
  .footer__links a, .mobile-menu__foot a, .contact-side__mail, .nav-logo, .footer__mark ~ .footer__inner .nav-logo {
    display: inline-flex; align-items: center; min-height: 44px;
  }
  .footer__links { gap: 0.6rem 1.8rem; }
  .plan__list li, .always__grid li { padding-top: 0.7rem; padding-bottom: 0.7rem; }
}

/* --- Ambient aurora: soft drifting gradient light in the dark sections --- */
.aurora { position: absolute; inset: 0; overflow: clip; pointer-events: none; z-index: 0; }
.aurora__blob {
  position: absolute; width: 52vmax; height: 52vmax; border-radius: 50%;
  filter: blur(48px); opacity: 0.42; will-change: transform;
  background: radial-gradient(circle at 50% 50%, rgba(95,108,255,0.5), rgba(43,58,255,0) 62%);
  animation: auroraDrift 22s ease-in-out infinite alternate;
}
/* lighter on phones: smaller layer + softer blur keeps Safari smooth */
@media (max-width: 640px) { .aurora__blob { width: 64vmax; height: 64vmax; filter: blur(36px); opacity: 0.34; } }
.aurora__blob--2 { background: radial-gradient(circle at 50% 50%, rgba(43,58,255,0.42), rgba(95,108,255,0) 60%); animation-duration: 30s; animation-direction: alternate-reverse; }
.section--cta > .container, .manifesto .container, .manifesto .container--narrow { position: relative; z-index: 1; }
@keyframes auroraDrift {
  0%   { transform: translate3d(-12%, -6%, 0) scale(1); }
  50%  { transform: translate3d(8%, 6%, 0) scale(1.15); }
  100% { transform: translate3d(14%, -4%, 0) scale(0.95); }
}
html.no-gsap .aurora, .paused .aurora__blob { animation: none; }
@media (prefers-reduced-motion: reduce) { .aurora__blob { animation: none; } }

/* --- Depth / parallax helpers (GSAP writes the transform) --- */
[data-depth] { will-change: transform; }

/* --- Plan cards: premium entrance + desktop 3D tilt --- */
.plans-grid { perspective: 1400px; }
.plan { transform-style: preserve-3d; }
@media (pointer: fine) { .plan { transition: transform 0.5s var(--ease-luxe), box-shadow 0.45s ease; } }

/* --- Reveal: add a whisper of scale so entrances feel richer (JS sets the rest) --- */
html.js:not(.no-gsap) [data-animate]:not([data-animate="stagger"]) { will-change: transform, opacity; }

/* pause-heavy continuous animation when the tab is backgrounded (battery on iPhone) */
.paused .marquee__track, .paused .wall__col { animation-play-state: paused; }

/* iOS: card preview videos must not capture touch — let scroll + the card link through */
.work-card__vid { pointer-events: none; }

/* iOS Safari paints its central "tap to play" glyph
   (::-webkit-media-controls-start-playback-button) over ANY paused, inline,
   poster-bearing <video> — so every off-screen / just-entering demo card shows
   it, and Low Power Mode (which blocks muted autoplay outright) shows it on all
   of them. Hide the whole media-controls shadow tree. SEPARATE rules on purpose:
   a comma-grouped selector list is dropped ENTIRELY by WebKit if one -webkit-
   pseudo is unknown on a given iOS version, so grouping would silently fail.
   Unknown -webkit- pseudos are ignored on desktop Chrome/Firefox/Safari — safe. */
.work-card__vid::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none !important; opacity: 0 !important; }
.work-card__vid::-webkit-media-controls-overlay-play-button { display: none !important; -webkit-appearance: none !important; opacity: 0 !important; }
.work-card__vid::-webkit-media-controls-play-button { display: none !important; -webkit-appearance: none !important; }
.work-card__vid::-webkit-media-controls-panel { display: none !important; }
.work-card__vid::-webkit-media-controls { display: none !important; }

/* --------------------------------------------------------------------------
   23. STRIPE — "Pagar señal (50%)" plan button + post-payment toast
   -------------------------------------------------------------------------- */
.plan__pay {
  display: inline-flex; align-items: center; gap: 0.4em;
  margin-top: 0.75rem; align-self: center;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em;
  color: var(--accent-on-light);
  background: none; border: 0; cursor: pointer;
  transition: color var(--dur-fast) ease, gap var(--dur-fast) var(--ease-luxe);
}
.plan__pay:hover { color: var(--ink-on-light); gap: 0.65em; }
.plan__pay:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 3px; border-radius: 2px; }
.plan--dark .plan__pay { color: var(--accent-bright); }
.plan--dark .plan__pay:hover { color: var(--bone); }

.pay-toast {
  position: fixed; left: 50%; bottom: 1.4rem; transform: translate(-50%, 160%);
  z-index: calc(var(--z-nav) + 5);
  max-width: min(92vw, 30rem);
  padding: 0.95rem 1.25rem; border-radius: 999px;
  background: #1EA956; color: #06130B;
  font-size: var(--fs-small); line-height: 1.35; text-align: center;
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
  transition: transform 0.5s var(--ease-luxe), opacity 0.4s ease;
  opacity: 0;
}
.pay-toast.is-in { transform: translate(-50%, 0); opacity: 1; }
.pay-toast--warn { background: var(--ink-700); color: var(--bone); border: 1px solid var(--hairline-dark); }

/* --------------------------------------------------------------------------
   24. LIVE HERO — interactive fluid backdrop + a browser that builds itself
   Namespaced (.hero__fx*, .hb-*) so nothing collides with the rest of the site.
   These rules come last on purpose: the .hero / .hero__content overrides must
   win the cascade over the older work-wall hero rules above.
   -------------------------------------------------------------------------- */
.hero { padding: clamp(5.5rem, 10vh, 7rem) 0 clamp(2.5rem, 6vh, 4rem); isolation: isolate; }

/* interactive fluid layer */
.hero__fx { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
#heroFluid { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero__fx-scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(130% 100% at 62% 40%, transparent 0%, rgba(10, 10, 16, 0.28) 55%, rgba(10, 10, 16, 0.70) 100%),
    linear-gradient(180deg, rgba(10, 10, 16, 0.42) 0%, transparent 26%, transparent 70%, rgba(10, 10, 16, 0.58) 100%);
}
.hero__fx-grain {
  position: absolute; inset: -40%; opacity: 0.045; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* two-column layout: copy left, self-building browser right.
   NB: no width here — .container--wide owns the width/gutter/centering. */
.hero__grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(28px, 4.4vw, 60px); align-items: center;
}
/* min-width:0 stops the huge headline from blowing the fr tracks out */
.hero__grid .hero__content { padding-block: 0; min-width: 0; }
/* the full-page --fs-hero (up to 136px) is for a single-column hero; scale it
   down so it fits the left column of the two-column layout */
.hero__grid .hero__title { font-size: clamp(2.6rem, 6.4vw, 4.9rem); max-width: 12em; }

/* the browser mockup */
.hero__stage { position: relative; perspective: 1400px; min-width: 0; }
.hb-browser {
  position: relative; border-radius: 16px; overflow: hidden;
  background: #0d0d15; border: 1px solid rgba(242, 239, 231, 0.10);
  box-shadow: 0 44px 100px -34px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  transform: rotateY(-7deg) rotateX(3deg); transform-style: preserve-3d; will-change: transform;
}
.hb-chrome { display: flex; align-items: center; gap: 14px; padding: 12px 14px; background: #12121c; border-bottom: 1px solid rgba(242, 239, 231, 0.13); }
.hb-dots { display: flex; gap: 7px; }
.hb-dots i { width: 11px; height: 11px; border-radius: 50%; background: rgba(242, 239, 231, 0.2); }
.hb-dots i:nth-child(1) { background: #ff5f57; } .hb-dots i:nth-child(2) { background: #febc2e; } .hb-dots i:nth-child(3) { background: #28c840; }
.hb-urlbar { flex: 1; height: 28px; border-radius: 8px; background: #0a0a12; border: 1px solid rgba(242, 239, 231, 0.13); display: flex; align-items: center; gap: 8px; padding: 0 12px; font-size: 11.5px; color: rgba(242, 239, 231, 0.6); letter-spacing: 0.02em; overflow: hidden; white-space: nowrap; }
.hb-lock { width: 9px; height: 9px; border-radius: 2px; background: #25D366; opacity: 0.8; flex: none; }
.hb-u { overflow: hidden; text-overflow: ellipsis; }
.hb-screen {
  position: relative; aspect-ratio: 16 / 11; overflow: hidden; background: var(--pg, #0f0f18);
  transition: background 0.5s ease;
  --pg: #0f0f18; --c1: #2B3AFF; --c2: #5F6CFF; --txt: #F2EFE7; --soft: rgba(242, 239, 231, 0.14);
}
.hb-site { position: absolute; inset: 0; padding: 5% 5.5%; display: flex; flex-direction: column; gap: 3.4%; }
.hb-blk { border-radius: 8px; opacity: 0; will-change: transform, opacity; transform-origin: center; }
.hb-nav { display: flex; align-items: center; justify-content: space-between; height: 9%; flex: none; }
.hb-logo { width: 26%; height: 46%; border-radius: 5px; background: var(--c1); }
.hb-menu { display: flex; gap: 8px; }
.hb-menu i { width: 22px; height: 7px; border-radius: 4px; background: var(--soft); }
.hb-hero { flex: 1; display: flex; gap: 4%; }
.hb-col { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.hb-line { height: 13px; border-radius: 5px; background: var(--txt); opacity: 0.9; }
.hb-line.a { width: 82%; } .hb-line.b { width: 62%; }
.hb-subline { height: 8px; width: 74%; border-radius: 4px; background: var(--soft); margin-top: 4px; }
.hb-btn { margin-top: 12px; width: 44%; height: 26px; border-radius: 7px; background: var(--c1); }
.hb-media { flex: 1.05; border-radius: 10px; background: linear-gradient(135deg, var(--c1), var(--c2)); position: relative; overflow: hidden; }
.hb-media::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.25), transparent 45%); }
.hb-cards { height: 26%; flex: none; display: flex; gap: 3.4%; }
.hb-card { flex: 1; border-radius: 8px; background: var(--soft); border: 1px solid rgba(255, 255, 255, 0.05); display: flex; flex-direction: column; justify-content: flex-end; padding: 8px; gap: 5px; }
.hb-card .hb-t { height: 7px; width: 70%; border-radius: 3px; background: var(--txt); opacity: 0.7; }
.hb-card .hb-t2 { height: 6px; width: 48%; border-radius: 3px; background: var(--soft); }
.hb-card .hb-swatch { width: 34%; height: 34%; border-radius: 6px; background: var(--c2); margin-bottom: auto; }
.hb-wire { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.hb-wire rect, .hb-wire line { fill: none; stroke: #5F6CFF; stroke-width: 1.4; vector-effect: non-scaling-stroke; opacity: 0.85; }
.hb-cursor { position: absolute; width: 16px; height: 16px; left: 0; top: 0; z-index: 5; pointer-events: none; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5)); opacity: 0; }
.hb-cursor svg { width: 100%; height: 100%; display: block; fill: #F2EFE7; }
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: clamp(1.75rem, 6vw, 2.5rem); }
  .hero__stage { perspective: none; }
  .hb-browser { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  #heroFluid { opacity: 0.6; }
}

/* --------------------------------------------------------------------------
   25. CONSENT BAR (Google Ads / Consent Mode v2) — neutral names dodge ad-block cosmetic filters
   -------------------------------------------------------------------------- */
.pw-bar {
  position: fixed;
  z-index: 1000;
  left: 50%;
  transform: translateX(-50%);
  bottom: max(1rem, env(safe-area-inset-bottom));
  width: min(680px, calc(100vw - 1.6rem));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1.4rem;
  padding: 1.05rem 1.25rem;
  background: rgba(14, 14, 22, 0.92);
  color: var(--bone);
  border: 1px solid var(--hairline-dark);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  animation: pwBarUp 0.5s var(--ease-luxe, ease) both;
}
.pw-bar[hidden] { display: none; }
@keyframes pwBarUp { from { opacity: 0; transform: translate(-50%, 14px); } to { opacity: 1; transform: translate(-50%, 0); } }
.pw-bar__text {
  flex: 1 1 300px;
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--muted-on-dark);
}
.pw-bar__text strong { color: var(--bone); font-weight: 600; }
.pw-bar__text a { color: var(--accent-bright); text-decoration: underline; text-underline-offset: 2px; }
.pw-bar__actions { display: flex; gap: 0.6rem; flex: 0 0 auto; margin-left: auto; }
.pw-bar__btn {
  padding: 0.6rem 1.35rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.pw-bar__btn--no { background: transparent; border-color: var(--hairline-dark); color: var(--bone); }
.pw-bar__btn--no:hover { border-color: var(--bone); }
.pw-bar__btn--ok { background: var(--accent); color: #fff; }
.pw-bar__btn--ok:hover { background: var(--accent-bright); }
@media (max-width: 520px) {
  .pw-bar { gap: 0.8rem; }
  .pw-bar__actions { width: 100%; }
  .pw-bar__btn { flex: 1; }
}
