/* =========================================================
   IA Alicante — Landing de conversión
   Sistema visual: azul tecnológico profundo + acento esmeralda
   Tipografía: Inter
   ========================================================= */

:root {
  /* Marca */
  --brand-900: #07173a;
  --brand-800: #0b2a63;
  --brand-700: #0b3d91; /* color de marca principal */
  --brand-600: #1747b6;
  --brand-500: #1d4ed8;

  /* Acento esmeralda (botones, métricas, checks) */
  --accent-600: #047857; /* texto AA sobre blanco */
  --accent-500: #059669;
  --accent-400: #10b981;
  --accent-soft: #ecfdf5;

  /* Neutros */
  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #5b6b80;
  --muted-2: #7888a0;
  --line: #e6eaf0;
  --line-strong: #d4dbe6;
  --bg: #ffffff;
  --bg-soft: #f7f9fc;
  --bg-soft-2: #eef2f8;

  /* Sistema */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05), 0 1px 3px rgba(15, 23, 42, .04);
  --shadow: 0 6px 20px -8px rgba(15, 23, 42, .12), 0 2px 6px rgba(15, 23, 42, .05);
  --shadow-lg: 0 24px 60px -20px rgba(11, 42, 99, .28);
  --maxw: 1180px;
  --gut: clamp(20px, 5vw, 56px);

  --ease: cubic-bezier(.2, .7, .25, 1);
  --t: .22s var(--ease);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 92px; }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; color: var(--ink); text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--accent-400); color: #fff; }

:focus-visible {
  outline: 3px solid var(--accent-500);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- Utilidades ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: clamp(64px, 9vw, 120px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-600);
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px; background: var(--accent-400); border-radius: 2px;
}
.section-head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
h2.h2 { font-size: clamp(28px, 3.6vw, 44px); margin-top: 14px; }
.lead { font-size: clamp(17px, 1.4vw, 19px); color: var(--muted); margin-top: 16px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 24px; border-radius: var(--radius-pill);
  font-weight: 600; font-size: 15.5px; letter-spacing: -0.01em;
  border: 1px solid transparent; white-space: nowrap;
  transition: transform var(--t), box-shadow var(--t), background var(--t), color var(--t), border-color var(--t);
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: var(--accent-500); color: #fff;
  box-shadow: 0 10px 22px -10px rgba(5, 150, 105, .7);
}
.btn-primary:hover { background: var(--accent-600); transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(5, 150, 105, .75); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: #fff; color: var(--brand-700); border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--brand-500); color: var(--brand-600); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-onbrand {
  background: #fff; color: var(--brand-700);
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .4);
}
.btn-onbrand:hover { transform: translateY(-2px); background: var(--accent-400); color: #fff; }
.btn-onbrand.solid { background: var(--accent-400); color: #fff; }
.btn-onbrand.solid:hover { background: var(--accent-500); }
.btn-lg { padding: 17px 30px; font-size: 16.5px; }
.btn-block { width: 100%; }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t), box-shadow var(--t), background var(--t);
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 9px; white-space: nowrap; line-height: 1.1; }
.logo-mark { display: inline-flex; align-items: baseline; flex: none; }
.logo-mark .brk { font-family: "Space Grotesk", ui-monospace, monospace; font-weight: 500; font-size: 31px; color: var(--accent-400); line-height: 1; }
.logo-mark .mono { font-weight: 800; letter-spacing: -0.04em; font-size: 23px; color: var(--brand-700); padding: 0 2px; }
.logo-wm { display: flex; flex-direction: column; }
.logo-wm .lw-name { font-weight: 800; letter-spacing: -0.02em; font-size: 20px; color: var(--ink); line-height: 1; }
.logo-wm small { font-size: 10.5px; font-weight: 600; letter-spacing: .02em; color: var(--muted); margin-top: 4px; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a {
  padding: 9px 14px; border-radius: 10px; font-size: 15px; font-weight: 500; color: var(--ink-soft);
  transition: color var(--t), background var(--t);
}
.nav-links a:hover { color: var(--brand-700); background: var(--bg-soft-2); }
.nav-cta { display: flex; align-items: center; gap: 10px; margin-left: 8px; }
.nav-tel { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 14.5px; color: var(--brand-700); padding: 9px 12px; border-radius: 10px; white-space: nowrap; }
.nav-tel:hover { background: var(--bg-soft-2); }
.nav-tel svg { width: 16px; height: 16px; }

.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 11px;
  border: 1px solid var(--line-strong); background: #fff; align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; stroke: var(--ink); }
.nav-toggle .ic-close { display: none; }
body.menu-open .nav-toggle .ic-close { display: block; }
body.menu-open .nav-toggle .ic-open { display: none; }

/* Menú móvil */
.mobile-menu {
  position: fixed; inset: 72px 0 auto 0; z-index: 55;
  background: #fff; border-bottom: 1px solid var(--line);
  padding: 14px var(--gut) 24px; box-shadow: var(--shadow);
  transform: translateY(-12px); opacity: 0; visibility: hidden; pointer-events: none;
  transition: transform .25s var(--ease), opacity .25s var(--ease), visibility 0s linear .25s;
}
body.menu-open .mobile-menu { transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto; transition: transform .25s var(--ease), opacity .25s var(--ease), visibility 0s; }
.mobile-menu a { display: block; padding: 13px 6px; font-size: 17px; font-weight: 500; border-bottom: 1px solid var(--line); color: var(--ink); }
.mobile-menu a:last-of-type { border-bottom: none; }
.mobile-menu .btn { margin-top: 16px; }

/* =========================================================
   Hero
   ========================================================= */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 50% at 85% 0%, rgba(29, 78, 216, .07), transparent 70%),
    radial-gradient(50% 45% at 5% 30%, rgba(16, 185, 129, .06), transparent 70%),
    linear-gradient(180deg, var(--bg-soft) 0%, #fff 60%);
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center;
  padding-block: clamp(48px, 7vw, 88px);
  position: relative; z-index: 1;
}

/* ---------- Fondo discreto animado del hero ---------- */
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero-bg .hero-grid-layer {
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(to right, rgba(11, 61, 145, .055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11, 61, 145, .055) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask: radial-gradient(125% 85% at 82% -5%, #000 28%, transparent 72%);
  mask: radial-gradient(125% 85% at 82% -5%, #000 28%, transparent 72%);
  animation: gridDrift 28s linear infinite;
}
@keyframes gridDrift { to { background-position: 48px 48px; } }
.hero-bg .orb { position: absolute; border-radius: 50%; filter: blur(64px); will-change: transform; }
.hero-bg .orb-1 {
  width: 420px; height: 420px; right: -80px; top: -120px;
  background: radial-gradient(circle, rgba(29, 78, 216, .20), transparent 70%);
  animation: orbFloat1 19s ease-in-out infinite;
}
.hero-bg .orb-2 {
  width: 320px; height: 320px; left: -70px; bottom: -90px;
  background: radial-gradient(circle, rgba(16, 185, 129, .18), transparent 70%);
  animation: orbFloat2 24s ease-in-out infinite;
}
@keyframes orbFloat1 {
  50% { transform: translate(-34px, 30px) scale(1.08); }
}
@keyframes orbFloat2 {
  50% { transform: translate(40px, -26px) scale(1.1); }
}
/* Línea de barrido tenue que cruza despacio */
.hero-bg .scan {
  position: absolute; top: 0; bottom: 0; width: 38%; left: -45%;
  background: linear-gradient(100deg, transparent, rgba(29, 78, 216, .045), rgba(16, 185, 129, .05), transparent);
  filter: blur(6px); animation: scanMove 14s ease-in-out infinite;
}
@keyframes scanMove {
  0% { left: -45%; }
  55%, 100% { left: 120%; }
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px 7px 8px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-pill);
  font-size: 13.5px; font-weight: 600; color: var(--ink-soft); box-shadow: var(--shadow-sm);
}
.hero-tag b { background: var(--accent-soft); color: var(--accent-600); padding: 3px 9px; border-radius: var(--radius-pill); font-size: 12px; letter-spacing: .01em; }
h1.hero-title {
  font-size: clamp(36px, 5.2vw, 60px); margin-top: 22px; letter-spacing: -0.035em; line-height: 1.04;
}
h1.hero-title .accent { color: var(--brand-700); }
.hero-sub { font-size: clamp(17px, 1.55vw, 20px); color: var(--muted); margin-top: 22px; max-width: 560px; }
.hero-sub strong { color: var(--ink); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* Barra de confianza */
.trustbar {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 28px; margin-top: 40px;
  padding-top: 30px; border-top: 1px solid var(--line);
}
.trust-item { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; font-weight: 500; color: var(--ink-soft); }
.trust-item .tick {
  flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft);
  display: grid; place-items: center; margin-top: 1px;
}
.trust-item .tick svg { width: 13px; height: 13px; stroke: var(--accent-600); }

/* ---------- Hero visual: diagrama de nodos estilo n8n ---------- */
.hero-visual { position: relative; }
.flowcard {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-lg);
}
.flowcard-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.flowcard-top .dots { display: flex; gap: 6px; }
.flowcard-top .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.flowcard-top .pill { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-600); background: var(--accent-soft); padding: 4px 10px; border-radius: var(--radius-pill); }
.flow { position: relative; }
.flow svg.wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; z-index: 0; }
.flow svg.wires path { fill: none; stroke: var(--line-strong); stroke-width: 2; stroke-dasharray: 5 6; }
.flow svg.wires path.live { stroke: var(--accent-400); stroke-dasharray: 6 8; animation: dash 1.4s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -28; } }
.nodes { position: relative; z-index: 1; display: grid; gap: 14px; }
.node {
  display: flex; align-items: center; gap: 13px; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 13px 15px; box-shadow: var(--shadow-sm);
}
.node .ic { flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; }
.node .ic svg { width: 20px; height: 20px; }
.node .tx b { display: block; font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; }
.node .tx span { font-size: 12.5px; color: var(--muted-2); }
.node.is-blue .ic { background: #e8eefb; } .node.is-blue .ic svg { stroke: var(--brand-600); }
.node.is-green .ic { background: var(--accent-soft); } .node.is-green .ic svg { stroke: var(--accent-600); }
.node.is-slate .ic { background: var(--bg-soft-2); } .node.is-slate .ic svg { stroke: var(--ink-soft); }
.node .badge { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--accent-600); }
.node.row-2 { margin-left: 36px; }
.node.row-3 { margin-left: 18px; }

.flowcard-foot { margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--line-strong); display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.flowcard-foot .live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent-400); box-shadow: 0 0 0 4px rgba(16,185,129,.18); animation: pulse 1.8s ease infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(16,185,129,0); } }
.float-metric {
  position: absolute; right: -14px; bottom: -18px; background: var(--brand-700); color: #fff;
  border-radius: 16px; padding: 14px 18px; box-shadow: var(--shadow-lg); z-index: 2;
}
.float-metric b { display: block; font-size: 26px; font-weight: 800; letter-spacing: -0.03em; color: #fff; }
.float-metric span { font-size: 12px; color: #b9c8ec; }

/* =========================================================
   Diferencial — Primero auditamos
   ========================================================= */
.diff { background: var(--bg-soft); border-block: 1px solid var(--line); }
.diff-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 8px; }
.diff-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 34px); position: relative; }
.diff-panel.yes { border-top: 4px solid var(--accent-400); }
.diff-panel.no { border-top: 4px solid #cbd5e1; }
.diff-panel h3 { font-size: 20px; display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.diff-panel .mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.diff-panel.yes .mark { background: var(--accent-soft); } .diff-panel.yes .mark svg { stroke: var(--accent-600); }
.diff-panel.no .mark { background: #f1f5f9; } .diff-panel.no .mark svg { stroke: #64748b; }
.diff-panel ul { list-style: none; padding: 0; display: grid; gap: 14px; }
.diff-panel li { display: flex; gap: 12px; font-size: 15.5px; color: var(--ink-soft); align-items: flex-start; }
.diff-panel li svg { width: 19px; height: 19px; flex: none; margin-top: 2px; }
.diff-panel.yes li svg { stroke: var(--accent-500); }
.diff-panel.no li svg { stroke: #94a3b8; }
.diff-note {
  margin-top: 26px; background: var(--brand-700); color: #eaf0fd; border-radius: var(--radius);
  padding: 22px 26px; display: flex; gap: 16px; align-items: center; box-shadow: var(--shadow);
}
.diff-note svg { width: 30px; height: 30px; stroke: var(--accent-400); flex: none; }
.diff-note p { font-size: 16px; }
.diff-note strong { color: #fff; }

/* =========================================================
   Servicios
   ========================================================= */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 28px; transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card-ic { width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(150deg, #eef3fd, #e3ecfb); display: grid; place-items: center; margin-bottom: 20px; }
.card-ic svg { width: 26px; height: 26px; stroke: var(--brand-600); }
.card.feat .card-ic { background: linear-gradient(150deg, var(--accent-soft), #d6f7e9); }
.card.feat .card-ic svg { stroke: var(--accent-600); }
.card h3 { font-size: 19px; margin-bottom: 10px; letter-spacing: -0.02em; }
.card p { font-size: 15px; color: var(--muted); flex: 1; }
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 20px; font-size: 14.5px; font-weight: 600; color: var(--brand-700); }
.card-link svg { width: 15px; height: 15px; transition: transform var(--t); }
.card:hover .card-link svg { transform: translateX(4px); }
.card .tag-feat { align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--accent-600); background: var(--accent-soft); padding: 4px 10px; border-radius: var(--radius-pill); margin-bottom: 16px; }

/* =========================================================
   Sectores
   ========================================================= */
.sectors { background: var(--bg-soft); border-block: 1px solid var(--line); }
.sectors-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 22px; }
.sector {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px;
  transition: transform var(--t), box-shadow var(--t); position: relative; overflow: hidden;
}
.sector:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.sector.star { background: linear-gradient(160deg, var(--brand-700), var(--brand-900)); color: #fff; border-color: transparent; }
.sector.star h3, .sector.star p { color: #fff; }
.sector .s-ic { width: 48px; height: 48px; border-radius: 13px; background: var(--bg-soft-2); display: grid; place-items: center; margin-bottom: 18px; }
.sector .s-ic svg { width: 24px; height: 24px; stroke: var(--brand-600); }
.sector.star .s-ic { background: rgba(255,255,255,.12); } .sector.star .s-ic svg { stroke: var(--accent-400); }
.sector .s-tag { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-400); margin-bottom: 12px; display: inline-block; }
.sector h3 { font-size: 19px; margin-bottom: 10px; }
.sector p { font-size: 14.5px; color: var(--muted); }
.sector.star ul { list-style: none; padding: 0; margin-top: 16px; display: grid; gap: 9px; }
.sector.star li { display: flex; gap: 9px; align-items: center; font-size: 14px; color: #d8e2f8; }
.sector.star li svg { width: 16px; height: 16px; stroke: var(--accent-400); flex: none; }

/* =========================================================
   Proceso / Cómo trabajamos
   ========================================================= */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; counter-reset: step; }
.step { position: relative; padding: 0 24px; }
.step:first-child { padding-left: 0; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 27px; right: -2px; width: calc(100% - 56px); height: 2px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 12px);
  transform: translateX(50%);
}
.step .num {
  width: 54px; height: 54px; border-radius: 15px; background: #fff; border: 1px solid var(--line);
  display: grid; place-items: center; font-size: 19px; font-weight: 800; color: var(--brand-700);
  letter-spacing: -0.03em; box-shadow: var(--shadow-sm); position: relative; z-index: 1; margin-bottom: 22px;
}
.step.hot .num { background: var(--brand-700); color: #fff; border-color: transparent; }
.step h3 { font-size: 17.5px; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--muted); }

/* =========================================================
   Resultados / métricas
   ========================================================= */
.results { background: linear-gradient(170deg, var(--brand-900), var(--brand-700)); color: #fff; position: relative; overflow: hidden; }
.results::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 60% at 90% 10%, rgba(16,185,129,.18), transparent 60%); }
.results .wrap { position: relative; }
.results .eyebrow { color: var(--accent-400); }
.results h2.h2 { color: #fff; }
.results .lead { color: #c3d0ec; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 8px; }
.metric { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-lg); padding: 30px 28px; backdrop-filter: blur(4px); }
.metric b { display: block; font-size: clamp(38px, 5vw, 52px); font-weight: 800; letter-spacing: -0.04em; color: #fff; line-height: 1; }
.metric .m-label { font-size: 15px; color: #c3d0ec; margin-top: 12px; font-weight: 500; }
.metric .m-ph { display: inline-block; margin-top: 14px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--accent-400); background: rgba(16,185,129,.14); padding: 4px 9px; border-radius: var(--radius-pill); }
.case {
  margin-top: 28px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 34px); display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center;
}
.case .case-ic { width: 56px; height: 56px; border-radius: 15px; background: rgba(16,185,129,.16); display: grid; place-items: center; flex: none; }
.case .case-ic svg { width: 28px; height: 28px; stroke: var(--accent-400); }
.case h3 { color: #fff; font-size: 18px; margin-bottom: 8px; }
.case p { color: #c3d0ec; font-size: 15px; }
.case .case-tag { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--accent-400); }

/* =========================================================
   Fundador / Quién está detrás
   ========================================================= */
.founder { background: linear-gradient(180deg, #f3f7fd 0%, #ffffff 72%); border-top: 1px solid var(--line); }
.founder-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(36px, 5vw, 76px); align-items: center; }

.founder-photo { position: relative; margin: 0; }
.founder-photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow-lg); display: block; position: relative; z-index: 1; }
/* Corchetes de esquina (eco del logo [ia]) */
.founder-photo::before, .founder-photo::after { content: ""; position: absolute; width: clamp(48px, 8vw, 76px); height: clamp(48px, 8vw, 76px); border: 4px solid var(--accent-400); z-index: 2; }
.founder-photo::before { top: clamp(-14px, -1.4vw, -10px); left: clamp(-14px, -1.4vw, -10px); border-right: none; border-bottom: none; border-top-left-radius: 16px; }
.founder-photo::after { bottom: clamp(-14px, -1.4vw, -10px); right: clamp(-14px, -1.4vw, -10px); border-left: none; border-top: none; border-bottom-right-radius: 16px; }
.founder-badge { position: absolute; left: 18px; bottom: 18px; z-index: 3; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.6); border-radius: 14px; padding: 12px 18px; box-shadow: var(--shadow); }
.founder-badge b { display: block; font-size: 15.5px; letter-spacing: -0.02em; color: var(--ink); }
.founder-badge span { font-size: 12.5px; font-weight: 600; color: var(--accent-600); }

.founder-copy .lead { margin-top: 18px; }
.founder-copy .lead strong { color: var(--ink); font-weight: 700; }
.founder-quote {
  position: relative; margin: 28px 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--accent-400);
  font-size: clamp(18px, 1.9vw, 23px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.42; color: var(--ink); text-wrap: balance;
}
.founder-facts { list-style: none; padding: 0; margin: 0 0 30px; display: flex; flex-wrap: wrap; gap: 10px; }
.founder-facts li { display: inline-flex; align-items: center; gap: 9px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 9px 16px; font-size: 14px; font-weight: 500; color: var(--ink-soft); box-shadow: var(--shadow-sm); }
.founder-facts li svg { width: 17px; height: 17px; stroke: var(--accent-600); flex: none; }

/* =========================================================
   Por qué nosotros
   ========================================================= */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.why { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; transition: transform var(--t), box-shadow var(--t); }
.why:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.why .w-ic { width: 50px; height: 50px; border-radius: 13px; background: var(--accent-soft); display: grid; place-items: center; margin-bottom: 18px; }
.why .w-ic svg { width: 25px; height: 25px; stroke: var(--accent-600); }
.why h3 { font-size: 17px; margin-bottom: 9px; }
.why p { font-size: 14.5px; color: var(--muted); }

/* =========================================================
   FAQ
   ========================================================= */
.faq { background: var(--bg-soft); border-block: 1px solid var(--line); }
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.faq-list { display: grid; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow var(--t), border-color var(--t); }
.faq-item[open] { box-shadow: var(--shadow); border-color: var(--line-strong); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 20px 24px; display: flex; align-items: center; gap: 16px;
  font-weight: 600; font-size: 16.5px; color: var(--ink); letter-spacing: -0.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .q-ic { margin-left: auto; flex: none; width: 26px; height: 26px; border-radius: 8px; background: var(--bg-soft-2); display: grid; place-items: center; transition: transform var(--t), background var(--t); }
.faq-item summary .q-ic svg { width: 16px; height: 16px; stroke: var(--brand-700); }
.faq-item[open] summary .q-ic { transform: rotate(45deg); background: var(--accent-soft); }
.faq-item[open] summary .q-ic svg { stroke: var(--accent-600); }
.faq-body { padding: 0 24px 22px; }
.faq-body p { font-size: 15.5px; color: var(--muted); }
.faq-aside { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; position: sticky; top: 96px; }
.faq-aside h2 { font-size: 21px; margin-bottom: 12px; }
.faq-aside p { font-size: 15px; color: var(--muted); margin-bottom: 22px; }

/* =========================================================
   CTA final
   ========================================================= */
.cta-final { background: var(--bg-soft); border-top: 1px solid var(--line); }
.cta-final .wrap { max-width: var(--maxw); }
.cta-panel {
  position: relative; overflow: hidden; text-align: center;
  background: linear-gradient(155deg, var(--brand-700), var(--brand-900));
  border-radius: clamp(20px, 3vw, 32px);
  padding: clamp(44px, 6vw, 80px) clamp(24px, 5vw, 72px);
  box-shadow: var(--shadow-lg);
}
.cta-panel::before { content: ""; position: absolute; inset: 0; background: radial-gradient(45% 70% at 80% 100%, rgba(16,185,129,.24), transparent 60%), radial-gradient(40% 60% at 10% 0%, rgba(29,78,216,.45), transparent 60%); }
.cta-panel > * { position: relative; }
.cta-panel .eyebrow { color: var(--accent-400); justify-content: center; }
.cta-panel h2 { color: #fff; font-size: clamp(30px, 4.4vw, 50px); margin-top: 16px; }
.cta-panel p { color: #c3d0ec; font-size: clamp(17px, 1.5vw, 19px); margin: 20px auto 0; max-width: 560px; }
.cta-panel .hero-actions { justify-content: center; margin-top: 34px; }
.cta-panel .reassure { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; font-size: 14px; color: #aebde0; }
.cta-panel .reassure svg { width: 16px; height: 16px; stroke: var(--accent-400); }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--brand-900); color: #aebbd6; padding-block: clamp(48px, 6vw, 72px) 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.site-footer .brand { margin-bottom: 16px; }
.site-footer .logo-mark .mono { color: #fff; }
.site-footer .logo-wm .lw-name { color: #fff; }
.site-footer .logo-wm small { color: #8294b8; }
.footer-about { font-size: 14.5px; color: #94a5c6; max-width: 320px; }
.footer-col h4 { color: #fff; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 18px; font-weight: 700; }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 12px; }
.footer-col a, .footer-col li { font-size: 14.5px; color: #aebbd6; transition: color var(--t); }
.footer-col a:hover { color: #fff; }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; }
.footer-contact svg { width: 17px; height: 17px; stroke: var(--accent-400); flex: none; margin-top: 2px; }
.wa-btn { display: inline-flex; align-items: center; gap: 9px; margin-top: 16px; background: #25D366; color: #06301a; font-weight: 700; padding: 11px 18px; border-radius: var(--radius-pill); font-size: 14.5px; transition: transform var(--t), box-shadow var(--t); }
.wa-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(37,211,102,.6); }
.wa-btn svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-block: 24px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; font-size: 13.5px; color: #8294b8; }
.footer-bottom .legal { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-bottom .legal a:hover { color: #fff; }

/* =========================================================
   Responsive
   ========================================================= */
/* Ocultar teléfono en barra antes de apretar el header */
@media (max-width: 1080px) {
  .nav-tel { display: none; }
}

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; margin-inline: auto; width: 100%; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .sectors-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; }
  .step { padding: 0; }
  .step:not(:last-child)::after { display: none; }
  .faq-wrap { grid-template-columns: 1fr; }
  .faq-aside { position: static; }
  .founder-grid { grid-template-columns: 1fr; gap: 48px; }
  .founder-photo { max-width: 440px; margin-inline: auto; width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* Cambiar a menú hamburguesa cuando la nav se aprieta */
@media (max-width: 880px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .diff-cols { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .trustbar { grid-template-columns: 1fr; }
  .case { grid-template-columns: 1fr; text-align: left; }
  .footer-grid { grid-template-columns: 1fr; }
  .float-metric { right: 8px; bottom: -14px; }
  .hero-actions .btn { flex: 1; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   Páginas legales (aviso legal · privacidad · cookies)
   ========================================================= */
.legal-hero {
  background: var(--bg-soft); border-bottom: 1px solid var(--line);
  padding-block: clamp(48px, 7vw, 84px) clamp(26px, 4vw, 40px);
}
.legal-hero h1 { font-size: clamp(30px, 4vw, 44px); margin-top: 14px; letter-spacing: -0.03em; }
.legal-updated { margin-top: 14px; font-size: 14px; color: var(--muted); }

.legal-body { padding-block: clamp(40px, 6vw, 72px); }
.legal-wrap { max-width: 760px; }
.legal-wrap > * + * { margin-top: 18px; }
.legal-wrap h2 { font-size: clamp(21px, 2.4vw, 26px); margin-top: 42px; letter-spacing: -0.02em; }
.legal-wrap h3 { font-size: 18px; margin-top: 28px; }
.legal-wrap p, .legal-wrap li { font-size: 16px; color: var(--ink-soft); line-height: 1.7; }
.legal-wrap ul, .legal-wrap ol { padding-left: 22px; display: grid; gap: 9px; }
.legal-wrap li { padding-left: 4px; }
.legal-wrap a { color: var(--brand-700); text-decoration: underline; text-underline-offset: 2px; transition: color var(--t); }
.legal-wrap a:hover { color: var(--brand-600); }
.legal-wrap strong { color: var(--ink); font-weight: 700; }

/* Tarjeta de datos identificativos / responsable */
.legal-card {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 26px; margin-top: 22px;
}
.legal-card dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; margin: 0; }
.legal-card dt { font-weight: 700; color: var(--ink); font-size: 15px; }
.legal-card dd { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* Tabla de cookies */
.legal-table-wrap { margin-top: 18px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.legal-table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; }
.legal-table th, .legal-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-soft); }
.legal-table th { background: var(--bg-soft); font-weight: 700; color: var(--ink); }
.legal-table tr:last-child td { border-bottom: none; }

@media (max-width: 560px) {
  .legal-card dl { grid-template-columns: 1fr; gap: 4px; }
  .legal-card dt { margin-top: 12px; }
  .legal-card dt:first-child { margin-top: 0; }
}

/* =========================================================
   Contacto / Formulario
   ========================================================= */
.contacto { background: var(--bg-soft); border-top: 1px solid var(--line); }
.contacto-panel {
  display: grid; grid-template-columns: 1fr 1.08fr; gap: clamp(24px, 3vw, 40px);
  align-items: stretch;
}

/* Columna izquierda: panel de marca */
.contacto-intro {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(155deg, var(--brand-700), var(--brand-900));
  border-radius: var(--radius-lg); padding: clamp(30px, 4vw, 48px);
  box-shadow: var(--shadow-lg);
}
.contacto-intro::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(45% 60% at 90% 100%, rgba(16,185,129,.22), transparent 60%),
              radial-gradient(40% 55% at 0% 0%, rgba(29,78,216,.4), transparent 60%);
}
.contacto-intro > * { position: relative; }
.contacto-intro .eyebrow { color: var(--accent-400); }
.contacto-intro h2 { color: #fff; font-size: clamp(26px, 3vw, 38px); margin-top: 14px; }
.contacto-intro > p { color: #c3d0ec; margin-top: 16px; font-size: 16.5px; }
.contacto-points { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.contacto-points li { display: flex; gap: 11px; align-items: flex-start; font-size: 15px; color: #e7eefb; }
.contacto-points li svg { width: 19px; height: 19px; stroke: var(--accent-400); flex: none; margin-top: 2px; }
.contacto-direct { margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); display: flex; flex-wrap: wrap; gap: 10px 22px; }
.contacto-direct a { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; color: #fff; }
.contacto-direct a:hover { color: var(--accent-400); }
.contacto-direct svg { width: 16px; height: 16px; stroke: var(--accent-400); flex: none; }

/* Columna derecha: tarjeta del formulario */
.contacto-form {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(26px, 3.2vw, 40px); box-shadow: var(--shadow);
}
.field { display: flex; flex-direction: column; }
.field + .field, .field-row + .field, .field + .field-row { margin-top: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contacto-form label { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.contacto-form .req { color: var(--accent-600); }
.contacto-form input,
.contacto-form textarea {
  width: 100%; font: inherit; font-size: 15.5px; color: var(--ink);
  padding: 12px 14px; background: #fff;
  border: 1px solid var(--line-strong); border-radius: 12px;
  transition: border-color var(--t), box-shadow var(--t);
}
.contacto-form textarea { resize: vertical; min-height: 120px; }
.contacto-form input::placeholder,
.contacto-form textarea::placeholder { color: var(--muted-2); }
.contacto-form input:focus,
.contacto-form textarea:focus {
  outline: none; border-color: var(--accent-500);
  box-shadow: 0 0 0 3px rgba(5,150,105,.16);
}
.contacto-form [aria-invalid="true"] { border-color: #dc2626; }
.contacto-form [aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(220,38,38,.15); }
.field-err { color: #b91c1c; font-size: 13px; margin-top: 6px; }
.contacto-form .btn { margin-top: 24px; }
.form-legal { font-size: 12.5px; color: var(--muted); margin-top: 16px; }
.form-legal a { color: var(--brand-700); text-decoration: underline; text-underline-offset: 2px; }

/* Aceptación de privacidad */
.field-check { display: flex; align-items: flex-start; gap: 10px; margin-top: 20px; }
.field-check input[type="checkbox"] { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent-500); cursor: pointer; }
.field-check label { margin: 0; font-size: 14px; font-weight: 500; color: var(--ink-soft); line-height: 1.5; }
.field-check label a { color: var(--brand-700); text-decoration: underline; text-underline-offset: 2px; }
.field-check input[aria-invalid="true"] { outline: 2px solid #dc2626; outline-offset: 2px; }
.field-check + .field-err { display: block; margin-top: 8px; }

/* Avisos de estado */
.form-alert { border-radius: 12px; padding: 14px 16px; font-size: 14.5px; margin-bottom: 22px; }
.form-alert.ok { background: var(--accent-soft); color: var(--accent-600); border: 1px solid #a7f3d0; }
.form-alert.err { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

/* Honeypot: fuera de pantalla, presente en el DOM para que lo rellenen los bots.
   No usa autocomplete y queda fuera del orden de tabulación. */
.hp-field {
  position: absolute !important; left: -9999px !important; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}

@media (max-width: 880px) {
  .contacto-panel { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; gap: 18px; }
}
