/* =========================================
   HERO — Two-Column Layout
   ========================================= */

/* Contenedor que crea el espacio de scroll para el efecto scrollytelling */
.hero-scroll-track {
  height: 400vh;
  position: relative;
}

.hero {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7rem var(--container-padding) 5rem;
  overflow: hidden;
}

/* Watermark "BYTA" — detrás de la columna izquierda */
.hero__bg-text {
  position: absolute;
  top: 50%;
  left: -1%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: clamp(160px, 22vw, 340px);
  color: rgba(255, 255, 255, 0.028);
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: 18px;
  user-select: none;
  line-height: 1;
  z-index: 0;
}

/* Grid principal: 55% izquierda / 45% derecha */
.hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: 3rem;
  align-items: center;
}

/* ─────────────────────────────────────────
   Columna izquierda
───────────────────────────────────────── */

.hero__left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Badge "live" pill */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(198, 240, 0, 0.06);
  border: 1px solid rgba(198, 240, 0, 0.32);
  color: var(--lime);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 1.75rem;
  animation: fadeUp 0.6s ease both;
}

.hero__badge-dot {
  width: 7px;
  height: 7px;
  background: var(--lime);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.35; }
}

/* Título H1 */
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(54px, 8vw, 102px);
  line-height: 0.93;
  letter-spacing: 2px;
  color: var(--text);
  margin-bottom: 1.75rem;
  animation: fadeUp 0.6s 0.1s ease both;
}

/* Subtítulo */
.hero__subtitle {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 430px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  animation: fadeUp 0.6s 0.2s ease both;
}

/* Botones CTA */
.hero__actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  animation: fadeUp 0.6s 0.3s ease both;
}

/* Botón primario — override tamaño + lime glow */
.hero__btn-main {
  font-size: 12px;
  letter-spacing: 1.5px;
  padding: 0.9rem 1.75rem;
  box-shadow: 0 0 18px rgba(198, 240, 0, 0.28), 0 0 45px rgba(198, 240, 0, 0.1);
  transition: box-shadow var(--transition-base), transform var(--transition-fast), background var(--transition-base);
}

.hero__btn-main:hover {
  box-shadow: 0 0 28px rgba(198, 240, 0, 0.5), 0 0 65px rgba(198, 240, 0, 0.18);
}

/* Botón secundario */
.hero__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.9rem 1.5rem;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color var(--transition-base), color var(--transition-base);
}

.hero__btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--text);
}

/* ─────────────────────────────────────────
   Columna derecha — Marco + carrusel
───────────────────────────────────────── */

.hero__right {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1200px;
  animation: fadeUp 0.6s 0.35s ease both;
}

/* Resplandor verde detrás del teléfono */
.hero__phone-glow {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(198, 240, 0, 0.16) 0%,
    rgba(198, 240, 0, 0.05) 45%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
  filter: blur(30px);
}

/* Marco del teléfono */
.hero__phone-frame {
  position: relative;
  z-index: 1;
  width: 270px;
  background: #080808;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 46px;
  overflow: hidden;
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(255, 255, 255, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  will-change: transform;
  transform-origin: center center;
}

/* Área de slides — proporción de pantalla de teléfono moderno */
.hero__carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 390 / 844;
  overflow: hidden;
  background: #000;
  display: block;
}

/* Cada slide — apiladas, JS controla opacity según progreso de scroll */
.hero__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  opacity: 0;
  transition: opacity 0.55s ease;
  will-change: opacity;
}

.hero__slide:first-child {
  opacity: 1;
}

/* Puntos indicadores */
.hero__carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 10px 0 14px;
  background: #080808;
}

.hero__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: background 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}

.hero__dot--active {
  background: var(--lime);
  transform: scale(1.3);
}

/* ─────────────────────────────────────────
   Scroll hint
───────────────────────────────────────── */

.hero__scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.hero__scroll-hint-text {
  font-family: var(--font-body);
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.5;
}

.hero__scroll-arrow {
  width: 1px;
  height: 30px;
  background: linear-gradient(to bottom, rgba(198, 240, 0, 0.5), transparent);
  animation: scroll-hint-drop 2s ease-in-out infinite;
}

@keyframes scroll-hint-drop {
  0%, 100% { opacity: 0.35; transform: translateY(0); }
  50%       { opacity: 0.9;  transform: translateY(6px); }
}

/* ─────────────────────────────────────────
   Responsive
───────────────────────────────────────── */

@media (max-width: 920px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero__bg-text {
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(130px, 30vw, 260px);
  }

  .hero__right {
    justify-content: center;
  }

  .hero__subtitle {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 6rem var(--container-padding) 3.5rem;
  }

  .hero__title {
    font-size: clamp(50px, 15vw, 80px);
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__btn-main,
  .hero__btn-secondary {
    text-align: center;
    width: 100%;
    box-sizing: border-box;
  }

  .hero__phone-frame {
    width: 240px;
  }
}

/* ─────────────────────────────────────────
   Mobile — scrollytelling desactivado, carrusel táctil activo
───────────────────────────────────────── */

@media (max-width: 768px) {
  .hero-scroll-track {
    height: auto;
  }

  .hero {
    position: relative;
    height: auto;
    min-height: 100vh;
  }

  .hero__right {
    perspective: none;
  }

  .hero__scroll-hint {
    display: none;
  }

  /* Touch hint + grab cursor for swipeable carousel */
  .hero__carousel {
    cursor: grab;
    user-select: none;
  }

  .hero__carousel:active {
    cursor: grabbing;
  }

  /* Dots: reduce gap slightly for 6 dots on small screens */
  .hero__carousel-dots {
    gap: 5px;
  }
}
