/* ServiCont — Servicios y Control Automáticos
   Brand tokens from "Manual de marca ServiCont" (Nov 2026). */

:root {
  --magenta: #932282;
  --violeta: #6B2689;
  --indigo: #3C4EA2;
  --azul: #4576C2;
  --celeste: #85C7F0;
  --gris: #686B6D;
  --blanco: #FFFFFF;

  --bg: #FFFFFF;
  --bg-soft: #F4F5FA;
  --bg-sky: #EAF4FC;
  --ink: #1F2340;
  --text: #4A4D52;
  --line: #E1E4EE;
  --ok: #2BA36B;

  --grad: linear-gradient(90deg, var(--magenta) 0%, var(--violeta) 28%, var(--indigo) 56%, var(--azul) 78%, var(--celeste) 100%);
  --grad-panel: linear-gradient(135deg, var(--magenta) 0%, var(--violeta) 38%, var(--indigo) 75%, var(--azul) 100%);

  --font-title: "Montserrat", system-ui, sans-serif;
  --font-text: "Inter", system-ui, sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(31, 35, 64, .06), 0 12px 32px -12px rgba(31, 35, 64, .18);
  --shadow-lift: 0 2px 4px rgba(31, 35, 64, .08), 0 24px 48px -16px rgba(60, 78, 162, .35);

  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(72px, 11vw, 136px);
  --ease: cubic-bezier(.22, .9, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  font-family: var(--font-text);
  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%; }

h1, h2, h3, h4 {
  font-family: var(--font-title);
  color: var(--indigo);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a { color: var(--indigo); }

:focus-visible {
  outline: 3px solid var(--celeste);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--indigo);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

.section { padding-block: var(--section); position: relative; }
.section--soft { background: var(--bg-soft); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-title);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 18px;
}

.h-display { font-size: clamp(2.6rem, 6.4vw, 5.1rem); font-weight: 800; }
.h-section { font-size: clamp(2rem, 4.2vw, 3.3rem); font-weight: 800; }
.h-card { font-size: 1.3rem; font-weight: 700; }

.lead {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.6;
  max-width: 34em;
}

.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head .lead { margin-top: 20px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s, color .2s, border-color .2s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--magenta); color: #fff; box-shadow: 0 10px 24px -10px rgba(147, 34, 130, .7); }
.btn--primary:hover { background: var(--violeta); box-shadow: 0 16px 32px -12px rgba(107, 38, 137, .75); }

.btn--ghost { background: transparent; color: var(--indigo); border-color: currentColor; }
.btn--ghost:hover { background: var(--indigo); color: #fff; border-color: var(--indigo); }

.btn--light { background: #fff; color: var(--violeta); }
.btn--light:hover { box-shadow: 0 16px 32px -12px rgba(0, 0, 0, .4); }

.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn--outline-light:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 8px 24px -20px rgba(31, 35, 64, .5); }
.site-header::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  height: 3px;
  width: var(--progress, 0%);
  background: var(--grad);
  transition: width .1s linear;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 88px;
}

.brand { display: block; flex: none; }
.brand img { width: 232px; height: auto; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  position: relative;
  padding: 8px 14px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink);
  text-decoration: none;
  border-radius: 999px;
  transition: color .2s, background-color .2s;
}
.nav a:hover { background: var(--bg-soft); color: var(--indigo); }
.nav a[aria-current="page"] { color: var(--magenta); }
.nav .btn { margin-left: 10px; min-height: 44px; padding: 0 20px; color: #fff; }
.nav .btn:hover { background: var(--violeta); color: #fff; }

.nav-toggle {
  display: none;
  width: 48px; height: 48px;
  border: 0;
  background: var(--bg-soft);
  border-radius: 12px;
  cursor: pointer;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  position: absolute;
  left: 13px;
  width: 22px; height: 2px;
  background: var(--indigo);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s;
  content: "";
}
.nav-toggle span { top: 23px; }
.nav-toggle span::before { left: 0; top: -7px; }
.nav-toggle span::after { left: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: 88px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px var(--gutter) 24px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(31, 35, 64, .35);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav a { padding: 14px 12px; font-size: 1.05rem; }
  .nav .btn { margin: 10px 0 0; }
  .brand img { width: 200px; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(48px, 7vw, 96px) clamp(72px, 9vw, 120px);
  background:
    radial-gradient(60% 70% at 100% 0%, rgba(133, 199, 240, .22), transparent 70%),
    radial-gradient(50% 60% at 0% 100%, rgba(147, 34, 130, .07), transparent 70%),
    #fff;
}

.hero-trace {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  height: 70%;
  pointer-events: none;
}
.hero-trace path { fill: none; stroke-linecap: round; }
.hero-trace .t1 { stroke: url(#traceGrad); stroke-width: 10; opacity: .18; }
.hero-trace .t2 { stroke: var(--violeta); stroke-width: 2.5; opacity: .22; }
.hero-trace .t3 { stroke: var(--celeste); stroke-width: 2.5; opacity: .9; stroke-dasharray: 6 14; animation: flow 3s linear infinite; }
.hero-trace .draw { stroke-dasharray: 1600; stroke-dashoffset: 1600; animation: draw 2.4s var(--ease) .2s forwards; }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes flow { to { stroke-dashoffset: -40; } }

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}

.hero h1 { margin-bottom: 24px; }
.hero h1 .accent {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: .08em;
  white-space: nowrap;
}
.hero .lead { margin-bottom: 36px; }

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  font-size: .95rem;
  color: var(--ink);
  font-weight: 500;
}
.hero-facts li { display: flex; align-items: center; gap: 8px; }
.hero-facts svg { width: 20px; height: 20px; color: var(--magenta); flex: none; }

.machine-card {
  position: relative;
  background: #fff;
  border-radius: 28px;
  padding: clamp(16px, 2.5vw, 28px);
  box-shadow: var(--shadow-lift);
  border: 1px solid var(--line);
}
.machine-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  border-radius: 28px 28px 0 0;
  background: var(--grad);
}
.machine-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
  font-family: var(--font-title);
}
.machine-head strong { color: var(--indigo); font-size: 1rem; }
.machine-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-family: var(--font-title);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gris);
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
.machine-toggle:hover { border-color: var(--indigo); color: var(--indigo); }
.machine-toggle[aria-pressed="true"] .live-dot { background: var(--gris); animation: none; }
.live-dot {
  display: inline-block;
  width: 8px; height: 8px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(43, 163, 107, .6);
  animation: ping 1.8s infinite;
  vertical-align: middle;
}
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(43, 163, 107, 0); } 100% { box-shadow: 0 0 0 0 rgba(43, 163, 107, 0); } }

.machine-svg { width: 100%; height: auto; }
.machine-svg .stream { transition: opacity .2s; }
.machine-svg .led { transition: fill .25s; }

.machine-foot {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  margin-top: 10px;
  padding: 14px 18px;
  background: var(--bg-soft);
  border-radius: 14px;
  font-size: .92rem;
}
.machine-status { color: var(--ink); font-weight: 600; min-height: 1.5em; }
.machine-count { font-variant-numeric: tabular-nums; color: var(--gris); text-align: right; }
.machine-count b { font-family: var(--font-title); color: var(--magenta); font-size: 1.25rem; }

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* ---------- Marquee ---------- */

.marquee {
  border-block: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
  padding: 18px 0;
}
.marquee-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  display: flex;
  align-items: center;
  gap: 48px;
  font-family: var(--font-title);
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.marquee-item::after {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--grad);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Problem / toggle ---------- */

.compare {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.switch {
  display: inline-flex;
  padding: 6px;
  background: #fff;
  border-radius: 999px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  margin-top: 32px;
  position: relative;
}
.switch button {
  position: relative;
  z-index: 1;
  border: 0;
  background: none;
  padding: 12px 24px;
  border-radius: 999px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: .98rem;
  color: var(--gris);
  cursor: pointer;
  transition: color .3s;
}
.switch button[aria-selected="true"] { color: #fff; }
.switch-thumb {
  position: absolute;
  top: 6px; bottom: 6px; left: 6px;
  border-radius: 999px;
  background: var(--gris);
  transition: transform .45s var(--ease), width .45s var(--ease), background-color .45s;
}
.switch[data-mode="auto"] .switch-thumb { background: var(--magenta); }

.compare-panel {
  background: #fff;
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 44px);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.compare-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--gris);
  transition: background .45s;
}
.compare-panel[data-mode="auto"]::before { background: var(--grad-panel); }
.compare-title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gris);
  margin-bottom: 20px;
}
.compare-panel[data-mode="auto"] .compare-title { color: var(--magenta); }
.compare-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.compare-list li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  align-items: start;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 500;
  transition: opacity .3s, transform .4s var(--ease);
}
.compare-list .ico {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg-soft);
  color: var(--gris);
}
.compare-panel[data-mode="auto"] .ico { background: rgba(147, 34, 130, .1); color: var(--magenta); }
.compare-list .ico svg { width: 18px; height: 18px; }
.compare-list small { display: block; font-size: .92rem; font-weight: 400; color: var(--text); margin-top: 2px; }
.compare-list.is-swapping li { opacity: 0; transform: translateX(-8px); }

@media (max-width: 860px) { .compare { grid-template-columns: 1fr; } }

/* ---------- Services ---------- */

.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.service {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  padding: clamp(24px, 3.4vw, 40px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.service::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease);
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: transparent; }
.service:hover::after { transform: scaleX(1); }
.service-num {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: .85rem;
  color: var(--gris);
  letter-spacing: .1em;
}
.service-icon {
  width: 60px; height: 60px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--grad-panel);
  color: #fff;
  margin-top: 10px;
  transition: transform .5s var(--ease);
}
.service:hover .service-icon { transform: rotate(-8deg) scale(1.06); }
.service-icon svg { width: 26px; height: 26px; }
.service h3 { margin-bottom: 10px; }
.service p { font-size: 1rem; }
.service ul {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.service li {
  font-size: .82rem;
  font-weight: 600;
  color: var(--indigo);
  background: var(--bg-sky);
  padding: 5px 12px;
  border-radius: 999px;
}

@media (max-width: 760px) { .services { grid-template-columns: 1fr; } }

/* ---------- Featured project (gradient band) ---------- */

.feature {
  position: relative;
  overflow: hidden;
  background: var(--grad-panel);
  color: #fff;
}
.feature .trace-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  opacity: .55;
  pointer-events: none;
}
.feature .trace-bg path { fill: none; stroke-linecap: round; }
.feature h2, .feature h3 { color: #fff; }
.feature .eyebrow { color: rgba(255, 255, 255, .85); }
.feature-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
.feature .h-display { font-size: clamp(2.6rem, 6vw, 4.6rem); }
.feature p { color: rgba(255, 255, 255, .92); }
.feature .lead { margin: 24px 0 36px; }

.steps-mini { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: s; }
.steps-mini li {
  counter-increment: s;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  align-items: center;
  padding: 20px 22px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius);
  backdrop-filter: blur(4px);
}
.steps-mini li::before {
  content: counter(s, decimal-leading-zero);
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--celeste);
}
.steps-mini strong { display: block; font-family: var(--font-title); font-size: 1.1rem; color: #fff; }
.steps-mini span { font-size: .95rem; color: rgba(255, 255, 255, .85); }

@media (max-width: 860px) { .feature-grid { grid-template-columns: 1fr; } }

/* ---------- Process (funnel timeline) ---------- */

.process {
  position: relative;
  display: grid;
  gap: 0;
}
.process-layout {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.process-layout .section-head { position: sticky; top: 128px; margin-bottom: 0; }
@media (max-width: 900px) {
  .process-layout { grid-template-columns: 1fr; }
  .process-layout .section-head { position: static; margin-bottom: 48px; }
}
.process-track,
.process-fill {
  position: absolute;
  left: 31px;
  top: 32px;
  bottom: 32px;
  width: 3px;
  border-radius: 3px;
}
.process-track { background: var(--line); }
.process-fill {
  background: linear-gradient(180deg, var(--magenta), var(--indigo) 60%, var(--celeste));
  bottom: auto;
  height: 0;
}
.process-step {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 28px;
  padding-bottom: 44px;
}
.process-step:last-child { padding-bottom: 0; }
.process-dot {
  position: relative;
  z-index: 1;
  width: 64px; height: 64px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: #fff;
  border: 3px solid var(--line);
  color: var(--gris);
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.15rem;
  transition: border-color .4s, color .4s, background .4s, transform .5s var(--ease), box-shadow .4s;
}
.process-step.is-active .process-dot {
  border-color: transparent;
  background: var(--grad-panel);
  color: #fff;
  transform: scale(1.06);
  box-shadow: 0 10px 24px -10px rgba(107, 38, 137, .7);
}
.process-body {
  padding: 18px 0 0;
}
.process-body h3 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); margin-bottom: 8px; }
.process-body p { max-width: 36em; }
.process-tag {
  display: inline-block;
  margin-top: 12px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--magenta);
  background: rgba(147, 34, 130, .08);
  padding: 4px 12px;
  border-radius: 999px;
}

/* ---------- Reasons ---------- */

.reasons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.reason {
  background: #fff;
  padding: clamp(24px, 3vw, 36px);
  transition: background .3s;
}
.reason:hover { background: var(--bg-sky); }
.reason svg { width: 30px; height: 30px; color: var(--magenta); margin-bottom: 20px; }
.reason h3 { font-size: 1.15rem; margin-bottom: 10px; }
.reason p { font-size: .98rem; }

@media (max-width: 980px) { .reasons { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .reasons { grid-template-columns: 1fr; } }

/* ---------- Quote wizard ---------- */

.quote {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.quote-aside .lead { margin-top: 20px; }
.quote-aside .note {
  margin-top: 28px;
  padding: 18px 20px;
  border-left: 4px solid var(--celeste);
  background: #fff;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: .98rem;
  color: var(--ink);
}

.wizard {
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--shadow-lift);
  border: 1px solid var(--line);
  padding: clamp(24px, 4vw, 44px);
}
.wizard-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--gris);
}
.wizard-bar {
  flex: 1;
  height: 6px;
  border-radius: 6px;
  background: var(--bg-soft);
  overflow: hidden;
}
.wizard-bar i {
  display: block;
  height: 100%;
  width: 33.33%;
  background: var(--grad);
  border-radius: 6px;
  transition: width .5s var(--ease);
}
.wizard fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.wizard legend {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  color: var(--indigo);
  margin-bottom: 18px;
  padding: 0;
}
.wizard-step { display: none; animation: stepIn .45s var(--ease); }
.wizard-step.is-current { display: block; }
@keyframes stepIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }

.choices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.choices + legend, .choices + fieldset { margin-top: 28px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  height: 100%;
  padding: 14px 16px;
  border: 2px solid var(--line);
  border-radius: 14px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .2s var(--ease);
}
.choice label:hover { border-color: var(--celeste); transform: translateY(-1px); }
.choice label::before {
  content: "";
  flex: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid #C6CAD6;
  transition: border .2s, background .2s, box-shadow .2s;
}
.choice input:checked + label { border-color: var(--magenta); background: rgba(147, 34, 130, .05); }
.choice input:checked + label::before { border: 6px solid var(--magenta); }
.choice input:focus-visible + label { outline: 3px solid var(--celeste); outline-offset: 2px; }

.field { display: grid; gap: 8px; margin-bottom: 16px; }
.field label { font-weight: 600; color: var(--ink); font-size: .95rem; }
.field label span { font-weight: 400; color: var(--gris); }
.field input, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  padding: 14px 16px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 4px rgba(69, 118, 194, .15); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.wizard-error {
  min-height: 1.4em;
  margin-top: 14px;
  color: var(--magenta);
  font-weight: 600;
  font-size: .92rem;
}
.wizard-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.wizard-nav .btn[hidden] { display: none; }
.link-btn {
  background: none;
  border: 0;
  padding: 8px 4px;
  font: inherit;
  font-weight: 600;
  color: var(--gris);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.link-btn:hover { color: var(--indigo); }

.wizard-done { text-align: center; padding: 20px 0; }
.wizard-done .check {
  width: 72px; height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--grad-panel);
  color: #fff;
}
.wizard-done .check svg { width: 34px; height: 34px; }
.wizard-done h3 { margin-bottom: 10px; }
.wizard-done p { margin-bottom: 24px; }

@media (max-width: 920px) { .quote { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .choices, .field-row { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */

.faq { max-width: 860px; margin-inline: auto; display: grid; gap: 12px; }
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: box-shadow .3s, border-color .3s;
}
.faq details[open] { box-shadow: var(--shadow); border-color: transparent; }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 26px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--indigo);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 14px; height: 14px;
  border-right: 3px solid var(--magenta);
  border-bottom: 3px solid var(--magenta);
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform .35s var(--ease);
}
.faq details[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.faq details p { padding: 0 26px 24px; max-width: 42em; }

/* ---------- CTA band + contact ---------- */

.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: var(--grad-panel);
  color: #fff;
  padding: clamp(40px, 6vw, 80px);
  display: grid;
  grid-template-columns: 1.3fr auto;
  gap: 32px;
  align-items: center;
}
.cta-band h2 { color: #fff; font-size: clamp(1.9rem, 4vw, 3rem); }
.cta-band p { color: rgba(255, 255, 255, .9); margin-top: 14px; font-size: 1.1rem; }
.cta-band .trace-bg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; pointer-events: none; }
.cta-band > *:not(.trace-bg) { position: relative; }
@media (max-width: 820px) { .cta-band { grid-template-columns: 1fr; } }

.contact {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.contact-card {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
a.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.contact-card svg { width: 28px; height: 28px; color: var(--magenta); margin-bottom: 8px; }
.contact-card strong { font-family: var(--font-title); color: var(--indigo); font-size: 1.05rem; }
.contact-card span { font-size: .95rem; overflow-wrap: anywhere; }
@media (max-width: 980px) { .contact { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .contact { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */

.site-footer {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 56px 0 32px;
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--grad);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
.footer-grid img { width: 260px; margin-bottom: 16px; }
.footer-grid h4 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gris); margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--ink); text-decoration: none; font-weight: 500; }
.footer-grid a:hover { color: var(--magenta); }
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: .88rem;
  color: var(--gris);
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Floating WhatsApp ---------- */

.fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 22px 0 18px;
  height: 56px;
  border-radius: 999px;
  background: var(--magenta);
  color: #fff;
  font-family: var(--font-title);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 16px 32px -12px rgba(147, 34, 130, .8);
  transform: translateY(120px);
  transition: transform .5s var(--ease), background .2s;
}
.fab svg { width: 24px; height: 24px; }
.fab.is-visible { transform: none; }
.fab:hover { background: var(--violeta); }
@media (max-width: 520px) { .fab span { display: none; } .fab { padding: 0; width: 56px; justify-content: center; } }

/* ---------- Nosotros page ---------- */

.about-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(56px, 8vw, 112px);
  background:
    radial-gradient(55% 70% at 100% 10%, rgba(133, 199, 240, .25), transparent 70%),
    #fff;
}
.about-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr .9fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.about-hero .lead + .lead { margin-top: 16px; }
.symbol-stage {
  position: relative;
  aspect-ratio: 1;
  max-width: 420px;
  margin-inline: auto;
  width: 100%;
  display: grid;
  place-items: center;
}
.symbol-stage .ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px dashed rgba(60, 78, 162, .25);
  animation: spin 60s linear infinite;
}
.symbol-stage .ring:nth-child(2) { inset: 12%; border-style: solid; border-color: rgba(133, 199, 240, .5); animation-duration: 40s; animation-direction: reverse; }
.symbol-stage .ring::after {
  content: "";
  position: absolute;
  top: -6px; left: 50%;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--magenta);
}
.symbol-stage .ring:nth-child(2)::after { background: var(--celeste); top: auto; bottom: -6px; }
.symbol-plate {
  position: relative;
  width: 62%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-lift);
  display: grid;
  place-items: center;
}
.symbol-plate img { width: 72%; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 860px) { .about-hero-grid { grid-template-columns: 1fr; } .symbol-stage { max-width: 300px; } }

.purpose {
  position: relative;
  overflow: hidden;
  background: var(--grad-panel);
  padding-block: clamp(72px, 10vw, 128px);
}
.purpose .trace-bg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; pointer-events: none; }
.purpose-inner { position: relative; }
.purpose blockquote { max-width: 17em; }
.purpose .eyebrow { color: rgba(255, 255, 255, .85); }
.purpose blockquote {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: clamp(2rem, 4.8vw, 3.7rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
  text-wrap: balance;
}

.mv {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.mv-card {
  position: relative;
  padding: clamp(28px, 4vw, 48px);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.mv-card::before {
  content: "";
  display: block;
  width: 64px; height: 5px;
  border-radius: 5px;
  margin-bottom: 24px;
  background: var(--magenta);
}
.mv-card:nth-child(2)::before { background: var(--azul); }
.mv-card h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 16px; }
.mv-card p { font-size: 1.1rem; color: var(--ink); }
@media (max-width: 760px) { .mv { grid-template-columns: 1fr; } }

.values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.value {
  perspective: 1000px;
  min-height: 300px;
}
.value-inner {
  position: relative;
  height: 100%;
  min-height: 300px;
  transition: transform .8s var(--ease);
  transform-style: preserve-3d;
}
.value:hover .value-inner,
.value:focus-within .value-inner,
.value.is-flipped .value-inner { transform: rotateY(180deg); }
.value-face {
  position: absolute;
  inset: 0;
  padding: 28px;
  border-radius: var(--radius);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
}
.value-front { background: #fff; border: 1px solid var(--line); }
.value-back { background: var(--grad-panel); color: #fff; transform: rotateY(180deg); justify-content: flex-end; }
.value small { font-size: .88rem; color: var(--gris); }
.value-front h3 { font-size: 1.45rem; margin: 4px 0 14px; }
.value-front p { font-size: .98rem; }
.value-front button {
  margin-top: auto;
  align-self: flex-start;
  background: none;
  border: 0;
  padding: 6px 0;
  font: inherit;
  font-size: .88rem;
  font-weight: 600;
  color: var(--magenta);
  cursor: pointer;
}
.value-back small { color: rgba(255, 255, 255, .85); }
.value-back strong { font-family: var(--font-title); font-size: 2rem; line-height: 1.1; }
.value-back p { margin-top: 10px; font-size: .95rem; color: rgba(255, 255, 255, .9); }
@media (max-width: 980px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .values { grid-template-columns: 1fr; } }

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 64px;
}
.timeline-line {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 64px;
  overflow: visible;
}
.timeline-line path { fill: none; stroke: url(#tlGrad); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1400; stroke-dashoffset: 1400; transition: stroke-dashoffset 2s var(--ease); }
.timeline.is-in .timeline-line path { stroke-dashoffset: 0; }
.milestone {
  position: relative;
  padding: 28px 24px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.milestone-when {
  display: inline-block;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 10px;
}
.milestone h3 { font-size: 1.2rem; margin-bottom: 10px; }
.milestone p { font-size: .97rem; }
.milestone--now { border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; }
@media (max-width: 980px) {
  .timeline { grid-template-columns: 1fr 1fr; padding-top: 0; }
  .timeline-line { display: none; }
}
@media (max-width: 560px) { .timeline { grid-template-columns: 1fr; } }

.audience {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.audience > div { padding: 32px 32px 8px 0; }
.audience > div + div { padding-left: 32px; border-left: 1px solid var(--line); }
.audience svg { width: 30px; height: 30px; color: var(--magenta); margin-bottom: 16px; }
.audience h3 { font-size: 1.2rem; margin-bottom: 10px; }
@media (max-width: 820px) {
  .audience { grid-template-columns: 1fr; }
  .audience > div, .audience > div + div { padding: 28px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* ---------- Reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal-stagger.is-in > * { opacity: 1; transform: none; }
.reveal-stagger.is-in > *:nth-child(2) { transition-delay: .08s; }
.reveal-stagger.is-in > *:nth-child(3) { transition-delay: .16s; }
.reveal-stagger.is-in > *:nth-child(4) { transition-delay: .24s; }
.reveal-stagger.is-in > *:nth-child(5) { transition-delay: .32s; }

.no-js .reveal, .no-js .reveal-stagger > * { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html:not(.force-motion) *, html:not(.force-motion) *::before, html:not(.force-motion) *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  html:not(.force-motion) .reveal, html:not(.force-motion) .reveal-stagger > * { opacity: 1; transform: none; }
  html:not(.force-motion) .hero-trace .draw { stroke-dashoffset: 0; }
  html:not(.force-motion) .marquee-track { animation: none; }
}
