/* ==========================================================================
   Redux Systems · paginas.css
   Hero, páginas por rubro, páginas legales y 404.
   ========================================================================== */

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: -68px;
  padding-block: calc(68px + 1.75rem) 3.5rem;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 44% at 88% 62%, rgba(27, 63, 209, 0.46), transparent 72%),
    radial-gradient(ellipse 58% 30% at 4% 6%, rgba(63, 216, 245, 0.13), transparent 72%),
    var(--noche);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(143, 164, 255, 0.2) 1px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 72%);
  mask-image: linear-gradient(180deg, #000, transparent 72%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--e-7); }
.hero h1 { margin-top: var(--e-4); }
.hero h1 .resaltado {
  color: var(--cian);
  text-decoration: underline;
  text-decoration-color: rgba(63, 216, 245, 0.42);
  text-decoration-thickness: 0.07em;
  text-underline-offset: 0.13em;
}
.hero-bajada { margin-top: var(--e-4); color: var(--texto-suave); font-size: 1.09rem; line-height: 1.55; }
.hero-invita { margin-top: var(--e-4); color: var(--texto); }
.hero-invita strong { color: var(--cian); }
.hero .acciones { margin-top: var(--e-5); }

@media (min-width: 960px) {
  .hero { margin-top: -76px; padding-block: calc(76px + 3.5rem) 5.5rem; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 450px); gap: 4.5rem; align-items: center; }
  .hero-bajada { max-width: 35rem; font-size: 1.22rem; }
  .hero-invita { max-width: 35rem; }
  .demo { margin-inline: 0 auto; }
}

/* ---------- Página de rubro ---------- */
.migas { margin-bottom: var(--e-3); color: var(--texto-suave); font-size: var(--t-xs); }
.migas a { color: var(--texto); }
.rubro-ejemplos { display: flex; flex-wrap: wrap; gap: var(--e-2); margin-top: var(--e-5); list-style: none; }
.rubro-ejemplos li {
  padding: 0.3rem 0.75rem;
  color: var(--texto);
  font-size: var(--t-xs);
  font-weight: 600;
  background: rgba(20, 29, 64, 0.8);
  border: 1px solid var(--borde);
  border-radius: var(--r-total);
}
.volver-rubros { margin-top: var(--e-5); text-align: center; }

/* ---------- Páginas legales ---------- */
.legal { padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem) clamp(3.5rem, 3rem + 3vw, 6rem); }
.legal .envoltura { max-width: 46rem; }
.legal h1 { font-size: clamp(2rem, 1.6rem + 2vw, 3rem); margin-bottom: var(--e-2); }
.legal .fecha { margin-bottom: var(--e-6); color: var(--texto-suave); font-size: var(--t-sm); }
.legal h2 { margin: var(--e-6) 0 var(--e-3); font-size: 1.32rem; font-stretch: 104%; letter-spacing: -0.012em; scroll-margin-top: 6rem; }
.legal p, .legal li { color: var(--texto-suave); }
.legal p { margin-bottom: var(--e-3); }
.legal ul, .legal ol { display: grid; gap: var(--e-2); margin-bottom: var(--e-3); padding-left: 1.3rem; }
.legal strong { color: var(--texto); }
.legal h2:target { color: var(--cian); }

/* ---------- 404 ---------- */
.error-404 {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 70vh;
  padding-block: var(--e-8);
  overflow: hidden;
  text-align: center;
}
.error-404::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 60% 50% at 50% 40%, rgba(27, 63, 209, 0.4), transparent 72%);
}
.error-codigo { color: var(--cian); font-family: var(--fuente-titulo); font-size: clamp(4rem, 3rem + 7vw, 7.5rem); font-weight: 800; font-stretch: 120%; line-height: 1; letter-spacing: -0.04em; }
.error-404 h1 { margin-top: var(--e-3); font-size: clamp(1.8rem, 1.4rem + 2vw, 2.8rem); }
.error-404 p:not(.error-codigo) { max-width: 30rem; margin: var(--e-4) auto var(--e-5); color: var(--texto-suave); }

/* ---------- Política: subtítulos y datos por confirmar ---------- */
.legal h3 { margin: var(--e-5) 0 var(--e-2); font-size: 1.12rem; scroll-margin-top: 6rem; }
.legal h3:target { color: var(--cian); }
.pendiente { padding: 0.05rem 0.3rem; color: #FFE680; font-weight: 700; background: #3A3200; border-radius: 3px; }

/* ---------- Hero en celular: la demo se ve antes ---------- */
.solo-movil { display: none; }

@media (max-width: 619.98px) {
  .solo-escritorio { display: none; }
  p.solo-movil { display: block; }

  .cabecera-fila { min-height: 60px; }
  .hero { margin-top: -60px; padding-block: calc(60px + 0.4rem) 2.5rem; }
  .hero-grid { gap: var(--e-3); }
  .hero .migas, .hero .rubro-ejemplos { display: none; }
  .hero .sello { padding-block: 0.26rem; }
  .hero h1 { margin-top: var(--e-2); font-size: clamp(1.75rem, 1.3rem + 2.3vw, 2rem); }
  .hero-bajada { margin-top: var(--e-2); font-size: 1rem; line-height: 1.42; }
  .hero .acciones { justify-content: center; gap: 0; margin-top: var(--e-3); }
  .hero .acciones .boton-principal { flex: 1 1 100%; min-height: 48px; }
  .hero .acciones .boton-secundario {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 0.2rem 0.6rem;
    color: var(--texto-suave);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.18em;
    background: none;
    border: 0;
  }
  .hero-flecha.solo-movil {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 34px;
    color: var(--texto);
    font-size: 1rem;
    text-decoration: none;
  }
  .hero-flecha strong { color: var(--cian); }
  .hero-flecha svg { flex: none; color: var(--cian); animation: flecha-baja 1.5s ease-in-out infinite; }
  .demo-tabs { margin-bottom: var(--e-2); }
}

@keyframes flecha-baja {
  0%, 100% { transform: none; }
  50% { transform: translateY(4px); }
}
