/* AGMarketing · estilos del sitio
   Una sola hoja, sin dependencias. Tipografía: Plus Jakarta Sans (OFL), alojada en el propio servidor. */

@font-face {
  font-family: "Jakarta";
  src: url("../fonts/jakarta.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0b1020;
  --ink-2: #1c2440;
  --text: #2a3350;
  --muted: #5b6585;
  --line: #e4e7f1;
  --bg: #ffffff;
  --bg-soft: #f5f6fb;
  --dark: #070a16;
  --dark-2: #0e1428;
  --violet: #6c5cff;
  --violet-d: #5443f0;
  --cyan: #19c8e6;
  --pink: #ff5c9a;
  --ok: #12b981;
  --grad: linear-gradient(120deg, var(--violet) 0%, #8b5cf6 40%, var(--cyan) 100%);
  --radius: 18px;
  --radius-s: 12px;
  --shadow: 0 1px 2px rgba(11, 16, 32, .04), 0 8px 24px -8px rgba(11, 16, 32, .10);
  --shadow-l: 0 30px 60px -20px rgba(36, 30, 120, .35);
  --wrap: 1200px;
  --font: "Jakarta", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-h: 72px;
}

*, *::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;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--violet-d); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--violet); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; letter-spacing: -.025em; margin: 0 0 .5em; font-weight: 750; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4.1rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.25rem; letter-spacing: -.015em; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 200; }
.skip:focus { top: 12px; color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--soft { background: var(--bg-soft); }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--violet-d); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--grad); }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 46rem; }
.head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.head--center { margin-inline: auto; text-align: center; }
.head--center .lead { margin-inline: auto; }
.head--center .eyebrow::after { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--grad); }

/* Botones */
.btn {
  --b: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent;
  font: 650 1rem/1 var(--font); text-decoration: none; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px -10px rgba(108, 92, 255, .8); background-size: 140% 100%; }
.btn--primary:hover { color: #fff; transform: translateY(-2px); background-position: 100% 0; box-shadow: 0 16px 36px -12px rgba(108, 92, 255, .9); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { color: var(--ink); border-color: var(--ink); transform: translateY(-2px); }
.btn--light { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.22); backdrop-filter: blur(8px); }
.btn--light:hover { color: #fff; background: rgba(255,255,255,.16); transform: translateY(-2px); }
.btn--wa { background: #1fae54; color: #fff; }
.btn--wa:hover { color: #fff; background: #189848; transform: translateY(-2px); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: .92rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(255,255,255,.82); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent; transition: border-color .2s, background-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.2rem; letter-spacing: -.03em; }
.logo:hover { color: var(--ink); }
.logo img { height: 50px; width: auto; }
@media (max-width: 640px) { .logo img { height: 42px; } }
.site-footer .logo img { height: 48px; }
.nav { margin-left: auto; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav a, .nav button.nav__top {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 10px;
  color: var(--ink-2); text-decoration: none; font: 600 .95rem/1 var(--font); background: none; border: 0; cursor: pointer;
}
.nav a:hover, .nav button.nav__top:hover, .nav a[aria-current="page"] { background: var(--bg-soft); color: var(--ink); }
.nav__top svg { width: 14px; height: 14px; transition: transform .2s; }
.nav__item { position: relative; }
.nav__drop {
  position: absolute; top: calc(100% + 10px); left: 50%; translate: -50% 0; min-width: 300px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-l);
  padding: 10px; list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s;
}
.nav__drop::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.nav__item:hover > .nav__drop, .nav__item:focus-within > .nav__drop, .nav__item.is-open > .nav__drop { opacity: 1; visibility: visible; transform: none; }
.nav__item:hover .nav__top svg, .nav__item.is-open .nav__top svg { transform: rotate(180deg); }
.nav__drop a { display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; width: 100%; line-height: 1.3; }
.nav__drop a small { display: block; color: var(--muted); font-weight: 500; font-size: .82rem; margin-top: 3px; }
.nav__drop .ico { width: 36px; height: 36px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--bg-soft); color: var(--violet-d); }
.nav__drop .ico svg { width: 18px; height: 18px; }
.nav__cta { margin-left: 8px; }
.nav .nav__cta .btn--primary { background: var(--grad); color: #fff; padding: 0 18px; }
.nav .nav__cta .btn--primary:hover { color: #fff; }
.burger { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; place-items: center; }
.burger span, .burger span::before, .burger span::after { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .25s, background-color .25s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
.menu-open .burger span { background: transparent; }
.menu-open .burger span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .burger span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1080px) {
  .burger { display: grid; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h));
    background: #fff; overflow-y: auto; border-top: 1px solid var(--line);
    padding: 16px 24px 40px; display: none;
  }
  .menu-open .nav { display: block; }
  .menu-open { overflow: hidden; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav > ul > li { border-bottom: 1px solid var(--line); }
  .nav a, .nav button.nav__top { width: 100%; justify-content: space-between; padding: 16px 4px; font-size: 1.05rem; }
  .nav__drop { position: static; translate: none; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 12px; display: none; min-width: 0; }
  .nav__item.is-open > .nav__drop { display: block; }
  .nav__item:hover > .nav__drop { opacity: 1; }
  .nav__drop a { padding: 10px 4px; justify-content: flex-start; }
  .nav__cta { margin: 20px 0 0; border: 0 !important; }
  .nav__cta .btn { width: 100%; justify-content: center; padding: 0 26px; color: #fff; }
}

/* Hero */
.hero {
  position: relative; overflow: hidden; color: #c9cfe6; background: var(--dark);
  padding: clamp(72px, 10vw, 128px) 0 clamp(80px, 10vw, 120px);
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 60% at 85% 10%, rgba(108,92,255,.45), transparent 60%),
    radial-gradient(40% 50% at 10% 90%, rgba(25,200,230,.25), transparent 60%),
    radial-gradient(30% 40% at 60% 100%, rgba(255,92,154,.18), transparent 60%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 70% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 30%, #000 30%, transparent 75%);
}
.hero h1, .hero h2 { color: #fff; }
.hero .lead { color: #aab2d0; }
.hero .eyebrow { color: #a99fff; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05); font-size: .88rem; color: #d6dbef; margin-bottom: 22px;
}
.hero__pill b { background: var(--grad); color: #fff; padding: 4px 10px; border-radius: 999px; font-size: .75rem; letter-spacing: .04em; }
.hero .actions { margin-top: 32px; }
.stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: clamp(16px, 4vw, 48px); margin-top: 48px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.1); }
.stat strong { display: block; font-size: clamp(1.7rem, 3vw, 2.2rem); color: #fff; letter-spacing: -.03em; line-height: 1.1; }
.stat span { font-size: .9rem; color: #8f98bb; }

/* Mockup ilustrativo del hero (CSS puro, sin imágenes) */
.mock { position: relative; perspective: 1400px; }
.mock__browser {
  position: relative; border-radius: 18px; background: #0f1630; border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.03) inset;
  transform: rotateY(-10deg) rotateX(4deg); transform-origin: left center; overflow: hidden;
  animation: float 8s ease-in-out infinite;
}
.mock__bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; background: rgba(255,255,255,.04); border-bottom: 1px solid rgba(255,255,255,.07); }
.mock__bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.mock__bar i:nth-child(2) { background: #febc2e; } .mock__bar i:nth-child(3) { background: #28c840; }
.mock__url { margin-left: 10px; flex: 1; height: 24px; border-radius: 8px; background: rgba(255,255,255,.06); font-size: .7rem; color: #8f98bb; display: flex; align-items: center; padding: 0 10px; gap: 6px; }
.mock__url svg { width: 11px; height: 11px; color: var(--ok); }
.mock__body { padding: 22px; display: grid; gap: 14px; }
.mock__nav { display: flex; justify-content: space-between; align-items: center; }
.mock__nav span { width: 70px; height: 10px; border-radius: 6px; background: var(--grad); }
.mock__nav em { display: flex; gap: 8px; }
.mock__nav em::before, .mock__nav em::after { content: ""; width: 34px; height: 6px; border-radius: 4px; background: rgba(255,255,255,.18); }
.mock__h { height: 16px; border-radius: 8px; background: rgba(255,255,255,.85); width: 78%; }
.mock__h--2 { width: 52%; background: rgba(255,255,255,.55); }
.mock__p { height: 8px; border-radius: 6px; background: rgba(255,255,255,.14); width: 90%; }
.mock__p--s { width: 64%; }
.mock__btns { display: flex; gap: 10px; margin-top: 4px; }
.mock__btns b { width: 96px; height: 28px; border-radius: 999px; background: var(--grad); }
.mock__btns b + b { background: rgba(255,255,255,.1); }
.mock__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 6px; }
.mock__cards div { height: 74px; border-radius: 12px; background: linear-gradient(160deg, rgba(108,92,255,.35), rgba(25,200,230,.12)); border: 1px solid rgba(255,255,255,.08); }
.mock__cards div:nth-child(2) { background: linear-gradient(160deg, rgba(255,92,154,.3), rgba(108,92,255,.12)); }
.mock__phone {
  position: absolute; right: -6%; bottom: -10%; width: 34%; aspect-ratio: 9/18.5; border-radius: 26px;
  background: #0b1126; border: 6px solid #1d2647; box-shadow: 0 30px 60px -20px rgba(0,0,0,.8);
  padding: 16px 10px; display: grid; align-content: start; gap: 8px; animation: float 8s ease-in-out -4s infinite;
}
.mock__phone .mock__h { height: 10px; }
.mock__phone div { height: 52px; border-radius: 10px; background: linear-gradient(160deg, rgba(108,92,255,.4), rgba(25,200,230,.15)); }
.mock__badge {
  position: absolute; left: -6%; bottom: 8%; display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.96); color: var(--ink); border-radius: 16px; padding: 12px 16px; box-shadow: var(--shadow-l);
  font-size: .85rem; line-height: 1.25; animation: float 7s ease-in-out -2s infinite;
}
.mock__badge strong { display: block; font-size: .95rem; }
.ring { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .9rem; color: var(--ok);
  background: conic-gradient(var(--ok) 0 98%, #e6f6ef 98% 100%); position: relative; }
.ring::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: #fff; }
.ring span { position: relative; }
.mock__chip { position: absolute; right: 4%; top: -5%; background: var(--grad); color: #fff; font-weight: 700; font-size: .8rem; padding: 9px 14px; border-radius: 12px; box-shadow: var(--shadow-l); display: flex; gap: 8px; align-items: center; animation: float 9s ease-in-out -1s infinite; }
.mock__chip svg { width: 16px; height: 16px; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

/* Hero de páginas interiores */
.page-hero { padding: clamp(56px, 8vw, 96px) 0 clamp(56px, 7vw, 88px); }
.page-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); max-width: 18ch; }
.page-hero--wide h1 { max-width: 24ch; }
.page-hero .hero__grid { grid-template-columns: 1.2fr .8fr; }
.crumbs { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 6px; font-size: .85rem; color: #8f98bb; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.crumbs a { color: #b7bfdc; text-decoration: none; }
.crumbs a:hover { color: #fff; }
.hero-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 28px; backdrop-filter: blur(10px); }
.hero-card h2 { font-size: 1.05rem; letter-spacing: 0; margin-bottom: 14px; color: #fff; }
.hero-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.hero-card li { display: flex; gap: 12px; color: #d0d6ee; font-size: .97rem; line-height: 1.45; }
.hero-card li svg { width: 20px; height: 20px; flex: none; color: var(--cyan); margin-top: 1px; }

/* Tarjetas y grillas */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); font-size: .98rem; margin: 0; }
.card--link:hover { transform: translateY(-4px); box-shadow: var(--shadow-l); border-color: transparent; }
.card--link::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .25s;
}
.card--link:hover::after { opacity: 1; }
.card__link { text-decoration: none; color: inherit; }
.card__link::before { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-weight: 650; font-size: .93rem; color: var(--violet-d); }
.card__more svg { width: 16px; height: 16px; transition: transform .2s; }
.card--link:hover .card__more svg { transform: translateX(4px); }
.ico-box {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px;
  background: linear-gradient(140deg, rgba(108,92,255,.12), rgba(25,200,230,.12)); color: var(--violet-d);
}
.ico-box svg { width: 24px; height: 24px; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--bg-soft); color: var(--muted); margin-bottom: 12px; }

/* Proceso */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; list-style: none; padding: 0; margin: 0; }
.step { position: relative; padding: 28px 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font-weight: 800; font-size: 2.6rem; letter-spacing: -.05em; line-height: 1; margin-bottom: 18px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step h3 { font-size: 1.12rem; }
.step p { color: var(--muted); font-size: .96rem; margin: 0; }

/* Bloque dividido */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; }
.checks li svg { flex: none; width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: rgba(18,185,129,.12); color: var(--ok); margin-top: 2px; }
.checks strong { color: var(--ink); }

.panel {
  position: relative; border-radius: 24px; padding: clamp(28px, 4vw, 44px); background: var(--dark-2); color: #c9cfe6; overflow: hidden; isolation: isolate;
}
.panel::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 60% at 100% 0%, rgba(108,92,255,.45), transparent 60%), radial-gradient(60% 50% at 0% 100%, rgba(25,200,230,.22), transparent 60%); }
.panel h3 { color: #fff; }
.metric-list { display: grid; gap: 14px; margin-top: 18px; }
.metric { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; font-size: .92rem; }
.metric .bar { grid-column: 1 / -1; height: 8px; border-radius: 6px; background: rgba(255,255,255,.08); overflow: hidden; }
.metric .bar i { display: block; height: 100%; border-radius: inherit; background: var(--grad); width: var(--w, 50%); }
.metric b { color: #fff; }

/* Franja de logos/tecnologías */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee ul { display: flex; gap: 48px; list-style: none; padding: 0; margin: 0; width: max-content; animation: marquee 40s linear infinite; }
.marquee li { font-weight: 750; font-size: 1.15rem; color: #5f6788; letter-spacing: -.02em; white-space: nowrap; display: flex; align-items: center; gap: 10px; }
.marquee li svg { width: 20px; height: 20px; color: var(--violet); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 16px; background: #fff; transition: box-shadow .2s, border-color .2s; }
.faq details[open] { box-shadow: var(--shadow); border-color: transparent; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 650; color: var(--ink); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-soft); color: var(--violet-d); font-size: 1.25rem; font-weight: 500; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq__a { padding: 0 24px 22px; color: var(--muted); }
.faq .faq__a p:last-child { margin: 0; }

/* CTA */
.cta {
  position: relative; overflow: hidden; isolation: isolate; border-radius: 28px; padding: clamp(40px, 6vw, 72px);
  background: var(--dark); color: #c9cfe6; display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center;
}
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 90% at 100% 0%, rgba(108,92,255,.55), transparent 60%), radial-gradient(50% 80% at 0% 100%, rgba(25,200,230,.3), transparent 60%); }
.cta h2 { color: #fff; margin-bottom: .3em; }
.cta p { margin: 0; color: #aab2d0; max-width: 40rem; }

/* Contenido largo (legales, blog) */
.prose { max-width: 780px; margin: 0 auto; }
.prose h2 { font-size: clamp(1.45rem, 2.4vw, 1.8rem); margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose li { margin-bottom: .4em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--bg-soft); color: var(--ink); font-weight: 700; }
.prose blockquote { margin: 1.5em 0; padding: 18px 22px; border-left: 4px solid var(--violet); background: var(--bg-soft); border-radius: 0 12px 12px 0; }
.note { padding: 16px 20px; border-radius: 14px; background: #fff8e6; border: 1px solid #f6e2a8; color: #6b5310; font-size: .95rem; margin: 0 0 2em; }
.toc { padding: 20px 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-soft); margin: 0 0 2.5em; }
.toc ol { margin: 8px 0 0; columns: 2; column-gap: 32px; font-size: .95rem; }
.meta { color: var(--muted); font-size: .92rem; }

/* Blog */
.post-card { display: flex; flex-direction: column; }
.post-card .cover { aspect-ratio: 16/9; border-radius: 14px; margin: -8px -8px 22px; display: grid; place-items: center; color: #fff; background: var(--grad); }
.post-card .cover svg { width: 48px; height: 48px; opacity: .9; }
.post-card .cover--b { background: linear-gradient(130deg, #0e1428, #6c5cff); }
.post-card .cover--c { background: linear-gradient(130deg, #19c8e6, #0e1428); }

/* Formulario */
.form { display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-weight: 650; font-size: .92rem; color: var(--ink); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(108,92,255,.15); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; color: var(--muted); }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--violet); flex: none; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-msg { padding: 14px 18px; border-radius: 12px; font-weight: 600; display: none; }
.form-msg.is-ok { display: block; background: #e8faf2; color: #0b7a55; }
.form-msg.is-err { display: block; background: #fdecec; color: #a12727; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact-list a { display: flex; gap: 16px; align-items: center; text-decoration: none; color: var(--ink); padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff; transition: border-color .2s, transform .2s; }
.contact-list a:hover { border-color: var(--violet); transform: translateX(4px); color: var(--ink); }
.contact-list small { display: block; color: var(--muted); font-size: .82rem; }
.contact-list .ico-box { margin: 0; width: 46px; height: 46px; }

/* Footer */
.site-footer { background: var(--dark); color: #8f98bb; padding: 80px 0 32px; font-size: .95rem; }
.site-footer a { color: #c4cae2; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; }
.site-footer h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: #fff; margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer .logo { color: #fff; margin-bottom: 16px; }
.foot-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: .86rem; }
.foot-bottom ul { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot-bottom button { background: none; border: 0; color: #c4cae2; font: inherit; cursor: pointer; padding: 0; }
.foot-bottom button:hover { color: #fff; }
.pay { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.pay__card { width: 64px; height: 40px; border-radius: 8px; background: #fff; display: grid; place-items: center; padding: 8px 10px; box-shadow: 0 4px 12px -4px rgba(0,0,0,.4); }
.pay__card svg { width: 100%; height: 100%; }
.pay__note { font-size: .8rem; margin: 10px 0 0; }

/* WhatsApp: burbuja flotante con ventana de chat */
.wa { position: fixed; right: 20px; bottom: 20px; z-index: 110; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.wa-float {
  position: relative; width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 12px 30px -8px rgba(37,211,102,.75); transition: transform .2s;
}
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25d366; z-index: -1; animation: wa-pulse 2.4s ease-out infinite; }
.wa-float:hover { transform: scale(1.08); color: #fff; }
.wa-float svg { width: 32px; height: 32px; }
.wa__dot { position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; border-radius: 10px; background: #ff3b30; color: #fff; font-size: .72rem; font-weight: 800; display: grid; place-items: center; border: 2px solid #fff; }
.wa.is-seen .wa__dot { display: none; }
.wa.is-open .wa-float::before { animation: none; }
@keyframes wa-pulse { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.7); opacity: 0; } }
.wa__hint { background: #fff; color: var(--ink); font-weight: 650; font-size: .9rem; padding: 10px 14px; border-radius: 14px 14px 4px 14px; box-shadow: var(--shadow-l); animation: wa-in .35s ease; cursor: pointer; }
.wa__panel { width: min(340px, calc(100vw - 32px)); border-radius: 20px; overflow: hidden; background: #efeae2; box-shadow: 0 30px 60px -15px rgba(11,16,32,.45); animation: wa-in .25s ease; }
@keyframes wa-in { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
.wa__head { display: flex; align-items: center; gap: 12px; padding: 16px; background: #075e54; color: #fff; }
.wa__head strong { display: block; font-size: 1rem; line-height: 1.2; }
.wa__head small { color: #cfe9e4; font-size: .8rem; }
.wa__avatar { position: relative; width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-weight: 800; font-size: .95rem; }
.wa__avatar i { position: absolute; right: 1px; bottom: 1px; width: 11px; height: 11px; border-radius: 50%; background: #25d366; border: 2px solid #075e54; }
.wa__close { margin-left: auto; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.wa__close:hover { background: rgba(255,255,255,.22); }
.wa__body { padding: 20px 16px; min-height: 110px; background-image: radial-gradient(rgba(0,0,0,.035) 1px, transparent 1px); background-size: 14px 14px; }
.wa__msg { position: relative; display: inline-block; max-width: 85%; margin: 0; padding: 10px 14px 8px; border-radius: 0 12px 12px 12px; background: #fff; color: #111; font-size: .95rem; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.wa__msg span { display: block; font-size: .72rem; color: #667; margin-top: 4px; }
.wa__form { display: flex; gap: 8px; padding: 10px; background: #f0f0f0; }
.wa__form input { flex: 1; min-width: 0; border: 0; border-radius: 999px; padding: 12px 16px; font: inherit; font-size: .95rem; background: #fff; }
.wa__form input:focus { outline: 2px solid #25d366; }
.wa__form button { width: 46px; height: 46px; flex: none; border: 0; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; cursor: pointer; }
.wa__form button svg { width: 20px; height: 20px; }

/* Aviso de cookies */
.cookie {
  position: fixed; left: 20px; bottom: 20px; z-index: 120; max-width: 440px; background: #fff; color: var(--text);
  border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-l); padding: 22px; font-size: .93rem;
}
.cookie[hidden] { display: none; }
.cookie h2 { font-size: 1.05rem; margin-bottom: 6px; letter-spacing: -.01em; }
.cookie p { color: var(--muted); }
.cookie .actions { gap: 8px; }
.cookie .btn { min-height: 42px; padding: 0 16px; font-size: .9rem; }
.cookie__prefs { display: grid; gap: 10px; margin: 6px 0 16px; }
.cookie__prefs[hidden] { display: none; }
.cookie__prefs label { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.cookie__prefs input { accent-color: var(--violet); width: 18px; height: 18px; margin-top: 2px; }
.cookie__prefs small { display: block; color: var(--muted); }

/* Animación al hacer scroll (sólo si el usuario no pidió reducir movimiento) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
  .js .reveal.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Responsive */
@media (max-width: 1080px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero__grid, .page-hero .hero__grid, .split { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .mock { max-width: 560px; margin: 24px auto 0; width: 100%; }
  .cta { grid-template-columns: 1fr; }
  .toc ol { columns: 1; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .wrap { padding: 0 18px; }
  .grid--2, .grid--3, .grid--4, .steps, .form .row, .foot-grid { grid-template-columns: 1fr; }
  .card { padding: 24px; }
  .btn { width: 100%; }
  .actions { flex-direction: column; }
  .mock { max-width: 340px; }
  .mock__badge { left: 0; bottom: -4%; font-size: .78rem; }
  .stat strong { font-size: 1.5rem; }
  .stat span { font-size: .8rem; display: block; line-height: 1.3; }
  .mock__phone { right: -2%; }
  .cookie { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  .wa { right: 14px; bottom: 14px; }
  .wa-float { width: 56px; height: 56px; }
}
@media print {
  .site-header, .site-footer, .wa, .cookie, .cta { display: none !important; }
  .hero, .page-hero { background: none; color: #000; padding: 20px 0; }
  .hero h1 { color: #000; }
}
