:root{
  --bg: #050607;
  --grid: rgba(0, 255, 170, 0.06);
  --text: #d7ffe9;
  --muted: #9fe7c2;
  --accent: #00ffaa;
  --accent-2: #5ef3d4;
  --card: rgba(0, 15, 10, 0.55);
  --glass: rgba(0, 20, 15, 0.3);
  --border: rgba(0, 255, 170, 0.18);
  --shadow: 0 10px 30px rgba(0, 255, 170, 0.07);
}

*{ box-sizing: border-box; }

html, body{
  height: 100%;
  background: radial-gradient(1200px 800px at 70% 10%, #07110d 0%, var(--bg) 60%) no-repeat fixed;
  color: var(--text);
  font-family: "Fira Code", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  margin: 0;
}

#matrix{
  position: fixed;
  inset: 0;
  z-index: -2;
  filter: blur(0.2px) opacity(0.65);
}

.container{
  min-height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: start;
  padding: clamp(16px, 3vw, 40px);
  gap: 32px;
  backdrop-filter: blur(3px);
}

.hero{
  display: grid;
  gap: 10px;
  align-items: start;
}

h1{
  font-size: clamp(28px, 6vw, 64px);
  line-height: 1.05;
  margin: 0;
  letter-spacing: .5px;
  text-shadow: 0 0 12px rgba(0,255,170,0.18);
}

h1 .accent{ color: var(--accent); text-shadow: 0 0 8px rgba(0,255,170,0.35);}
h1 .bracket{ color: var(--accent-2); opacity: .9; }

.subtitle{
  margin: 0;
  color: var(--muted);
  font-size: clamp(14px, 2.2vw, 18px);
  opacity: .95;
}

.cursor::before{
  content: ">";
  margin-right: 10px;
  color: var(--accent);
  text-shadow: 0 0 6px rgba(0,255,170,.7);
}
.cursor{
  display: inline-block;
  width: 10px;
  margin-right: 6px;
  border-right: 2px solid var(--accent);
  transform: translateY(3px);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { border-color: transparent; } }

/* Links */
.links{
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.links a{
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--glass), transparent);
  padding: 8px 14px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  transition: transform .15s ease, border-color .15s ease, background .2s ease;
}
.links a:hover{
  transform: translateY(-2px);
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(0, 255, 170, 0.08), transparent);
}

/* Cards */
.cards{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.card{
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--card), rgba(0,0,0,0));
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.card h2{
  margin: 0 0 6px 0;
  font-size: 18px;
  letter-spacing: .3px;
}
.card p{
  margin: 0 0 12px 0;
  color: var(--muted);
  font-size: 14px;
}
.pill{
  display: inline-block;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--bg);
  background: var(--accent);
  border: 1px solid transparent;
}
.pill:hover{
  background: transparent;
  color: var(--text);
  border-color: var(--accent);
}

/* Footer */
.footer{
  opacity: .9;
  color: var(--muted);
  font-size: 12px;
  border-top: 1px dashed var(--border);
  padding-top: 16px;
}

/* Accesibilidad: si el usuario prefiere menos movimiento, desactivar animaciones fuertes */
@media (prefers-reduced-motion: reduce){
  .cursor{ animation: none; border-color: var(--accent); }
  #matrix{ filter: opacity(0.5); }
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(0, 255, 170, 0.6);
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover {
  color: var(--accent-2);
  text-decoration-color: var(--accent-2);
}