/* ============================================================
   HERO.CSS
   ============================================================ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 52px;
  background-color: var(--color-bg-base);
  position: relative;
  overflow: hidden;
}

.hero__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-2xl);
  padding-block: var(--spacing-xl);
  width: 100%;
}

/* ----------------------------------------------------------
   LOGO HERO — protagonista, fuera del navbar
---------------------------------------------------------- */
.hero__logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
}

/* ----------------------------------------------------------
   CONTENT
---------------------------------------------------------- */
.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--spacing-lg);
  margin: 0 auto;
  position: relative;
  width: 100%;
}

/* ----------------------------------------------------------
   ECG — detrás del título
---------------------------------------------------------- */
.hero__ecg-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 900px;
  pointer-events: none;
  z-index: 0;
}

.hero__ecg {
  width: 100%;
  height: auto;
}

/* Base: siempre visible, muy sutil — sin parpadeo al cargar */
.hero__ecg-base {
  opacity: 0.1;
}

/* Trail: oculto hasta que GSAP lo toma */
.hero__ecg-light {
  opacity: 0;
}

/* Dot: oculto hasta que GSAP lo toma con MotionPath */
.hero__ecg-dot {
  opacity: 0;
}

/* ----------------------------------------------------------
   TÍTULO — jerarquía de color
---------------------------------------------------------- */
.hero__title {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  max-width: 640px;
  position: relative;
  z-index: 1;
}

/* "El", "del", " de tu negocio" */
.hero__title-plain {
  color: var(--color-text-primary);
  font-weight: var(--font-weight-bold);
}

/* "PULSO" — azul rey fijo, text-shadow sutil estático */
.hero__title-pulse {
  display: inline-block;
  color: #2563eb;
  font-weight: var(--font-weight-bold);
  text-shadow: 0 0 20px rgba(59, 130, 246, 0.35);
}

/* "corazón" — acento cálido sin romper la paleta */
.hero__title-heart {
  color: var(--color-text-primary);
  font-weight: var(--font-weight-bold);
}

/* "médico" — degradado azul a cyan */
.hero__title-medical {
  display: inline-block;
  background: linear-gradient(90deg, #3b82f6 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: var(--font-weight-bold);
}

/* ----------------------------------------------------------
   EYEBROW
---------------------------------------------------------- */
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem 0.35rem 0.6rem;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.28);
  border-radius: 999px;
  position: relative;
  z-index: 1;
}

.hero__eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3b82f6;
  box-shadow: 0 0 6px 2px rgba(59, 130, 246, 0.55);
  flex-shrink: 0;
  animation: eyebrow-pulse 2s ease-in-out infinite;
}

@keyframes eyebrow-pulse {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 6px 2px rgba(59, 130, 246, 0.55);
  }
  50% {
    opacity: 0.6;
    box-shadow: 0 0 10px 4px rgba(59, 130, 246, 0.25);
  }
}

.hero__eyebrow-text {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  font-weight: var(--font-weight-medium);
}

.hero__eyebrow-hl {
  color: #93c5fd;
  font-weight: var(--font-weight-semibold);
}

/* ----------------------------------------------------------
   SUBTITLE, ICONS, CTA
---------------------------------------------------------- */
.hero__subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  max-width: 480px;
  position: relative;
  z-index: 1;
}


/* ----------------------------------------------------------
   CTA GROUP — botón primario + secundario + prueba social
---------------------------------------------------------- */
.hero__cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-md);
  position: relative;
  z-index: 1;
}

.hero__cta-row {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
  justify-content: center;
}

/* Botón primario — hereda .btn .btn--primary */
.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  white-space: nowrap;
  transition: transform var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out);
}

.hero__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
}

.hero__cta:active {
  transform: translateY(0);
}

.hero__cta i {
  font-size: 1.1rem;
  line-height: 1;
}

/* Botón secundario — ghost sobre oscuro */
.hero__cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: transform var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out),
              background-color var(--duration-normal) var(--ease-out),
              border-color var(--duration-normal) var(--ease-out);
  white-space: nowrap;
  cursor: pointer;
}

.hero__cta-secondary i {
  font-size: 1.2rem;
  color: var(--color-text-secondary);
  line-height: 1;
}

.hero__cta-secondary:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

/* Prueba social — fila de garantías */
.hero__proof {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  flex-wrap: wrap;
  justify-content: center;
  margin-top: var(--spacing-lg);
}

.hero__proof-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

.hero__proof-item i {
  color: #22c55e;
  font-size: 1rem;
  line-height: 1;
}

/* ----------------------------------------------------------
   RESPONSIVE
---------------------------------------------------------- */
@media (min-width: 640px) {
  .hero__title {
    font-size: var(--font-size-4xl);
  }
}

@media (min-width: 1024px) {
  .hero {
    padding-top: 60px;
  }

  .hero__container {
    padding-block: var(--spacing-2xl);
  }

  .hero__logo-stack {
    width: 220px;
    height: 220px;
  }

  .hero__logo-wordmark {
    font-size: 1.25rem;
    letter-spacing: 0.35em;
  }

  .hero__content {
    max-width: 900px;
  }

  .hero__title {
    font-size: var(--font-size-5xl);
    max-width: 800px;
  }
}

/* ----------------------------------------------------------
   HERO LOGO STACK — composición de imágenes animadas
---------------------------------------------------------- */
@keyframes hero-wave-in {
  0% {
    transform: scale(0.1);
    opacity: 0;
    animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  }
  70% {
    transform: scale(1.02);
    opacity: 1;
    animation-timing-function: ease-out;
  }
  100% {
    transform: scale(1);
  }
}

@keyframes hero-wave-in-outer {
  0% {
    transform: scale(0.3);
    opacity: 0;
    animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  }
  70% {
    transform: scale(1.02);
    opacity: 1;
    animation-timing-function: ease-out;
  }
  100% {
    transform: scale(1);
  }
}

.hero__logo-stack {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.85);
}

.hero__logo-stack img {
  position: absolute;
  width: auto;
  max-width: none;
  object-fit: contain;
}

.hero__logo-aro3 {
  height: 293px;
  z-index: 18;
  translate: 6px 1px;
  filter: drop-shadow(0 0 40px rgba(170, 183, 213, 0.28));
  animation: hero-wave-in-outer 1.1s linear 0.3s both;
}

.hero__logo-aro2 {
  height: 267px;
  z-index: 19;
  translate: 8px 2px;
  filter: drop-shadow(0 0 36px rgba(106, 146, 194, 0.32));
  animation: hero-wave-in 1.1s linear 0.2s both;
}

.hero__logo-p {
  height: 160px;
  z-index: 20;
  translate: 5px 15px;
  filter: drop-shadow(0 0 28px rgba(1, 62, 148, 0.45));
  animation: hero-wave-in 1.1s linear 0s both;
}

.hero__logo-aro1 {
  height: 211px;
  translate: 5px 0px;
  z-index: 21;
  filter: drop-shadow(0 0 32px rgba(14, 96, 166, 0.38));
  animation: hero-wave-in 1.1s linear 0.1s both;
}
