/* Glass CTA with pink-blue gradient border and focus NON animated */
.cta-glass {
  position: relative;
  display: inline-block;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 9999px;
  padding: 0.75rem 1.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.cta-glass:hover {
  transform: translateY(-1px) scale(1.02);
  background: rgba(255, 255, 255, 0.09);
}

.cta-glass:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(168, 85, 247, .25);
}

.cta-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(90deg, #60a5fa, #ec4899);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Animated gradient border for CTA buttons */
@property --rotate {
  syntax: "<angle>";
  initial-value: 132deg;
  inherits: false;
}

@keyframes spin {
  0% {
    --rotate: 0deg;
  }

  100% {
    --rotate: 360deg;
  }
}

.btn-spin-border {
  --btn-spin-border-w: 3px;
  background: #191c29;
  padding: 3px;
  position: relative;
  justify-content: center;
  align-items: center;
  text-align: center;
  display: flex;
  cursor: pointer;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  color: white;
  background: transparent;
  isolation: isolate;
  /* Oculta el contenido desbordado: en particular el exterior del glow */
  overflow: hidden;
}

/*gradiente stroke animado*/
.btn-spin-border::before {
  content: "";
  inset: 0;
  border-radius: inherit;
  /*gradiente stroke animado*/
  background-image: linear-gradient(var(--rotate), #5ddcff, #3c67e3 43%, #f629da);
  position: absolute;
  z-index: -1;
  animation: spin 4s linear infinite;
}

/*glow animado*/
.btn-spin-border::after {
  position: absolute;
  content: "";
  inset: 0;
  border-radius: inherit;
  z-index: -5;
  margin: 0 auto;
  transform: scale(1.10);
  filter: blur(7px);
  /*glow animado*/
  background-image: linear-gradient(var(--rotate), #5ddcff, #3c67e3 43%, #e859f2);
  opacity: 0.5;
  transition: opacity .5s;
  animation: spin 4s linear infinite;
}

.animated-gradient {
  background: var(--background-color);
  --edge-bottom-a: 0.12;
  background-image: linear-gradient(0deg, rgba(232, 121, 249, var(--edge-bottom-a)), transparent 28%);
  background-repeat: no-repeat;
  animation: edge-bottom 3s ease-in-out infinite;
  animation-delay: .25s;
}

.animated-gradient::before,
.animated-gradient::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.animated-gradient::before {
  background: linear-gradient(90deg, rgba(232, 121, 249, 0.10), rgba(232, 121, 249, 0.22) 6%, rgba(232, 121, 249, 0.16) 10%, transparent 22%);
  animation: edge-left 3s ease-in-out infinite;
}

.animated-gradient::after {
  background: linear-gradient(270deg, rgba(232, 121, 249, 0.10), rgba(232, 121, 249, 0.22) 6%, rgba(232, 121, 249, 0.16) 10%, transparent 22%);
  animation: edge-right 3s ease-in-out infinite;
  animation-delay: .75s;
}

@keyframes edge-left {
  0% {
    opacity: .16;
  }

  25% {
    opacity: .32;
  }

  50% {
    opacity: .46;
  }

  75% {
    opacity: .32;
  }

  100% {
    opacity: .16;
  }
}

@keyframes edge-right {
  0% {
    opacity: .16;
  }

  25% {
    opacity: .32;
  }

  50% {
    opacity: .46;
  }

  75% {
    opacity: .32;
  }

  100% {
    opacity: .16;
  }
}

@property --edge-bottom-a {
  syntax: '<number>';
  inherits: false;
  initial-value: 0.12;
}

@keyframes edge-bottom {
  0% {
    --edge-bottom-a: 0.12;
  }

  25% {
    --edge-bottom-a: 0.22;
  }

  50% {
    --edge-bottom-a: 0.34;
  }

  75% {
    --edge-bottom-a: 0.22;
  }

  100% {
    --edge-bottom-a: 0.12;
  }
}

.ecg-svg {
  display: block;
}

.ecg-path {
  stroke-linejoin: miter;
  margin-trim: 12;
  stroke-linecap: round;
  stroke-dasharray: var(--ecg-len, 1000);
  stroke-dashoffset: var(--ecg-len, 1000);
  animation: ecg-draw 2.25s linear infinite, ecg-pulse 3.8s ease-in-out infinite;
}

.ecg-path-static {
  stroke-linejoin: round;
  stroke-linecap: round;
  stroke-width: 1.5;
  opacity: 0.28;
}

/* ECG glow effect in hero section */
.ecg-glow {
  filter:
    drop-shadow(0 0 10px rgba(168, 85, 247, 0.95)) drop-shadow(0 0 22px rgba(192, 38, 211, 0.6)) drop-shadow(0 0 34px rgba(147, 51, 234, 0.4));
  opacity: 1;
}

/* Mobile adaptation: decrease glow */
@media (max-width: 768px) {
  .ecg-glow {
    filter:
      drop-shadow(0 0 5px rgba(168, 85, 247, 0.5)) drop-shadow(0 0 10px rgba(192, 38, 211, 0.3)) drop-shadow(0 0 14px rgba(147, 51, 234, 0.2));
  }
}

@media (max-width: 640px) {
  .ecg-path {
    animation: ecg-draw 2.25s linear infinite, ecg-pulse-sm 3.8s ease-in-out infinite;
  }

  @keyframes ecg-pulse-sm {

    0%,
    100% {
      stroke-width: 2.5;
    }

    50% {
      stroke-width: 3.5;
    }
  }

  .ecg-path-static {
    stroke-width: 1;
  }
}

@keyframes ecg-pulse {

  0%,
  100% {
    stroke-width: 4;
  }

  50% {
    stroke-width: 6;
  }
}

@keyframes ecg-draw {
  from {
    stroke-dashoffset: var(--ecg-len, 1000);
  }

  to {
    stroke-dashoffset: 0;
  }
}




/* Benefits cards */
.benefit-card {
  position: relative;
  padding: 2.25rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 32px rgba(8, 12, 24, 0.38);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  text-align: center;
  opacity: 0;
  transform: translateY(14px);
  animation: benefitFadeUp 520ms ease forwards;
  animation-delay: var(--card-delay, 0ms);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.benefit-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 22px 42px rgba(14, 20, 40, 0.55);
  border-color: rgba(96, 165, 250, 0.32);
}

.benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 1.25rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 1px 4px rgba(255, 255, 255, 0.12);
  font-size: 2.25rem;
}

.benefit-icon .material-symbols-outlined {
  font-size: inherit;
  line-height: 1;
}

.benefit-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}

.benefit-copy {
  font-size: 0.95rem;
  color: rgba(229, 231, 235, 0.82);
  line-height: 1.75;
}

@keyframes benefitFadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseGlow {

  0%,
  100% {
    opacity: .35;
    filter: blur(12px);
  }

  50% {
    opacity: .65;
    filter: blur(16px);
  }
}

.brand-content {
  position: relative;
  z-index: 1;
}

@keyframes textGlow {

  0%,
  100% {
    text-shadow: 0 0 6px rgba(139, 92, 246, .35);
  }

  50% {
    text-shadow: 0 0 12px rgba(121, 242, 249, 0.55);
  }
}

/* Animacion de contact, signup y viewstats */
.brand-text-glow {
  animation: textGlow 3s ease-in-out infinite;
}

@keyframes strokeGlow {

  0%,
  100% {
    opacity: .28;
    text-shadow:
      0 0 6px rgba(191, 219, 254, .55),
      0 0 10px rgba(129, 140, 248, .45),
      0 0 14px rgba(195, 157, 192, 0.28);
    filter: none;
  }

  50% {
    opacity: .68;
    text-shadow:
      0 0 10px rgba(191, 219, 254, .85),
      0 0 18px rgba(129, 140, 248, .70),
      0 0 24px rgba(195, 157, 192, 0.28);
    filter: none;
  }
}

@keyframes strokeGlowMobile {

  0%,
  100% {
    opacity: 0.15;
    text-shadow:
      0 0 4px rgba(191, 219, 254, 0.3),
      0 0 6px rgba(129, 140, 248, 0.2),
      0 0 8px rgba(195, 157, 192, 0.1);
    filter: none;
  }

  50% {
    opacity: 0.6;
    text-shadow:
      0 0 5px rgba(191, 219, 254, 0.4),
      0 0 7px rgba(129, 140, 248, 0.25),
      0 0 9px rgba(195, 157, 192, 0.15);
    filter: none;
  }
}


/* Add glow stroke to Biopulse heading */
.brand-stroke {
  position: relative;
  display: inline-block;
}

.brand-stroke .fill {
  position: relative;
  z-index: 1;
  display: inline-block;
}

.brand-stroke::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  color: transparent;
  font: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  white-space: pre;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  font-kerning: normal;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 2px rgba(191, 219, 254, .80);
  text-stroke: 2px rgba(191, 219, 254, .80);
  transform: translateZ(0);
  animation: strokeGlow 1.9s ease-in-out infinite;
}

@media (max-width: 768px) {
  .brand-stroke::after {
    -webkit-text-stroke: 1.3px rgba(191, 219, 254, 0.45);
    text-stroke: 1.3px rgba(191, 219, 254, 0.45);
    /* Solo para Chrome y Safari */
    animation: strokeGlowMobile 1.9s ease-in-out infinite;
  }
}



/* Join session & check-in confirmation styles */
.pill-ok {
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, .35);
}

.pill-default {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background .18s ease, border-color .18s ease;
}

.pill-default input,
.pill-ok input {
  background-color: transparent !important;
  background-image: none !important;
  color: inherit;
}

.pill-default input:valid,
.pill-ok input:valid {
  background-color: transparent !important;
}

.pill-default input:-webkit-autofill,
.pill-default input:-webkit-autofill:hover,
.pill-default input:-webkit-autofill:focus,
.pill-ok input:-webkit-autofill,
.pill-ok input:-webkit-autofill:hover,
.pill-ok input:-webkit-autofill:focus {
  box-shadow: 0 0 0 1000px transparent inset;
  -webkit-text-fill-color: inherit;
  background-color: transparent !important;
}

.card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .22);
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, .28);
  background: rgba(255, 255, 255, 0.06);
}

.card.selected {
  outline: 2px solid var(--primary-color);
  background: rgba(59, 130, 246, 0.08);
}

.btn-join {
  background-image: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.btn-join:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.btn-spin-border:disabled::before {
  opacity: 0.4;
  animation-play-state: paused;
}

.btn-spin-border:disabled::after {
  opacity: 0.6;
}

.checkin {
  animation: pulseOk .8s ease;
}

@keyframes pulseOk {
  0% {
    transform: scale(.98);
  }

  50% {
    transform: scale(1.02);
  }

  100% {
    transform: scale(1);
  }
}

.sensor-pulse {
  display: inline-flex;
  animation: sensorPulse 1.6s ease-in-out infinite;
  text-shadow: 0 0 10px rgba(96, 165, 250, 0.6);
}

@keyframes sensorPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.12);
    opacity: .65;
  }
}

/* Checkin-complete animations */

@keyframes auroraGlow {
  0% {
    transform: translateY(-10%) scale(1);
    opacity: 0.35;
  }

  50% {
    transform: translateY(8%) scale(1.08);
    opacity: 0.55;
  }

  100% {
    transform: translateY(-10%) scale(1);
    opacity: 0.35;
  }
}

@keyframes statusPulse {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 6px rgba(45, 212, 191, 0.6);
  }

  45% {
    transform: scale(1.35);
    box-shadow: 0 0 10px rgba(45, 212, 191, 0.85);
  }
}

@keyframes bpmPulse {
  0% {
    transform: scale(1);
  }

  40% {
    transform: scale(1.05);
  }

  70% {
    transform: scale(0.98);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes sensorGlow {

  0%,
  100% {
    text-shadow: 0 0 6px rgba(96, 165, 250, 0.35), 0 0 12px rgba(236, 72, 153, 0.25);
    transform: scale(1);
    opacity: 0.85;
  }

  50% {
    text-shadow: 0 0 14px rgba(96, 165, 250, 0.55), 0 0 22px rgba(236, 72, 153, 0.45);
    transform: scale(1.08);
    opacity: 1;
  }
}

@keyframes statsBorderSpin {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}