/* Growth Media Consulting · rediseño 2026
   Dirección: el nombre como monumento. Marca: rojo #CE0E2D, negro #121212, Montserrat + Inter. */

:root {
  --red: #CE0E2D;
  --red-deep: #A70D26;
  --ink: #121212;
  --muted: #4A4A4A;
  --paper: #F5F5F5;
  --white: #FFFFFF;
  --surface: #E9E8E5;
  --dark: #121212;
  --dark-2: #1E1E1E;
  --on-dark: #F5F5F5;
  --on-dark-muted: #B4B4B4;

  --f-d: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --f-t: 'Inter', 'Helvetica Neue', Arial, sans-serif;

  --step-small: 0.875rem;                                   /* 14px */
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);  /* 17–19px */
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);    /* 20–26px */
  --step-head: clamp(2rem, 1.2rem + 2.6vw, 3.5rem);         /* 32–56px */
  --step-mono: clamp(4.5rem, 13vw, 12.5rem);                /* el nombre */

  --m: clamp(16px, 2.2vw, 32px);
  --sec: clamp(80px, 9vw, 136px);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
  --t-reveal: 800ms;
  --t-open: 1200ms;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--dark);
  color: var(--ink);
  font: 400 var(--step-body)/1.6 var(--f-t);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, figure, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--red); color: var(--white); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: var(--m); top: 12px; z-index: 100; background: var(--white); color: var(--ink); padding: 10px 16px; font-weight: 600; }
.skip:not(:focus) { width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

main { position: relative; z-index: 1; }
.wrap { padding-left: var(--m); padding-right: var(--m); }

.h2 {
  font: 800 var(--step-head)/1.02 var(--f-d);
  letter-spacing: -0.035em;
  text-wrap: balance;
}
p, li, dd, figcaption { text-wrap: pretty; }
h3 { text-wrap: balance; }

/* ---------- Botones y enlaces ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 28px;
  font: 700 var(--step-body)/1 var(--f-d); letter-spacing: -0.01em;
  text-decoration: none; border: 0; border-radius: 0; cursor: pointer;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease;
}
.btn:active { transform: scale(0.97); }
.btn--red { background: var(--red); color: var(--white); }
.btn--lg { min-height: 64px; padding: 0 34px; }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: var(--step-small); }
.btn--block { width: 100%; }
@media (hover: hover) and (pointer: fine) {
  .btn--red:hover { background: var(--red-deep); }
}

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 var(--step-body)/1.3 var(--f-d); color: var(--ink);
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px;
  text-decoration-color: var(--red);
  transition: text-underline-offset var(--t-hover) ease, color var(--t-hover) ease;
}
.link-arrow::after { content: '→'; transition: transform 300ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .link-arrow:hover { text-underline-offset: 9px; color: var(--red-deep); }
  .link-arrow:hover::after { transform: translateX(4px); }
}

/* ---------- Barra fija ---------- */
.bar { background: var(--dark); color: var(--on-dark); z-index: 50; }
.js .bar {
  position: fixed; top: 0; left: 0; right: 0;
  transform: translateY(-100%);
  transition: transform var(--t-ui) var(--ease-out);
}
.js .bar.is-on { transform: none; }
.bar__in { display: flex; align-items: center; gap: 32px; height: 64px; padding: 0 var(--m); }
.bar__logo img { height: 30px; width: auto; }
.bar__links { display: flex; gap: 28px; margin-left: auto; font-size: var(--step-small); font-weight: 600; }
.bar__links a, .hero__nav a, .menu__links a, .foot a { text-decoration: none; }
.bar__links a { color: var(--on-dark); }
.bar__menu, .hero__menu, .menu__close {
  background: none; border: 0; padding: 10px 0; cursor: pointer;
  font: 600 1rem/1 var(--f-t); color: var(--on-dark);
  text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--red);
}
.bar__menu { display: none; margin-left: auto; }
@media (hover: hover) and (pointer: fine) {
  .bar__links a:hover, .hero__nav a:hover { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 6px; }
}

/* ---------- Menú (teléfono) ---------- */
.menu {
  position: fixed; inset: 0; z-index: 80;
  display: flex; flex-direction: column; gap: 40px;
  padding: 16px var(--m) 32px;
  background: var(--dark); color: var(--on-dark);
}
.menu[hidden] { display: none; }
.menu__top { display: flex; align-items: center; justify-content: space-between; height: 48px; }
.menu__top img { height: 30px; width: auto; }
.menu__links { display: flex; flex-direction: column; gap: 6px; }
.menu__links a { font: 800 var(--step-head)/1.15 var(--f-d); letter-spacing: -0.03em; }
.menu .btn { margin-top: auto; }
@media (prefers-reduced-motion: no-preference) {
  .menu { transition: opacity var(--t-ui) var(--ease-out), transform var(--t-ui) var(--ease-out); }
  .menu.is-closed { opacity: 0; transform: translateY(-12px); }
}

/* ---------- PORTADA ---------- */
.hero {
  position: relative;
  height: 100svh; min-height: 640px;
  display: flex; align-items: center;
  background: var(--dark); color: var(--on-dark);
  overflow: clip;
}
.hero__film { position: absolute; inset: 0; pointer-events: none; }
.hero__bull {
  position: absolute;
  right: calc(var(--m) + 1vw);
  bottom: calc(24px + 10.4vw);
  height: calc(100svh - 21.5vw - 116px);
  max-height: 66svh;
  width: auto; aspect-ratio: 680 / 720;
  object-fit: contain;
}
.hero__top {
  position: absolute; top: 26px; right: var(--m); z-index: 3;
  display: flex; align-items: center; gap: 28px;
}
.hero__nav { display: flex; gap: 28px; font-size: var(--step-small); font-weight: 600; }
.hero__nav a { color: var(--on-dark); }
.hero__mark { order: 2; }
.hero__mark img { width: 44px; height: auto; }
.hero__menu { display: none; }

/* El h1 ocupa la pantalla: GROWTH arriba a la izquierda, MEDIA abajo a la derecha */
.hero__title {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: space-between;
  font: 900 var(--step-mono)/0.85 var(--f-d);
  pointer-events: none;
}
.hero__line { display: block; overflow: clip; padding-bottom: 0.06em; margin-bottom: -0.06em; position: relative; }
.hero__word {
  display: block;
  font: 900 var(--step-mono)/0.85 var(--f-d);
  letter-spacing: -0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.hero__line--1 { align-self: flex-start; margin-left: calc(var(--m) - 0.04em); margin-top: calc(72px - 0.13em); }
.hero__line--2 { align-self: flex-end; margin-right: calc(var(--m) - 0.02em); margin-bottom: calc(24px - 0.07em); }
.hero__line--1 .hero__word { color: var(--on-dark); }
.hero__line--2 .hero__word { color: var(--red); }
.hero__mid {
  position: relative; z-index: 3;
  margin-left: 30vw; max-width: 31rem;
  display: flex; flex-direction: column; align-items: flex-start; gap: 28px;
}
.hero__lead { font-size: max(1.125rem, var(--step-body)); line-height: 1.55; color: var(--on-dark); max-width: 44ch; }

@media (prefers-reduced-motion: no-preference) {
  .js .hero__word { transform: translateY(105%); animation: line-up 900ms var(--ease-expo) forwards; animation-delay: calc(var(--i) * 110ms + 150ms); }
  .js .hero__mid { opacity: 0; transform: translateY(16px); animation: rise 700ms var(--ease-out) 480ms forwards; }
  .js .hero__bull { opacity: 0; transform: translateY(24px); animation: rise 900ms var(--ease-expo) 300ms forwards; }
}
@keyframes line-up { to { transform: none; } }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Apariciones ---------- */
@media (prefers-reduced-motion: no-preference) {
  .motion [data-reveal] {
    opacity: 0; transform: translateY(24px);
    transition: opacity var(--t-reveal) var(--ease-expo), transform var(--t-reveal) var(--ease-expo);
    transition-delay: var(--d, 0ms);
  }
  .motion [data-reveal].is-in { opacity: 1; transform: none; }
  /* En el teléfono nada se esconde: solo sube un poco al llegar, para que el scroll rápido nunca encuentre huecos */
  @media (max-width: 760px) {
    .motion [data-reveal] { opacity: 1; transform: translateY(16px); transition: transform 600ms var(--ease-expo); transition-delay: 0ms; }
    .motion [data-reveal].is-in { transform: none; }
  }

  .motion [data-shutter] { clip-path: inset(100% 0 0 0); transition: clip-path var(--t-open) var(--ease-in-out); }
  .motion [data-shutter] > * { transform: scale(1.12); transition: transform 1400ms var(--ease-soft); }
  .motion .is-in [data-shutter] { clip-path: inset(0 0 0 0); }
  .motion .is-in [data-shutter] > * { transform: none; }
}

/* ---------- Marcos de imagen ---------- */
.frame { position: relative; overflow: clip; background: var(--dark-2); }
.frame--sq { aspect-ratio: 1; }
.frame--45 { aspect-ratio: 4 / 5; }
.frame > video, .frame > img { width: 100%; height: 100%; object-fit: cover; }
figcaption { font-size: var(--step-small); line-height: 1.45; color: var(--muted); }

/* ---------- INTRO ---------- */
.intro { background: var(--paper); padding: var(--sec) 0 calc(var(--sec) + 8vw); }
.intro__grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px); align-items: end;
}
.intro__text { grid-column: 7 / 13; grid-row: 1; }
.intro__h { font: 800 var(--step-lead)/1.3 var(--f-d); letter-spacing: -0.02em; margin-bottom: 6px; }
.intro__p { font-size: var(--step-lead); line-height: 1.42; }
.intro__pic { grid-column: 1 / 5; grid-row: 1; margin-bottom: -8vw; }
.intro__pic figcaption { margin-top: 20px; max-width: 26ch; }

/* ---------- ESCENA: vacío → lleno ---------- */
.escena { position: relative; background: #000; color: var(--white); }
.escena__stage { position: relative; height: 100svh; min-height: 560px; overflow: clip; }
.escena--live .escena__stage { position: sticky; top: 0; }
.escena--live { height: 230svh; }
.escena__v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.escena__v--empty { opacity: 0; }
.escena__stage::after { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.42); }
.escena__copy {
  position: absolute; left: 0; right: 0; bottom: clamp(32px, 9svh, 96px); z-index: 2;
  display: flex; flex-direction: column; align-items: flex-start; gap: 20px;
}
.escena__q { font: 700 var(--step-lead)/1.3 var(--f-d); letter-spacing: -0.015em; max-width: 26ch; }
.escena__a { font: 900 clamp(3rem, 9vw, 9rem)/0.88 var(--f-d); letter-spacing: -0.045em; }
.escena__line { display: block; }
.escena__line > span { display: block; }
.escena__note { font-size: var(--step-body); max-width: 46ch; color: var(--white); }

/* ---------- SERVICIOS: prueba pequeña junto al texto ---------- */
.canales { background: var(--paper); padding: var(--sec) 0; }
.canales__wrap { padding-left: max(var(--m), 17vw); }
.canales__head { max-width: 50rem; margin-bottom: 72px; }
.canales__sub { margin-top: 20px; max-width: 54ch; color: var(--ink); }
.mod {
  display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 380px);
  column-gap: 40px; align-items: start;
}
.mod + .mod { margin-top: 96px; }
.mod__panel { background: var(--surface); padding: 28px; overflow: clip; }
.mod__panel--pic { padding: 0; background: var(--white); }
.mod__panel--pic img { width: 100%; height: auto; }
.mod__text h3 { font: 800 var(--step-lead)/1.2 var(--f-d); letter-spacing: -0.02em; margin-bottom: 14px; }
.mod__text p + p { margin-top: 12px; }

/* Fragmentos de interfaz (ejemplos) */
[data-ui] { font-family: var(--f-t); }
.ui-g { background: var(--white); padding: 18px; }
.ui-g__search {
  display: flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 16px; border: 1px solid #DADCE0; border-radius: 24px; /* taste-skill-ignore: caja de búsqueda de Google (fragmento de interfaz) */
  font-size: 14px; color: #202124;
}
.ui-g__search svg { width: 18px; height: 18px; color: #5F6368; flex: none; }
.ui-g__q { white-space: nowrap; overflow: hidden; }
.ui-g__caret { width: 1px; height: 20px; background: #202124; opacity: 0; }
.ui-g__res { margin-top: 18px; }
.ui-g__tag { font-size: 14px; font-weight: 700; color: #202124; }
.ui-g__site { font-size: 14px; color: #202124; margin-top: 2px; }
.ui-g__title { font-size: 19px; line-height: 1.3; color: #1A0DAB; margin-top: 4px; }
.ui-g__desc { font-size: 14px; line-height: 1.5; color: #4D5156; margin-top: 4px; }
.ui-g__links { display: flex; gap: 16px; margin-top: 8px; font-size: 14px; color: #1A0DAB; }

.ui-ig { background: var(--white); color: #111; }
.ui-ig__head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; font-size: 14px; line-height: 1.25; }
.ui-ig__head small { display: block; font-size: 14px; color: #555; }
.ui-ig__av { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--red); color: var(--white); font: 700 14px/1 var(--f-d); flex: none; }
.ui-ig img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.ui-ig__cta { padding: 12px 14px; background: #EFEFEF; font-size: 14px; font-weight: 600; }
.ui-ig__likes { padding: 10px 14px 4px; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ui-ig__msg { margin: 8px 14px 14px; padding: 12px 14px; background: var(--ink); color: var(--white); font-size: 14px; line-height: 1.45; }
.ui-ig__msg b { display: block; font-size: 14px; color: #FF8A9B; margin-bottom: 2px; }

.ui-w { background: var(--white); padding: 20px; display: grid; gap: 12px; }
.ui-w__t { font: 800 var(--step-body)/1.2 var(--f-d); }
.ui-w label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: #333; }
.ui-w input { height: 44px; padding: 0 12px; border: 1px solid #CFCFCF; border-radius: 0; background: var(--white); font-size: 16px; color: #111; }
.ui-w__btn { display: grid; place-items: center; height: 48px; background: var(--ink); color: var(--white); font: 700 15px/1 var(--f-d); }
.ui-w__ok { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: #1E7B34; }
.ui-w__ok svg { width: 20px; height: 20px; flex: none; }

/* ---------- MÉTODO ---------- */
.metodo { background: var(--white); padding: var(--sec) 0; }
/* La columna empieza hacia el 30 % del ancho; la gráfica va a su derecha */
.metodo__grid {
  display: grid;
  grid-template-columns: calc(30vw - var(--m) - clamp(24px, 4vw, 72px)) minmax(0, 600px) minmax(0, 1fr);
  column-gap: clamp(24px, 4vw, 72px);
  padding: 0 var(--m);
}
.metodo__col { grid-column: 2; }
.metodo__col .h2 { margin-bottom: 48px; }
.pasos { list-style: none; display: grid; gap: 72px; }
.paso p { line-height: 1.6; }
.paso b { font-weight: 700; }
.ev { margin-top: 20px; }
.ev img { width: 100%; height: auto; background: var(--paper); padding: 12px; }
.ev figcaption { margin-top: 10px; }
.metodo__col .link-arrow { margin-top: 64px; }

.metodo__chart { grid-column: 3; grid-row: 1; position: relative; }
.chart { position: sticky; top: 18svh; height: 64svh; max-height: 560px; width: min(100%, 320px); }
.chart svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.chart__track, .chart__line { fill: none; stroke-width: 4; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.chart__track { stroke: #DDDBD7; }
.chart__line { stroke: var(--red); }
.chart__steps { list-style: none; position: absolute; inset: 0; }
.chart__steps li {
  position: absolute;
  left: calc(var(--x) / 300 * 100%); top: calc(var(--y) / 420 * 100%);
  transform: translate(0, -50%);
  padding-left: 22px; white-space: nowrap;
  font: 700 var(--step-small)/1 var(--f-d); color: var(--ink);
}
.chart__steps li::after {
  content: ''; position: absolute; left: -7px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  border-radius: 50%; background: var(--red);
}
@media (prefers-reduced-motion: no-preference) {
  .motion .chart__line { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .motion .chart__steps li { color: #8A8A8A; transition: color 300ms ease; }
  .motion .chart__steps li::after { background: #CFCDC9; transform: scale(0.7); transition: transform 300ms var(--ease-out), background-color 300ms ease; }
  .motion .chart__steps li.is-on { color: var(--ink); }
  .motion .chart__steps li.is-on::after { background: var(--red); transform: none; }
}

/* ---------- SOFTWARE ---------- */
.soft { background: var(--dark); color: var(--on-dark); }
/* Lámina a la izquierda; a la derecha, titular, pestañas, texto y acciones. En el teléfono, la lámina va entre las pestañas y su texto. */
.soft__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto auto 1fr auto auto; min-height: 88svh;
}
.soft__plate { grid-column: 1; grid-row: 1 / -1; display: flex; align-items: center; padding: 40px; }
.soft__h, .soft__tabs, .soft__panels, .soft__note, .soft__acts { grid-column: 2; padding-right: var(--m); }
.soft__h { padding-top: 56px; }
.soft__panels { margin-top: 32px; }
.soft__note { margin-top: 32px; }
.soft__acts { margin: 24px 0 40px; }
.plate { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; min-width: 0; background: var(--dark-2); }
.plate__item { grid-area: 1 / 1; width: 100%; }
img.plate__item { aspect-ratio: 1; height: 100%; object-fit: cover; object-position: top; }
.js .plate__item:not(.is-on) { position: absolute; top: 0; left: 0; height: 100%; }
.js .plate__item { opacity: 0; visibility: hidden; transition: opacity var(--t-ui) var(--ease-out), visibility 0s linear var(--t-ui); }
.js .plate__item.is-on { opacity: 1; visibility: visible; transition: opacity var(--t-ui) var(--ease-out), visibility 0s; }
html:not(.js) .calc { display: none; }

.tabs { display: flex; gap: 28px; margin-top: 32px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs [role="tab"] {
  position: relative; flex: none;
  background: none; border: 0; padding: 8px 0 12px; cursor: pointer;
  font: 700 var(--step-body)/1 var(--f-d); color: var(--on-dark-muted);
  transition: color var(--t-hover) ease;
}
.tabs [role="tab"]::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--red);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-ui) var(--ease-out);
}
.tabs [role="tab"][aria-selected="true"] { color: var(--on-dark); }
.tabs [role="tab"][aria-selected="true"]::after { transform: none; }
@media (hover: hover) and (pointer: fine) { .tabs [role="tab"]:hover { color: var(--on-dark); } }

.panel h3 { font: 800 var(--step-lead)/1.2 var(--f-d); letter-spacing: -0.02em; margin-bottom: 14px; }
.panel p { max-width: 52ch; color: var(--on-dark); }
.panel ul { margin-top: 18px; padding-left: 1.1em; list-style: square; display: grid; gap: 6px; }
.panel li::marker { color: var(--red); }
.panel__formula { margin-top: 16px; color: var(--on-dark-muted) !important; font-size: var(--step-small); }
html:not(.js) .panel + .panel { margin-top: 40px; }
.soft__note { color: var(--on-dark-muted); font-size: var(--step-small); max-width: 52ch; }
.soft__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.link-arrow--light { color: var(--on-dark); }
@media (hover: hover) and (pointer: fine) { .link-arrow--light:hover { color: var(--white); } }
.cell {
  display: flex; align-items: center; height: 72px; padding: 0 32px;
  font: 700 var(--step-body)/1.2 var(--f-d); text-decoration: none;
  transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.cell:active { transform: scale(0.98); }
.cell--red { background: var(--red); color: var(--white); }
.cell--tone { background: var(--dark-2); color: var(--on-dark); }
@media (hover: hover) and (pointer: fine) {
  .cell--red:hover { background: var(--red-deep); }
  .cell--tone:hover { background: #2A2A2A; }
}

/* Calculadora */
.calc { aspect-ratio: 1; min-width: 0; background: var(--paper); color: var(--ink); padding: clamp(20px, 3vw, 40px); display: flex; flex-direction: column; justify-content: center; gap: 24px; }
.calc__t { font: 800 var(--step-lead)/1.2 var(--f-d); letter-spacing: -0.02em; }
.calc__in { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.calc__in label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: #333; }
.calc__f { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; }
.calc__f input {
  width: 100%; min-width: 0; height: 48px; padding: 0 12px;
  border: 1px solid #C9C9C9; border-radius: 0; background: var(--white);
  font: 600 var(--step-lead)/1 var(--f-t); font-variant-numeric: tabular-nums; color: var(--ink);
}
.calc__f input:focus-visible { outline: 3px solid var(--red); outline-offset: 0; border-color: var(--red); }
.calc__out { display: grid; gap: 10px; }
.calc__out p { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: var(--step-small); }
.calc__out b { font: 800 var(--step-lead)/1 var(--f-d); font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc__big { padding: 14px 0; }
.calc__big b { font-size: var(--step-head); color: var(--red); letter-spacing: -0.03em; }

/* ---------- CLIENTES ---------- */
.fit { background: var(--paper); padding: var(--sec) 0; }
.fit__h { font: 800 var(--step-head)/0.98 var(--f-d); letter-spacing: -0.035em; text-indent: 9vw; max-width: 22ch; }
.fit__h span { display: block; }
.fit__grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px); margin-top: 96px; align-items: start;
}
.fit__pic { grid-column: 1 / 5; grid-row: 1 / 3; align-self: end; width: min(100%, 22vw); }
.fit__pic figcaption { margin-top: 14px; max-width: 30ch; }
.fit__word { grid-column: 5; grid-row: 1; font-size: var(--step-small); font-weight: 600; padding-top: 4px; }
.fit__table { grid-column: 6 / 13; grid-row: 1; width: 100%; border-collapse: collapse; font-size: var(--step-body); }
.fit__table th, .fit__table td { padding: 0 0 22px; text-align: left; vertical-align: baseline; font-weight: 400; }
.fit__table th { width: 14%; color: var(--muted); }
.fit__table td:nth-child(2) { font-weight: 600; width: 38%; }
.fit__table th { width: 10%; }
.fit__table td:last-child { text-align: right; color: var(--muted); }
.fit__no th, .fit__no td { padding-top: 22px; }
.fit__no th { color: var(--red); font-weight: 600; }
.fit__table s { text-decoration: none; position: relative; }
.fit__table s::after {
  content: ''; position: absolute; left: -2px; right: -2px; top: 54%; height: 2px; background: var(--red);
}
@media (prefers-reduced-motion: no-preference) {
  .motion .fit__table s::after { transform: scaleX(0); transform-origin: left; transition: transform 700ms var(--ease-in-out) 500ms; }
  .motion .fit__table.is-in s::after { transform: none; }
}
.fit__foot { grid-column: 6 / 13; grid-row: 2; margin-top: 40px; display: grid; gap: 24px; justify-items: start; }
.fit__foot p { max-width: 50ch; }

/* ---------- NOSOTROS ---------- */
.about { background: var(--white); padding: calc(var(--sec) - 20px) 0; }
.about__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); }
.about__facts { grid-column: 1 / 3; grid-row: 1; display: grid; gap: 28px; align-content: start; padding-top: 8px; font-size: var(--step-small); line-height: 1.5; }
.about__facts dt { font-weight: 700; }
.about__facts a { text-decoration-color: var(--red); text-underline-offset: 4px; }
.about__body { grid-column: 3 / 13; }
.about__body .h2 { margin-bottom: 44px; }
.about__body .h2 span, .fit__h span { display: block; }
.about__p { font-size: var(--step-lead); line-height: 1.38; max-width: 62ch; }
.about__p + .about__p { margin-top: 1.38em; }
.about__p--soft { color: var(--muted); }
.about__cap {
  float: left; width: calc(1.38em * 3); height: calc(1.38em * 3);
  margin: 0.32em 0.5em 0 0;
  object-fit: cover; object-position: 48% 12%;
  background: var(--dark);
}

/* ---------- CIERRE: una palabra es el botón ---------- */
.go { background: var(--red); }
.go__link {
  display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr auto;
  min-height: 62svh; padding: 22px var(--m) 24px;
  background: var(--red); color: var(--white); text-decoration: none;
  overflow: clip;
}
.go__text { grid-column: 1; grid-row: 1; max-width: 46ch; font-size: var(--step-body); line-height: 1.5; }
.go__arrow { grid-column: 2; grid-row: 1; width: 48px; height: 48px; }
.go__word {
  grid-column: 1 / -1; grid-row: 3; display: block;
  font: 900 15.6vw/0.8 var(--f-d); letter-spacing: -0.05em; text-transform: uppercase;
  white-space: nowrap; margin-left: -0.05em; margin-bottom: -0.02em;
}
.go__link:hover, .go__link:focus-visible { background: var(--ink); color: var(--white); }
.go__link:hover .go__word, .go__link:focus-visible .go__word { color: var(--red); }
.go__link:focus-visible { outline: 3px solid var(--ink); outline-offset: -6px; }
@media (prefers-reduced-motion: no-preference) {
  .motion .go__word { transform: translateY(100%); transition: transform 1000ms var(--ease-expo); }
  .motion .go.is-in .go__word { transform: none; }
  .motion .go__arrow { transition: transform 300ms var(--ease-out); }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .go__link:hover .go__arrow { transform: translate(4px, -4px); }
}

/* ---------- PIE ---------- */
.foot {
  position: relative;
  display: grid; grid-template-rows: auto auto auto;
  padding: 40px var(--m) 20px;
  background: var(--dark); color: var(--on-dark-muted);
  font-size: var(--step-small); line-height: 1.6;
}
.foot__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; align-items: start; }
.foot__cols > * { display: flex; flex-direction: column; gap: 4px; }
.foot__h { color: var(--on-dark); font-weight: 600; }
.foot a { color: var(--on-dark-muted); text-decoration: none; transition: color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) { .foot a:hover { color: var(--white); } }
.foot__word {
  grid-row: 2; align-self: end; margin-top: clamp(72px, 9vw, 136px);
  font: 900 11.7vw/0.8 var(--f-d); letter-spacing: -0.05em; text-transform: uppercase;
  white-space: nowrap; margin-left: -0.04em; margin-bottom: 20px;
  transform-origin: 0% 100%;
}
.foot__word span:first-child { color: var(--on-dark); }
.foot__word span:last-child { color: var(--red); }
.foot__legal { grid-row: 3; display: flex; justify-content: space-between; gap: 16px; font-size: var(--step-small); }

/* ---------- Tableta ---------- */
@media (max-width: 1100px) {
  .foot__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .foot__cols a { overflow-wrap: anywhere; }
  .soft__grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; min-height: 0; padding: 0 var(--m) 48px; }
  .soft__plate, .soft__h, .soft__tabs, .soft__panels, .soft__note, .soft__acts { grid-column: 1; grid-row: auto; padding-right: 0; }
  .soft__h { padding-top: 64px; }
  .soft__plate { padding: 24px 0 0; }
  .soft__panels { margin-top: 28px; }
  .canales__wrap { padding-left: var(--m); }
}
/* La gráfica del método necesita sitio a la derecha de la columna */
@media (max-width: 1320px) {
  .metodo__grid { display: block; }
  .metodo__col { max-width: 640px; margin: 0 auto; }
  .metodo__chart { display: none; }
}

/* ---------- Portada en tableta y teléfono: texto arriba, el toro sentado sobre MEDIA ---------- */
@media (max-width: 1200px) {
  .hero { align-items: flex-start; min-height: 600px; }
  .hero__word { font-size: 19vw; }
  .hero__line--1 { margin-top: calc(88px - 0.13em); }
  .hero__line--2 { margin-bottom: calc(20px - 0.07em); }
  .hero__mid { margin: calc(88px + 16.2vw + 20px) var(--m) 0; max-width: none; gap: 18px; }
  .hero__lead { max-width: 36ch; }
  .hero__bull { right: var(--m); bottom: calc(26px + 14vw); height: min(46svh, calc(100svh - 470px)); min-height: 220px; max-height: none; }
}

/* ---------- Teléfono ---------- */
@media (max-width: 760px) {
  .bar__links, .bar__cta { display: none; }
  .bar__menu { display: block; margin-left: auto; }
  .bar__call { display: inline-flex; margin-left: auto; }
  .bar__call + .bar__menu { margin-left: 0; }

  .hero__top { left: var(--m); right: var(--m); top: 16px; justify-content: space-between; }
  .hero__nav { display: none; }
  .hero__mark { order: 0; }
  .hero__mark img { width: 40px; }
  .hero__menu { display: block; }
  .hero__mid .btn { width: 100%; }
  .hero__lead { max-width: none; }
  .hero__bull { right: 4px; }

  .intro { padding: 88px 0; }
  .intro__grid { display: block; }
  .intro__p { text-indent: 0; }
  .intro__pic { display: grid; grid-template-columns: minmax(0, 1fr) 62%; column-gap: 16px; margin: 48px 0 0; }
  .intro__pic .frame { grid-column: 2; grid-row: 1; }
  .intro__pic figcaption { grid-column: 1; grid-row: 1; align-self: end; margin: 0; }

  .escena__a { font-size: 11vw; }

  .canales { padding: 88px 0; }
  .canales__head { margin-bottom: 48px; }
  .mod { grid-template-columns: minmax(0, 1fr); row-gap: 18px; }
  .mod + .mod { margin-top: 64px; }
  .mod__panel { padding: 16px; }

  .metodo { padding: 88px 0; }
  .metodo__grid { display: block; padding: 0 var(--m); }
  .metodo__chart { display: none; }
  .pasos { gap: 56px; }

  .tabs { gap: 22px; margin-top: 24px; }
  .soft__acts .cell { width: 100%; justify-content: center; height: 60px; }
  .calc { aspect-ratio: auto; }
  .calc__in { gap: 12px; }

  .fit { padding: 88px 0; }
  .fit__h { text-indent: 0; }
  .fit__grid { display: block; margin-top: 48px; }
  .fit__word { display: none; }
  .fit__table { font-size: 1rem; }
  .fit__table tr { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; padding-bottom: 18px; }
  .fit__table th, .fit__table td { padding: 0; width: auto !important; }
  .fit__table td:last-child { grid-column: 2; text-align: left; font-size: var(--step-small); }
  .fit__no { padding-top: 18px; }
  .fit__no th, .fit__no td { padding-top: 0; }
  .fit__foot { margin-top: 32px; }
  .fit__pic { width: 60%; margin: 48px 0 0 auto; }

  .about { padding: 88px 0; }
  .about__grid { display: flex; flex-direction: column-reverse; gap: 48px; }
  .about__facts { flex-direction: row; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .about__p { line-height: 1.32; }
  .about__cap { width: calc(1.3em * 4); height: calc(1.3em * 4); }

  .go__link { min-height: 46svh; padding: 20px var(--m); }
  .go__arrow { width: 32px; height: 32px; }
  .go__word { font-size: 16.2vw; }

  .foot__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .foot__cols a { overflow-wrap: anywhere; }
  .foot__word { font-size: 11vw; }
  .foot__legal { flex-wrap: wrap; }
}

/* ---------- Movimiento reducido: la página terminada, sin viajes ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .cell { transition: background-color var(--t-hover) ease; }
  .btn:active, .cell:active { transform: none; }
}

/* ---------- Añadidos tras la crítica de Impeccable ---------- */
@media (min-width: 761px) { .bar__call { display: none; } }
.hero__note { font-size: var(--step-small); color: var(--on-dark-muted); margin-top: -12px; }

/* Fragmentos del software en el método (ejemplo de la panadería de prueba) */
.evui { background: var(--white); padding: 18px 20px; display: grid; gap: 12px; font-size: var(--step-small); color: #1A1A1A; }
.ev .evui { border: 12px solid var(--paper); }
.evui__t { font: 800 1rem/1.2 var(--f-d); letter-spacing: -0.01em; }
.evbar { display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.evbar i { display: block; height: 10px; width: var(--w); background: var(--red); transform-origin: left; }
.evbar b { font-variant-numeric: tabular-nums; }
.evui--dark { background: var(--dark); color: var(--on-dark); grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 12px; }
.evkpi { background: var(--dark-2); padding: 12px; display: grid; gap: 4px; line-height: 1.3; color: var(--on-dark-muted); }
.evkpi b { font: 800 1.375rem/1 var(--f-d); color: var(--white); letter-spacing: -0.02em; }
.evkpi--red { background: var(--red); color: var(--white); }
.evtodo { list-style: none; display: grid; gap: 10px; }
.evtodo li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; line-height: 1.4; }
.evtodo li::before { content: ''; width: 18px; height: 18px; margin-top: 1px; border: 2px solid #B9B7B3; background: var(--white); }
.evtodo li.is-done::before { border-color: var(--red); background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5 8.5 14 15 6.5' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.evtodo li.is-done { color: #6A6865; text-decoration: line-through; text-decoration-color: rgba(0, 0, 0, 0.35); }
@media (prefers-reduced-motion: no-preference) {
  .motion .paso:not(.is-in) .evbar i { transform: scaleX(0); }
  .motion .evbar i { transition: transform 900ms var(--ease-expo) 350ms; }
}
@media (max-width: 760px) {
  .evbar { grid-template-columns: minmax(0, 1fr) auto; }
  .evbar i { grid-column: 1 / -1; grid-row: 2; }
  .evui--dark { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ======================================================================
   MÓVIL, SEGUNDA VUELTA (2026-11-03) · skill mobile-native de Emil Kowalski
   ====================================================================== */

/* Base táctil: sin destello al tocar, toque inmediato, sin seleccionar el texto de los botones */
html { -webkit-tap-highlight-color: transparent; }
a, button, [role="tab"], label { touch-action: manipulation; }
.btn, .cell, .dock a, [role="tab"], .bar__menu, .hero__menu, .menu__close {
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
.bar__in { padding-left: max(var(--m), env(safe-area-inset-left, 0px)); padding-right: max(var(--m), env(safe-area-inset-right, 0px)); }

.canales__track { display: contents; }
.canales__hint, .carrusel-pasos, .dock { display: none; }

/* Método en tableta y teléfono: la línea roja de crecimiento, en vertical junto a los pasos */
@media (max-width: 1320px) {
  .pasos { position: relative; padding-left: 36px; }
  .pasos::before, .pasos::after { content: ''; position: absolute; left: 7px; top: 10px; bottom: 0; width: 3px; }
  .pasos::before { background: #E2E0DC; }
  .pasos::after { background: var(--red); transform-origin: top; transform: scaleY(var(--p, 1)); }
  .paso { position: relative; }
  .paso::before {
    content: ''; position: absolute; left: -36px; top: 5px; z-index: 1;
    width: 17px; height: 17px; border-radius: 50%;
    background: var(--red);
    transition: background-color 250ms ease, transform 250ms var(--ease-out);
  }
  .linea-viva .paso:not(.is-on)::before { background: #CFCDC9; transform: scale(0.8); }
}

@media (max-width: 760px) {
  /* Portada: el toro entra en el flujo, entre el texto y MEDIA; así nunca pisa nada */
  .hero {
    height: auto; min-height: 100svh;
    flex-direction: column; align-items: stretch;
    padding: calc(88px + 16.2vw + 18px) 0 calc(20px + 15.4vw);
  }
  .hero__mid { order: 1; margin: 0 var(--m); }
  .hero__film { order: 2; position: relative; inset: auto; flex: 1 1 0; min-height: 250px; margin-top: 10px; }
  .hero__bull { position: absolute; right: var(--m); bottom: 0; top: auto; height: 100%; width: auto; max-width: calc(100% - 2 * var(--m)); min-height: 0; max-height: none; object-fit: contain; object-position: right bottom; }
  .hero__note { margin-top: -8px; }

  /* Barra inferior: llamar y agendar con el pulgar */
  .dock {
    display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    padding: 10px max(12px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
    background: var(--dark);
  }
  .js .dock { transform: translateY(110%); transition: transform var(--t-ui) var(--ease-out); }
  .js .dock.is-on { transform: none; }
  .dock a {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 52px; padding: 0 18px;
    font: 700 1rem/1.1 var(--f-d); color: var(--white); text-decoration: none; text-align: center;
    transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
  }
  .dock a:active { transform: scale(0.97); }
  .dock svg { width: 20px; height: 20px; flex: none; }
  .dock__call { background: var(--dark-2); }
  .dock__go { background: var(--red); }
  .escena__copy { bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
  .foot { padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }

  /* Intro: titular grande, texto corto de leer, la venta en grande */
  .intro { padding: 72px 0 64px; }
  .intro__h { font: 900 var(--step-head)/1.02 var(--f-d); letter-spacing: -0.035em; margin-bottom: 18px; }
  .intro__p { font-size: var(--step-body); line-height: 1.6; }
  .intro__pic { display: block; margin: 36px 0 0; }
  .intro__pic .frame { aspect-ratio: 4 / 5; }
  .intro__pic figcaption { margin-top: 12px; }

  /* Canales: carrusel que se desliza con el dedo (scroll nativo con imán) */
  .canales { padding: 72px 0; }
  .canales__wrap { padding-left: 0; padding-right: 0; }
  .canales__head { padding: 0 var(--m); margin-bottom: 28px; }
  .canales__hint { display: block; margin-top: 14px; font-size: var(--step-small); font-weight: 600; color: var(--muted); }
  .canales__hint::after { content: ' →'; color: var(--red); }
  .canales__track {
    display: flex; gap: 12px;
    overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 var(--m); padding: 4px 0 8px; overscroll-behavior-x: contain; scrollbar-width: none;
  }
  .canales__track::-webkit-scrollbar { display: none; }
  .canales__track:focus-visible { outline-offset: -3px; }
  .canales__track .mod {
    flex: 0 0 88%; scroll-snap-align: start; margin: 0;
    display: flex; flex-direction: column; row-gap: 0;
    background: var(--white);
  }
  .canales__track .mod + .mod { margin-top: 0; }
  .canales__track .mod__panel { padding: 14px; min-height: 330px; display: flex; flex-direction: column; justify-content: center; }
  .canales__track .ui-ig img { aspect-ratio: 2 / 1; }
  .canales__track .mod__text { padding: 18px 18px 22px; }
  .canales__track .mod__text h3 { font-size: 1.25rem; margin-bottom: 10px; }
  .canales__track .mod__text p { font-size: 1rem; }
  .carrusel-pasos { display: flex; gap: 6px; padding: 18px var(--m) 0; }
  .carrusel-pasos i { flex: 1; height: 3px; background: #D8D6D2; transition: background-color 200ms ease; }
  .carrusel-pasos i.is-on { background: var(--red); }

  /* Método */
  .metodo { padding: 72px 0; }
  .metodo__col .h2 { margin-bottom: 36px; }
  .pasos { gap: 48px; }

  /* Clientes: la foto en grande */
  .fit { padding: 72px 0; }
  .fit__pic { width: 100%; margin: 40px 0 0; }
  .fit__pic .frame { aspect-ratio: 1; }
  .fit__table { margin-top: 36px; }

  /* Nosotros: menos muro de texto, datos en filas legibles */
  .about { padding: 72px 0; }
  .about__p { font-size: var(--step-body); line-height: 1.6; }
  .about__cap { width: 6.4em; height: 6.4em; margin-top: 0.3em; }
  .about__facts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; font-size: var(--step-small); }
  .about__facts > div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 12px; padding: 12px 14px; background: var(--paper); }
}

/* ---------- Pie (2026-11-03): en el ordenador la dirección va en dos líneas ---------- */
.foot__dir span { display: block; }

/* Pie del teléfono: primero cómo contactar, después la web, el nombre y lo legal. Nada de listas apiladas. */
@media (max-width: 760px) {
  .foot { display: flex; flex-direction: column; padding-top: 48px; }
  .foot__cols { display: contents; }
  .foot__con { order: 1; gap: 6px; }
  .foot__dir { order: 2; margin-top: 22px; }
  .foot__nav { order: 3; margin-top: 30px; }
  .foot__word { order: 4; }
  .foot__leg { order: 5; }
  .foot__legal { order: 6; }
  .foot__dir .foot__h, .foot__nav .foot__h, .foot__leg .foot__h { display: none; }
  .foot__con .foot__h { font-size: var(--step-small); color: var(--on-dark-muted); }
  .foot .foot__tel { font: 800 clamp(1.75rem, 8.4vw, 2.5rem)/1.1 var(--f-d); letter-spacing: -0.02em; color: var(--white); }
  .foot .foot__mail { font-size: 1rem; color: var(--white); text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 4px; overflow-wrap: anywhere; }
  .foot .foot__cta {
    display: flex; align-items: center; justify-content: center; min-height: 52px; margin-top: 18px;
    background: var(--red); color: var(--white); font: 700 1rem/1 var(--f-d); text-decoration: none;
    transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
  }
  .foot .foot__cta:active { transform: scale(0.97); }
  .foot__dir span { display: inline; }
  .foot__nav, .foot__leg { flex-direction: row; flex-wrap: wrap; gap: 0 18px; }
  .foot .foot__nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 1rem; color: var(--on-dark); }
  .foot__leg { gap: 0 16px; }
  .foot .foot__leg a { display: inline-flex; align-items: center; min-height: 40px; }
  .foot__word { display: block; align-self: flex-start; font-size: calc((100vw - 2 * var(--m)) / 7.95); line-height: 0.82; margin: 40px 0 12px -0.05em; }
  .foot__legal { flex-direction: column; align-items: flex-start; gap: 4px; margin-top: 8px; }
}
