/* =========================================================
   Enterweb — Hoja de estilos base
   Paleta: dark mode azul (--bg, --primary, --primary-2)
   Mobile-first, sin frameworks.
   ========================================================= */

/* Orbitron autohospedada (wordmark ENTERWEB) — fuente variable, cubre 700-900.
   Autohospedada para no depender de fonts.googleapis.com/fonts.gstatic.com,
   que algunos bloqueadores de anuncios/privacidad filtran por defecto. */
@font-face {
  font-family: "Orbitron";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/orbitron.woff2") format("woff2");
}

:root {
  --bg: #081122;
  --bg-alt: #0a1730;
  --surface: #0f1c38;
  --surface-2: #142a52;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  --primary: #2f6df6;
  --primary-2: #62a1ff;
  --primary-dark: #1c4fc4;

  --text: #eef2fb;
  --text-muted: #a7b3cc;
  --text-faint: #6f7ea3;

  --success: #34d399;
  --success-bg: rgba(52, 211, 153, 0.12);
  --danger: #f87171;
  --danger-bg: rgba(248, 113, 113, 0.12);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;

  --shadow-sm: 0 8px 24px -12px rgba(0, 0, 0, 0.5);
  --shadow: 0 20px 50px -20px rgba(3, 10, 26, 0.65);
  --shadow-lg: 0 30px 80px -24px rgba(3, 10, 26, 0.75);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --container: 1180px;
  --header-h: 76px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background-image:
    radial-gradient(1200px 600px at 85% -10%, rgba(47, 109, 246, 0.16), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(98, 161, 255, 0.08), transparent 55%);
  background-attachment: fixed;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.35rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--text-muted); }

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

button, input, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 64px 0;
}

@media (min-width: 720px) {
  .section { padding: 96px 0; }
}

.section-alt {
  background: linear-gradient(180deg, transparent, rgba(47, 109, 246, 0.04) 20%, rgba(47, 109, 246, 0.04) 80%, transparent);
  position: relative;
}

.section-alt::before,
.section-alt::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong) 30%, var(--border-strong) 70%, transparent);
}

.section-alt::before { top: 0; }
.section-alt::after { bottom: 0; }

/* Separador delgado standalone entre secciones que no usan section-alt */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong) 30%, var(--border-strong) 70%, transparent);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-2);
  background: rgba(47, 109, 246, 0.12);
  border: 1px solid rgba(47, 109, 246, 0.28);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

/* Cuando el badge va seguido del separador de marca, se elimina el margen
   superior del separador para que el bloque badge+separador+título quede
   compacto y cohesionado en lugar de acumular tres márgenes verticales. */
.eyebrow + .brand-divider {
  margin-top: 0;
}

.section-head {
  max-width: 680px;
  margin: 0 0 44px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 12px 30px -10px rgba(47, 109, 246, 0.55);
}

.btn-primary:hover {
  box-shadow: 0 16px 40px -10px rgba(47, 109, 246, 0.7);
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25d366, #128c4a);
  color: #fff;
  box-shadow: 0 12px 30px -10px rgba(37, 211, 102, 0.5);
}

.btn-whatsapp:hover { transform: translateY(-1px); }

.btn-block { width: 100%; }
.btn-lg { padding: 16px 30px; font-size: 1.02rem; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---------- Cards ---------- */
.card {
  background: linear-gradient(180deg, var(--surface), var(--bg-alt));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(98, 161, 255, 0.35);
  box-shadow: var(--shadow);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(47, 109, 246, 0.22), rgba(98, 161, 255, 0.08));
  border: 1px solid rgba(98, 161, 255, 0.25);
  margin-bottom: 20px;
  color: var(--primary-2);
  flex-shrink: 0;
}

.card-icon svg { width: 26px; height: 26px; }

.card h3 { margin-bottom: 10px; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-weight: 600;
  color: var(--primary-2);
  font-size: 0.94rem;
}

.card-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.15s ease;
}

.card:hover .card-link svg { transform: translateX(3px); }

/* ---------- Grid helpers ---------- */
.grid {
  display: grid;
  gap: 24px;
}

.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(8, 17, 34, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--text);
}

.brand-icon {
  height: 40px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.brand-word {
  font-family: 'Orbitron', var(--font);
  font-weight: 800;
  /* Orbitron es ~19% más ancha que Inter al mismo tamaño; se reduce el
     font-size para que el bloque ocupe un ancho similar en la navbar. */
  font-size: 1.18rem;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1;
}

.brand-word em {
  font-style: normal;
  color: var(--primary-2);
  background: linear-gradient(135deg, var(--primary-2), var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

@supports not (background-clip: text) {
  .brand-word em {
    background: none;
    -webkit-text-fill-color: unset;
    color: var(--primary-2);
  }
}

/* ---------- Divisor de marca (línea + punto) ---------- */
.brand-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 260px;
  margin: 28px 0;
}

.brand-divider::before,
.brand-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-2));
}

.brand-divider::after {
  background: linear-gradient(90deg, var(--primary-2), transparent);
}

.brand-divider span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary-2);
  box-shadow: 0 0 10px 2px rgba(98, 161, 255, 0.7);
  flex-shrink: 0;
}

.brand-divider.center {
  margin-left: auto;
  margin-right: auto;
}

.brand-divider.small {
  max-width: 100px;
  margin: 10px 0 14px;
}

.main-nav {
  display: none;
  align-items: center;
  gap: 6px;
}

.main-nav a {
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.94rem;
  color: var(--text-muted);
  transition: color 0.15s ease, background 0.15s ease;
}

.main-nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }

.main-nav a.active {
  color: #fff;
  background: rgba(47, 109, 246, 0.18);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-actions .btn { display: none; }

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
}

.nav-toggle svg { width: 20px; height: 20px; }

.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: rgba(8, 12, 24, 0.98);
  backdrop-filter: blur(10px);
  z-index: 99;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  overflow-y: auto;
}

.mobile-nav.open {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.mobile-nav-inner {
  padding: 28px 24px 40px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-nav a {
  padding: 16px 6px;
  font-size: 1.1rem;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.mobile-nav a.active { color: var(--primary-2); }

.mobile-nav .btn-row {
  margin-top: 24px;
  flex-direction: column;
}

@media (min-width: 960px) {
  .main-nav { display: flex; }
  .header-actions .btn { display: inline-flex; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 56px 0 40px;
  position: relative;
  overflow: hidden;
}

@media (min-width: 720px) {
  .hero { padding: 90px 0 60px; }
}

.hero-network {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  display: block;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 60px; }
}

.hero h1 { margin-bottom: 20px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.hero-stat strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
}

.hero-stat span {
  font-size: 0.85rem;
  color: var(--text-faint);
}

.hero-panel {
  background: linear-gradient(160deg, var(--surface), var(--bg-alt));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
}

.hero-panel-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.hero-panel-row:last-child { border-bottom: none; }

.hero-panel-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(47, 109, 246, 0.15);
  border: 1px solid rgba(98, 161, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-2);
  flex-shrink: 0;
}

.hero-panel-icon svg { width: 20px; height: 20px; }

.hero-panel-row strong { display: block; font-size: 0.98rem; margin-bottom: 2px; }
.hero-panel-row p { margin: 0; font-size: 0.9rem; }

/* ---------- Steps / how we work ---------- */
.steps {
  counter-reset: step;
  display: grid;
  gap: 20px;
}

@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
}

.step {
  position: relative;
  padding-top: 8px;
}

.step-num {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(47, 109, 246, 0.14);
  border: 1px solid rgba(98, 161, 255, 0.3);
  color: var(--primary-2);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, rgba(47, 109, 246, 0.16), rgba(98, 161, 255, 0.05));
  border: 1px solid rgba(98, 161, 255, 0.25);
  border-radius: var(--radius-lg);
  padding: 44px 28px;
  text-align: center;
}

@media (min-width: 720px) {
  .cta-band { padding: 64px 60px; }
}

.cta-band h2 { margin-bottom: 12px; }
.cta-band .btn-row { justify-content: center; margin-top: 28px; }

/* ---------- Service cards ---------- */
.service-card {
  display: flex;
  flex-direction: column;
}

.service-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.service-card-head .card-icon { margin-bottom: 0; }

.service-num {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-faint);
  letter-spacing: 0.05em;
}

/* ---------- Value cards (Nosotros) ---------- */
.value-card {
  text-align: center;
  padding: 26px 22px;
}

.value-card .card-icon {
  margin-left: auto;
  margin-right: auto;
}

.value-card h3 { font-size: 1.05rem; }
.value-card p { font-size: 0.9rem; margin: 0; }

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tag {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary-2);
  background: rgba(47, 109, 246, 0.1);
  border: 1px solid rgba(47, 109, 246, 0.25);
  padding: 5px 12px;
  border-radius: 999px;
}

/* ---------- Problem / solution list ---------- */
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  color: var(--text-muted);
}

.check-list svg {
  width: 20px;
  height: 20px;
  color: var(--success);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ---------- Form ---------- */
.form-card {
  background: linear-gradient(180deg, var(--surface), var(--bg-alt));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow);
}

@media (min-width: 640px) {
  .form-card { padding: 40px; }
}

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.form-group .required { color: var(--primary-2); }

.form-control {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control::placeholder { color: var(--text-faint); }

.form-control:focus {
  outline: none;
  border-color: var(--primary-2);
  box-shadow: 0 0 0 3px rgba(98, 161, 255, 0.18);
}

.form-control.invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15);
}

.field-error {
  color: var(--danger);
  font-size: 0.82rem;
  margin-top: 6px;
  display: none;
}

.field-error.show { display: block; }

textarea.form-control { resize: vertical; min-height: 140px; }

.form-note {
  font-size: 0.82rem;
  color: var(--text-faint);
  margin-top: 14px;
}

.form-alert {
  display: none;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  font-size: 0.94rem;
}

.form-alert.show { display: flex; }

.form-alert.success {
  background: var(--success-bg);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #a7f3d3;
}

.form-alert.error {
  background: var(--danger-bg);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #fecaca;
}

.form-alert svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }

.contact-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.contact-method:hover {
  border-color: rgba(98, 161, 255, 0.35);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-2px);
}

.contact-method .card-icon { margin-bottom: 0; }

.contact-method strong { display: block; font-size: 1rem; }
.contact-method span { font-size: 0.88rem; color: var(--text-muted); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 28px;
  background: var(--bg-alt);
}

.footer-grid {
  display: grid;
  gap: 36px;
  margin-bottom: 40px;
}

@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

.footer-brand p { max-width: 320px; }

.footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  margin-bottom: 16px;
}

.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--text-muted); font-size: 0.94rem; }
.footer-col a:hover { color: var(--primary-2); }

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-faint);
}

@media (min-width: 720px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.footer-social a:hover { color: var(--primary-2); border-color: rgba(98, 161, 255, 0.4); }

/* ---------- Floating WhatsApp button ---------- */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366, #128c4a);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 32px -10px rgba(37, 211, 102, 0.6);
  color: #fff;
  transition: transform 0.15s ease;
}

.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 28px; height: 28px; }

/* ---------- Misc ---------- */
.divider {
  height: 1px;
  background: var(--border);
  border: none;
  margin: 40px 0;
}

/* ---------- Panel de mini-tarjetas (hero de páginas internas) ---------- */
.hero-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 480px) {
  .hero-card-grid { grid-template-columns: repeat(2, 1fr); }
}

.hero-mini-card {
  position: relative;
  background: linear-gradient(160deg, var(--surface), var(--bg-alt));
  border-radius: var(--radius);
  padding: 20px;
}

.hero-mini-card .card-icon {
  width: 38px;
  height: 38px;
  margin-bottom: 12px;
  transition: box-shadow 0.3s ease;
}

.hero-mini-card:hover .card-icon {
  box-shadow: 0 0 0 4px rgba(98, 161, 255, 0.12), 0 0 18px -2px rgba(98, 161, 255, 0.55);
}

.hero-mini-card strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.hero-mini-card span {
  display: block;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.hero-mini-card.is-link {
  display: block;
  color: inherit;
  transition: transform 0.2s ease;
}

.hero-mini-card.is-link:hover { transform: translateY(-2px); }

/* ---------- Borde eléctrico animado ----------
   Técnica: conic-gradient rotado vía @property (--angle) recortado a un
   anillo de 1.5px con mask (padding-box exclude border-box). El propio
   gradiente lleva un tono base tenue (siempre visible) + un arco más
   brillante que recorre el perímetro — no depende de un <border> real. */
@property --electric-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.electric-border::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(
    from var(--electric-angle),
    rgba(98, 161, 255, 0.22) 0deg,
    rgba(98, 161, 255, 0.22) 250deg,
    var(--primary-2) 290deg,
    #ffffff 320deg,
    var(--primary-2) 340deg,
    rgba(98, 161, 255, 0.22) 360deg
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: electric-rotate 7s linear infinite;
  pointer-events: none;
}

@keyframes electric-rotate {
  to { --electric-angle: 360deg; }
}

/* Desfase por tarjeta dentro de una grilla para que el brillo de cada una
   viaje en un punto distinto del ciclo — evita que las 4 "parpadeen" a la
   vez y da una sensación más orgánica de red viva. */
.hero-card-grid .hero-mini-card:nth-child(2)::before { animation-delay: -1.75s; }
.hero-card-grid .hero-mini-card:nth-child(3)::before { animation-delay: -3.5s; }
.hero-card-grid .hero-mini-card:nth-child(4)::before { animation-delay: -5.25s; }

@media (prefers-reduced-motion: reduce) {
  .electric-border::before {
    animation: none;
    --electric-angle: 45deg;
  }
}

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.placeholder-note {
  font-size: 0.72rem;
  color: var(--text-faint);
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed var(--border-strong);
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-block;
  margin-top: 8px;
}

.page-hero {
  padding: 48px 0 20px;
  position: relative;
  overflow: hidden;
}

@media (min-width: 720px) {
  .page-hero { padding: 72px 0 30px; }
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.two-col {
  display: grid;
  gap: 40px;
}

@media (min-width: 900px) {
  .two-col { grid-template-columns: 1fr 1fr; align-items: center; }
}

.stat-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.stat-card strong {
  display: block;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--primary-2);
}

.stat-card span { font-size: 0.86rem; color: var(--text-muted); }
