/* ============================================================
   SYNAPSE GROWTH — Design System
   Estética: sinapsis + tecnología + conexión + crecimiento
   ============================================================ */

/* ------------------------------------------------------------
   Tokens
------------------------------------------------------------ */
:root {
  --bg: #0a0b13;
  --bg-alt: #0d0f1c;
  --bg-soft: #11131f;
  --surface: #141728;
  --surface-2: #1a1e33;
  --border: rgba(150, 163, 255, 0.14);
  --border-strong: rgba(150, 163, 255, 0.28);

  --text: #eef0ff;
  --text-muted: #a9aecb;
  --text-faint: #7b81a6;

  --primary: #7c5cff;
  --primary-soft: #b49cff;
  --accent: #22d3ee;
  --success: #34d399;
  --danger: #f87171;

  --gradient: linear-gradient(135deg, #7c5cff 0%, #22d3ee 100%);
  --gradient-soft: linear-gradient(135deg, rgba(124, 92, 255, 0.18), rgba(34, 211, 238, 0.14));
  --gradient-text: linear-gradient(120deg, #b49cff 0%, #22d3ee 100%);

  --font-display: "Space Grotesk", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --radius-lg: 20px;
  --radius: 14px;
  --radius-sm: 9px;

  --shadow-lg: 0 24px 60px -24px rgba(0, 0, 0, 0.65);
  --shadow-glow: 0 0 0 1px var(--border), 0 24px 70px -30px rgba(124, 92, 255, 0.35);

  --container: 1160px;
  --header-h: 78px;
  --space-section: clamp(80px, 10vw, 130px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ------------------------------------------------------------
   Reset y base
------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, canvas { display: block; max-width: 100%; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--text);
}

p { margin: 0 0 1em; }

a { color: var(--accent); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--primary-soft); }

ul { margin: 0; padding: 0; list-style: none; }

::selection { background: rgba(124, 92, 255, 0.4); color: #fff; }

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

/* Accesibilidad: salto al contenido */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 2000;
  padding: 12px 20px;
  background: var(--primary);
  color: #fff;
  border-radius: 0 0 10px 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ------------------------------------------------------------
   Layout utilitario
------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding-block: var(--space-section); position: relative; }

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

.section--tech { background: var(--bg-soft); }

.section-head { max-width: 780px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head--center { margin-inline: auto; text-align: center; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary-soft);
  margin-bottom: 18px;
}
.kicker::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gradient);
}

.section-head--center .kicker::after {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gradient);
}

.section-title { font-size: clamp(2rem, 4.6vw, 3.1rem); font-weight: 700; }

.section-lead {
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  color: var(--text-muted);
  margin-top: 18px;
}
.section-lead > * + * { margin-top: 10px; }

/* ------------------------------------------------------------
   Botones
------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1;
  padding: 15px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
    background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
  text-align: center;
  white-space: nowrap;
}

.btn--primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 14px 34px -14px rgba(124, 92, 255, 0.7);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px -14px rgba(124, 92, 255, 0.85);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn--accent {
  background: transparent;
  color: var(--accent);
  border-color: rgba(34, 211, 238, 0.4);
}
.btn--accent:hover { background: rgba(34, 211, 238, 0.08); color: var(--accent); }

.btn--full { width: 100%; }
.btn--sm { padding: 11px 20px; font-size: 0.9rem; }

.btn[aria-disabled="true"] { opacity: 0.6; cursor: not-allowed; }

/* Enlace con flecha */
.link-arrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.link-arrow::after { content: "→"; transition: transform 0.2s var(--ease); }
.link-arrow:hover { color: var(--primary-soft); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ------------------------------------------------------------
   Header
------------------------------------------------------------ */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(10, 11, 19, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.header--scrolled { background: rgba(10, 11, 19, 0.92); border-bottom-color: var(--border); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}

.brand { display: flex; align-items: center; gap: 14px; }
.brand__mark {
  width: 38px;
  height: 38px;
  flex: none;
  display: grid;
  place-items: center;
}
.brand__mark svg { width: 100%; height: 100%; }
.brand__text { font-family: var(--font-display); line-height: 1.05; }
.brand__name { display: block; font-weight: 700; font-size: 1.12rem; letter-spacing: 0.14em; }
.brand__name em { font-style: normal; background: var(--gradient-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.brand__tag { display: block; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.42em; color: var(--text-faint); }

.brand--footer .brand__mark { width: 40px; height: 40px; }
.brand--footer .brand__name { font-size: 1.18rem; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav__link {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px 13px;
  border-radius: 999px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav__link:hover { color: var(--text); background: rgba(150, 163, 255, 0.08); }
.nav__link--active { color: var(--text); background: rgba(124, 92, 255, 0.16); }

.header__cta { display: flex; align-items: center; gap: 12px; }

.header__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.header__toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.header__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.header__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menú móvil */
.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 999;
  background: rgba(10, 11, 19, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  padding: 28px 24px 40px;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  overflow-y: auto;
}
.mobile-menu--open { opacity: 1; transform: none; pointer-events: auto; }
.mobile-menu__link {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
  padding: 13px 4px;
  border-bottom: 1px solid var(--border);
}
.mobile-menu__link:hover { color: var(--accent); }
.mobile-menu .btn { margin-top: 26px; }

/* ------------------------------------------------------------
   Hero
------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 40px) 0 80px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero__network {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.85;
}
.hero__glow {
  position: absolute;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.28;
  background: radial-gradient(circle, #7c5cff 0%, transparent 60%);
  top: -160px;
  right: -120px;
  z-index: -1;
  pointer-events: none;
}
.hero__glow--2 {
  background: radial-gradient(circle, #22d3ee 0%, transparent 60%);
  bottom: -200px;
  left: -160px;
  top: auto;
  right: auto;
  opacity: 0.18;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero__title {
  font-size: clamp(2.3rem, 5.4vw, 3.8rem);
  font-weight: 700;
  margin-bottom: 22px;
}
.hero__title .grad {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__text { color: var(--text-muted); font-size: 1.06rem; max-width: 560px; }
.hero__text p + p { margin-top: 12px; }

.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 26px;
  margin-top: 40px;
  color: var(--text-faint);
  font-size: 0.9rem;
}
.hero__trust li { display: flex; align-items: center; gap: 9px; }
.hero__trust li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gradient);
  box-shadow: 0 0 12px rgba(124, 92, 255, 0.8);
}

/* Visual de sinapsis estático (respaldo) */
.hero__visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
}
.hero__node {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.8);
  animation: pulse 3.4s ease-in-out infinite;
}
.hero__node:nth-child(1) { top: 18%; left: 22%; background: var(--primary); box-shadow: 0 0 18px rgba(124,92,255,.8); animation-delay: 0s; }
.hero__node:nth-child(2) { top: 64%; left: 30%; animation-delay: .7s; }
.hero__node:nth-child(3) { top: 32%; right: 24%; background: var(--primary); box-shadow: 0 0 18px rgba(124,92,255,.8); animation-delay: 1.2s; }
.hero__node:nth-child(4) { bottom: 20%; right: 34%; animation-delay: 1.7s; }
.hero__node:nth-child(5) { top: 8%; right: 46%; animation-delay: 2.2s; }

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.55); opacity: 0.55; }
}

/* ------------------------------------------------------------
   Secciones de servicio (listas de chips)
------------------------------------------------------------ */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease), background 0.3s var(--ease);
  position: relative;
}
.card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
  background: var(--surface-2);
  box-shadow: var(--shadow-glow);
}

.card__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--gradient-soft);
  border: 1px solid var(--border);
  margin-bottom: 20px;
}
.card__icon svg { width: 26px; height: 26px; stroke: var(--primary-soft); }

.card__title { font-size: 1.28rem; font-weight: 700; margin-bottom: 10px; }
.card__text { color: var(--text-muted); font-size: 0.96rem; }

.chip-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(150, 163, 255, 0.07);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 999px;
}

/* ------------------------------------------------------------
   Paso numerado (steps)
------------------------------------------------------------ */
.steps { display: grid; gap: 18px; }
.steps--4 { grid-template-columns: repeat(4, 1fr); }
.steps--5 { grid-template-columns: repeat(5, 1fr); }

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  position: relative;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.step:hover { border-color: var(--border-strong); transform: translateY(-4px); }

.step__num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 14px;
}
.step__title { font-size: 1.08rem; font-weight: 700; margin-bottom: 6px; }
.step__text { font-size: 0.92rem; color: var(--text-muted); }

/* ------------------------------------------------------------
   Flow (Diseño → Confianza → Conversión)
------------------------------------------------------------ */
.flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 8px;
}
.flow__item {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 14px 24px;
  border-radius: 999px;
}
.flow__arrow { color: var(--accent); font-size: 1.3rem; font-weight: 700; }

/* ------------------------------------------------------------
   Sección destacada Google Maps
------------------------------------------------------------ */
.featured {
  background: linear-gradient(180deg, var(--bg-alt), var(--bg));
}
.featured__panel {
  position: relative;
  background: var(--gradient-soft);
  border: 1px solid var(--border-strong);
  border-radius: 28px;
  padding: clamp(32px, 5vw, 64px);
  overflow: hidden;
}
.featured__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(124, 92, 255, 0.22), transparent 60%),
    radial-gradient(500px 260px at 0% 100%, rgba(34, 211, 238, 0.16), transparent 60%);
  pointer-events: none;
}
.featured__inner { position: relative; z-index: 1; }
.featured__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }

.featured__title { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 700; margin-bottom: 18px; }
.featured__text { color: var(--text-muted); }
.featured__text p + p { margin-top: 10px; }
.featured__cta { margin-top: 28px; }

/* ------------------------------------------------------------
   Formularios
------------------------------------------------------------ */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .field--full { grid-column: 1 / -1; }

.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 0.86rem; font-weight: 600; color: var(--text-muted); }
.field label .req { color: var(--accent); }

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.25);
}
.field select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23a9aecb' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }

.field.is-error input, .field.is-error select, .field.is-error textarea { border-color: var(--danger); }
.field .error-msg { display: none; font-size: 0.8rem; color: var(--danger); }
.field.is-error .error-msg { display: block; }

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow-lg);
}

.form__submit { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.form__hint { font-size: 0.8rem; color: var(--text-faint); text-align: center; }

/* Estado de éxito */
.form-success { text-align: center; padding: 24px 8px; }
.form-success__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gradient-soft);
  border: 1px solid var(--border-strong);
}
.form-success__icon svg { width: 34px; height: 34px; stroke: var(--success); }
.form-success__title { font-size: 1.6rem; font-weight: 700; margin-bottom: 10px; }
.form-success__text { color: var(--text-muted); max-width: 480px; margin: 0 auto 24px; }

/* ------------------------------------------------------------
   Diagnóstico (layout dos columnas)
------------------------------------------------------------ */
.diagnostic { background: var(--bg-alt); }
.diagnostic__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.diagnostic__points { margin-top: 30px; display: grid; gap: 14px; }
.diagnostic__point {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.diagnostic__point svg { flex: none; width: 22px; height: 22px; stroke: var(--success); margin-top: 2px; }

/* ------------------------------------------------------------
   Technology
------------------------------------------------------------ */
.tech-wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: center; }

.tech__cta { margin-top: 28px; }

.tech-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.tech-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.tech-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.tech-card__icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.16), rgba(124, 92, 255, 0.14));
}
.tech-card__icon svg { width: 24px; height: 24px; stroke: var(--accent); }
.tech-card__title { font-size: 1.12rem; font-weight: 700; margin-bottom: 6px; }
.tech-card__text { font-size: 0.92rem; color: var(--text-muted); }

/* ------------------------------------------------------------
   Casos
------------------------------------------------------------ */
.case-empty {
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  padding: clamp(36px, 5vw, 64px);
  text-align: center;
}
.case-empty__title { font-size: 1.5rem; font-weight: 700; margin-bottom: 8px; }
.case-empty__text { color: var(--text-muted); max-width: 460px; margin: 0 auto; }

.case-card { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.case-card__head { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.case-card__cliente { font-size: 1.3rem; font-weight: 700; }
.case-card__servicio { font-size: 0.82rem; color: var(--accent); font-family: var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; }
.case-card__label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-faint); margin-bottom: 6px; font-family: var(--font-display); }
.case-card__res { grid-column: 1 / -1; border-top: 1px solid var(--border); padding-top: 18px; }
.case-card__metric { font-family: var(--font-display); font-size: 2rem; font-weight: 700; background: var(--gradient-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ------------------------------------------------------------
   Testimonios
------------------------------------------------------------ */
.testimonial {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.testimonial__quote { color: var(--text-muted); font-size: 1.02rem; font-style: italic; margin: 0; }
.testimonial__author { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.testimonial__avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--gradient);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  font-size: 1rem;
  flex: none;
}
.testimonial__name { font-weight: 700; font-size: 0.98rem; }
.testimonial__role { font-size: 0.85rem; color: var(--text-faint); }

/* ------------------------------------------------------------
   Audience
------------------------------------------------------------ */
.audience-card { text-align: left; }

/* ------------------------------------------------------------
   Paquetes
------------------------------------------------------------ */
.package {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.package:hover { transform: translateY(-5px); border-color: var(--border-strong); box-shadow: var(--shadow-glow); }
.package--featured { border-color: var(--primary); background: linear-gradient(180deg, rgba(124,92,255,.1), var(--surface)); }
.package--featured::after {
  content: "Popular";
  position: absolute;
  top: -13px;
  left: 28px;
  background: var(--gradient);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
}
.package__name { font-size: 1.4rem; font-weight: 700; }
.package__tag { color: var(--text-muted); font-size: 0.95rem; }
.package__list { display: grid; gap: 10px; }
.package__list li { display: flex; align-items: center; gap: 10px; font-size: 0.94rem; color: var(--text-muted); }
.package__list li::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gradient);
  flex: none;
}
.package .btn { margin-top: auto; }

/* ------------------------------------------------------------
   Proceso
------------------------------------------------------------ */
.process__cta { text-align: center; margin-top: 44px; }

/* ------------------------------------------------------------
   About
------------------------------------------------------------ */
.about__highlight {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 600;
  line-height: 1.3;
  max-width: 880px;
  margin-top: 34px;
  padding: 26px 30px;
  border-left: 3px solid;
  border-image: var(--gradient) 1;
  background: var(--gradient-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text);
}

/* ------------------------------------------------------------
   FAQ — acordeón accesible
------------------------------------------------------------ */
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s var(--ease);
}
.faq-item[open] { border-color: var(--border-strong); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--accent);
  transition: transform 0.25s var(--ease);
  font-weight: 400;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq__answer { padding: 0 24px 22px; color: var(--text-muted); font-size: 0.97rem; }
.faq__cta { text-align: center; margin-top: 36px; }

/* ------------------------------------------------------------
   Contacto
------------------------------------------------------------ */
.contact__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.contact__info { display: grid; gap: 20px; }
.contact__channels { display: grid; gap: 12px; }
.contact__channel {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-muted);
  font-size: 0.95rem;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.contact__channel:hover { border-color: var(--border-strong); color: var(--text); }
.contact__channel svg { width: 22px; height: 22px; stroke: var(--accent); flex: none; }
.contact__channel.is-pending { opacity: 0.55; cursor: not-allowed; }

/* ------------------------------------------------------------
   Footer
------------------------------------------------------------ */
.footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 70px 0 34px; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 44px; }
.footer__brand { max-width: 340px; }
.footer__tagline { color: var(--text-muted); margin-top: 16px; }
.footer__col-title { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-faint); margin-bottom: 18px; font-family: var(--font-display); }
.footer__links { display: grid; gap: 10px; }
.footer__links a { color: var(--text-muted); font-size: 0.94rem; }
.footer__links a:hover { color: var(--accent); }

.footer__social { display: flex; gap: 12px; margin-top: 20px; }
.footer__social a {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-muted);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.footer__social a:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-3px); }
.footer__social svg { width: 20px; height: 20px; }

.footer__bottom {
  margin-top: 54px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-faint);
  font-size: 0.85rem;
}

/* ------------------------------------------------------------
   WhatsApp flotante
------------------------------------------------------------ */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 900;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25d366;
  color: #fff;
  box-shadow: 0 14px 34px -10px rgba(37, 211, 102, 0.6);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.wa-float:hover { transform: translateY(-4px) scale(1.05); color: #fff; box-shadow: 0 20px 44px -10px rgba(37, 211, 102, 0.75); }
.wa-float svg { width: 30px; height: 30px; }
.wa-float__label {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.85rem;
  padding: 9px 14px;
  border-radius: 10px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s var(--ease);
}
.wa-float:hover .wa-float__label, .wa-float:focus-visible .wa-float__label { opacity: 1; }

/* Toast */
.toast {
  position: fixed;
  bottom: 96px;
  right: 22px;
  z-index: 901;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 14px 20px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  font-size: 0.92rem;
  max-width: 300px;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.toast--show { opacity: 1; transform: none; }

/* ------------------------------------------------------------
   Animaciones de aparición
------------------------------------------------------------ */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------
   Responsive
------------------------------------------------------------ */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; gap: 24px; }
  .hero__visual { min-height: 320px; }
  .featured__grid, .tech-wrap, .diagnostic__grid, .contact__grid { grid-template-columns: 1fr; gap: 36px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .steps--4, .steps--5 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1160px) {
  .nav { display: none; }
  .header__toggle { display: flex; }
}

@media (max-width: 860px) {
  .grid--3 { grid-template-columns: 1fr; }
  .case-card { grid-template-columns: 1fr; }
  .case-card__head { grid-column: 1 / -1; }
  .case-card__res { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .grid--2, .grid--4, .tech-grid { grid-template-columns: 1fr; }
  .steps--4, .steps--5 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .field--full { grid-column: auto; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .container { padding-inline: 20px; }
  .hero__ctas .btn { width: 100%; }
  .hero__visual { min-height: 240px; }
  .wa-float { width: 54px; height: 54px; right: 16px; bottom: 16px; }
  .wa-float__label { display: none; }
}

@media (max-width: 480px) {
  .header__cta .btn { display: none; }
}
