:root {
  --navy: #293453;
  --navy-deep: #20294a;
  --navy-line: rgba(96, 123, 254, .28);
  --magenta: #D90DD8;
  --magenta-hover: #e93be8;
  --blue: #607BFE;
  --white: #FFFFFF;
  --text-soft: rgba(255, 255, 255, .78);
  --text-dim: rgba(255, 255, 255, .6);
  --radius: 14px;
  --wrap: 1180px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--white);
  font-family: "Montserrat", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }
p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--magenta); color: var(--white); padding: 10px 16px; border-radius: 8px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 900px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 26px;
  border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 600; font-size: 16px; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.btn-primary { background: var(--magenta); color: var(--white); }
.btn-primary:hover { background: var(--magenta-hover); }
.btn-primary[disabled] { opacity: .6; cursor: progress; }
.btn-ghost { border-color: var(--blue); color: var(--white); }
.btn-ghost:hover { background: rgba(96, 123, 254, .14); }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(41, 52, 83, .92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--navy-line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; color: var(--magenta); flex: none; }
.brand-name { font-weight: 700; font-size: 22px; letter-spacing: -0.02em; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a:not(.btn) {
  padding: 8px 12px; border-radius: 8px;
  font-size: 15px; font-weight: 500; text-decoration: none; color: var(--text-soft);
  white-space: nowrap; transition: color .2s;
}
.site-nav a:not(.btn):hover, .site-nav a.active { color: var(--white); }
.site-nav a.active { box-shadow: inset 0 -2px 0 var(--magenta); border-radius: 0; }
.nav-cta { margin-left: 12px; min-height: 42px; padding: 9px 20px; font-size: 15px; }
.nav-toggle { display: none; }

@media (max-width: 1120px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border: 1px solid var(--navy-line); border-radius: 10px;
    background: transparent; color: var(--white); cursor: pointer;
  }
  .bars, .bars::before, .bars::after { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s, opacity .2s; }
  .bars::before, .bars::after { content: ""; position: absolute; left: 0; }
  .bars::before { top: -6px; }
  .bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }
  .site-nav {
    position: absolute; left: 0; right: 0; top: var(--header-h);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 24px 24px; background: var(--navy);
    border-bottom: 1px solid var(--navy-line);
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 0; font-size: 17px; border-bottom: 1px solid rgba(255,255,255,.07); border-radius: 0; }
  .site-nav a.active { box-shadow: none; color: var(--magenta); }
  .nav-cta { margin: 18px 0 0; }
}

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 96px; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--navy-line) 1px, transparent 1px), linear-gradient(90deg, var(--navy-line) 1px, transparent 1px);
  background-size: 64px 64px; opacity: .25;
  -webkit-mask-image: radial-gradient(ellipse at 70% 45%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse at 70% 45%, #000 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 48px; }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .18em; color: var(--blue); margin-bottom: 20px; }
.hero h1 { font-size: clamp(40px, 6vw, 72px); letter-spacing: -0.025em; max-width: 12ch; }
.accent { color: var(--magenta); }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--text-soft); max-width: 36em; margin-top: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-art svg { width: 100%; max-width: 460px; margin-left: auto; overflow: visible; }
.target circle { stroke: var(--magenta); }
.target .core { fill: var(--magenta); stroke: none; }
.orbit { fill: none; stroke: var(--blue); stroke-width: 1.5; opacity: .5; }
.wave { fill: none; stroke: var(--blue); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; animation: wave 6s ease-out infinite; }
.w2 { animation-delay: 2s; }
.w3 { animation-delay: 4s; }
@keyframes wave { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.75); opacity: 0; } }

/* Sections */
.section { padding: 104px 0; }
.section-alt { background: var(--navy-deep); }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--magenta); margin-bottom: 14px; }
.section h2 { font-size: clamp(30px, 4vw, 44px); max-width: 22ch; margin-bottom: 52px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.card {
  padding: 32px 28px; border: 1px solid var(--navy-line); border-radius: var(--radius);
  background: rgba(255, 255, 255, .025);
  transition: border-color .25s;
}
.card:hover { border-color: var(--blue); }
.icon { width: 44px; height: 44px; fill: none; stroke: var(--blue); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 22px; }
.card h3 { font-size: 21px; margin-bottom: 10px; }
.card p { color: var(--text-soft); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; position: relative; }
.step { position: relative; padding: 30px 28px 32px; border-radius: var(--radius); border: 1px solid var(--navy-line); background: var(--navy); }
.step::before { content: ""; position: absolute; left: 28px; right: 28px; top: 0; height: 3px; background: var(--magenta); border-radius: 0 0 3px 3px; }
.step-label { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .14em; color: var(--blue); margin-bottom: 14px; }
.step h3 { font-size: 21px; margin-bottom: 10px; }
.step p { color: var(--text-soft); }

.callout {
  display: flex; align-items: center; gap: 28px;
  margin-top: 40px; padding: 32px 36px;
  border-radius: var(--radius); border: 1px solid var(--magenta);
  background: rgba(217, 13, 216, .08);
}
.callout-mark { width: 64px; height: 64px; color: var(--magenta); flex: none; }
.callout h3 { font-size: 24px; margin-bottom: 6px; }
.callout p { color: var(--text-soft); font-size: 18px; }

/* Services */
.phase + .phase { margin-top: 64px; }
.phase-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 18px; padding-bottom: 18px; margin-bottom: 26px; border-bottom: 1px solid var(--navy-line); }
.phase-step { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--magenta); }
.phase-head h3 { font-size: 24px; }
.service {
  display: flex; flex-direction: column;
  padding: 28px 26px; border-radius: var(--radius);
  border: 1px solid var(--navy-line); background: rgba(255, 255, 255, .025);
  transition: border-color .25s;
}
.service:hover { border-color: var(--blue); }
.service h4 { font-size: 19px; margin-bottom: 14px; }
.solves { font-size: 15px; font-weight: 600; color: var(--white); margin-bottom: 14px; padding-left: 12px; border-left: 3px solid var(--blue); }
.solves span { display: block; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 2px; }
.service p:last-child { color: var(--text-soft); font-size: 16px; }

/* Familiar */
.map-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; letter-spacing: .04em; color: var(--text-dim); margin: -28px 0 22px; }
.pains { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.pains a {
  display: grid; grid-template-columns: 1fr auto minmax(0, .9fr); align-items: center; gap: 20px;
  padding: 22px 26px; border-radius: var(--radius);
  border: 1px solid var(--navy-line); background: var(--navy);
  text-decoration: none; transition: border-color .2s, background-color .2s;
}
.pains a:hover { border-color: var(--magenta); background: rgba(217, 13, 216, .07); }
.pains q { font-size: 19px; font-weight: 600; quotes: "\201C" "\201D"; }
.pains .arrow { color: var(--magenta); font-size: 22px; font-weight: 700; transition: transform .2s; }
.pains a:hover .arrow { transform: translateX(4px); }
.pains .start { color: var(--blue); font-weight: 600; font-size: 16px; }
.nod { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--navy-line); }
.nod p { font-size: 26px; font-weight: 700; }

/* Contact */
.contact-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.contact-copy { position: sticky; top: calc(var(--header-h) + 32px); }
.contact-copy h2 { margin-bottom: 0; }
.contact-copy .lead { margin-top: 18px; }
.mail { margin-top: 28px; font-size: 19px; font-weight: 600; }
.mail a { color: var(--white); text-decoration: none; border-bottom: 2px solid var(--magenta); padding-bottom: 2px; }
.mail a:hover { color: var(--magenta); }
.form-panel { padding: 36px; border-radius: var(--radius); border: 1px solid var(--navy-line); background: var(--navy-deep); }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.field .req { color: var(--magenta); margin-left: 2px; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="url"], .field input[type="number"], .field input[type="date"], .field textarea, .field select {
  width: 100%; padding: 13px 15px; border-radius: 10px;
  border: 1px solid rgba(96, 123, 254, .45); background: var(--navy);
  color: var(--white); font: inherit; font-size: 16px;
  transition: border-color .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-dim); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--blue); }
.field [aria-invalid="true"] { border-color: var(--magenta); }
.field-check { display: flex; gap: 12px; align-items: flex-start; }
.field-check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--magenta); flex: none; }
.field-check label { font-weight: 500; font-size: 14px; color: var(--text-soft); margin: 0; }
.field-check label a { color: var(--white); }
.field-help { font-size: 13px; color: var(--text-dim); margin-top: 6px; }
.field-error { font-size: 13px; font-weight: 600; color: #ff8fff; margin-top: 6px; }
.form-error { font-size: 14px; font-weight: 600; color: #ff8fff; margin-bottom: 14px; }
.form-status { color: var(--text-dim); }
.form-done { padding: 8px 0 4px; font-size: 18px; font-weight: 600; }
.form-done p + p { margin-top: 8px; }
.privacy-note { margin-top: 22px; font-size: 12.5px; line-height: 1.55; color: var(--text-dim); }
.privacy-note a { color: var(--text-soft); }

/* Footer */
.site-footer { padding: 44px 0; border-top: 1px solid var(--navy-line); background: var(--navy-deep); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; font-size: 14px; color: var(--text-dim); }
.footer-inner .brand-mark { width: 26px; height: 26px; }
.footer-inner .brand-name { font-size: 18px; color: var(--white); }
.footer-inner a { color: var(--text-soft); }
.footer-inner a:hover { color: var(--white); }
.legal-links { width: 100%; }

/* Legal page */
.legal { padding: 64px 0 96px; }
.legal h1 { font-size: clamp(32px, 4vw, 44px); margin-bottom: 12px; }
.legal h2 { font-size: 26px; margin: 56px 0 16px; padding-top: 8px; }
.legal h3 { font-size: 18px; margin: 28px 0 8px; }
.legal p, .legal li { color: var(--text-soft); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 20px; }
.legal .todo { color: #ffd166; font-weight: 600; }
.legal .back { display: inline-block; margin-bottom: 28px; color: var(--blue); text-decoration: none; font-weight: 600; }

/* Reveal */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wave { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* Responsive */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero { padding: 48px 0 72px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art svg { max-width: 220px; margin: 0; }
  .grid-3, .steps { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; gap: 36px; }
  .contact-copy { position: static; }
  .pains a { grid-template-columns: 1fr; gap: 6px; }
  .pains .arrow { display: none; }
  .pains .start::before { content: "Start with: "; color: var(--text-dim); font-weight: 500; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 72px 0; }
  .section h2 { margin-bottom: 36px; }
  .grid-4 { grid-template-columns: 1fr; }
  .callout { flex-direction: column; align-items: flex-start; padding: 26px; gap: 16px; }
  .form-panel { padding: 24px 20px; }
  .map-legend { margin-top: -16px; }
  .nod p { font-size: 22px; }
  .hero-actions .btn { flex: 1 1 100%; }
}
.site-nav a.lang { font-weight: 700; color: var(--blue); }
html[lang="es"] .pains .start::before { content: "Empezar por: "; }


/* Ring pulses */
.pulse { position: relative; display: inline-flex; flex: none; border-radius: 50%; }
.pulse::before, .pulse::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--magenta); opacity: 0; pointer-events: none;
  animation: ping 3.2s ease-out infinite;
}
.pulse::after { animation-delay: 1.6s; }
@keyframes ping { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.9); opacity: 0; } }
#form-submit { position: relative; }
#form-submit.sent::after {
  content: ""; position: absolute; inset: -2px; border-radius: 999px;
  border: 2px solid var(--magenta); pointer-events: none;
  animation: send-wave .9s ease-out forwards;
}
@keyframes send-wave { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.12, 1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .pulse::before, .pulse::after, #form-submit.sent::after { animation: none; }
}

/* Logo */
.brand-logo { display: block; height: 56px; width: auto; }
.footer-inner .brand-logo { height: 64px; }
@media (max-width: 640px) { .brand-logo { height: 48px; } }
