/* =========================================================
   Jos.IA · Sistema de diseño compartido
   "Menos color, más impacto."
   Blanco, negro y grises. Un solo sistema para las cuatro páginas
   (Tarjetas, Chatbots, Páginas web, Marketing) y las páginas legales.

   Cada página añade solo lo suyo en css/styles.css.
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Superficies y tinta */
  --black: #000000;
  --ink: #0a0c10;
  --night: #05070a;
  --night-2: #0c1016;
  --paper: #f7f8fa;
  --white: #ffffff;
  --mist: #e7e9ee;
  --line: #dde0e6;

  /* Texto sobre claro (todos >= 4,5:1 sobre --paper y --white) */
  --text: #0a0c10;
  --text-2: #454d5b;
  --text-3: #5d6573;

  /* Texto y líneas sobre oscuro */
  --d-text-2: #c6cbd4;
  --d-text-3: #98a1ae;
  --d-line: rgba(255, 255, 255, 0.14);

  --font-sans: "Geist", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --font-brand: "Helvetica Neue", Helvetica, Arial, "Liberation Sans", sans-serif;
  --font-hand: "Caveat", "Segoe Script", "Bradley Hand", cursive;

  /* Movimiento: dos curvas y tres duraciones para toda la marca */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease: cubic-bezier(0.25, 1, 0.5, 1);
  --t-fast: 0.18s;
  --t-base: 0.3s;
  --t-slow: 0.8s;

  /* Layout */
  --container: 1280px;
  --gutter: clamp(20px, 4.4vw, 56px);
  --header-h: 76px;
  --section-y: clamp(56px, 8vw, 128px);
  --r-panel: clamp(20px, 2.2vw, 28px);
  --r-card: 18px;
  --r-sm: 12px;

  /* Escala tipográfica (display máx. 57,6 px; título máx. 41,6 px) */
  --fs-display: clamp(2.4rem, 1.4rem + 2.6vw, 3.6rem);
  --fs-title: clamp(1.9rem, 1.25rem + 1.8vw, 2.6rem);
  --fs-lede: clamp(1.0625rem, 0.98rem + 0.3vw, 1.1875rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;

  --focus: var(--ink);
  color-scheme: light;
}

/* Superficie oscura: cualquier bloque con .is-dark invierte los tokens de texto */
.is-dark {
  --text: #ffffff;
  --text-2: var(--d-text-2);
  --text-3: var(--d-text-3);
  --line: var(--d-line);
  --focus: #ffffff;
  color: var(--text);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
  scrollbar-color: #9aa1ad transparent;
  scrollbar-width: thin;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
small { font-size: inherit; }
button { cursor: pointer; }

/* Superficies del navegador que también llevan diseño */
::selection { background: var(--ink); color: var(--white); }
.is-dark ::selection { background: var(--white); color: var(--ink); }
input, textarea, select { caret-color: currentColor; accent-color: var(--ink); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #b4bac4; border-radius: 10px; border: 2px solid var(--paper); }
::-webkit-scrollbar-track { background: transparent; }
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-weight: 600;
  transition: top var(--t-base) var(--ease-out);
}
.skip-link:focus { top: 12px; }

/* ---------- Primitivas ---------- */
.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.glyph { fill: currentColor; stroke: none; }

.wordmark {
  font-family: var(--font-brand);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
}

.display, .title {
  font-weight: 650;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.display { font-size: var(--fs-display); line-height: 1.04; letter-spacing: -0.038em; }
.title { font-size: var(--fs-title); line-height: 1.1; }
.display .line { display: block; }
.muted { color: var(--text-3); }

.lede {
  font-size: var(--fs-lede);
  line-height: 1.6;
  color: var(--text-2);
  max-width: 34em;
  text-wrap: pretty;
}
.sub { color: var(--text-2); max-width: 36em; text-wrap: pretty; }
.fine { font-size: 0.8125rem; line-height: 1.5; color: var(--text-3); }

/* Migas de pan reales (navegación), no una etiqueta decorativa */
.crumbs { font-size: var(--fs-small); color: var(--text-3); }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: 0.6; }
.crumbs a { transition: color var(--t-base) var(--ease); }
.crumbs [aria-current] { color: var(--text); font-weight: 500; }
@media (hover: hover) { .crumbs a:hover { color: var(--text); } }

.actions { display: flex; flex-wrap: wrap; gap: 12px 14px; }

/* ---------- Botones ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  --btn-bd: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 46px;
  padding: 0 1.5em;
  border: 1px solid var(--btn-bd);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition:
    background-color var(--t-base) var(--ease),
    color var(--t-base) var(--ease),
    border-color var(--t-base) var(--ease),
    box-shadow var(--t-slow) var(--ease-out),
    transform var(--t-slow) var(--ease-out);
}
.btn--lg { min-height: 52px; padding-inline: 1.75em; font-size: 0.96875rem; }
.btn--sm { min-height: 44px; padding-inline: 1.2em; font-size: 0.875rem; }
.btn .icon { width: 1.1em; height: 1.1em; transition: transform var(--t-slow) var(--ease-out); }

/* Primario: sólido. Sobre claro es negro; sobre oscuro es blanco. */
.btn--primary { --btn-bg: var(--ink); --btn-fg: var(--white); }
.is-dark .btn--primary { --btn-bg: var(--white); --btn-fg: var(--ink); }
/* Secundario: contorno. Un solo estilo en todo el ecosistema. */
.btn--secondary { --btn-fg: var(--text); --btn-bd: rgba(10, 12, 16, 0.32); }
.is-dark .btn--secondary { --btn-bd: rgba(255, 255, 255, 0.45); }
.btn--block { width: 100%; }

@media (hover: hover) {
  .btn:hover .icon { transform: translateX(3px); }
  .btn--primary:hover { --btn-bg: #1d2330; box-shadow: 0 14px 28px -16px rgba(10, 12, 16, 0.6); }
  .is-dark .btn--primary:hover { --btn-bg: var(--mist); box-shadow: 0 14px 30px -16px rgba(255, 255, 255, 0.45); }
  .btn--secondary:hover { --btn-bd: var(--text); --btn-bg: rgba(10, 12, 16, 0.05); }
  .is-dark .btn--secondary:hover { --btn-bd: var(--white); --btn-bg: rgba(255, 255, 255, 0.08); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .btn:hover { transform: translateY(-1px); }
}
.btn:active { transform: scale(0.98); transition-duration: 0.12s; }

/* Enlace con flecha (acción terciaria) */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  min-height: 44px;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: gap var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}
.link-arrow .icon { width: 1.05em; height: 1.05em; }
@media (hover: hover) { .link-arrow:hover { gap: 0.8em; } }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  margin-bottom: calc(-1 * var(--header-h));
  background: transparent;
  border-bottom: 1px solid transparent;
  transition:
    background-color var(--t-base) var(--ease),
    border-color var(--t-base) var(--ease),
    box-shadow var(--t-base) var(--ease),
    color var(--t-base) var(--ease);
}
.site-header.is-scrolled {
  background: rgba(247, 248, 250, 0.84);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom-color: var(--line);
}
/* Tono oscuro: la cabecera se funde con un hero negro y se aclara al salir de él
   (el JS añade .on-dark e .is-dark mientras el hero oscuro está detrás). */
.site-header[data-tone="dark"].on-dark.is-scrolled { background: rgba(5, 7, 10, 0.72); }

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.6vw, 36px);
  height: 100%;
}
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand__mark { width: 46px; height: 46px; object-fit: contain; transition: filter var(--t-base) var(--ease); }
.brand .wordmark { font-size: 1.75rem; }
.site-header[data-tone="dark"].on-dark .brand__mark { filter: invert(1); }

.nav { margin-inline: auto 0; }
.nav__list { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 32px); }
.nav__list a:not(.btn) {
  position: relative;
  display: inline-block;
  padding: 10px 0;
  font-size: 0.9375rem;
  font-weight: 450;
  color: var(--text-2);
  transition: color var(--t-base) var(--ease);
}
.nav__list a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 3px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-slow) var(--ease-out);
}
.nav__list a[aria-current] { color: var(--text); font-weight: 550; }
.nav__list a[aria-current]::after { transform: scaleX(1); }
.nav__cta-mobile { display: none; }
@media (hover: hover) {
  .nav__list a:not(.btn):hover { color: var(--text); }
  .nav__list a:not(.btn):hover::after { transform: scaleX(1); }
}
.header__cta { flex: none; }

.nav-toggle {
  display: none;
  position: relative;
  width: 46px; height: 46px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  transition: background-color var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}
@media (hover: hover) { .nav-toggle:hover { border-color: var(--text); } }
.nav-toggle__bars { position: absolute; inset: 0; }
.nav-toggle__bars i {
  position: absolute;
  left: 14px; right: 14px;
  height: 1.6px;
  border-radius: 2px;
  background: var(--text);
  transition: transform var(--t-slow) var(--ease-out), top var(--t-slow) var(--ease-out);
}
.nav-toggle__bars i:first-child { top: 18px; }
.nav-toggle__bars i:last-child { top: 26px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:first-child { top: 22px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:last-child { top: 22px; transform: rotate(-45deg); }

@media (max-width: 1080px) {
  :root { --header-h: 68px; }
  .header__cta { display: none; }
  .nav-toggle { display: inline-block; }
  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    margin: 0;
    padding: 6px var(--gutter) 28px;
    background: var(--paper);
    color: var(--ink);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 28px 40px -30px rgba(10, 12, 16, 0.5);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity var(--t-base) var(--ease), transform var(--t-slow) var(--ease-out), visibility 0s linear var(--t-base);
  }
  .site-header[data-tone="dark"].on-dark .nav { background: var(--night); color: var(--white); }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list li:not(.nav__cta-mobile) { border-bottom: 1px solid var(--line); }
  .nav__list a:not(.btn) { display: block; padding: 16px 2px; font-size: 1.0625rem; color: var(--text); }
  .nav__list a:not(.btn)::after { display: none; }
  .nav__list a[aria-current]::before {
    content: "";
    display: inline-block;
    width: 6px; height: 6px;
    margin: 0 10px 2px 0;
    border-radius: 50%;
    background: currentColor;
  }
  .nav__cta-mobile { display: block; padding-top: 22px; }
  .site-header.is-open:not(.on-dark) { background: var(--paper); }
}

/* =========================================================
   HERO (estructura común)
   ========================================================= */
.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-top: calc(var(--header-h) + clamp(28px, 4vw, 64px));
  background: var(--paper);
}
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero:not(.hero--dark) { background: linear-gradient(180deg, var(--white) 0%, var(--paper) 100%); }
.hero:not(.hero--dark) .hero__bg { background: radial-gradient(48% 70% at 72% 40%, #fff, transparent 72%); }
/* Curvas de nivel de la marca: el SVG es blanco, se invierte para leerse sobre claro */
.hero:not(.hero--dark) .hero__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/waves.svg") 62% 100% / cover no-repeat;
  filter: invert(1);
  opacity: 0.7;
  -webkit-mask-image: linear-gradient(to bottom, transparent 20%, #000 85%);
  mask-image: linear-gradient(to bottom, transparent 20%, #000 85%);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 3vw, 48px);
}
.hero__copy { display: grid; justify-items: start; gap: clamp(18px, 2vw, 26px); }
.hero__copy .display { margin-bottom: clamp(2px, 0.6vw, 8px); }
.hero__copy .actions { margin-top: clamp(4px, 1vw, 12px); }
.hero__copy .display + .lede { margin-top: clamp(6px, 1vw, 12px); }
.hero__copy .lede { max-width: 30em; }
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); }
}

/* Hero oscuro (Tarjetas) */
.hero--dark { background: var(--black); }

/* =========================================================
   CINTILLO DE BENEFICIOS
   ========================================================= */
.strip {
  display: grid;
  grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
  border-block: 1px solid var(--line);
}
.strip__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: clamp(18px, 1.8vw, 26px) clamp(14px, 1.8vw, 28px);
}
.strip__item + .strip__item { border-left: 1px solid var(--line); }
.strip__item:first-child { padding-left: 0; }
.strip__item:last-child { padding-right: 0; }
.strip__icon { display: grid; place-items: center; width: 26px; height: 26px; flex: none; color: var(--text); }
.strip__icon .icon { width: 26px; height: 26px; stroke-width: 1.5; }
.strip strong { display: block; font-size: 0.9375rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.strip small { display: block; margin-top: 2px; font-size: 0.8125rem; line-height: 1.4; color: var(--text-3); }
.strip--5 { --cols: 5; }
/* Dos columnas: 4 elementos desde 960 px; 5 elementos desde 1100 px (el texto no cabe en cinco columnas) */
@media (max-width: 960px) { .strip { --cols: 2; } }
@media (max-width: 1100px) { .strip--5 { --cols: 2; } }
@media (max-width: 960px) {
  .strip__item { padding: 18px 0; }
  .strip__item + .strip__item { border-left: 0; }
  .strip__item:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--line); }
  .strip__item:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .strip__item:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 961px) and (max-width: 1100px) {
  .strip--5 .strip__item { padding: 18px 0; }
  .strip--5 .strip__item + .strip__item { border-left: 0; }
  .strip--5 .strip__item:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--line); }
  .strip--5 .strip__item:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .strip--5 .strip__item:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  /* El icono arriba del texto: todo visible sin desplazar */
  .strip__item { flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px 14px 18px 0; }
  .strip__item:nth-child(even) { padding-left: 16px; }
  .strip__item:last-child:nth-child(odd) { flex-direction: row; align-items: center; }
}

/* =========================================================
   SECCIONES, PANELES Y TÍTULOS
   ========================================================= */
.band { padding-block: var(--section-y); }
.band--tight { padding-block: calc(var(--section-y) * 0.6); }
.band--flush-top { padding-top: 0; }
#contacto { padding-bottom: calc(var(--section-y) * 0.5); }

.section-head { display: grid; justify-items: start; gap: clamp(12px, 1.4vw, 18px); margin-bottom: clamp(32px, 4vw, 56px); }
.section-head .title { max-width: 16em; }
.section-head--split { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 20px 48px; }
.section-head--split > div:first-child { display: grid; gap: clamp(12px, 1.4vw, 18px); justify-items: start; }
@media (max-width: 760px) { .section-head--split { grid-template-columns: minmax(0, 1fr); } }

.panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--r-panel);
  background: var(--night);
  color: var(--text);
  padding: clamp(28px, 4.4vw, 72px);
}
.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 90% at 100% 0, rgba(120, 128, 144, 0.16), transparent 65%),
    url("../img/waves.svg") 60% 100% / cover no-repeat;
  opacity: 0.8;
}

/* Panel de soluciones: texto a la izquierda, lista con reglas a la derecha */
.solutions { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 88px); align-items: center; }
.solutions__copy { display: grid; gap: clamp(14px, 1.6vw, 22px); justify-items: start; }
.solutions__copy .title { max-width: 10em; }
.solutions__list .row { padding-block: clamp(18px, 1.8vw, 24px); }
.solutions__list--two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(20px, 3vw, 48px); }
.solutions__list--two .row:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
@media (max-width: 960px) { .solutions { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 620px) {
  .solutions__list--two { grid-template-columns: minmax(0, 1fr); }
  .solutions__list--two .row:nth-last-child(2) { border-bottom: 0; }
}

/* Lista con reglas: sustituye a las rejillas de tarjetas icono + título + texto */
.rows { display: grid; }
.row {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 20px;
  padding: clamp(18px, 1.8vw, 24px) 0;
  border-top: 1px solid var(--line);
  transition: padding var(--t-slow) var(--ease-out), background-color var(--t-base) var(--ease);
}
.row:last-child { border-bottom: 1px solid var(--line); }
.row__icon { display: grid; place-items: center; width: 44px; height: 44px; color: var(--text); }
.row__icon .icon { width: 26px; height: 26px; stroke-width: 1.5; }
.row strong { display: block; font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; }
.row small { display: block; margin-top: 2px; font-size: 0.9375rem; line-height: 1.5; color: var(--text-2); }
.row__go { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; color: var(--text); transition: background-color var(--t-base) var(--ease), color var(--t-base) var(--ease), border-color var(--t-base) var(--ease); }
.row__go .icon { width: 16px; height: 16px; stroke-width: 1.8; transition: transform var(--t-slow) var(--ease-out); }
a.row, button.row { text-align: left; width: 100%; background: none; border-inline: 0; border-bottom: 0; color: inherit; font: inherit; }
a.row:last-child, button.row:last-child { border-bottom: 1px solid var(--line); }
@media (hover: hover) {
  a.row:hover, button.row:hover { background: rgba(127, 134, 148, 0.07); padding-inline: 12px; }
  a.row:hover .row__go, button.row:hover .row__go { background: var(--text); color: var(--paper); border-color: var(--text); }
  .is-dark a.row:hover .row__go, .is-dark button.row:hover .row__go { background: var(--white); color: var(--ink); border-color: var(--white); }
  a.row:hover .row__go .icon, button.row:hover .row__go .icon { transform: translateX(2px); }
}

.rows--plain .row { grid-template-columns: 44px minmax(0, 1fr); }

/* =========================================================
   PASOS
   ========================================================= */
.steps { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 48px); counter-reset: step; }
.step { display: grid; align-content: start; gap: 10px; padding-top: 22px; border-top: 1px solid var(--line); }
.step__num {
  display: block;
  margin-bottom: 14px;
  font-size: clamp(2rem, 1.6rem + 1.2vw, 2.75rem);
  font-weight: 450;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.step h3 { font-size: 1.125rem; font-weight: 650; letter-spacing: -0.02em; line-height: 1.25; }
.step p { font-size: 0.96875rem; color: var(--text-2); max-width: 20em; text-wrap: pretty; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; } }
@media (max-width: 560px) {
  .steps { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .step { grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; padding-block: 22px; }
  .step__num { grid-row: span 2; font-size: 1.75rem; margin: 0; }
}

/* =========================================================
   RESULTADOS (panel oscuro: texto + testimonio + cifras)
   ========================================================= */
.results { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 72px); align-items: start; }
.results__copy { display: grid; gap: clamp(14px, 1.6vw, 22px); justify-items: start; }
.results__copy .title { max-width: 12em; }
.stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); border-top: 1px solid var(--line); margin-top: clamp(4px, 1vw, 12px); }
.stat { display: grid; gap: 6px; align-content: start; padding: clamp(22px, 2.4vw, 34px) clamp(16px, 2vw, 32px) 0; }
.stat:first-child { padding-left: 0; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat strong { font-size: clamp(2rem, 1.5rem + 1.6vw, 3rem); font-weight: 650; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { font-size: 0.9375rem; color: var(--text-2); max-width: 14em; }
.results .fine { grid-column: 1 / -1; margin-top: -4px; }
@media (max-width: 900px) {
  .results { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stat { grid-template-columns: minmax(0, 7.5rem) minmax(0, 1fr); align-items: baseline; padding: 18px 0; border-left: 0 !important; }
  .stat + .stat { border-top: 1px solid var(--line); }
}

/* =========================================================
   TESTIMONIO
   ========================================================= */
.quote { display: grid; gap: clamp(22px, 2.4vw, 32px); align-content: start; }
.quote blockquote p {
  font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.75rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.38;
  text-wrap: pretty;
}
.quote__by { display: flex; align-items: center; gap: 14px; }
.quote__who { display: grid; line-height: 1.3; }
.quote__who strong { font-size: 0.96875rem; font-weight: 600; }
.quote__who small { font-size: 0.875rem; color: var(--text-3); }
.avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.is-dark .avatar { background: rgba(255, 255, 255, 0.14); }

/* =========================================================
   PRECIOS
   ========================================================= */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); align-items: stretch; }
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: clamp(26px, 2.6vw, 38px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
  transition: transform var(--t-slow) var(--ease-out), box-shadow var(--t-slow) var(--ease-out), border-color var(--t-base) var(--ease);
}
.plan--featured { background: var(--night); color: var(--white); border-color: var(--night); --text: #fff; --text-2: var(--d-text-2); --text-3: var(--d-text-3); --line: var(--d-line); --focus: #fff; }
.plan--featured .btn--primary { --btn-bg: var(--white); --btn-fg: var(--ink); }
.plan__head { display: grid; gap: 6px; }
.plan__name { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 30px; font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.015em; }
.plan__badge { padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.75rem; font-weight: 500; letter-spacing: 0; white-space: nowrap; color: var(--text-2); }
.plan__desc { font-size: 0.9375rem; color: var(--text-2); text-wrap: pretty; }
.plan__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.plan__price strong { font-size: clamp(2.25rem, 1.8rem + 1.4vw, 3rem); font-weight: 650; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.plan__price span { font-size: 0.9375rem; color: var(--text-3); }
.plan__list { display: grid; gap: 12px; padding-top: 22px; border-top: 1px solid var(--line); }
.plan__list li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; font-size: 0.9375rem; line-height: 1.45; color: var(--text-2); }
.plan__list .icon { width: 18px; height: 18px; margin-top: 2px; stroke-width: 2; color: var(--text); }
.plan .btn { margin-top: auto; }
.plan__list { margin-bottom: 6px; }
/* Subcuadrícula: nombre, precio, lista y botón quedan alineados entre planes */
@media (min-width: 961px) { @supports (grid-template-rows: subgrid) {
  .plans { grid-template-rows: auto auto 1fr auto; row-gap: 0; }
  .plan { display: grid; grid-template-rows: subgrid; grid-row: span 4; row-gap: 22px; }
  .plan .btn { margin-top: 0; align-self: end; }
} }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .plan:hover { transform: translateY(-4px); box-shadow: 0 30px 50px -34px rgba(10, 12, 16, 0.35); }
  .plan--featured:hover { box-shadow: 0 30px 50px -30px rgba(10, 12, 16, 0.7); }
}
.pricing-note { margin-top: clamp(20px, 2.4vw, 32px); text-align: center; }
@media (max-width: 960px) {
  .plans { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-inline: auto; }
}

/* =========================================================
   PREGUNTAS FRECUENTES
   ========================================================= */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 96px); align-items: start; }
.faq { display: grid; border-bottom: 1px solid var(--line); }
.faq__item { border-top: 1px solid var(--line); }
.faq__q { margin: 0; font-size: inherit; }
.faq__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  min-height: 64px;
  padding: 18px 0;
  border: 0;
  background: none;
  text-align: left;
  font-size: clamp(1rem, 0.94rem + 0.2vw, 1.125rem);
  font-weight: 550;
  letter-spacing: -0.015em;
  line-height: 1.35;
  transition: color var(--t-base) var(--ease);
}
.faq__icon { position: relative; width: 22px; height: 22px; flex: none; }
.faq__icon::before, .faq__icon::after {
  content: "";
  position: absolute;
  left: 3px; right: 3px; top: 50%;
  height: 1.6px;
  margin-top: -0.8px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--t-slow) var(--ease-out);
}
.faq__icon::after { transform: rotate(90deg); }
.faq__btn[aria-expanded="true"] .faq__icon::after { transform: rotate(0deg); }
.faq__panel { display: grid; grid-template-rows: 1fr; }
.js .faq__panel { grid-template-rows: 0fr; transition: grid-template-rows var(--t-slow) var(--ease-out); }
.js .faq__item.is-open .faq__panel { grid-template-rows: 1fr; }
.faq__panel > div { overflow: hidden; }
.faq__panel p { max-width: 38em; padding: 0 clamp(0px, 4vw, 48px) 24px 0; color: var(--text-2); text-wrap: pretty; }
@media (hover: hover) { .faq__btn:hover { color: var(--text-2); } }
@media (max-width: 900px) { .faq-wrap { grid-template-columns: minmax(0, 1fr); } }

/* =========================================================
   CONTACTO (formulario)
   ========================================================= */
.contact__panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.contact__copy { display: grid; gap: clamp(14px, 1.6vw, 22px); justify-items: start; }
.contact__direct { display: grid; gap: 4px; margin-top: clamp(8px, 1.6vw, 20px); width: 100%; }
.contact__direct a, .contact__direct li > span {
  display: flex; align-items: center; gap: 14px;
  min-height: 52px;
  border-top: 1px solid var(--line);
  font-size: 0.96875rem;
}
.contact__direct li:last-child a, .contact__direct li:last-child > span { border-bottom: 1px solid var(--line); }
.contact__direct .icon { width: 20px; height: 20px; stroke-width: 1.6; color: var(--text-2); }
.contact__direct strong { font-weight: 500; }
.contact__direct small { margin-left: auto; color: var(--text-3); font-size: 0.8125rem; }
@media (hover: hover) { .contact__direct a:hover { color: var(--white); background: rgba(255, 255, 255, 0.04); } }

.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.875rem; font-weight: 500; color: var(--text); }
.field label span { color: var(--text-3); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  font-size: 1rem;
  transition: border-color var(--t-base) var(--ease), background-color var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.field textarea { min-height: 120px; padding-block: 14px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23c6cbd4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.field select option { background: var(--white); color: var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: var(--d-text-3); }
@media (hover: hover) { .field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(255, 255, 255, 0.5); } }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 0;
  border-color: var(--white);
  background-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18);
}
.field [aria-invalid="true"] { border-color: #ff9d9d; }
.field__err { min-height: 1.2em; font-size: 0.8125rem; color: #ffb4b4; }
.field__err:empty { display: none; }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.form__foot .fine { max-width: 28em; color: var(--d-text-3); }
.form__foot .fine a { text-decoration: underline; text-underline-offset: 3px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn[disabled] { opacity: 0.55; pointer-events: none; }
.form__ok {
  display: none;
  grid-column: 1 / -1;
  gap: 10px;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--d-line);
  border-radius: var(--r-card);
  background: rgba(255, 255, 255, 0.05);
}
.form__ok .icon { width: 28px; height: 28px; stroke-width: 1.6; }
.form__ok strong { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; }
.form__ok p { color: var(--text-2); max-width: 30em; }
.form.is-sent > :not(.form__ok) { display: none; }
.form.is-sent .form__ok { display: grid; }
@media (max-width: 960px) { .contact__panel { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .form { grid-template-columns: minmax(0, 1fr); } .form__foot .btn { width: 100%; } }

/* =========================================================
   PIE
   ========================================================= */
.site-footer { padding-block: clamp(48px, 5vw, 80px) 0; }
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 64px);
  padding-bottom: clamp(32px, 4vw, 56px);
}
.footer__brand { display: grid; align-content: start; gap: 14px; }
.footer__brand .brand__mark { width: 52px; height: 52px; }
.footer__brand .wordmark { font-size: 2rem; }
.footer__brand p { color: var(--text-2); }
.signature { margin-top: 4px; font-family: var(--font-hand); font-size: 1.5rem; line-height: 1.1; color: var(--text-2); max-width: 15em; transform: rotate(-3deg); transform-origin: left center; }
.footer__title { margin-bottom: 14px; font-size: 0.875rem; font-weight: 600; color: var(--text-3); }
.footer__col ul { display: grid; }
.footer__col a, .footer__col span {
  position: relative;
  display: inline-block;
  padding: 7px 0;
  font-size: 0.9375rem;
  color: var(--text);
}
.footer__col a::after, .footer__legal a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-slow) var(--ease-out);
}
@media (hover: hover) {
  .footer__col a:hover::after, .footer__legal a:hover::after { transform: scaleX(1); }
}
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 28px;
  padding-block: 18px 28px;
  border-top: 1px solid var(--line);
}
.footer__legal p, .footer__legal a { font-size: 0.8125rem; color: var(--text-3); }
.footer__legal a { position: relative; display: inline-block; padding-block: 12px; }
.footer__legal ul { display: flex; flex-wrap: wrap; gap: 0 24px; }
.footer__right { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; }
.social { display: flex; gap: 2px; }
.social a {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  color: var(--text);
  transition: background-color var(--t-base) var(--ease), transform var(--t-slow) var(--ease-out);
}
.social .icon { width: 20px; height: 20px; stroke-width: 1.7; }
@media (hover: hover) { .social a:hover { background: rgba(10, 12, 16, 0.07); } }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .social a:hover { transform: translateY(-2px); } }
@media (max-width: 900px) {
  .footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__legal { flex-direction: column; align-items: flex-start; }
}

/* =========================================================
   CARRUSEL HORIZONTAL (utilidad)
   ========================================================= */
.snap { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.snap::-webkit-scrollbar { display: none; }
.snap > * { flex: 0 0 min(82%, 340px); scroll-snap-align: start; }

/* =========================================================
   MOVIMIENTO
   Un momento autoral: la entrada del hero (titular con desenfoque suave).
   El resto son revelados discretos al hacer scroll y estados de interacción.
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(14px);
    transition:
      opacity var(--t-slow) var(--ease-out) var(--d, 0ms),
      transform 0.95s var(--ease-out) var(--d, 0ms);
  }
  .js [data-reveal].is-visible { opacity: 1; transform: none; }

  .js .display[data-reveal] {
    filter: blur(8px);
    transform: translateY(22px);
    transition:
      opacity 1.1s var(--ease-out) var(--d, 0ms),
      transform 1.2s var(--ease-out) var(--d, 0ms),
      filter 1s var(--ease-out) var(--d, 0ms);
  }
  .js .display[data-reveal].is-visible { filter: none; }

  [data-parallax] { transform: translate3d(0, var(--py, 0px), 0); will-change: transform; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 0; transition: opacity 0.4s linear; }
  .js [data-reveal].is-visible { opacity: 1; }
}

/* Sin JavaScript todo el contenido queda visible */
html:not(.js) [data-reveal] { opacity: 1; transform: none; filter: none; }

/* =========================================================
   AJUSTES DE PANTALLA PEQUEÑA
   ========================================================= */
@media (max-width: 560px) {
  .actions .btn { flex: 1 1 100%; }
  .btn--lg { min-height: 54px; }
  .panel { padding: 28px 22px; }
}
@media (max-width: 380px) {
  :root { --gutter: 18px; }
  .brand .wordmark { font-size: 1.55rem; }
}
