/*
  =====================================================
  Landing técnica retro minimalista - Javier Mendieta
  Versión cromática V2: natural / azul / celeste / verde
  =====================================================

  Paleta base escalable:
  --bg:          #07111f   Fondo principal azul noche
  --bg-soft:     #0d1b2e   Fondo secundario
  --surface:     #10233a   Tarjetas / paneles
  --surface-2:   #132f4d   Superficies elevadas
  --text:        #f8fafc   Texto principal
  --muted:       #9fb3c8   Texto secundario
  --primary:     #0ea5e9   Celeste técnico
  --primary-2:   #38bdf8   Celeste claro
  --blue:        #1d4ed8   Azul fuerte
  --success:     #16a34a   Verde OK
  --danger:      #dc2626   Rojo alerta
  --warning:     #f59e0b   Amarillo técnico
  --line:        #285174   Bordes
  --line-strong: #38bdf8   Borde activo

  Fuentes base:
  --font-base:  sistema legible
  --font-tech:  monospace técnica / retro
*/

:root {
  --bg: #07111f;
  --bg-soft: #0d1b2e;
  --surface: #10233a;
  --surface-2: #132f4d;
  --text: #f8fafc;
  --muted: #9fb3c8;
  --primary: #0ea5e9;
  --primary-2: #38bdf8;
  --blue: #1d4ed8;
  --success: #16a34a;
  --danger: #dc2626;
  --warning: #f59e0b;
  --line: #285174;
  --line-soft: rgba(56, 189, 248, .16);
  --line-strong: #38bdf8;
  --white: #ffffff;
  --black: #030712;

  --font-base: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-tech: "Courier New", Consolas, monospace;

  --container: 1120px;
  --radius: 14px;
  --shadow-pixel: 6px 6px 0 rgba(3, 7, 18, .75);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-base);
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, .24), transparent 34rem),
    radial-gradient(circle at bottom right, rgba(22, 163, 74, .12), transparent 30rem),
    linear-gradient(90deg, rgba(56, 189, 248, .06) 1px, transparent 1px),
    linear-gradient(rgba(56, 189, 248, .05) 1px, transparent 1px),
    var(--bg);
  background-size: auto, auto, 28px 28px, 28px 28px, auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(rgba(255,255,255,.025) 50%, rgba(0,0,0,.025) 50%);
  background-size: 100% 4px;
  opacity: .38;
  z-index: 100;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; image-rendering: pixelated; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(7, 17, 31, .92);
  border-bottom: 3px solid var(--primary);
  box-shadow: 0 8px 0 rgba(3, 7, 18, .52);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 230px;
}

.brand strong {
  display: block;
  font-family: var(--font-tech);
  letter-spacing: .04em;
  font-size: 16px;
  color: var(--text);
}

.brand small {
  display: block;
  color: var(--primary-2);
  font-size: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  font-family: var(--font-tech);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.site-nav a {
  padding: 10px 12px;
  border: 2px solid transparent;
  color: var(--muted);
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--text);
  background: rgba(14, 165, 233, .12);
  border-color: var(--primary);
  box-shadow: 3px 3px 0 var(--blue);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 40px;
  background: var(--surface);
  border: 2px solid var(--primary);
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--primary-2);
}

main {
  width: min(var(--container), calc(100% - 32px));
  margin: 32px auto 64px;
}

.section-frame,
.panel,
.card,
.site-footer {
  border: 3px solid var(--line);
  background: linear-gradient(180deg, rgba(19, 47, 77, .96), rgba(16, 35, 58, .96));
  box-shadow: var(--shadow-pixel);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, .8fr);
  gap: 28px;
  padding: clamp(24px, 5vw, 56px);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px dashed rgba(56, 189, 248, .28);
  pointer-events: none;
}

.hero__content,
.profile-card {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--primary-2);
  font-family: var(--font-tech);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 12px;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.1;
}

h1 {
  font-family: var(--font-tech);
  font-size: clamp(36px, 8vw, 76px);
  letter-spacing: -.06em;
  color: var(--text);
  text-shadow: 4px 4px 0 rgba(14, 165, 233, .34);
}

h2 { font-size: clamp(26px, 4vw, 42px); }

h3 { font-size: 22px; }

.hero__lead {
  max-width: 760px;
  margin: 20px 0 0;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.6;
  color: #dbeafe;
}

.hero__tags,
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero__tags span,
.card__badge,
.profile-card__status {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  background: rgba(14, 165, 233, .13);
  border: 2px solid var(--line);
  color: var(--primary-2);
  font-family: var(--font-tech);
  font-size: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 3px solid var(--black);
  font-family: var(--font-tech);
  font-weight: 700;
  box-shadow: 4px 4px 0 var(--black);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.btn:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--black);
}

.btn--primary {
  background: var(--primary);
  color: var(--black);
}

.btn--primary:hover { background: var(--primary-2); }

.btn--ghost {
  background: rgba(15, 23, 42, .62);
  color: var(--text);
  border-color: var(--primary);
}

.profile-card {
  padding: 24px;
  text-align: center;
  background: rgba(7, 17, 31, .58);
  border: 3px dashed var(--primary);
}

.profile-card__avatar {
  width: 132px;
  height: 132px;
  margin-bottom: 18px;
  filter: drop-shadow(4px 4px 0 rgba(3, 7, 18, .6));
}

.profile-card p { color: var(--muted); line-height: 1.6; }

.section-grid,
.section-block { margin-top: 36px; }

.section-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 24px;
}

.panel { padding: clamp(22px, 4vw, 34px); }

.panel p,
.section-title p,
.blog-preview p,
.card p,
.site-footer p {
  color: var(--muted);
  line-height: 1.7;
}

.panel--wide { min-height: 100%; }

.section-title { margin-bottom: 20px; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.card {
  padding: 22px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card:hover {
  border-color: var(--line-strong);
}

.card a {
  margin-top: auto;
  color: var(--primary-2);
  font-family: var(--font-tech);
  font-weight: 700;
}

.pixel-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}

.pixel-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: #dbeafe;
}

.pixel-list li::before {
  content: "■";
  position: absolute;
  left: 0;
  color: var(--success);
  font-size: 13px;
}

.blog-preview {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: clamp(22px, 4vw, 36px);
}

.site-footer {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto 32px;
  padding: clamp(24px, 4vw, 36px);
  background: linear-gradient(135deg, #061021, #0b2340);
  color: var(--white);
}

.site-footer .eyebrow { color: var(--primary-2); }
.site-footer p { color: #bfd7ee; }

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-content: flex-start;
  justify-content: flex-end;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 2px dashed rgba(56, 189, 248, .35);
  color: #bfd7ee;
  font-family: var(--font-tech);
  font-size: 12px;
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: none;
  width: 46px;
  height: 46px;
  border: 3px solid var(--black);
  background: var(--success);
  color: var(--white);
  font-family: var(--font-tech);
  font-weight: 700;
  box-shadow: 4px 4px 0 var(--black);
  cursor: pointer;
}

.back-to-top.is-visible { display: block; }

::selection {
  background: var(--primary);
  color: var(--black);
}

@media (max-width: 880px) {
  .nav-toggle { display: block; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    background: rgba(7, 17, 31, .98);
    border-bottom: 3px solid var(--primary);
  }

  .site-nav.is-open { display: flex; }

  .hero,
  .section-grid,
  .cards,
  .blog-preview,
  .footer-grid,
  .footer-bottom {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .footer-actions { justify-content: flex-start; }
}
