/* ============================================================
   HIMPULSA — hero.css  (slider: slide1=logo → slide2=2col)
   Ruta Hostinger: /assets/css/hero.css
   ============================================================ */

/* ── CONTENEDOR HERO ── */
.hero {
  height: 100vh;
  min-height: 600px;
  position: relative;
  overflow: hidden;
  background-image: url('/assets/img/hero-bg.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-color: var(--bg);
}

/* Overlay oscuro */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg,
    rgba(9,9,14,0.95) 0%,
    rgba(9,9,14,0.82) 50%,
    rgba(9,9,14,0.60) 100%
  );
  z-index: 1;
  pointer-events: none;
}
/* Degradado de transición inferior — une el hero con la siguiente sección */
.hero::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  height: 180px;
  background: linear-gradient(to bottom,
    transparent 0%,
    rgba(9,9,14,0.6) 50%,
    rgba(9,9,14,1) 100%
  );
  z-index: 2;
  pointer-events: none;
}

/* ── PARTÍCULAS ── */
.particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 2;
}
.particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  animation: particleFade 4s ease-in-out infinite;
}
@keyframes particleFade {
  0%,100% { opacity:0; transform:translateY(0); }
  50%      { opacity:0.5; transform:translateY(-14px); }
}

/* ── SLIDES: ambos llenan el hero completo ── */
.hero-slide {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 88px 48px 48px;
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.77,0,.18,1);
}

/* ════════════════════════════════════
   SLIDE 1 — logo animado
════════════════════════════════════ */
#heroSlide1 {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
  flex-direction: column;
  gap: 12px;
}
#heroSlide1.slide-exit {
  opacity: 0;
  transform: translateY(-40px);
  pointer-events: none;
}

/* Logo animado */
.logo-anim {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 4;
}
.la {
  font-family: var(--font-titulo);
  font-size: clamp(72px, 14vw, 130px);
  font-weight: 800;
  line-height: 1;
  display: inline-block;
  white-space: nowrap;
  transition: transform 0.7s cubic-bezier(.77,0,.18,1), color 0.5s ease;
}
.reveal-l {
  font-family: var(--font-titulo);
  font-size: clamp(72px, 14vw, 130px);
  font-weight: 800;
  line-height: 1;
  display: inline-block;
  white-space: nowrap;
  color: var(--blanco);
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-width 0.3s cubic-bezier(.77,0,.18,1), opacity 0.2s ease 0.03s;
}
.reveal-l.open { max-width: 160px; opacity: 1; }

/* Tagline bajo el logo */
.logo-tagline {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--morado);
  opacity: 0;
  transition: opacity 0.5s ease;
  text-align: center;
  position: relative;
  z-index: 4;
}

/* ════════════════════════════════════
   SLIDE 2 — hero 2 columnas
════════════════════════════════════ */
#heroSlide2 {
  opacity: 0;
  transform: translateY(50px);
  pointer-events: none;
  align-items: stretch;
}
#heroSlide2.slide-enter {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

/* Layout 2 columnas */
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

/* Columna izquierda */
.hero-left {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Prueba social */
.hero-social-proof {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.hero-social-proof.visible { opacity:1; transform:translateY(0); }
.hero-avatares { display: flex; }
.hero-av {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #fff;
  margin-left: -7px;
}
.hero-avatares .hero-av:first-child { margin-left: 0; }
.hero-estrellas { color: #F5C240; font-size: 13px; letter-spacing: 1px; }
.hero-social-txt { font-size: 12px; color: rgba(255,255,255,0.65); margin: 0; }
.hero-social-txt strong { color: var(--morado); font-weight: 700; }

/* Eyebrow pill */
.hero-eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(196,251,54,0.10);
  border: 1px solid rgba(196,251,54,0.45);
  color: #C4FB36;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radio-pill);
  width: fit-content;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  letter-spacing: 0.02em;
}
.hero-eyebrow-pill.visible { opacity:1; transform:translateY(0); }

/* Headline */
.hero-headline {
  font-family: var(--font-titulo);
  font-size: clamp(26px, 3.8vw, 46px);
  font-weight: 900;
  line-height: 1.1;
  color: var(--blanco);
  margin: 0;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  text-shadow: 0 2px 24px rgba(9,9,14,0.5);
}
.hero-headline .accent { color: var(--lima); }
.hero-headline.visible { opacity:1; transform:translateY(0); }

/* Sub */
.hero-sub {
  font-size: clamp(13px, 1.3vw, 14px);
  font-weight: 400;
  color: rgba(255,255,255,0.82);
  line-height: 1.7;
  margin: 0;
  max-width: 460px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.hero-sub strong { color: var(--blanco); font-weight: 700; }
.hero-sub.visible { opacity:1; transform:translateY(0); }

/* Botones */
.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.hero-btns.visible { opacity:1; transform:translateY(0); }

/* Ancla precio */
.hero-ancla {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  margin: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
}
.hero-ancla.visible { opacity:1; }
.hero-ancla-price { color: var(--lima); font-weight: 600; }

/* Trust pills */
.hero-trust-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  opacity: 0;
  transition: opacity 0.45s ease;
}
.hero-trust-pills.visible { opacity:1; }
.hero-trust-pill {
  font-size: 10px;
  color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.04);
  border: 0.5px solid rgba(255,255,255,0.10);
  border-radius: var(--radio-pill);
  padding: 4px 10px;
}
.hero-trust-pill strong { color: var(--blanco); font-weight: 700; }

/* Columna derecha — card */
.hero-right {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.hero-right.visible { opacity:1; transform:translateY(0); }

.hero-card {
  background: rgba(17,17,24,0.88);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 20px 22px 18px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hero-card-eyebrow {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--morado);
  margin: 0;
}
.hero-resultado {
  border-left: 2px solid rgba(129,69,255,0.4);
  padding-left: 12px;
}
.hero-resultado-num {
  font-family: var(--font-titulo);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 900;
  color: var(--morado);
  line-height: 1;
  margin-bottom: 2px;
}
.hero-resultado-txt {
  font-size: 13px;
  font-weight: 600;
  color: var(--blanco);
  margin-bottom: 3px;
}
.hero-resultado-meta {
  font-size: 10px;
  color: rgba(255,255,255,0.38);
  line-height: 1.5;
}

/* ── SCROLL HINT — desactivado ── */
.scroll-hint { display: none !important; }

/* ══════════════════════════════════════════════════════════
   MOBILE — única fuente de verdad del hero responsive.
   responsive.css NO toca el hero. index.php NO lleva <style>.
   ══════════════════════════════════════════════════════════ */

/* === TABLET ≤860px === */
@media (max-width: 860px) {

  /* El hero crece con su contenido (antes: 100vh fijo + overflow
     hidden → cortaba la card y los botones en celulares) */
  .hero {
    height: auto;
    min-height: 100vh;
    min-height: 100svh;
  }

  /* Slide 2 entra al flujo del documento: él define la altura.
     Slide 1 (logo) queda como overlay absoluto encima. */
  #heroSlide2 {
    position: relative;
    inset: auto;
    min-height: 100vh;
    min-height: 100svh;
    justify-content: flex-start;
    padding: 140px 24px 70px; /* despeja banner FOMO + nav fijos */
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }

  /* Texto primero, card de resultados después */
  .hero-left  { order: 1; }
  .hero-right { order: 2; }

  .hero-social-proof { justify-content: center; }
  .hero-btns         { justify-content: center; }
  .hero-trust-pills  { justify-content: center; flex-wrap: wrap; }
  .hero-eyebrow-pill { margin-left: auto; margin-right: auto; }
  .hero-sub          { margin-left: auto; margin-right: auto; }
  .hero-ancla        { text-align: center; }

  .hero-card      { padding: 20px; gap: 16px; }
  .hero-resultado { text-align: left; }
}

/* === MÓVIL ≤480px === */
@media (max-width: 480px) {
  #heroSlide2 { padding: 120px 16px 56px; }

  .hero-headline { font-size: 26px; line-height: 1.12; }
  .hero-sub      { font-size: 14px; }

  .hero-btns { flex-direction: column; width: 100%; }
  .hero-btns .btn-primary,
  .hero-btns .btn-ghost { width: 100%; text-align: center; }

  .hero-trust-pills { gap: 6px; }
  .hero-trust-pill  { font-size: 10px; padding: 4px 10px; }
}

/* === iPhone SE ≤380px === */
@media (max-width: 380px) {
  #heroSlide2    { padding: 110px 12px 48px; }
  .hero-headline { font-size: 22px; }
}