.landing-hero {
  background: radial-gradient(1200px 600px at 10% 10%, rgba(13, 110, 253, 0.20), transparent 55%),
    radial-gradient(900px 500px at 90% 20%, rgba(32, 201, 151, 0.20), transparent 55%),
    linear-gradient(180deg, #0b1220 0%, #0b1220 55%, #0f172a 100%);
  perspective: 1200px;
  position: relative;
  overflow: hidden;
}

.landing-hero h1 {
  color: #ffffff;
}

.landing-hero-effects {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.landing-hero > .container,
.landing-hero .landing-section {
  position: relative;
  z-index: 2;
}

.landing-hero-glow {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.65;
  mix-blend-mode: screen;
  animation: landing-glow 12s ease-in-out infinite;
  will-change: transform;
}

.landing-hero-glow-primary {
  top: -160px;
  left: -140px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.55), transparent 70%);
}

.landing-hero-glow-accent {
  bottom: -180px;
  right: -160px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.45), transparent 70%);
  animation-delay: -6s;
}

.landing-hero-blob {
  position: absolute;
  top: 120px;
  right: 8%;
  width: 280px;
  height: 280px;
  background: linear-gradient(135deg, rgba(244, 114, 182, 0.35), rgba(56, 189, 248, 0.4));
  border-radius: 40% 60% 60% 40% / 45% 45% 55% 55%;
  filter: blur(0);
  opacity: 0.75;
  animation: landing-blob 14s ease-in-out infinite;
  will-change: transform;
}

.landing-hero-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(148, 163, 184, 0.2) 1px, transparent 1px);
  background-size: 120px 120px;
  opacity: 0.25;
  animation: landing-grid 22s linear infinite;
  will-change: transform;
}

.landing-hero-float {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: rgba(248, 250, 252, 0.95);
  font-size: 0.85rem;
  backdrop-filter: blur(8px);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.35);
  /* Animation handled by GSAP for better control */
  animation: none;
  opacity: 0;
  will-change: transform, opacity;
}

.landing-hero-float-1 {
  top: 120px;
  left: 58%;
  animation-delay: -1s;
}

.landing-hero-float-2 {
  top: 220px;
  left: 72%;
  animation-delay: -3s;
}

.landing-hero-float-3 {
  top: 320px;
  left: 60%;
  animation-delay: -5s;
}

@media (min-width: 1200px) {
  .landing-hero .landing-section {
    padding-top: 96px;
    padding-bottom: 120px;
  }

  .landing-hero h1 {
    font-size: clamp(2.8rem, 2.2rem + 1.6vw, 4rem);
  }

  .landing-hero p {
    max-width: 560px;
  }

  .landing-hero .col-lg-6:last-child {
    display: flex;
    justify-content: flex-end;
  }

  .landing-hero-card {
    max-width: 520px;
  }

  .landing-hero-blob {
    width: 360px;
    height: 360px;
    right: 4%;
    top: 80px;
  }

  .landing-hero-float-1 {
    top: 110px;
    left: 62%;
  }

  .landing-hero-float-2 {
    top: 230px;
    left: 76%;
  }

  .landing-hero-float-3 {
    top: 340px;
    left: 64%;
  }
}

@media (min-width: 1400px) {
  .landing-hero-blob {
    right: 6%;
  }

  .landing-hero-float-1 {
    left: 64%;
  }

  .landing-hero-float-2 {
    left: 78%;
  }

  .landing-hero-float-3 {
    left: 66%;
  }
}

@keyframes landing-glow {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(20px, 30px, 0) scale(1.1);
  }
}

@keyframes landing-blob {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
    border-radius: 40% 60% 60% 40% / 45% 45% 55% 55%;
  }
  50% {
    transform: translate3d(-20px, 10px, 0) rotate(8deg);
    border-radius: 55% 45% 50% 50% / 60% 35% 65% 40%;
  }
}

@keyframes landing-grid {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-120px);
  }
}

@keyframes landing-float {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -10px, 0);
  }
}

.landing-nav a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.landing-nav a:hover {
  color: #fff;
}

/* GOV-SITIO-08: menu con desplegables (Producto, Rubros, Recursos).
   Se abre con el mouse y tambien con el foco del teclado (:focus-within), sin
   JavaScript: el shell corre con la CSP en enforcing. */
.landing-nav__item {
  position: relative;
  display: flex;
  align-items: center;
}

.landing-nav__caret {
  display: inline-block;
  width: 0.42rem;
  height: 0.42rem;
  margin-left: 0.4rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  opacity: 0.7;
  transform: translateY(-2px) rotate(45deg);
}

.landing-nav__menu {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 50%;
  z-index: 60;
  display: grid;
  gap: 0.15rem;
  min-width: 17.5rem;
  padding: 0.5rem;
  border: 1px solid rgba(120, 190, 225, 0.22);
  border-radius: 16px;
  background: rgba(4, 15, 27, 0.97);
  box-shadow: 0 1.5rem 3.5rem rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -6px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 0s linear 160ms;
}

/* Puente invisible entre el enlace y el panel, para que el hover no se corte. */
.landing-nav__menu::before {
  content: "";
  position: absolute;
  inset: -0.8rem 0 auto;
  height: 0.8rem;
}

.landing-nav__item:hover .landing-nav__menu,
.landing-nav__item:focus-within .landing-nav__menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition-delay: 0s;
}

.landing-nav a.landing-nav__sublink {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
}

.landing-nav__sublink iconify-icon {
  flex: none;
  margin-top: 0.1rem;
  color: #00e5ff;
  font-size: 1.2rem;
}

.landing-nav__sublink span {
  display: grid;
  gap: 0.1rem;
}

.landing-nav__sublink strong {
  font-size: 0.92rem;
  font-weight: 700;
}

.landing-nav__sublink small {
  color: rgba(191, 214, 230, 0.72);
  font-size: 0.8rem;
  line-height: 1.35;
  white-space: normal;
}

.landing-nav a.landing-nav__sublink:hover,
.landing-nav a.landing-nav__sublink[aria-current="page"] {
  background: rgba(0, 229, 255, 0.1);
  color: #fff;
}

.landing-nav a.landing-nav__sublink:focus-visible {
  outline: 2px solid #7cecff;
  outline-offset: 1px;
  background: rgba(0, 229, 255, 0.1);
}

.landing-route-menu__group {
  width: 100%;
  margin: 0.4rem 0 0;
  color: rgba(191, 214, 230, 0.72);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* El panel quedaba DEBAJO del contenido aunque tenga z-index 60: lo que compite
   no es el panel, es el contenedor que lo encierra contra sus hermanos. Medido
   con getComputedStyle + elementFromPoint, dos reglas distintas:

   * Home: `.landing-hero > .container` (landing.css) le da z-index 2 al
     contenedor del menu y TAMBIEN a la seccion siguiente, que viene despues
     en el DOM y por eso gana el empate. Un `.susbi-public-shell__nav` suelto
     (una clase) pierde contra esa regla (dos clases).
   * Capitulos: `.public-site > :not(.public-ambient):not(.susbi-public-field)`
     (components.css) pone el header en z-index 1, igual que el contenido.
     Esa misma regla le pisa el `position: sticky` de layout.css; eso ya pasaba
     antes de GOV-SITIO-08 y no se toca aca: solo se sube el z-index.

   Los selectores repiten la especificidad de la regla que tienen que ganar. */
.landing-hero > .container.susbi-public-shell__nav {
  z-index: 1000;
}

.public-site > .public-header:not(.public-ambient):not(.susbi-public-field) {
  /* GOV-SITIO-09: el dueño pidió el menú fijo arriba al bajar. layout.css ya lo
     declaraba sticky y experience.js ya le pone fondo con .is-scrolled; lo único
     que lo anulaba era el `position: relative` de esa misma regla de
     components.css. Se restituye acá, con la especificidad que le gana. */
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* GOV-SITIO-12: en celular el encabezado medía 461 px en una pantalla de 390.
   Logo (129 px), «SUSBI OS», «Ingresar» y «Solicitar acceso» van en una sola
   fila y components.css les prohíbe encogerse (flex-shrink: 0, nowrap), así
   que la fila empujaba el ancho de la página y el celular la mostraba alejada.
   Debajo de 576 px los dos botones bajan a su propia fila, a todo el ancho;
   el `display` lleva !important porque compite con el `d-flex` de Bootstrap. */
@media (max-width: 575.98px) {
  .susbi-public-shell__nav .susbi-public-shell__row {
    flex-wrap: wrap;
    row-gap: 0.75rem;
  }
  .susbi-public-shell__nav .landing-brand img {
    height: 24px;
    width: auto;
  }
  .susbi-public-shell__nav .susbi-public-shell__actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
  .susbi-public-shell__nav .susbi-public-shell__actions .btn {
    width: 100%;
  }
  /* Mismo síntoma en la home, otra causa: el tema escala los gutters (g-4 =
     2.25rem, g-5 = 4.5rem) y la fila se sale del contenedor, que en celular
     sólo tiene 12 px de padding. «Por qué SGE» y las preguntas frecuentes
     llevaban la página a 414 px. Con 1.5rem el margen negativo de la fila
     coincide con ese padding. */
  .landing-section .container > .row.g-4,
  .landing-section .container > .row.g-5 {
    --bs-gutter-x: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-nav__menu {
    transition: none;
    transform: translate(-50%, 0);
  }
}

.landing-hero .btn-outline-light {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.75);
}

.landing-hero .btn-outline-light:hover,
.landing-hero .btn-outline-light:focus {
  color: #0b1220;
  background: #ffffff;
  border-color: #ffffff;
}

.landing-cta .btn-outline-light {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.75);
}

.landing-cta .btn-outline-light:hover,
.landing-cta .btn-outline-light:focus {
  color: #0b1220;
  background: #ffffff;
  border-color: #ffffff;
}

.landing-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-weight: 600;
  font-size: 0.875rem;
}

.landing-card {
  border: 1px solid rgba(15, 23, 42, 0.10);
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.06);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  --glow-opacity: 0;
}

.landing-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 229, 255, 0.15) 0%, transparent 70%);
  opacity: var(--glow-opacity);
  pointer-events: none;
  transition: opacity 0.5s ease;
  z-index: 0;
}

