/* =========================================================
   AutomatizadosAI — Stylesheet
   Rediseño 2026 · negro + naranja de marca

   Se conservan los nombres de clase de la versión anterior a
   propósito: el blog y las páginas legales siguen funcionando
   sin tocar su HTML.
   ========================================================= */

/* -----------------------------
   1. Tokens
   ----------------------------- */
:root {
  /* Fondos. Tres niveles y para de contar: más variantes solo
     producen secciones que se distinguen por accidente. */
  --bg-0: #0a0a0b;
  --bg-1: #0f0f11;
  --bg-2: #141418;
  --bg-3: #1b1b20;
  --surface: rgba(255, 255, 255, 0.024);
  --surface-strong: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  /* Marca */
  --brand-black: #141418;
  --orange-300: #ffa46b;
  --orange-400: #ff8842;
  --orange-500: #ff6b1a;
  --orange-600: #e55a0f;
  --orange-700: #c2410c;
  /* Alias heredados: el blog y las legales aún nombran cyan/purple */
  --cyan-400: var(--orange-400);
  --cyan-500: var(--orange-500);
  --cyan-600: var(--orange-600);
  --purple-400: var(--orange-300);
  --purple-500: var(--orange-600);
  --purple-600: var(--orange-700);
  --gradient: linear-gradient(100deg, #ffa46b 0%, #ff6b1a 55%, #e55a0f 100%);
  --gradient-soft: linear-gradient(160deg, rgba(255, 136, 66, 0.14), rgba(255, 107, 26, 0.04));

  /* Texto. --text-3 sube de #64748b a #7d8da4: el anterior no
     llegaba a 4.5:1 sobre el fondo y se leía mal en móvil. */
  --text-0: #f7f8fa;
  --text-1: #dfe3ea;
  --text-2: #9aa5b6;
  --text-3: #7d8da4;

  --success: #22c98d;
  --warning: #f5a524;
  --danger: #f2555a;

  /* Espaciado */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;
  /* Alto de sección fluido: 72px en móvil, 140px en escritorio */
  --s-section: clamp(72px, 9vw, 140px);

  /* Radios */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 26px;
  --r-pill: 999px;

  /* Sombras en dos capas: una sola sombra dura delata la
     plantilla barata. */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 2px 4px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .35);
  --shadow-lg: 0 4px 8px rgba(0, 0, 0, .3), 0 32px 72px rgba(0, 0, 0, .5);
  --glow-orange: 0 0 0 1px rgba(255, 107, 26, .25), 0 18px 48px rgba(255, 107, 26, .14);
  --glow-cyan: var(--glow-orange);
  --glow-purple: var(--glow-orange);

  /* Tipografía */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Courier New", monospace;

  --container: 1180px;
  --container-narrow: 760px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* -----------------------------
   2. Base
   ----------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg-0);
  color: var(--text-1);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-0);
  margin: 0 0 var(--s-4);
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

/* Escala fluida: un salto por nivel, sin media queries repartidas
   por todo el archivo. */
h1 { font-size: clamp(2.35rem, 1.4rem + 3.9vw, 4.25rem); line-height: 1.04; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.85rem, 1.2rem + 2.4vw, 3rem); }
h3 { font-size: clamp(1.15rem, 1.02rem + 0.5vw, 1.4rem); letter-spacing: -0.015em; }
h4 { font-size: 0.95rem; }

p { margin: 0 0 var(--s-4); }
p:last-child { margin-bottom: 0; }

a { color: var(--orange-400); text-decoration: none; transition: color .18s var(--ease); }
a:hover { color: var(--orange-300); }

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

strong { color: var(--text-0); font-weight: 600; }

::selection { background: rgba(255, 107, 26, .3); color: #fff; }

/* Foco visible en todo lo interactivo. Antes no había ninguno:
   con teclado la web era prácticamente inutilizable. */
:focus-visible {
  outline: 2px solid var(--orange-400);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}
:focus:not(:focus-visible) { outline: none; }

/* Salto al contenido para lectores de pantalla y teclado */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 10px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--orange-500);
  color: #1a0d02;
  border-radius: var(--r-sm);
  font-weight: 600;
}
.skip-link:focus {
  left: 50%;
  transform: translateX(-50%);
  color: #1a0d02;
}

/* -----------------------------
   3. Layout
   ----------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}
.container-narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--s-section); position: relative; }

/* Filete de separación en lugar de alternar fondos: mantiene el
   negro continuo y marca el ritmo sin ensuciar. */
.section + .section::before,
.cta-final::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 20%, var(--border) 80%, transparent);
}

.section__header {
  max-width: 46rem;
  margin: 0 auto var(--s-8);
  text-align: center;
}
.section__header p {
  color: var(--text-2);
  font-size: clamp(1rem, .96rem + .2vw, 1.1rem);
  max-width: 42rem;
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  margin-bottom: var(--s-4);
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--orange-400);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: .6;
}

.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.grid { display: grid; gap: var(--s-5); }
/* Dos columnas fijas, no auto-fit: con auto-fit los 4 pasos de la
   metodología caben en 3 y dejan uno huérfano en la fila de abajo. */
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr)); }

.center { text-align: center; }
.mt-7 { margin-top: var(--s-7); }
.hl { color: var(--orange-400); }
.section__header--flush { margin-bottom: 0; }

/* -----------------------------
   4. Botones
   ----------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--font-sans);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .22s var(--ease),
              background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}
.btn--lg { padding: 16px 30px; font-size: 1.02rem; }
.btn--block { width: 100%; margin-top: var(--s-2); }

.btn--primary {
  background: var(--gradient);
  color: #1a0d02;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 10px 28px rgba(255, 107, 26, .26);
}
.btn--primary:hover {
  color: #1a0d02;
  transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .3) inset, 0 16px 40px rgba(255, 107, 26, .38);
}
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text-1);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  color: var(--text-0);
  border-color: var(--border-strong);
  background: var(--surface-strong);
  transform: translateY(-2px);
}

/* -----------------------------
   5. Navegación
   ----------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 11, .72);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.nav.is-stuck {
  border-bottom-color: var(--border);
  background: rgba(10, 10, 11, .92);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-0);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.brand:hover { color: var(--text-0); }
/* El logo es un PNG con transparencia y la mitad de la «A» es
   negra: sobre el fondo oscuro desaparecería. Va sobre una teja
   blanca, que además es como se ve hoy en la web publicada. */
.brand__logo {
  width: 34px;
  height: 34px;
  padding: 3px;
  background: #fff;
  border-radius: 9px;
  object-fit: contain;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--s-1);
}
.nav__links a {
  padding: 8px 12px;
  border-radius: var(--r-sm);
  color: var(--text-2);
  font-size: .92rem;
  font-weight: 500;
  transition: color .18s var(--ease), background-color .18s var(--ease);
}
.nav__links a:hover { color: var(--text-0); background: var(--surface-strong); }

.nav__cta { display: flex; align-items: center; gap: var(--s-3); }
.nav__cta .btn { padding: 10px 18px; font-size: .9rem; }

.nav__burger {
  display: none;
  padding: 9px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text-1);
  cursor: pointer;
}

/* -----------------------------
   6. Hero
   ----------------------------- */
.hero {
  position: relative;
  /* Abajo menos aire que en una sección normal: la barra de cifras
     ya hace de cierre y, con --s-section, el hueco hasta la sección
     siguiente sumaba casi 300px de negro vacío. */
  padding-block: clamp(48px, 6vw, 96px) clamp(56px, 5vw, 88px);
  overflow: hidden;
}
/* Halo naranja detrás del titular. Muy tenue a propósito: si se
   nota el degradado, estorba a la lectura. */
.hero::before {
  content: "";
  position: absolute;
  top: -32%;
  left: 50%;
  width: min(1100px, 135vw);
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255, 107, 26, .13) 0%, rgba(255, 107, 26, .04) 42%, transparent 66%);
  pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; }

.hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(40px, 5vw, 76px);
  align-items: center;
}

/* min-width:0 para que un texto largo no reviente la columna de la rejilla */
.hero__content { min-width: 0; }

.hero__urgency {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--s-5);
  padding: 8px 16px 8px 13px;
  background: rgba(255, 107, 26, .07);
  border: 1px solid rgba(255, 107, 26, .22);
  border-radius: var(--r-pill);
  color: var(--orange-300);
  font-size: .84rem;
  font-weight: 500;
}
.dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange-500);
  box-shadow: 0 0 0 0 rgba(255, 107, 26, .6);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 9px rgba(255, 107, 26, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 107, 26, 0); }
}

.hero__title { margin-bottom: var(--s-5); }

.hero__subtitle {
  max-width: 34rem;
  margin-bottom: var(--s-6);
  color: var(--text-2);
  font-size: clamp(1.02rem, .97rem + .3vw, 1.18rem);
  line-height: 1.62;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-bottom: var(--s-5);
}

/* Micro-prueba bajo los botones: sustituye al contador falso */
.hero__proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2) var(--s-5);
  color: var(--text-3);
  font-size: .84rem;
}
.hero__proof span { display: inline-flex; align-items: center; gap: 7px; }
.hero__proof svg { width: 15px; height: 15px; color: var(--orange-400); flex: none; }

/* Barra de credibilidad bajo el hero */
.hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
  gap: 1px;
  margin-top: clamp(48px, 6vw, 84px);
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.stat {
  padding: var(--s-5) var(--s-4);
  background: var(--bg-0);
  text-align: center;
}
.stat__num {
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 1.3rem + 1.1vw, 2.1rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat__label {
  margin-top: 6px;
  color: var(--text-3);
  font-size: .82rem;
  line-height: 1.4;
}

/* -----------------------------
   7. Hero · maqueta de chat
   ----------------------------- */
.hero__visual { position: relative; }

.chat-mockup {
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.chat-mockup__header {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-4) var(--s-5);
  background: rgba(255, 255, 255, .03);
  border-bottom: 1px solid var(--border);
}
.chat-mockup__avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gradient);
  color: #1a0d02;
  font-family: var(--font-display);
  font-weight: 700;
}
.chat-mockup__name { color: var(--text-0); font-size: .9rem; font-weight: 600; }
.chat-mockup__status {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--success);
  font-size: .76rem;
}
.chat-mockup__status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.chat-mockup__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: var(--s-5);
}
.msg {
  max-width: 84%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: .88rem;
  line-height: 1.5;
}
.msg--in {
  align-self: flex-start;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-bottom-left-radius: 5px;
  color: var(--text-1);
}
.msg--out {
  align-self: flex-end;
  background: var(--gradient);
  border-bottom-right-radius: 5px;
  color: #1a0d02;
  font-weight: 500;
}

.float-stat {
  position: absolute;
  z-index: 2;
  padding: 12px 16px;
  background: rgba(20, 20, 24, .84);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  animation: float 6s ease-in-out infinite;
}
.float-stat__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--orange-400);
  line-height: 1.2;
}
.float-stat__lbl { display: block; color: var(--text-3); font-size: .72rem; }
/* Las tres tarjetas van pegadas al borde de la maqueta, pero a la
   altura de los huecos que dejan los mensajes. Arriba del todo
   tapaban el avatar y el «en línea» de la cabecera. */
.float-stat--1 { top: 30%; left: -6%; }
.float-stat--2 { top: 46%; right: -5%; animation-delay: -2s; }
.float-stat--3 { bottom: 4%; left: -3%; animation-delay: -4s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* -----------------------------
   7 bis. Banda de marcas
   ----------------------------- */
.marcas-banda {
  padding-block: clamp(40px, 4vw, 64px);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.marcas-banda__titulo {
  margin-bottom: var(--s-5);
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-align: center;
}

.marcas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  align-items: center;
  justify-content: center;
}
/* Cada marca sobre teja blanca. Los cinco logotipos vienen con colores y
   fondos distintos —uno es verde oscuro— y sobre negro unos brillaban y
   otros desaparecían. Con un fondo común todos leen igual de bien. */
.marca {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 84px;
  min-width: 168px;
  padding: 0 26px;
  background: #fff;
  border-radius: 16px;
  /* Desaturado en reposo para que la banda no compita con el naranja de
     la marca propia; al pasar por encima recupera su color. */
  filter: grayscale(.25);
  opacity: .9;
  transition: transform .22s var(--ease), filter .22s var(--ease), opacity .22s var(--ease);
}
.marca:hover {
  filter: none;
  opacity: 1;
  transform: translateY(-3px);
}

/* Altura por tipo de marca, no una sola para todas: a igual altura en
   píxeles, un emblema cuadrado se ve mucho más pequeño que un logotipo
   horizontal, y la fila queda descompensada. */
.marca__logo { height: 30px; width: auto; }
.marca--emblema { min-width: 116px; padding-inline: 18px; }
.marca--emblema .marca__logo { height: 60px; }
.marca__icono { height: 30px; width: auto; }

.marca span {
  color: #141418;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
/* MIKOLOFIT no tiene logotipo: su marca es el nombre. Se compone como
   un logotipo tipográfico para que no cante al lado de los demás. */
.marca__nombre {
  font-size: 1.02rem !important;
  letter-spacing: 0.02em !important;
}

/* -----------------------------
   8. Tarjetas
   ----------------------------- */
.card {
  position: relative;
  padding: var(--s-6);
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .012));
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
/* Brillo naranja en el borde superior al pasar por encima. Es la
   única recompensa del hover: mover la tarjeta y además cambiarle
   el fondo y la sombra es ruido. */
.card::after {
  content: "";
  position: absolute;
  inset-inline: 18%;
  top: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--orange-500), transparent);
  opacity: 0;
  transition: opacity .25s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}
.card:hover::after { opacity: 1; }

.card__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: var(--s-5);
  background: var(--gradient-soft);
  border: 1px solid rgba(255, 107, 26, .2);
  border-radius: var(--r-md);
  font-size: 1.35rem;
  line-height: 1;
}
.card p { color: var(--text-2); font-size: .95rem; margin-bottom: 0; }

/* -----------------------------
   9. Antes / después
   ----------------------------- */
.compare {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: var(--s-5);
}
.compare__card {
  padding: var(--s-6);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.compare__card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: var(--s-4);
  margin-bottom: var(--s-4);
  border-bottom: 1px solid var(--border);
}
.compare__card--bad {
  background: linear-gradient(180deg, rgba(242, 85, 90, .05), transparent 60%);
}
.compare__card--good {
  background: linear-gradient(180deg, rgba(255, 107, 26, .07), transparent 60%);
  border-color: rgba(255, 107, 26, .22);
}
.compare__card ul { display: grid; gap: var(--s-3); }
.compare__card li {
  display: flex;
  gap: var(--s-3);
  align-items: flex-start;
  color: var(--text-2);
  font-size: .95rem;
  line-height: 1.55;
}
.compare__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 21px;
  height: 21px;
  margin-top: 3px;
  border-radius: 50%;
  font-size: .68rem;
  font-weight: 700;
}
.icon--x { background: rgba(242, 85, 90, .14); color: var(--danger); }
.icon--ok { background: rgba(34, 201, 141, .14); color: var(--success); }

/* -----------------------------
   10. Casos
   ----------------------------- */
.case {
  display: flex;
  flex-direction: column;
  padding: var(--s-6);
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .012));
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.case:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}
.case__tag {
  align-self: flex-start;
  margin-bottom: var(--s-4);
  padding: 5px 12px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  color: var(--text-2);
  font-size: .76rem;
  font-weight: 500;
}
.case h3 { margin-bottom: var(--s-5); font-size: 1.14rem; line-height: 1.35; }

.metrics {
  display: grid;
  gap: var(--s-3);
  margin-bottom: var(--s-5);
}
.metric {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: var(--s-3);
  padding: 12px 14px;
  background: rgba(0, 0, 0, .28);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.metric__label {
  color: var(--text-3);
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  line-height: 1.3;
}
.metric__before {
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: .84rem;
  text-decoration: line-through;
  text-decoration-color: rgba(242, 85, 90, .6);
}
/* La flecha se dibuja aquí y no en el HTML: es decoración, no
   contenido, y así no la lee el lector de pantalla. */
.metric__before::after {
  content: "→";
  margin-left: 10px;
  color: var(--text-3);
  text-decoration: none;
  display: inline-block;
}
.metric__after {
  color: var(--orange-400);
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
}
.case__quote {
  margin-top: auto;
  padding-top: var(--s-4);
  border-top: 1px solid var(--border);
  color: var(--text-2);
  font-size: .9rem;
  font-style: italic;
  margin-bottom: 0;
}

/* -----------------------------
   11. Metodología
   ----------------------------- */
.steps { counter-reset: paso; }
.step {
  position: relative;
  counter-increment: paso;
  padding: var(--s-6) var(--s-6) var(--s-6) calc(var(--s-6) + 58px);
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .012));
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.step::before {
  content: counter(paso, decimal-leading-zero);
  position: absolute;
  left: var(--s-6);
  top: var(--s-6);
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.step:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.step p { color: var(--text-2); font-size: .95rem; margin-bottom: 0; }

/* -----------------------------
   11 bis. Trabajo real
   ----------------------------- */
.proyecto {
  display: flex;
  flex-direction: column;
  padding: var(--s-6);
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .012));
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.proyecto:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

/* Altura mínima fija: una tarjeta encabeza con un logotipo y la otra con
   el nombre escrito, y sin esto el filete de separación queda a distinta
   altura en cada una y se nota. */
.proyecto__marca {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  min-height: 84px;
  padding-bottom: var(--s-5);
  margin-bottom: var(--s-5);
  border-bottom: 1px solid var(--border);
}
/* El logotipo del cliente sobre teja blanca, igual que en la banda de
   arriba: viene con colores pensados para fondo claro. */
.proyecto__logo {
  align-self: flex-start;
  height: 42px;
  width: auto;
  padding: 7px 12px;
  background: #fff;
  border-radius: 10px;
}
.proyecto__nombre {
  color: var(--text-0);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.proyecto__sector {
  color: var(--text-3);
  font-size: .84rem;
  line-height: 1.4;
}
.proyecto h3 { margin-bottom: var(--s-4); font-size: 1.16rem; line-height: 1.35; }
.proyecto p { color: var(--text-2); font-size: .95rem; }
.proyecto__enlace {
  align-self: flex-start;
  margin-top: var(--s-5);
  color: var(--orange-400);
  font-size: .9rem;
  font-weight: 600;
}
.proyecto__enlace::after {
  content: "\2192";
  display: inline-block;
  margin-left: 7px;
  transition: transform .2s var(--ease);
}
.proyecto:hover .proyecto__enlace::after { transform: translateX(4px); }

/* -----------------------------
   12. Testimonios
   ----------------------------- */
.testimonial {
  display: flex;
  flex-direction: column;
  position: relative;
  padding: var(--s-6);
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .012));
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
/* Comilla decorativa: aria-hidden implícito porque es ::before */
.testimonial::before {
  content: "\201C";
  position: absolute;
  top: 10px;
  right: 22px;
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 1;
  color: rgba(255, 107, 26, .13);
  pointer-events: none;
}
.testimonial:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}
.testimonial__stars {
  margin-bottom: var(--s-4);
  color: var(--orange-400);
  font-size: .95rem;
  letter-spacing: .12em;
}
.testimonial__quote {
  flex: 1;
  margin-bottom: var(--s-5);
  color: var(--text-1);
  font-size: 1rem;
  line-height: 1.62;
}
/* Dato concreto opcional dentro del testimonio */
.testimonial__result {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  margin-bottom: var(--s-5);
  padding: 6px 13px;
  background: rgba(255, 107, 26, .09);
  border: 1px solid rgba(255, 107, 26, .22);
  border-radius: var(--r-pill);
  color: var(--orange-300);
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 700;
}
.testimonial__author {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding-top: var(--s-4);
  border-top: 1px solid var(--border);
}
.testimonial__avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gradient-soft);
  border: 1px solid rgba(255, 107, 26, .25);
  color: var(--orange-300);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  object-fit: cover;
}
.testimonial__name { color: var(--text-0); font-size: .93rem; font-weight: 600; line-height: 1.35; }
.testimonial__role { color: var(--text-3); font-size: .82rem; line-height: 1.35; }

/* -----------------------------
   13. FAQ
   ----------------------------- */
.faq__item {
  margin-bottom: var(--s-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.faq__item[open] {
  background: var(--surface-strong);
  border-color: rgba(255, 107, 26, .25);
}
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-5);
  color: var(--text-0);
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--orange-400);
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1;
  transition: transform .22s var(--ease), border-color .22s var(--ease);
}
.faq__item[open] .faq__q::after {
  content: "−";
  transform: rotate(180deg);
  border-color: rgba(255, 107, 26, .4);
}
.faq__q:hover { color: var(--orange-300); }
.faq__a {
  padding: 0 var(--s-5) var(--s-5);
  color: var(--text-2);
  font-size: .95rem;
  line-height: 1.68;
}

/* -----------------------------
   14. CTA final + formulario
   ----------------------------- */
.cta-final {
  position: relative;
  padding-block: var(--s-section);
  overflow: hidden;
}
.cta-final::after {
  content: "";
  position: absolute;
  bottom: -55%;
  left: 50%;
  width: min(1000px, 130vw);
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255, 107, 26, .12) 0%, transparent 62%);
  pointer-events: none;
}
.cta-final > .container { position: relative; z-index: 1; }

.cta-final__panel {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 4vw, 56px);
  margin-top: var(--s-8);
  padding: clamp(28px, 3.4vw, 48px);
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--border-strong);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: var(--s-5);
  padding: 7px 15px;
  background: rgba(245, 165, 36, .09);
  border: 1px solid rgba(245, 165, 36, .25);
  border-radius: var(--r-pill);
  color: var(--warning);
  font-size: .8rem;
  font-weight: 500;
}
.availability::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.cta-final__lead { margin-bottom: var(--s-4); font-size: 1.4rem; }

.benefits { display: grid; gap: var(--s-3); }
.benefits li {
  display: flex;
  gap: var(--s-3);
  align-items: flex-start;
  color: var(--text-2);
  font-size: .93rem;
  line-height: 1.55;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: var(--s-4);
}
.form-field { margin-bottom: var(--s-4); }
.form-field label {
  display: block;
  margin-bottom: 7px;
  color: var(--text-2);
  font-size: .84rem;
  font-weight: 500;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 13px 15px;
  background: rgba(0, 0, 0, .34);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text-0);
  font-family: var(--font-sans);
  font-size: .95rem;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), background-color .18s var(--ease);
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--text-3); }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  background: rgba(0, 0, 0, .5);
  border-color: var(--orange-500);
  box-shadow: 0 0 0 3px rgba(255, 107, 26, .16);
}
/* El desplegable nativo se pinta claro en Windows: se fuerza el
   color del panel para que no salga blanco sobre blanco. */
.form-field select option { background: var(--bg-2); color: var(--text-0); }

.form-note {
  margin-top: var(--s-4);
  margin-bottom: 0;
  color: var(--text-3);
  font-size: .8rem;
  text-align: center;
}

/* -----------------------------
   15. Pie
   ----------------------------- */
.footer {
  padding-block: var(--s-8) var(--s-6);
  background: var(--bg-1);
  border-top: 1px solid var(--border);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: var(--s-7) var(--s-5);
  padding-bottom: var(--s-7);
}
.footer h4 {
  margin-bottom: var(--s-4);
  color: var(--text-0);
  font-family: var(--font-mono);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.footer ul { display: grid; gap: 10px; }
.footer li a { color: var(--text-2); font-size: .9rem; }
.footer li a:hover { color: var(--orange-400); }
.footer p { color: var(--text-3); }
.footer__about { max-width: 32ch; margin-top: var(--s-3); font-size: .9rem; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding-top: var(--s-5);
  border-top: 1px solid var(--border);
  color: var(--text-3);
  font-size: .84rem;
}

/* -----------------------------
   16. WhatsApp flotante
   ----------------------------- */
.whatsapp-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  color: #072b13;
  box-shadow: 0 8px 28px rgba(37, 211, 102, .35);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.whatsapp-fab:hover {
  color: #072b13;
  transform: scale(1.07);
  box-shadow: 0 12px 36px rgba(37, 211, 102, .5);
}
.whatsapp-fab svg { width: 28px; height: 28px; }

/* -----------------------------
   17. Aviso de cookies
   ----------------------------- */
.cookies {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 120;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-4);
  width: min(760px, calc(100vw - 32px));
  padding: var(--s-4) var(--s-5);
  background: rgba(20, 20, 24, .96);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  transform: translate(-50%, calc(100% + 40px));
  opacity: 0;
  visibility: hidden;
  transition: transform .4s var(--ease-out), opacity .4s var(--ease-out), visibility .4s;
}
.cookies.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
  visibility: visible;
}
.cookies p { flex: 1 1 320px; margin: 0; color: var(--text-2); font-size: .85rem; line-height: 1.5; }
.cookies__actions { display: flex; gap: var(--s-2); }
.cookies__actions button {
  padding: 9px 17px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  color: var(--text-1);
  font-family: var(--font-sans);
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .18s var(--ease), background-color .18s var(--ease);
}
.cookies__actions button:hover { border-color: var(--border-strong); background: var(--surface-strong); }
.cookies__actions .is-primary {
  background: var(--gradient);
  border-color: transparent;
  color: #1a0d02;
}

/* -----------------------------
   18. Blog
   ----------------------------- */
.post-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .012));
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  color: inherit;
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.post-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  color: inherit;
}
.post-card__cover {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 8;
  background: var(--gradient-soft);
  border-bottom: 1px solid var(--border);
  font-size: 2.6rem;
}
.post-card__body { display: flex; flex-direction: column; flex: 1; padding: var(--s-5); }
.post-card__meta {
  margin-bottom: var(--s-3);
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.post-card__title {
  margin-bottom: var(--s-3);
  color: var(--text-0);
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.015em;
}
.post-card__excerpt { flex: 1; color: var(--text-2); font-size: .92rem; margin-bottom: var(--s-4); }
.post-card__link { color: var(--orange-400); font-size: .88rem; font-weight: 600; }
.post-card:hover .post-card__link { color: var(--orange-300); }

/* Artículo */
.article { padding-block: var(--s-8) var(--s-section); }
.article__meta {
  margin-bottom: var(--s-5);
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.article__lead {
  margin-bottom: var(--s-7);
  padding-bottom: var(--s-6);
  border-bottom: 1px solid var(--border);
  color: var(--text-1);
  font-size: clamp(1.08rem, 1rem + .4vw, 1.24rem);
  line-height: 1.6;
}
.article h2 { margin-top: var(--s-8); font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); }
.article h3 { margin-top: var(--s-6); }
.article p, .article li { color: var(--text-1); font-size: 1.02rem; line-height: 1.78; }
.article ul, .article ol { margin: 0 0 var(--s-5); padding-left: var(--s-5); }
.article ul li { list-style: none; position: relative; padding-left: var(--s-4); margin-bottom: 10px; }
.article ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .68em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange-500);
}
.article ol { list-style: decimal; }
.article ol li { margin-bottom: 10px; padding-left: 6px; }
.article ol li::marker { color: var(--orange-400); font-family: var(--font-mono); font-weight: 700; }
.article blockquote {
  margin: var(--s-6) 0;
  padding: var(--s-5) var(--s-6);
  background: var(--surface);
  border-left: 3px solid var(--orange-500);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  color: var(--text-1);
  font-size: 1.05rem;
  font-style: italic;
}

.article-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  margin-top: var(--s-8);
  padding: var(--s-6);
  background: linear-gradient(135deg, rgba(255, 107, 26, .1), rgba(255, 107, 26, .02));
  border: 1px solid rgba(255, 107, 26, .25);
  border-radius: var(--r-lg);
}
.article-cta__text { flex: 1 1 320px; }
.article-cta__text h3 { margin-bottom: 6px; }
.article-cta__text p { color: var(--text-2); font-size: .93rem; margin-bottom: 0; }

/* Cajas de fórmula usadas en algunos artículos */
.formula {
  margin: var(--s-5) 0;
  padding: var(--s-5);
  background: rgba(0, 0, 0, .32);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--orange-300);
  font-family: var(--font-mono);
  font-size: .92rem;
  line-height: 1.7;
  overflow-x: auto;
}
.four {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr));
  gap: var(--s-4);
  margin: var(--s-6) 0;
}
.four__num {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--orange-400);
}
.four__cta { margin-top: var(--s-6); text-align: center; }

/* -----------------------------
   19. Páginas legales, gracias y 404
   ----------------------------- */
.aai-page { padding-block: var(--s-8) var(--s-section); }

.legal h2 { margin-top: var(--s-7); font-size: clamp(1.35rem, 1.2rem + .7vw, 1.7rem); }
.legal h3 { margin-top: var(--s-5); }
.legal p, .legal li { color: var(--text-2); font-size: .98rem; line-height: 1.78; }
.legal ul { margin: 0 0 var(--s-5); display: grid; gap: 8px; }
.legal ul li { position: relative; padding-left: var(--s-5); }
.legal ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange-500);
}
.updated {
  display: inline-block;
  margin-bottom: var(--s-6);
  padding: 6px 14px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: .76rem;
}

.cookie-table {
  width: 100%;
  margin: var(--s-5) 0;
  border-collapse: collapse;
  font-size: .88rem;
}
.cookie-table th,
.cookie-table td {
  padding: 12px 14px;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.cookie-table th {
  background: var(--surface-strong);
  color: var(--text-0);
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.cookie-table td { color: var(--text-2); }

.thanks { padding-block: clamp(80px, 12vw, 160px); text-align: center; }
.thanks__check {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  margin: 0 auto var(--s-6);
  background: rgba(34, 201, 141, .1);
  border: 1px solid rgba(34, 201, 141, .3);
  border-radius: 50%;
  color: var(--success);
  font-size: 2.4rem;
}
.thanks__lead {
  max-width: 34rem;
  margin: 0 auto var(--s-7);
  color: var(--text-2);
  font-size: 1.08rem;
}
.thanks__cta { display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: center; }

/* -----------------------------
   20. Aparición al hacer scroll
   ----------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* -----------------------------
   21. Responsive
   ----------------------------- */
@media (max-width: 980px) {
  .hero__layout { grid-template-columns: 1fr; }
  /* La maqueta de chat baja del primer pantallazo en móvil: ahí
     lo que convierte es el titular y el botón, no el adorno. */
  .hero__visual { order: 2; margin-top: var(--s-7); }
  .float-stat--1 { left: 0; }
  .float-stat--2 { right: 0; }
  .float-stat--3 { left: 0; }
  .cta-final__panel { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav__links {
    position: fixed;
    inset: 72px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    padding-inline: clamp(20px, 5vw, 40px);
    background: rgba(10, 10, 11, .98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    overflow: hidden;
    transition: max-height .32s var(--ease), padding-block .32s var(--ease), border-color .32s var(--ease);
  }
  .nav__links.is-open {
    max-height: 70vh;
    padding-block: var(--s-3) var(--s-5);
    border-bottom-color: var(--border);
    overflow-y: auto;
  }
  .nav__links a {
    padding: 14px 4px;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    font-size: 1rem;
  }
  .nav__links a:last-child { border-bottom: none; }
  .nav__burger { display: grid; place-items: center; }
  /* En móvil se deja un único botón en la barra: dos CTA compiten
     entre sí y ninguno gana. */
  .nav__cta .btn--ghost { display: none; }
}

@media (max-width: 620px) {
  /* Un botón con nowrap y texto largo ensancha toda la página. */
  .btn { white-space: normal; text-align: center; }
  .brand { min-width: 0; }
  .brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .nav__cta .btn--primary { display: none; }
  .hero__cta .btn { width: 100%; }
  .float-stat { display: none; }
  /* Dos marcas por fila en vez de una tira que se desborda */
  .marca { flex: 1 1 140px; min-width: 0; height: 66px; padding: 0 16px; }
  .marca__logo, .marca__icono { height: 24px; }
  .marca--emblema { flex: 1 1 140px; min-width: 0; }
  .marca--emblema .marca__logo { height: 46px; }
  .marca span { font-size: .92rem; }
  .marca__nombre { font-size: .92rem !important; }
  .hero__stats { grid-template-columns: 1fr 1fr; }
  .step { padding: var(--s-5); padding-top: calc(var(--s-5) + 34px); }
  .step::before { left: var(--s-5); top: var(--s-5); }
  .metric { grid-template-columns: 1fr; gap: 4px; }
  .metric__before::after { content: "→"; }
  .footer__grid { grid-template-columns: 1fr; gap: var(--s-6); }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .cookies { flex-direction: column; align-items: stretch; }
  .cookies__actions button { flex: 1; }
  .whatsapp-fab { right: 16px; bottom: 16px; width: 52px; height: 52px; }
}

/* -----------------------------
   22. Movimiento reducido
   ----------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* -----------------------------
   23. Impresión
   ----------------------------- */
@media print {
  .nav, .whatsapp-fab, .cookies, .hero__visual, .cta-final { display: none !important; }
  body { background: #fff; color: #000; }
  .reveal { opacity: 1; transform: none; }
}

/* La trampa para bots del formulario: fuera de pantalla, no "display:none",
   porque algunos bots ignoran los campos ocultos de la forma evidente. */
.form-trampa {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* -----------------------------
   24. Testimonio en vídeo
   ----------------------------- */
/* El vídeo viene grabado en vertical con el móvil (9:16). Se le pone un
   ancho máximo pequeño para que no se coma la pantalla en escritorio y se
   maqueta al lado del texto, no debajo. */
.videotesti {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: var(--s-7);
  align-items: center;
  padding: var(--s-6);
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .012));
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.videotesti__marco {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: #000;
  box-shadow: var(--shadow-md);
}
.videotesti__video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 404 / 720;
  object-fit: cover;
}
/* Botón de reproducción propio: el nativo cambia de un navegador a otro y
   sobre el póster oscuro casi no se ve. Desaparece al empezar el vídeo. */
.videotesti__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(0, 0, 0, .15), rgba(0, 0, 0, .45));
  transition: opacity .25s var(--ease);
}
.videotesti__play span {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: var(--gradient);
  color: #1a0d02;
  font-size: 1.5rem;
  padding-left: 5px;
  box-shadow: 0 10px 30px rgba(255, 107, 26, .45);
  transition: transform .25s var(--ease);
}
.videotesti__play:hover span { transform: scale(1.08); }
.videotesti__marco.is-playing .videotesti__play {
  opacity: 0;
  pointer-events: none;
}
.videotesti__pie {
  margin: var(--s-3) 0 0;
  color: var(--text-3);
  font-size: .82rem;
  text-align: center;
}
.videotesti__cuerpo h3 {
  margin-bottom: var(--s-4);
  font-size: 1.35rem;
  line-height: 1.3;
}
.videotesti__cuerpo p { color: var(--text-2); }

@media (max-width: 860px) {
  .videotesti {
    grid-template-columns: 1fr;
    gap: var(--s-5);
    padding: var(--s-5);
  }
  /* En móvil el vídeo se centra y se limita, o queda desproporcionado */
  .videotesti__marco { max-width: 280px; margin: 0 auto; }
  .videotesti__cuerpo { text-align: center; }
}

/* Emblema cuadrado de cliente en la tarjeta de proyecto.
   No usa la teja blanca de .proyecto__logo: este logotipo viene sobre
   verde oscuro y sobre blanco se ve como un recorte pegado. Al ser un
   fondo oscuro propio, se apoya solo con un filete y esquinas redondeadas. */
.proyecto__emblema {
  align-self: flex-start;
  width: 80px;
  height: 80px;
  border-radius: 12px;
  border: 1px solid var(--border);
  object-fit: cover;
}

/* -----------------------------
   25. Filtro de presupuesto
   ----------------------------- */
/* Va en medio de la página a propósito: cuando el visitante ya ha visto
   trabajo real y antes de que se plantee escribir. Su trabajo es que la
   gente que no llega al mínimo se vaya sin rellenar el formulario. */
.filtro {
  position: relative;
  overflow: hidden;
  padding: var(--s-7) var(--s-6);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  background:
    radial-gradient(760px 340px at 82% -30%, rgba(255, 107, 26, .16), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .012));
}
.filtro__cabecera {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--s-7);
  align-items: center;
  padding-bottom: var(--s-6);
  margin-bottom: var(--s-6);
  border-bottom: 1px solid var(--border);
}
.filtro__cifra {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.2rem, 9vw, 5.6rem);
  line-height: .95;
  letter-spacing: -.03em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}
.filtro__iva {
  display: block;
  margin-top: var(--s-2);
  color: var(--text-3);
  font-family: var(--font-sans);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.filtro__titular {
  margin: 0 0 var(--s-3);
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  line-height: 1.25;
}
.filtro__entradilla { margin: 0; color: var(--text-2); }

.filtro__casos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: var(--s-5);
}
.filtro__caso h3 {
  margin: 0 0 var(--s-3);
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
/* El punto de color hace de semáforo sin escribir "no" ni "sí" */
.filtro__punto {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: none;
}
.filtro__punto--no { background: var(--text-3); }
.filtro__punto--si { background: var(--orange-500); box-shadow: 0 0 0 4px rgba(255, 107, 26, .16); }
.filtro__caso p { margin: 0 0 var(--s-3); color: var(--text-2); font-size: .95rem; }
.filtro__caso p:last-child { margin-bottom: 0; }

.filtro__pie {
  margin: var(--s-6) 0 0;
  padding-top: var(--s-5);
  border-top: 1px solid var(--border);
  color: var(--text-2);
  font-size: .95rem;
}

@media (max-width: 720px) {
  .filtro { padding: var(--s-6) var(--s-5); }
  .filtro__cabecera {
    grid-template-columns: 1fr;
    gap: var(--s-4);
    text-align: left;
  }
}
