/* ============================================================
   MAIN.CSS — Estilos globales y layout base
   ============================================================ */

/* ----------------------------------------------------------
   LAYOUT
---------------------------------------------------------- */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--spacing-md);
}

.section {
  padding-block: var(--spacing-3xl);
}

.section--alt {
  background-color: #080e1c;
  border-top: var(--border-width) solid rgba(59, 130, 246, 0.1);
  border-bottom: var(--border-width) solid rgba(59, 130, 246, 0.1);
}

/* ----------------------------------------------------------
   SECTION HEADER
---------------------------------------------------------- */
.section__header {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
}

.section__title {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-sm);
}

.section__subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
}

@media (min-width: 1024px) {
  .section__title {
    font-size: var(--font-size-4xl);
  }
}

/* ----------------------------------------------------------
   ACCESIBILIDAD
---------------------------------------------------------- */
.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;
}

/* ----------------------------------------------------------
   SECTION ORBS — orbes flotantes locales por sección
   Uso: agrega .section-orb--a / --b / --c dentro de una
   sección con position: relative; overflow: hidden.
---------------------------------------------------------- */
.section-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  pointer-events: none;
}

.section-orb--a {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, #2563eb 0%, transparent 70%);
  opacity: 0.10;
  top: -10%;
  right: -8%;
}

.section-orb--b {
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, #06b6d4 0%, transparent 70%);
  opacity: 0.07;
  bottom: -8%;
  left: -6%;
}

.section-orb--c {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, #7c3aed 0%, transparent 70%);
  opacity: 0.06;
  top: 40%;
  left: 50%;
}

/* ----------------------------------------------------------
   ECG GHOST — línea de pulso fantasma en secciones clave
   SVG inline con animación CSS en stroke-dashoffset.
---------------------------------------------------------- */
.ecg-ghost {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.ecg-ghost__path {
  fill: none;
  stroke: #3b82f6;
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.06;
  stroke-dasharray: 80 1800;
  stroke-dashoffset: 0;
  animation: ecg-ghost-run 12s linear infinite;
}

@keyframes ecg-ghost-run {
  from { stroke-dashoffset: 0; }
  to   { stroke-dashoffset: -1900; }
}


/* ============================================================
   PHRASE BRIDGE — Separador entre Features y Planes
   ============================================================ */
.phrase-bridge {
  text-align: center;
  padding: 80px 24px;
  position: relative;
}
.phrase-bridge__text {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: rgba(241,245,249,0.55);
  margin: 0;
  line-height: 1.2;
}
.phrase-bridge__brand {
  color: #2563eb;
  text-shadow: 0 0 40px rgba(37,99,235,0.5);
}
