/* ============================================================
   SPECTRA — site-shell.css
   Cabecera, pie y fondo de las páginas públicas, iguales a /inicio.
   Lo usan las páginas que extienden base.html con body_classes "site-shell"
   e incluyen partials/site_nav.html y partials/site_footer.html.
   ============================================================ */
:root {
  --c-bg-0: #060c1f;
  --c-bg-1: #09163b;
  --c-accent: #00c6ff;
  --c-accent2: #7ed1ff;
  --c-text: #ffffff;
  --c-muted: rgba(207, 230, 255, 0.75);
  --c-border: rgba(255, 255, 255, 0.08);
  --c-card: rgba(255, 255, 255, 0.04);
  --shell-max: 1160px;
  --shell-font: 'Poppins', system-ui, -apple-system, sans-serif;
}

body.spectra-layout.site-shell { background: var(--c-bg-0); }
body.site-shell .spectra-main { padding: 108px 20px 72px; position: relative; z-index: 1; }

/* Fondo: red de puntos (canvas) + brillos suaves, como en /inicio */
#networkCanvas { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }
.shell-glows { position: absolute; inset: 0 0 auto; height: 1000px; overflow: hidden; pointer-events: none; z-index: 0; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.shell-glow { position: absolute; border-radius: 50%; filter: blur(80px); animation: shellGlowDrift 10s ease-in-out infinite alternate; }
.shell-glow--1 { width: 600px; height: 600px; background: rgba(0, 198, 255, 0.12); top: -160px; left: -120px; }
.shell-glow--2 { width: 500px; height: 500px; background: rgba(0, 80, 200, 0.18); top: 120px; right: -80px; animation-direction: alternate-reverse; }
.shell-glow--3 { width: 350px; height: 350px; background: rgba(0, 255, 178, 0.07); top: 340px; left: 38%; animation-duration: 12s; }
@keyframes shellGlowDrift { from { transform: translate(0, 0) scale(1); } to { transform: translate(30px, 20px) scale(1.1); } }

/* Navegación */
.snav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 0 20px; font-family: var(--shell-font); transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease; }
.snav--scrolled { background: rgba(6, 12, 31, 0.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--c-border); }
.snav__inner { max-width: var(--shell-max); margin: 0 auto; height: 68px; display: flex; align-items: center; gap: 32px; }
.snav__logo { display: flex; align-items: center; gap: 9px; font-size: 1.2rem; font-weight: 800; color: var(--c-text); letter-spacing: -0.02em; flex-shrink: 0; text-decoration: none; }
.snav__logo-img { width: 28px; height: 28px; border-radius: 8px; display: block; }
.snav__links { display: flex; gap: 28px; align-items: center; flex: 1; }
.snav__links a { font-size: 0.9rem; font-weight: 500; color: var(--c-muted); text-decoration: none; transition: color .2s; }
.snav__links a:hover, .snav__links a[aria-current="page"] { color: var(--c-text); }
.snav__ctas { display: flex; gap: 10px; align-items: center; margin-left: auto; }
.snav__login { font-size: 0.88rem; font-weight: 600; color: var(--c-muted); padding: 8px 14px; border-radius: 999px; text-decoration: none; transition: color .2s; }
.snav__login:hover { color: var(--c-text); }
.snav__register { font-size: 0.88rem; font-weight: 700; color: var(--c-bg-0); background: var(--c-accent); padding: 9px 18px; border-radius: 999px; text-decoration: none; transition: opacity .2s, transform .2s; }
.snav__register:hover { opacity: 0.9; transform: translateY(-1px); }
.snav__hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 6px; margin-left: auto; cursor: pointer; }
.snav__hamburger span { display: block; width: 22px; height: 2px; background: var(--c-text); border-radius: 2px; transition: transform .25s, opacity .25s; }
.snav__hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.snav__hamburger.is-open span:nth-child(2) { opacity: 0; }
.snav__hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.snav__mobile-menu { display: none; flex-direction: column; gap: 2px; padding: 12px 16px 20px; border-top: 1px solid var(--c-border); background: rgba(6, 12, 31, 0.97); backdrop-filter: blur(14px); }
.snav__mobile-menu.is-open { display: flex; }
.snav__mobile-menu a { padding: 12px 8px; font-size: 1rem; font-weight: 500; color: var(--c-muted); border-radius: 10px; text-decoration: none; transition: background .2s, color .2s; }
.snav__mobile-menu a:hover { background: var(--c-card); color: var(--c-text); }
.snav__mobile-menu .snav__register { margin-top: 8px; text-align: center; color: var(--c-bg-0); }

/* Pie */
.site-footer { position: relative; z-index: 1; border-top: 1px solid var(--c-border); padding: 48px 20px 36px; font-family: var(--shell-font); color: var(--c-text); }
.site-footer__inner { max-width: var(--shell-max); margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.site-footer__brand { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.site-footer__logo { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.02em; }
.site-footer__brand p { margin: 0; font-size: 0.85rem; color: var(--c-muted); }
.site-footer__cred { margin: 10px 0 0; padding: 10px 14px; min-width: 210px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.03); }
.site-footer__cred figcaption { margin: 0; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(207, 230, 255, 0.62); white-space: nowrap; }
.site-footer__cred img { width: clamp(120px, 18vw, 170px); height: auto; max-height: 44px; object-fit: contain; display: block; }
.site-footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; }
.site-footer__links a { font-size: 0.85rem; color: var(--c-muted); text-decoration: none; transition: color .2s; }
.site-footer__links a:hover { color: var(--c-accent); }
.site-footer__copy { margin: 0; font-size: 0.78rem; color: rgba(207, 230, 255, 0.35); }

@media (max-width: 1024px) {
  .snav__links, .snav__ctas { display: none; }
  .snav__hamburger { display: flex; }
}
@media (max-width: 560px) {
  body.site-shell .spectra-main { padding: 92px 16px 56px; }
  .site-footer__cred { width: 100%; max-width: 280px; flex-direction: column; gap: 8px; }
  .site-footer__cred img { width: min(160px, 60vw); }
}
@media (prefers-reduced-motion: reduce) {
  .shell-glow { animation: none; }
}
