/* ==========================================================================
   TRECE. — Sistema de diseño
   Mobile first · 70% blanco · 20% azul marino · 10% negro/grises
   ========================================================================== */

:root {
  --navy: #072a60;
  --navy-700: #0b3a7e;
  --navy-900: #041c42;
  --navy-50: #eef2f9;
  --ink: #080a0d;
  --text: #0d1524;
  --muted: #667085;
  --line: #e8ebf0;
  --line-strong: #d5dae3;
  --gray: #f5f6f8;
  --white: #fff;

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 8px;
  --radius: 10px;
  --radius-lg: 14px;

  --container: 1240px;
  --gutter: 20px;
  --header-h: 68px;
  --section: 80px;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (min-width: 960px) {
  :root { --gutter: 40px; --header-h: 80px; --section: 128px; }
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open { overflow: hidden; }

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

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

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

::selection { background: var(--navy); color: var(--white); }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.icon {
  width: 24px;
  height: 24px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Layout ---------- */

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section); }
.section--gray { background: var(--gray); }
.section--ink { background: var(--ink); color: #c9ced8; }
.section--ink h2, .section--ink h3 { color: var(--white); }
.section--ink .lead { color: #9aa3b2; }
.section--tight-top { padding-top: 0; }

.section-head {
  display: grid;
  gap: 20px;
  margin-bottom: 48px;
}

@media (min-width: 960px) {
  .section-head {
    grid-template-columns: 1.15fr 1fr;
    align-items: end;
    gap: 64px;
    margin-bottom: 72px;
  }
  .section-head--stack { grid-template-columns: 1fr; max-width: 820px; gap: 24px; }
}

/* ---------- Tipografía ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1.5px;
  background: currentColor;
}
.section--ink .eyebrow,
.cta-band .eyebrow { color: #9fb4d9; }

.display {
  font-size: clamp(2.6rem, 8.4vw, 4.6rem);
  line-height: .98;
  letter-spacing: -0.045em;
}
.display em,
.h2 em {
  font-style: normal;
  color: var(--navy);
}

.h2 {
  font-size: clamp(2rem, 5.2vw, 3.4rem);
  line-height: 1.02;
}
.section--ink .h2 em { color: #8ea8d6; }

.h3 {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.lead {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.6;
  max-width: 580px;
}

.text-muted { color: var(--muted); }

/* ---------- Botones ---------- */

.btn {
  --btn-bg: var(--navy);
  --btn-fg: var(--white);
  --btn-border: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 26px;
  border: 1.5px solid var(--btn-border);
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn .icon { width: 18px; height: 18px; stroke-width: 2; transition: transform .3s var(--ease); }
.btn:hover .icon { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }

.btn--primary:hover { --btn-bg: var(--navy-900); --btn-border: var(--navy-900); }

.btn--secondary { --btn-bg: var(--white); --btn-fg: var(--navy); --btn-border: var(--navy); }
.btn--secondary:hover { --btn-bg: var(--navy-50); }

.btn--light { --btn-bg: var(--white); --btn-fg: var(--navy); --btn-border: var(--white); }
.btn--light:hover { --btn-bg: #dfe7f5; --btn-border: #dfe7f5; }

.btn--outline-light { --btn-bg: transparent; --btn-fg: var(--white); --btn-border: rgba(255,255,255,.4); }
.btn--outline-light:hover { --btn-border: var(--white); }

.btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn--block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 559px) {
  .btn-row .btn { width: 100%; }
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  font-weight: 700;
  font-size: 15px;
  border-bottom: 1.5px solid transparent;
  padding-bottom: 2px;
  transition: border-color .25s var(--ease);
}
.link-arrow .icon { width: 18px; height: 18px; stroke-width: 2; transition: transform .3s var(--ease); }
.link-arrow:hover { border-color: currentColor; }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.site-header.is-scrolled { border-color: var(--line); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
}

.logo {
  display: inline-flex;
  align-items: center;
  color: var(--navy);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}
.logo svg { height: 20px; width: auto; }
.logo img { max-height: 32px; width: auto; }
.logo--light { color: var(--white); }
.site-footer .logo svg { height: 24px; }
@media (min-width: 960px) { .logo svg { height: 23px; } }

.nav { display: none; }

.nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__link {
  position: relative;
  display: block;
  padding: 10px 12px;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: color .2s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 4px;
  height: 1.5px;
  background: var(--navy);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav__link:hover { color: var(--navy); }
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--navy); }

.header-cta { display: none; }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-right: -8px;
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
}
.menu-toggle .icon { width: 26px; height: 26px; }
.menu-toggle .icon--close { display: none; }
.menu-open .menu-toggle .icon--menu { display: none; }
.menu-open .menu-toggle .icon--close { display: block; }

@media (min-width: 1100px) {
  .nav { display: block; }
  .header-cta { display: inline-flex; }
  .menu-toggle { display: none; }
}

/* Menú móvil */
.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  padding: 24px var(--gutter) calc(24px + env(safe-area-inset-bottom));
  background: var(--white);
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s;
}
.menu-open .mobile-menu {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}

.mobile-menu__list { border-top: 1px solid var(--line); }
.mobile-menu__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.mobile-menu__list a[aria-current="page"] { color: var(--navy); }
.mobile-menu__list .icon { width: 20px; height: 20px; color: var(--muted); }

.mobile-menu__foot {
  display: grid;
  gap: 16px;
  margin-top: auto;
  padding-top: 32px;
}
.mobile-menu__mail { color: var(--muted); font-size: 15px; text-align: center; }

@media (min-width: 1100px) { .mobile-menu { display: none; } }

main { padding-top: var(--header-h); }

/* ---------- Hero (Inicio) ---------- */

.hero { padding: 48px 0 64px; }

.hero__grid {
  display: grid;
  gap: 56px;
  align-items: center;
}

.hero__title { margin-bottom: 24px; }
.hero__copy .lead { margin-bottom: 36px; }

@media (min-width: 960px) {
  .hero { padding: 88px 0 104px; }
  .hero__grid { grid-template-columns: 1.08fr .92fr; gap: 72px; }
}

/* Franja de plataformas */
.platform-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.platform-strip__inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-block: 24px;
}
.platform-strip__label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.platform-strip__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.platform-strip__list li { display: flex; align-items: center; gap: 28px; }
@media (min-width: 960px) {
  .platform-strip__inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 40px; padding-block: 28px; }
  .platform-strip__list li + li::before {
    content: "";
    width: 1px;
    height: 14px;
    background: var(--line-strong);
    margin-right: 0;
    order: -1;
  }
  .platform-strip__list { gap: 0 28px; }
}

/* Franja Estrategia + Datos + ... */
.pillars {
  background: var(--ink);
  color: var(--white);
  padding-block: 44px;
  overflow: hidden;
}
.pillars__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
  font-size: clamp(1.5rem, 4.4vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
}
.pillars__list li { display: flex; align-items: center; gap: 20px; }
.pillars__plus { color: #5c7bb3; font-weight: 500; }
.pillars__list li:nth-child(odd) .pillars__plus { display: none; }
@media (min-width: 960px) {
  .pillars { padding-block: 56px; }
  .pillars__list { display: flex; justify-content: space-between; }
  .pillars__list li:nth-child(odd) .pillars__plus { display: inline; }
  .pillars__list li:first-child .pillars__plus { display: none; }
}

/* ---------- Visual: recorrido de conversión (Inicio) ---------- */

.viz {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  padding: 22px;
}
@media (min-width: 560px) { .viz { padding: 32px; } }

.viz__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
}
.viz__title {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.viz__meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.funnel { display: grid; gap: 10px; }
.funnel__row {
  display: grid;
  grid-template-columns: 84px 1fr;
  align-items: center;
  gap: 14px;
}
.funnel__label { color: var(--muted); font-size: 13px; font-weight: 600; }
.funnel__track { height: 36px; border-radius: 6px; background: var(--gray); overflow: hidden; }
.funnel__bar {
  display: flex;
  align-items: center;
  height: 100%;
  padding-left: 12px;
  border-radius: 6px;
  background: var(--navy);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transform-origin: left;
  transition: transform 1.1s var(--ease);
}
.funnel__row:nth-child(1) .funnel__bar { width: 100%; background: #d9e1ef; color: var(--navy); }
.funnel__row:nth-child(2) .funnel__bar { width: 72%; background: #9fb4d9; color: var(--navy-900); }
.funnel__row:nth-child(3) .funnel__bar { width: 46%; background: var(--navy-700); }
.funnel__row:nth-child(4) .funnel__bar { width: 28%; background: var(--navy); }

.js [data-reveal] .funnel__bar { transform: scaleX(.05); }
.js [data-reveal].is-in .funnel__bar { transform: none; }
.funnel__row:nth-child(2) .funnel__bar { transition-delay: .1s; }
.funnel__row:nth-child(3) .funnel__bar { transition-delay: .2s; }
.funnel__row:nth-child(4) .funnel__bar { transition-delay: .3s; }

.viz__split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
@media (min-width: 560px) { .viz__split { grid-template-columns: 1.3fr 1fr; } }

.viz__chart { color: var(--navy); }
.viz__chart svg { width: 100%; height: 88px; }
.viz__chart .grid-line { stroke: var(--line); stroke-width: 1; }
.viz__chart .area { fill: url(#trece-area); }
.viz__chart .line { fill: none; stroke: var(--navy); stroke-width: 2; stroke-dasharray: 400; stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s var(--ease) .3s; }
.js [data-reveal] .viz__chart .line { stroke-dashoffset: 400; }
.js [data-reveal].is-in .viz__chart .line { stroke-dashoffset: 0; }
.viz__caption { margin-top: 8px; color: var(--muted); font-size: 12px; font-weight: 600; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; }
.chip {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.chip--navy { background: var(--navy); border-color: var(--navy); color: var(--white); }

/* ---------- Servicios (Inicio) ---------- */

.services {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (min-width: 900px) { .services { grid-template-columns: 1fr 1fr; } }

.service {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 32px 24px;
  background: var(--white);
  transition: background .3s var(--ease);
}
.service:hover { background: #fafbfc; }
@media (min-width: 960px) { .service { padding: 48px; } }

.service__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.service__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--navy);
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.service:hover .service__icon { background: var(--navy); border-color: var(--navy); color: var(--white); }
.service__num { color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .08em; }
.service__kicker {
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.service__title { margin-top: -8px; }
.service p { color: var(--muted); }
.service .chips { margin-top: 4px; }
.service .link-arrow { margin-top: auto; padding-top: 8px; align-self: flex-start; }

/* ---------- Pasos / Metodología ---------- */

.steps {
  display: grid;
  gap: 40px;
  counter-reset: step;
}
@media (min-width: 640px) { .steps { grid-template-columns: 1fr 1fr; gap: 48px 32px; } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.step {
  position: relative;
  padding-top: 28px;
  border-top: 1px solid var(--line-strong);
}
.step::before {
  content: "";
  position: absolute;
  left: 0; top: -1px;
  width: 100%;
  height: 2px;
  background: var(--navy);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1s var(--ease);
}
.is-in .step::before, .step.is-in::before { transform: scaleX(1); }
.step:nth-child(2)::before { transition-delay: .15s; }
.step:nth-child(3)::before { transition-delay: .3s; }
.step:nth-child(4)::before { transition-delay: .45s; }

.step__num {
  display: block;
  margin-bottom: 20px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .06em;
}
.step h3 { margin-bottom: 12px; font-size: 24px; letter-spacing: -0.03em; }
.step p { color: var(--muted); }

.section--ink .step { border-color: #262b33; }
.section--ink .step::before { background: #8ea8d6; }
.section--ink .step__num { color: #8ea8d6; }
.section--ink .step p { color: #9aa3b2; }

/* Flujo lineal (Metodología Ads / SEO) */
.flow {
  display: grid;
  gap: 0;
  counter-reset: flow;
}
.flow__item {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  padding-bottom: 28px;
}
.flow__item:last-child { padding-bottom: 0; }
.flow__item::before {
  content: "";
  position: absolute;
  left: 21px; top: 44px; bottom: 0;
  width: 1px;
  background: var(--line-strong);
}
.flow__item:last-child::before { display: none; }
.flow__dot {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
}
.flow__item:last-child .flow__dot { background: var(--navy); border-color: var(--navy); color: var(--white); }
.flow__body { padding-top: 9px; }
.flow__body h3 { font-size: 19px; letter-spacing: -0.02em; margin-bottom: 4px; }
.flow__body p { color: var(--muted); font-size: 15px; }

@media (min-width: 1000px) {
  .flow { grid-template-columns: repeat(var(--flow-cols, 7), 1fr); gap: 0; }
  .flow__item { grid-template-columns: 1fr; gap: 20px; padding: 0 20px 0 0; }
  .flow__item::before { left: 44px; right: 0; top: 22px; bottom: auto; width: auto; height: 1px; }
  .flow__body { padding-top: 0; }
}

/* ---------- Banda CTA (azul marino) ---------- */

.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: #c9d5ea;
  padding-block: 88px;
}
.cta-band::after {
  content: "13.";
  position: absolute;
  right: -2%;
  bottom: -0.28em;
  color: rgba(255,255,255,.05);
  font-size: clamp(14rem, 34vw, 30rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
  pointer-events: none;
}
.cta-band__inner { position: relative; z-index: 1; max-width: 860px; }
.cta-band h2 { color: var(--white); margin-bottom: 20px; }
.cta-band p { font-size: clamp(1.05rem, 1.8vw, 1.25rem); margin-bottom: 36px; max-width: 560px; }
@media (min-width: 960px) { .cta-band { padding-block: 128px; } }

/* ---------- Formularios ---------- */

.form-section__grid {
  display: grid;
  gap: 48px;
}
@media (min-width: 1000px) {
  .form-section__grid { grid-template-columns: .85fr 1.15fr; gap: 80px; align-items: start; }
  .form-section__aside { position: sticky; top: calc(var(--header-h) + 40px); }
}

.form-section__aside .h2 { margin-bottom: 20px; }
.form-section__aside .lead { margin-bottom: 40px; }

.next-steps { display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
.next-steps li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-strong);
  color: var(--text);
  font-weight: 600;
}
.next-steps span { color: var(--navy); font-size: 13px; font-weight: 800; padding-top: 2px; }

.contact-mail {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
}
.contact-mail .icon { color: var(--navy); }
.contact-mail:hover { color: var(--navy); }

.form-card {
  padding: 24px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
}
@media (min-width: 560px) { .form-card { padding: 40px; } }
@media (min-width: 1000px) { .form-card { padding: 48px; } }

.lead-form__grid {
  display: grid;
  gap: 20px;
}
@media (min-width: 640px) {
  .lead-form__grid { grid-template-columns: 1fr 1fr; gap: 22px 18px; }
  .field--full { grid-column: 1 / -1; }
}

.field { display: grid; gap: 8px; }
.field label, .field__label {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}
.field .req { color: var(--navy); }
.field .opt { color: var(--muted); font-weight: 500; }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 16px; /* evita zoom en iOS */
  line-height: 1.4;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { min-height: 132px; resize: vertical; }
.field select {
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23072a60' 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 14px center;
  background-size: 18px;
  cursor: pointer;
}
.field input::placeholder, .field textarea::placeholder { color: #98a2b3; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #b4bccb; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(7,42,96,.12);
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: #b42318; }
.field__error { display: none; color: #b42318; font-size: 13px; font-weight: 600; }
.field.has-error .field__error { display: block; }

.check {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  color: var(--text);
  font-size: 15px;
  cursor: pointer;
}
.check input {
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  border: 1.5px solid var(--line-strong);
  border-radius: 6px;
  background: var(--white);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.check input:checked {
  background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
  border-color: var(--navy);
}
.check a { color: var(--navy); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.field.has-error .check input { border-color: #b42318; }

.lead-form__submit { display: grid; gap: 14px; }
.lead-form__note { color: var(--muted); font-size: 13px; }

.btn.is-loading { pointer-events: none; opacity: .75; }
.btn.is-loading .icon { animation: trece-spin .8s linear infinite; }
@keyframes trece-spin { to { transform: rotate(360deg); } }

.form-status:not(:empty) {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: #fef3f2;
  color: #b42318;
  font-size: 14px;
  font-weight: 600;
}

.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.form-success {
  display: grid;
  gap: 16px;
  justify-items: start;
  padding: 16px 0;
}
.form-success[hidden] { display: none; }
.form-success__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
}
.form-success__icon .icon { width: 26px; height: 26px; stroke-width: 2.2; }
.form-success h3 { font-size: 28px; }
.form-success p { color: var(--muted); max-width: 440px; }

/* ---------- Hero de páginas de servicio ---------- */

.page-hero { padding: 40px 0 72px; }
.page-hero__grid { display: grid; gap: 56px; align-items: center; }
.page-hero h1 { margin-bottom: 24px; }
.page-hero .lead { margin-bottom: 36px; }
@media (min-width: 960px) {
  .page-hero { padding: 80px 0 112px; }
  .page-hero__grid { grid-template-columns: 1.05fr .95fr; gap: 72px; }
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb span[aria-current] { color: var(--navy); }
.breadcrumb__sep { color: var(--line-strong); }

/* Visual: plataformas (Ads) */
.platform-board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.platform-board__cell {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  min-height: 128px;
  padding: 20px;
  background: var(--white);
  transition: background .3s var(--ease);
}
.platform-board__cell:hover { background: #fafbfc; }
.platform-board__cell strong { color: var(--ink); font-size: 18px; letter-spacing: -0.02em; }
.platform-board__cell span { color: var(--muted); font-size: 13px; font-weight: 600; }
.platform-board__cell--head {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  min-height: 0;
  background: var(--navy);
  color: var(--white);
}
.platform-board__cell--head strong { color: var(--white); font-size: 15px; }
.platform-board__cell--head span { color: #9fb4d9; }
.platform-board__cell--head:hover { background: var(--navy); }
@media (min-width: 560px) {
  .platform-board { grid-template-columns: repeat(3, 1fr); }
  .platform-board__cell { min-height: 150px; padding: 24px; }
}

/* Visual: navegador (Web) */
.browser {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  overflow: hidden;
}
.browser__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--gray);
}
.browser__dots { display: flex; gap: 6px; }
.browser__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.browser__url {
  flex: 1;
  height: 28px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 6px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.browser__body { padding: 22px; display: grid; gap: 18px; }
@media (min-width: 560px) { .browser__body { padding: 32px; } }
.wf-nav { display: flex; justify-content: space-between; align-items: center; }
.wf-nav b { width: 54px; height: 10px; border-radius: 3px; background: var(--navy); }
.wf-nav span { display: flex; gap: 10px; }
.wf-nav span i { width: 32px; height: 6px; border-radius: 3px; background: var(--line); }
.wf-h { display: grid; gap: 10px; padding-top: 12px; }
.wf-h i { height: 16px; border-radius: 4px; background: var(--ink); }
.wf-h i:nth-child(1) { width: 82%; }
.wf-h i:nth-child(2) { width: 58%; }
.wf-p { display: grid; gap: 7px; }
.wf-p i { height: 7px; border-radius: 3px; background: var(--line); }
.wf-p i:nth-child(2) { width: 88%; }
.wf-p i:nth-child(3) { width: 64%; }
.wf-btns { display: flex; gap: 8px; }
.wf-btns i { width: 96px; height: 30px; border-radius: 6px; background: var(--navy); }
.wf-btns i + i { background: transparent; border: 1.5px solid var(--navy); width: 84px; }
.wf-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding-top: 8px; }
.wf-cards i { display: block; height: 72px; border-radius: 8px; border: 1px solid var(--line); background: var(--gray); }
.browser__tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 22px 22px; }
@media (min-width: 560px) { .browser__tags { padding: 0 32px 32px; } }

/* Visual: checkout (Ecommerce) */
.shop-viz { display: grid; gap: 14px; }
.shop-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
}
.shop-card__img {
  aspect-ratio: 1;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, transparent 48%, rgba(7,42,96,.08) 48% 52%, transparent 52%),
    var(--gray);
}
.shop-card__lines { display: grid; gap: 8px; }
.shop-card__lines i { height: 9px; border-radius: 3px; background: var(--line); }
.shop-card__lines i:first-child { width: 70%; background: var(--ink); height: 11px; }
.shop-card__lines i:nth-child(2) { width: 40%; }
.shop-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  margin-top: 6px;
  border-radius: 7px;
  background: var(--navy);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
}
.shop-card__btn .icon { width: 16px; height: 16px; }

.checkout {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
}
@media (min-width: 560px) { .checkout { padding: 28px; } }
.checkout__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}
.checkout__step { display: grid; gap: 10px; }
.checkout__step i { height: 4px; border-radius: 2px; background: var(--line); }
.checkout__step.is-done i { background: var(--navy); }
.checkout__step span { color: var(--muted); font-size: 12px; font-weight: 700; }
.checkout__step.is-done span { color: var(--ink); }
.checkout__rows { display: grid; gap: 10px; }
.checkout__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}
.checkout__row .icon { width: 20px; height: 20px; color: var(--navy); }
.checkout__row em { margin-left: auto; font-style: normal; color: var(--muted); font-size: 12px; }

/* Visual: resultados de búsqueda (SEO) */
.serp {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  padding: 22px;
}
@media (min-width: 560px) { .serp { padding: 32px; } }
.serp__search {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 52px;
  padding: 0 18px;
  margin-bottom: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}
.serp__search .icon { width: 20px; height: 20px; color: var(--muted); }
.serp__caret { width: 1.5px; height: 18px; background: var(--navy); animation: trece-blink 1.1s steps(1) infinite; }
@keyframes trece-blink { 50% { opacity: 0; } }
.serp__result {
  display: grid;
  gap: 7px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.serp__result:first-of-type {
  margin: 0 -14px;
  padding: 18px 14px;
  border: 1.5px solid var(--navy);
  border-radius: var(--radius);
  background: var(--navy-50);
}
.serp__result:first-of-type + .serp__result { border-top: 0; }
.serp__url { color: var(--muted); font-size: 12px; font-weight: 600; }
.serp__title { color: var(--navy); font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.serp__result i { display: block; height: 7px; border-radius: 3px; background: var(--line); }
.serp__result:first-of-type i { background: #d3dcec; }
.serp__result i + i { width: 72%; }
.serp__result--ghost .serp__title { width: 60%; height: 11px; border-radius: 3px; background: #cfd6e2; }
.serp__result--ghost .serp__url { width: 30%; height: 7px; border-radius: 3px; background: var(--line); }

/* ---------- Tarjetas de plataformas (Ads) ---------- */

.cards {
  display: grid;
  gap: 16px;
}
@media (min-width: 700px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

.card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.card:hover { border-color: #b8c4da; transform: translateY(-2px); }
@media (min-width: 960px) { .card { padding: 36px 32px; } }
.card__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.card__tag { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.card h3 { font-size: 26px; letter-spacing: -0.03em; }
.card p { color: var(--muted); }
.card .chips { margin-top: auto; padding-top: 8px; }

/* ---------- Métricas ---------- */

.metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: #262b33;
  border: 1px solid #262b33;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (min-width: 900px) { .metrics { grid-template-columns: repeat(3, 1fr); } }
.metric {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 24px 20px;
  background: var(--ink);
}
@media (min-width: 900px) { .metric { padding: 36px 32px; } }
.metric strong {
  color: var(--white);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}
.metric span { color: #8ea8d6; font-size: 13px; font-weight: 700; }
.metric p { color: #9aa3b2; font-size: 14px; line-height: 1.5; }

.disclaimer {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 32px;
  color: #9aa3b2;
  font-size: 15px;
  max-width: 760px;
}
.disclaimer .icon { color: #8ea8d6; margin-top: 1px; }

/* ---------- Lista de servicios con icono ---------- */

.features {
  display: grid;
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 640px) { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(3, 1fr); } }

.feature {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  padding: 28px 4px;
  background: var(--white);
}
@media (min-width: 640px) { .feature { padding: 32px 28px 32px 0; } }
@media (min-width: 1000px) {
  .feature { padding: 36px 32px; }
  .features { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
}
.feature__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--navy-50);
  color: var(--navy);
  transition: background .3s var(--ease), color .3s var(--ease);
}
.feature:hover .feature__icon { background: var(--navy); color: var(--white); }
.feature__icon .icon { width: 22px; height: 22px; }
.feature h3 { margin-bottom: 6px; font-size: 18px; letter-spacing: -0.02em; line-height: 1.3; }
.feature p { color: var(--muted); font-size: 15px; line-height: 1.55; }
.section--gray .feature { background: var(--gray); }
.section--gray .features { background: var(--line-strong); }

/* ---------- Tipos de proyecto (lista editorial) ---------- */

.rows { border-top: 1px solid var(--line-strong); }
.row {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 8px 16px;
  align-items: baseline;
  padding: 24px 0;
  border-bottom: 1px solid var(--line-strong);
  transition: padding .3s var(--ease);
}
.row__num { color: var(--navy); font-size: 13px; font-weight: 800; }
.row h3 { font-size: clamp(1.35rem, 3vw, 2rem); letter-spacing: -0.03em; }
.row p { grid-column: 2; color: var(--muted); }
@media (min-width: 900px) {
  .row { grid-template-columns: 64px 1fr 1fr; padding: 32px 0; }
  .row p { grid-column: 3; }
  .row:hover { padding-left: 12px; }
}

/* Checklist */
.checklist {
  display: grid;
  gap: 0 40px;
}
@media (min-width: 640px) { .checklist { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .checklist { grid-template-columns: repeat(3, 1fr); } }
.checklist li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-weight: 600;
}
.checklist .icon {
  width: 26px;
  height: 26px;
  padding: 5px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  stroke-width: 2.4;
}

/* Declaración */
.statement { display: grid; gap: 40px; }
.statement__lines {
  font-size: clamp(2rem, 5.6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.04;
  color: var(--white);
}
.statement__lines span { display: block; color: #5c7bb3; }
.statement__cols { display: grid; gap: 32px; }
.statement__col { padding-top: 24px; border-top: 1px solid #262b33; }
.statement__col h3 { font-size: 20px; margin-bottom: 10px; }
.statement__col p { color: #9aa3b2; }
@media (min-width: 900px) {
  .statement__cols { grid-template-columns: 1fr 1fr; gap: 48px; }
}

/* ---------- Contacto ---------- */

.contact-hero { padding: 40px 0 var(--section); }
.contact-hero__grid { display: grid; gap: 48px; }
@media (min-width: 1000px) {
  .contact-hero { padding-top: 80px; }
  .contact-hero__grid { grid-template-columns: .85fr 1.15fr; gap: 80px; align-items: start; }
  .contact-hero__aside { position: sticky; top: calc(var(--header-h) + 40px); }
}
.contact-hero h1 { margin-bottom: 24px; }
.contact-hero .lead { margin-bottom: 40px; }

.contact-block {
  display: grid;
  gap: 6px;
  padding: 24px 0;
  border-top: 1px solid var(--line-strong);
}
.contact-block:last-child { border-bottom: 1px solid var(--line-strong); }
.contact-block small { color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.contact-block a, .contact-block p { color: var(--ink); font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.contact-block a:hover { color: var(--navy); }

/* ---------- Página genérica (Aviso de Privacidad) ---------- */

.prose { max-width: 760px; padding-block: 40px var(--section); }
.prose h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); margin-bottom: 32px; }
.prose h2 { font-size: 24px; margin: 48px 0 16px; letter-spacing: -0.02em; }
.prose h3 { font-size: 19px; margin: 32px 0 12px; }
.prose p, .prose li { color: #344054; margin-bottom: 16px; }
.prose ul { list-style: disc; padding-left: 22px; }
.prose a { color: var(--navy); text-decoration: underline; }
@media (min-width: 960px) { .prose { padding-top: 80px; } }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: #9aa3b2;
  padding: 72px 0 calc(32px + env(safe-area-inset-bottom));
}
.site-footer__grid {
  display: grid;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid #1f242c;
}
.site-footer__brand p { margin-top: 20px; max-width: 320px; font-size: 15px; }
.site-footer__brand .btn { margin-top: 28px; }
.site-footer__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 24px; }
.site-footer h2 {
  margin-bottom: 18px;
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.site-footer li + li { margin-top: 12px; }
.site-footer a { font-size: 15px; transition: color .2s var(--ease); }
.site-footer a:hover { color: var(--white); }
.site-footer__contact { grid-column: 1 / -1; }
.site-footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 28px;
  font-size: 13px;
}
@media (min-width: 900px) {
  .site-footer { padding-top: 96px; }
  .site-footer__grid { grid-template-columns: 1.2fr 2fr; gap: 80px; }
  .site-footer__cols { grid-template-columns: repeat(3, 1fr); }
  .site-footer__contact { grid-column: auto; }
  .site-footer__bottom { flex-direction: row; justify-content: space-between; }
}

/* ---------- CTA flotante (solo móvil) ---------- */

.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.96);
  border-top: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transform: translateY(110%);
  transition: transform .35s var(--ease);
}
.sticky-cta.is-visible { transform: none; }
.sticky-cta .btn { width: 100%; }
@media (min-width: 900px) { .sticky-cta { display: none; } }

/* ---------- Animaciones de entrada ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="2"] { transition-delay: .08s; }
.js [data-reveal="3"] { transition-delay: .16s; }
.js [data-reveal="4"] { transition-delay: .24s; }

@media (max-width: 767px) {
  .js [data-reveal] { transform: none; transition-duration: .5s; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}
