/* ═══════════════════════════════════════════════════════════
   Radical Technology Laboratory — hoja de estilos
   Estructura: 1 tokens · 2 base · 3 layout · 4 componentes
               5 secciones · 6 responsive
   ═══════════════════════════════════════════════════════════ */

/* ── 1. TOKENS ────────────────────────────────────────────── */
:root {
  /* Marca */
  --navy-900: #0B121B;
  --navy-800: #111C28;
  --navy-700: #1A2633;
  --blue-700: #234B75;
  --blue-600: #2C5C8F;
  --blue-500: #3A6EA5;
  --blue-400: #5B8FC7;
  --blue-100: #D9E6F3;
  --blue-50:  #EEF4FA;
  --mint:     #2FBFA8;

  /* Neutros */
  --ink:      #0D141A;
  --slate-700:#2E3D4C;
  --slate-600:#4A5A6A;
  --slate-500:#697A8B;
  --slate-400:#8C9AA8;
  --line:     #E3E9F0;
  --line-soft:#EFF3F7;
  --bg:       #FFFFFF;
  --bg-alt:   #F6F8FB;

  /* Acento IA (energía, distinto del azul/menta de marca) */
  --amber:      #E8703A;
  --amber-soft: #FDECE2;

  /* Tipografía */
  --f-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --f-display: 'Space Grotesk', var(--f-sans);

  /* Ritmo */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --shadow-sm: 0 1px 2px rgba(13,20,26,.06), 0 4px 12px rgba(13,20,26,.05);
  --shadow-md: 0 2px 4px rgba(13,20,26,.05), 0 12px 32px rgba(13,20,26,.08);
  --shadow-lg: 0 4px 8px rgba(13,20,26,.06), 0 24px 60px rgba(13,20,26,.12);

  --container: 1180px;
  --gutter: 24px;
  --section-y: clamp(72px, 9vw, 128px);
  --ease: cubic-bezier(.22,.61,.36,1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--slate-600);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--f-display);
  color: var(--ink);
  line-height: 1.14;
  letter-spacing: -.022em;
  margin: 0 0 .5em;
  font-weight: 600;
}

h1 { font-size: clamp(2.35rem, 5.2vw, 3.9rem); letter-spacing: -.032em; }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.7rem); letter-spacing: -.028em; }
h3 { font-size: 1.22rem; }
h4 { font-size: 1.02rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--blue-600); text-decoration: none; transition: color .18s var(--ease); }
a:hover { color: var(--blue-500); }

ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }

svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }

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

.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 999;
  background: var(--navy-800); color: #fff;
  padding: 12px 20px; border-radius: var(--r-sm); font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; color: #fff; }

/* ── 3. LAYOUT ────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container-narrow { max-width: 820px; }

.section { padding: var(--section-y) 0; }
.section-alt { background: var(--bg-alt); }

.section-head { max-width: 720px; margin: 0 0 clamp(40px, 5vw, 64px); }
.section-head .lede { font-size: 1.09rem; color: var(--slate-500); }

.kicker {
  font-family: var(--f-display);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue-500);
  margin-bottom: .9em;
}

/* ── 4. COMPONENTES ───────────────────────────────────────── */

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--f-sans);
  font-size: .97rem; font-weight: 600;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .18s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}
.btn svg { width: 17px; height: 17px; transition: transform .22s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
  background: var(--blue-500); color: #fff;
  box-shadow: 0 2px 4px rgba(58,110,165,.2), 0 10px 24px rgba(58,110,165,.24);
}
.btn-primary:hover { background: var(--blue-600); color: #fff; transform: translateY(-2px); box-shadow: 0 4px 8px rgba(58,110,165,.22), 0 16px 34px rgba(58,110,165,.3); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: #fff; border-color: var(--blue-400); color: var(--blue-600); transform: translateY(-2px); }

.btn-sm { padding: 10px 20px; font-size: .9rem; }
.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 600; font-size: .93rem; color: var(--blue-600);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .22s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  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 .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 20px rgba(13,20,26,.05);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 76px;
}
/* Marca: símbolo vectorial + nombre como texto */
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark { width: 40px; height: 40px; display: block; }
.brand-name {
  display: block;
  font-family: var(--f-display); font-weight: 700;
  font-size: 17px; line-height: 1; letter-spacing: .005em;
  text-transform: uppercase; color: var(--navy-700);
}
.brand-sub {
  display: block;
  font-family: var(--f-sans); font-weight: 500;
  font-size: 8.4px; line-height: 1; letter-spacing: .19em;
  text-transform: uppercase; color: var(--slate-400); margin-top: 6px;
}
.site-footer .brand-name { color: #fff; }
.site-footer .brand-sub { color: rgba(255,255,255,.5); }
@media (max-width: 380px) {
  .brand-mark { width: 34px; height: 34px; }
  .brand-name { font-size: 15px; }
  .brand-sub { font-size: 7.4px; letter-spacing: .16em; }
}

.nav { display: flex; align-items: center; gap: 34px; }
.nav-list { display: flex; align-items: center; gap: 30px; }
.nav-list a {
  position: relative;
  font-size: .95rem; font-weight: 500; color: var(--slate-700);
  padding: 6px 0;
}
.nav-list a::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px; background: var(--blue-500);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav-list a:hover, .nav-list a.active { color: var(--ink); }
.nav-list a:hover::after, .nav-list a.active::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: none; border: 1px solid var(--line); border-radius: 10px;
  cursor: pointer; padding: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span {
  display: block; width: 19px; height: 2px; border-radius: 2px;
  background: var(--ink);
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── 5. SECCIONES ─────────────────────────────────────────── */

/* HERO */
.hero { position: relative; padding: clamp(56px, 7vw, 92px) 0 clamp(72px, 9vw, 120px); overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 520px at 78% 6%, rgba(58,110,165,.14), transparent 62%),
    radial-gradient(680px 460px at 4% 88%, rgba(47,191,168,.09), transparent 60%),
    linear-gradient(180deg, #FBFCFE 0%, #FFFFFF 62%);
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(58,110,165,.14) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(700px 420px at 72% 12%, #000, transparent 72%);
  -webkit-mask-image: radial-gradient(700px 420px at 72% 12%, #000, transparent 72%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .84rem; font-weight: 600; color: var(--blue-700);
  background: rgba(58,110,165,.09);
  border: 1px solid rgba(58,110,165,.16);
  padding: 7px 15px; border-radius: 999px;
  margin-bottom: 26px;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 3px rgba(47,191,168,.22);
}

.hero h1 { margin-bottom: 22px; }
.hero h1 em {
  font-style: normal;
  color: var(--blue-500);
  position: relative;
  white-space: nowrap;
}
.hero h1 em::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: .04em;
  height: .1em; border-radius: 3px;
  background: rgba(58,110,165,.24);
}

.hero-sub { font-size: 1.14rem; color: var(--slate-500); max-width: 545px; margin-bottom: 34px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 38px; }

.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.hero-trust li {
  display: flex; align-items: center; gap: 8px;
  font-size: .9rem; font-weight: 500; color: var(--slate-500);
}
.hero-trust svg { width: 16px; height: 16px; color: var(--mint); stroke-width: 2.6; }

/* Tarjeta de informe */
.hero-visual { display: flex; justify-content: center; }
.report-card {
  width: 100%; max-width: 420px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: perspective(1400px) rotateY(-5deg) rotateX(2deg);
  transition: transform .5s var(--ease);
}
.report-card:hover { transform: perspective(1400px) rotateY(0) rotateX(0); }

.report-head { padding: 26px 28px 20px; background: linear-gradient(140deg, var(--navy-800), var(--navy-700)); }
.report-tag {
  display: inline-block; font-size: .68rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue-400); margin-bottom: 8px;
}
.report-head h3 { color: #fff; margin: 0; font-size: 1.32rem; }

.report-body { padding: 26px 28px 8px; }
.meter { margin-bottom: 20px; }
.meter-label { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.meter-label span { font-size: .86rem; font-weight: 500; color: var(--slate-600); }
.meter-label b { font-family: var(--f-display); font-size: .92rem; color: var(--ink); }
.track { height: 7px; background: var(--blue-50); border-radius: 999px; overflow: hidden; }
.track i {
  display: block; height: 100%; width: var(--v);
  background: linear-gradient(90deg, var(--blue-600), var(--blue-400));
  border-radius: 999px;
  transform-origin: left;
  animation: grow 1.1s var(--ease) both;
}
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.report-foot {
  display: flex; gap: 12px;
  padding: 20px 28px 26px;
  border-top: 1px solid var(--line-soft);
}
.report-foot div { flex: 1; }
.report-foot b { display: block; font-family: var(--f-display); font-size: 1.75rem; color: var(--blue-600); line-height: 1.1; }
.report-foot span { font-size: .8rem; color: var(--slate-400); }

/* AGENTES DE IA */
.section-ia { position: relative; }

.trend-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; margin: 0 0 44px;
}
.trend-card {
  background: #fff; padding: 22px 22px 20px;
  display: flex; flex-direction: column; gap: 8px;
}
.trend-card b {
  font-family: var(--f-display); font-weight: 600;
  font-size: 1.02rem; letter-spacing: -.012em; line-height: 1.25;
  color: var(--amber);
}
.trend-card span { font-size: .87rem; line-height: 1.5; color: var(--slate-500); }

.agent-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; margin-bottom: 30px; }
.agent-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px 26px 28px;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
.agent-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--blue-100); }
.agent-card h3 { font-size: 1.1rem; margin-bottom: .5em; }
.agent-card p { font-size: .93rem; margin: 0; }

.agent-flow {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-bottom: 20px;
}
.agent-flow svg { width: 14px; height: 14px; color: var(--slate-400); flex: none; }
.flow-step {
  font-size: .74rem; font-weight: 500; color: var(--slate-600);
  background: var(--bg-alt); border: 1px solid var(--line);
  padding: 6px 11px; border-radius: 999px; white-space: nowrap;
}
.flow-step-agent {
  color: var(--amber); font-weight: 600;
  background: var(--amber-soft); border-color: rgba(232,112,58,.28);
}

.agent-note {
  max-width: 74ch; font-size: .95rem; color: var(--slate-500);
  border-top: 1px solid var(--line); padding-top: 24px;
}

/* PROBLEMAS */
.pain-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(248px, 1fr)); gap: 20px; }
.pain {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px 28px;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
.pain:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--blue-100); }
.pain-num {
  display: block;
  font-family: var(--f-display); font-size: .82rem; font-weight: 700;
  letter-spacing: .1em; color: var(--blue-400); margin-bottom: 14px;
}
.pain h3 { font-size: 1.1rem; margin-bottom: .55em; }
.pain p { font-size: .95rem; margin: 0; }

/* SERVICIOS */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; align-items: start; }

.svc {
  position: relative;
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 34px 32px;
  height: 100%;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.svc:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--blue-100); }

.svc-feature { border-color: var(--blue-400); box-shadow: var(--shadow-md); }
.svc-feature::before {
  content: ''; position: absolute; inset: -1px -1px auto; height: 4px;
  background: linear-gradient(90deg, var(--blue-600), var(--mint));
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}
.svc-badge {
  position: absolute; top: -13px; right: 26px;
  background: var(--navy-800); color: #fff;
  font-size: .7rem; font-weight: 600; letter-spacing: .05em;
  padding: 5px 13px; border-radius: 999px;
}

.svc-icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  background: var(--blue-50);
  color: var(--blue-600);
  margin-bottom: 20px;
}
.svc-icon svg { width: 25px; height: 25px; }

.svc h3 { font-size: 1.42rem; }
.svc-desc { font-size: .98rem; color: var(--slate-500); margin-bottom: 22px; }

.svc-list { margin-bottom: 24px; }
.svc-list li {
  position: relative;
  padding: 8px 0 8px 27px;
  font-size: .94rem;
  color: var(--slate-700);
  border-top: 1px solid var(--line-soft);
}
.svc-list li:first-child { border-top: 0; }
.svc-list li::before {
  content: ''; position: absolute; left: 4px; top: 16px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--blue-400);
}

.svc-foot { margin-top: auto; }
.svc-out {
  font-size: .9rem; line-height: 1.55;
  background: var(--bg-alt);
  border-left: 3px solid var(--blue-400);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 14px 16px;
  margin-bottom: 18px;
}
.svc-out b { color: var(--ink); }

/* METODOLOGÍA (oscura) */
.section-dark { background: var(--navy-900); color: rgba(255,255,255,.7); position: relative; overflow: hidden; }
.section-dark::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(720px 420px at 88% -8%, rgba(58,110,165,.28), transparent 62%),
    radial-gradient(560px 380px at 2% 104%, rgba(47,191,168,.14), transparent 60%);
  pointer-events: none;
}
.section-dark > .container { position: relative; z-index: 1; }
.section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-dark .kicker { color: var(--blue-400); }
.section-dark .lede { color: rgba(255,255,255,.62); }

.steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
  margin-bottom: clamp(56px, 7vw, 88px);
}
.step {
  position: relative;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--r-lg);
  padding: 28px 26px 24px;
  transition: background .28s var(--ease), border-color .28s var(--ease), transform .28s var(--ease);
}
.step:hover { background: rgba(255,255,255,.06); border-color: rgba(91,143,199,.4); transform: translateY(-4px); }
.step-n {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(140deg, var(--blue-600), var(--blue-500));
  font-family: var(--f-display); font-weight: 700; color: #fff;
  margin-bottom: 18px;
}
.step h3 { font-size: 1.13rem; margin-bottom: .5em; }
.step p { font-size: .93rem; color: rgba(255,255,255,.66); margin-bottom: 16px; }
.step-time {
  display: inline-block;
  font-size: .76rem; font-weight: 600; letter-spacing: .04em;
  color: var(--mint);
  background: rgba(47,191,168,.11);
  border: 1px solid rgba(47,191,168,.24);
  padding: 4px 11px; border-radius: 999px;
}

.why { border-top: 1px solid rgba(255,255,255,.1); padding-top: clamp(40px, 5vw, 60px); }
.why-title { font-size: 1.35rem; margin-bottom: 32px; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 30px 36px; }
.why-item h4 {
  position: relative; padding-left: 18px; margin-bottom: .55em; font-size: 1.03rem;
}
.why-item h4::before {
  content: ''; position: absolute; left: 0; top: .38em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--mint);
}
.why-item p { font-size: .93rem; color: rgba(255,255,255,.62); padding-left: 18px; margin: 0; }

/* FORMACIÓN */
.course-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.course {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue-500);
  border-radius: var(--r-md);
  padding: 28px 26px;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}
.course:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.course h3 { font-size: 1.14rem; }
.course p { font-size: .94rem; margin-bottom: 18px; }
.course-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.course-meta li {
  font-size: .78rem; font-weight: 500; color: var(--slate-600);
  background: var(--bg-alt); border: 1px solid var(--line);
  padding: 4px 11px; border-radius: 999px;
}

.course-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 22px;
  margin-top: 36px; padding: 30px 34px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--r-lg);
}
.course-cta p { margin: 0; font-size: 1.04rem; font-weight: 500; color: var(--navy-700); }

/* FAQ */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item h3 { margin: 0; font-size: inherit; }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  width: 100%; text-align: left;
  background: none; border: 0; cursor: pointer;
  padding: 24px 4px;
  font-family: var(--f-display); font-size: 1.08rem; font-weight: 600;
  letter-spacing: -.014em; color: var(--ink);
  transition: color .2s var(--ease);
}
.faq-q:hover { color: var(--blue-600); }
.faq-q svg { width: 20px; height: 20px; color: var(--blue-500); transition: transform .3s var(--ease); }
.faq-q[aria-expanded="true"] svg { transform: rotate(180deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .34s var(--ease); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 40px 26px 4px; font-size: .98rem; margin: 0; }

/* CONTACTO */
.section-cta { background: var(--navy-900); position: relative; overflow: hidden; }
.section-cta::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(760px 440px at 12% 0%, rgba(58,110,165,.3), transparent 62%),
    radial-gradient(620px 420px at 96% 100%, rgba(47,191,168,.14), transparent 60%);
  pointer-events: none;
}
.cta-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 72px);
  align-items: start;
}
.section-cta h2 { color: #fff; }
.section-cta .kicker { color: var(--blue-400); }
.section-cta .lede { color: rgba(255,255,255,.65); font-size: 1.06rem; }

.contact-list { margin-top: 34px; display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 13px; }
.contact-list svg { width: 19px; height: 19px; color: var(--blue-400); }
.contact-list a { color: rgba(255,255,255,.88); font-weight: 500; font-size: 1rem; }
.contact-list a:hover { color: var(--mint); }

/* Formulario */
.contact-form {
  background: #fff;
  border-radius: var(--r-xl);
  padding: clamp(28px, 3.4vw, 40px);
  box-shadow: var(--shadow-lg);
}
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label {
  display: block;
  font-size: .87rem; font-weight: 600; color: var(--slate-700);
  margin-bottom: 7px;
}
.field .opt { font-weight: 400; color: var(--slate-400); }

.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--f-sans); font-size: .97rem; color: var(--ink);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
}
.field textarea { resize: vertical; min-height: 118px; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234A5A6A' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-size: 17px;
  padding-right: 40px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(58,110,165,.15);
}
.field input::placeholder, .field textarea::placeholder { color: var(--slate-400); }
.field.invalid input, .field.invalid textarea { border-color: #D94A4A; background: #FEF6F6; }

.error { display: none; font-size: .82rem; color: #C23B3B; margin-top: 6px; }
.field.invalid .error, .error.show { display: block; }

.check { display: flex; align-items: flex-start; gap: 10px; margin: 6px 0 4px; cursor: pointer; }
.check input { width: 17px; height: 17px; margin-top: 3px; accent-color: var(--blue-500); flex: none; }
.check span { font-size: .87rem; color: var(--slate-600); }

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

.contact-form .btn { margin-top: 18px; }
.form-note { font-size: .82rem; color: var(--slate-400); text-align: center; margin: 14px 0 0; }
.form-status { font-size: .92rem; font-weight: 500; margin: 12px 0 0; text-align: center; }
.form-status.ok { color: #1E8E62; }
.form-status.err { color: #C23B3B; }

/* FOOTER */
.site-footer { background: var(--navy-800); color: rgba(255,255,255,.6); padding: clamp(56px, 6vw, 76px) 0 0; }
.footer-inner {
  display: grid; grid-template-columns: 1.25fr 2fr;
  gap: clamp(36px, 5vw, 64px);
  padding-bottom: 48px;
}
.footer-brand .brand { margin-bottom: 18px; }
.footer-brand p { font-size: .93rem; max-width: 320px; margin: 0; }

.footer-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 32px; }
.footer-nav h4 {
  color: #fff; font-size: .8rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-nav li { margin-bottom: 10px; }
.footer-nav a { color: rgba(255,255,255,.62); font-size: .93rem; }
.footer-nav a:hover { color: var(--mint); }

.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 14px;
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px; padding-bottom: 24px;
}
.footer-bottom p { margin: 0; font-size: .85rem; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-bottom a { color: rgba(255,255,255,.55); font-size: .85rem; }
.footer-bottom a:hover { color: #fff; }

/* PÁGINAS LEGALES */
.legal { padding: clamp(48px, 6vw, 80px) 0 clamp(64px, 8vw, 100px); }
.legal .container { max-width: 800px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: .35em; }
.legal .updated { font-size: .88rem; color: var(--slate-400); margin-bottom: 2.4em; }
.legal h2 { font-size: 1.42rem; margin-top: 2.2em; margin-bottom: .6em; }
.legal h3 { font-size: 1.08rem; margin-top: 1.6em; }
.legal p, .legal li { font-size: 1rem; }
.legal ul { list-style: disc; padding-left: 22px; margin: 0 0 1.2em; }
.legal ul li { margin-bottom: .5em; }
.legal table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: .93rem; }
.legal th, .legal td { text-align: left; padding: 11px 13px; border: 1px solid var(--line); vertical-align: top; }
.legal th { background: var(--bg-alt); font-weight: 600; color: var(--ink); }
.legal .back { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; margin-bottom: 28px; }
.legal .back svg { width: 16px; height: 16px; }

.todo {
  font-size: .93rem; color: #8A5A00;
  background: #FFF7E6; border: 1px dashed #E8C77A;
  border-radius: var(--r-sm); padding: 14px 18px; margin-bottom: 32px;
}
.todo strong { color: #6B4600; }
mark.fill { background: #FFF0C2; color: #6B4600; padding: 1px 5px; border-radius: 3px; font-weight: 600; }

/* Volver arriba */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  background: var(--navy-800); color: #fff;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s, background .2s;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--blue-500); color: #fff; }

/* Animación de entrada */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ── 6. RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .report-card { transform: none; max-width: 460px; }
  .cta-inner { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: 76px 0 auto;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    padding: 12px var(--gutter) 26px;
    max-height: calc(100vh - 76px);
    overflow-y: auto;
    transform: translateY(-14px);
    opacity: 0; visibility: hidden;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .nav.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list a { display: block; padding: 15px 2px; border-bottom: 1px solid var(--line-soft); font-size: 1rem; }
  .nav-list a::after { display: none; }
  .nav-cta { margin-top: 18px; width: 100%; padding: 14px 20px; }
  body.nav-open { overflow: hidden; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  :root { --gutter: 20px; }
  .hero h1 em { white-space: normal; }
  .hero-actions .btn { width: 100%; }
  .field-row { grid-template-columns: 1fr; }
  .course-cta { flex-direction: column; align-items: flex-start; padding: 26px 24px; }
  .course-cta .btn { width: 100%; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .svc, .contact-form { padding: 28px 22px; }
  .to-top { right: 14px; bottom: 14px; }
}

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

/* Impresión */
@media print {
  .site-header, .to-top, .hero-visual, .contact-form, .nav-toggle { display: none; }
  body { color: #000; font-size: 12pt; }
  .section-dark, .section-cta, .site-footer { background: #fff !important; color: #000 !important; }
  .section-dark h2, .section-dark h3, .section-cta h2 { color: #000 !important; }
}
