/* ============================================================
   PORTADA · SOLUCIONES
   Texto gigante + partículas + glow + typewriter
   Usa los tokens definidos en tokens.css
   ============================================================ */

.SL-hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: var(--go-navy);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}

/* ---------- Texto gigante "GONET" de fondo ---------- */
.SL-hero_watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(180px, 32vw, 480px);
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -0.06em;
  color: rgba(255, 255, 255, 0.035);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 1;
  animation: SL_watermark_in 1.4s var(--ease-smooth) 0.2s both;
}

@keyframes SL_watermark_in {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.94);
    letter-spacing: -0.1em;
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    letter-spacing: -0.06em;
  }
}

/* ---------- Glow radial inferior ---------- */
.SL-hero_glow {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 70% 45% at 50% 100%,
      rgba(58, 130, 220, 0.35) 0%,
      rgba(58, 130, 220, 0.12) 25%,
      rgba(6, 10, 20, 0) 60%
    ),
    radial-gradient(
      ellipse 80% 55% at 50% 105%,
      rgba(0, 198, 178, 0.08) 0%,
      rgba(6, 10, 20, 0) 55%
    );
}

/* ---------- Partículas ---------- */
.SL-hero_canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  animation: SL_fade_in 1.2s ease-out 0.4s forwards;
}

@keyframes SL_fade_in {
  to { opacity: 1; }
}

/* ---------- Contenido ---------- */
.SL-hero_content {
  position: relative;
  z-index: 4;
  max-width: 900px;
  padding: 0 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---------- Eyebrow ---------- */
.SL-hero_eyebrow {
  font-family: var(--font-primary);
  font-size: var(--fs-small);
  font-weight: 400;
  letter-spacing: var(--tracking-small);
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 12px 0;
  opacity: 0;
  transform: translateY(20px);
  animation: SL_rise 0.9s var(--ease-smooth) 0.8s forwards;
}

/* ---------- Título principal ---------- */
.SL-hero_title {
  font-family: var(--font-display);
  font-size: var(--fs-hero-h1);
  font-weight: var(--fw-hero-h1);
  line-height: var(--lh-hero-h1);
  letter-spacing: var(--tracking-hero-h1);

  /* Gradiente de marca para fondo oscuro */
  background: var(--grad-hero-h1);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;

  margin: 0 0 var(--space-hero-h1-bottom) 0;
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  animation: SL_rise 1s var(--ease-smooth) 1s forwards;
}

.SL-hero_title_accent {
  font-weight: 300;
  letter-spacing: -0.04em;
}

/* ---------- Lead con typewriter ---------- */
.SL-hero_lead {
  font-family: var(--font-primary);
  font-size: var(--fs-body);
  font-weight: 300;
  line-height: 1.35;
  letter-spacing: var(--tracking-body);
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
  max-width: 680px;
  min-height: 2.6em;
  opacity: 0;
  animation: SL_fade_in_lead 0.4s ease 1.6s forwards;
}

.SL-hero_lead .SL-typewriter_text {
  display: inline;
}

.SL-hero_lead .SL-typewriter_cursor {
  display: inline-block;
  width: 1px;
  height: 1em;
  background: rgba(255, 255, 255, 0.85);
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: SL_blink 0.9s step-end infinite;
}

.SL-hero_lead .SL-typewriter_cursor.is-hidden {
  display: none;
}

@keyframes SL_blink {
  0%, 50%   { opacity: 1; }
  51%, 100% { opacity: 0; }
}

@keyframes SL_rise {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes SL_fade_in_lead {
  to { opacity: 1; }
}

/* ============================================================
   SCROLL INDICATOR (Opción A · línea + punto)
   ============================================================ */
.SL-hero_scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.65);

  opacity: 0;
  animation: SL_scroll_in 1s ease-out 2.2s forwards;
  transition: color 0.3s ease;
}

.SL-hero_scroll:hover {
  color: var(--go-teal);
}

.SL-hero_scroll_text {
  font-family: var(--font-primary);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  padding-left: 0.35em;
}

.SL-hero_scroll_line {
  position: relative;
  display: block;
  width: 1px;
  height: 56px;
  background: rgba(255, 255, 255, 0.2);
  overflow: hidden;
  transition: background 0.3s ease;
}

.SL-hero_scroll:hover .SL-hero_scroll_line {
  background: rgba(255, 255, 255, 0.4);
}

.SL-hero_scroll_dot {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--go-teal);
  box-shadow:
    0 0 8px var(--go-teal),
    0 0 16px rgba(0, 198, 178, 0.5);
  transform: translateX(-50%);
  animation: SL_scroll_dot 2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes SL_scroll_in {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes SL_scroll_dot {
  0%   { top: -6px; opacity: 0; }
  15%  { opacity: 1; }
  75%  { top: 52px; opacity: 1; }
  100% { top: 58px; opacity: 0; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .SL-hero_watermark {
    font-size: clamp(140px, 32vw, 220px);
    letter-spacing: -0.05em;
  }

  .SL-hero_content { padding: 0 24px; }

  .SL-hero_eyebrow {
    font-size: var(--fs-small);
    margin-bottom: 8px;
  }

  .SL-hero_title { margin-bottom: 20px; }

  .SL-hero_lead {
    font-size: var(--fs-small);
    line-height: 1.4;
  }

  .SL-hero_scroll { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .SL-hero_watermark,
  .SL-hero_canvas,
  .SL-hero_eyebrow,
  .SL-hero_title,
  .SL-hero_lead,
  .SL-hero_scroll {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .SL-hero_lead .SL-typewriter_cursor,
  .SL-hero_scroll_dot { animation: none; }
  .SL-hero_lead .SL-typewriter_cursor { display: none; }
}