:root {
  --bg: #0a0d12;
  --bg-card: #11161f;
  --bg-card-hover: #161d29;
  --borde: #232b38;
  --texto: #e9ecf1;
  --texto-tenue: #8d96a6;
  --acento: #2ecc71;
  --acento-fuerte: #27ae60;
  --ambar: #d79a4a;
  --peligro: #e5534b;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--texto);
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  min-height: 100vh;
}

a { color: var(--acento); }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--borde);
  position: sticky;
  top: 0;
  background: rgba(10, 13, 18, 0.9);
  backdrop-filter: blur(6px);
  z-index: 10;
}

.topbar .marca {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--texto);
}
.topbar .marca span { color: var(--acento); }

.topbar nav {
  display: flex;
  gap: 4px;
}

.topbar nav a {
  color: var(--texto-tenue);
  text-decoration: none;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 6px;
}
.topbar nav a:hover { color: var(--texto); background: var(--bg-card); }
.topbar nav a.activo { color: var(--texto); background: var(--bg-card-hover); }

.topbar .sesion {
  font-size: 13px;
  color: var(--texto-tenue);
  display: flex;
  align-items: center;
  gap: 12px;
}

.contenedor {
  max-width: 880px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}

.contenedor-ancho {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}

h1 { font-size: 32px; line-height: 1.2; margin: 0 0 14px; }
h2 { font-size: 20px; margin: 0 0 10px; }
p.lead { color: var(--texto-tenue); font-size: 17px; line-height: 1.6; }

.tarjeta {
  background: var(--bg-card);
  border: 1px solid var(--borde);
  border-radius: 12px;
  padding: 22px;
  margin-bottom: 16px;
}

.boton {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--acento);
  color: #06140b;
  font-weight: 700;
  border: none;
  padding: 13px 22px;
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 0 24px rgba(46, 204, 113, 0.25);
}
.boton:hover { background: var(--acento-fuerte); }
.boton:disabled { opacity: 0.5; cursor: default; box-shadow: none; }

.boton-secundario {
  background: transparent;
  color: var(--texto-tenue);
  border: 1px solid var(--borde);
  box-shadow: none;
}
.boton-secundario:hover { color: var(--texto); border-color: var(--texto-tenue); }

input[type=email], input[type=password], input[type=text], input[type=number] {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--borde);
  color: var(--texto);
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 15px;
  margin-bottom: 14px;
}
input:focus { outline: 1px solid var(--acento); }

label { display: block; font-size: 13px; color: var(--texto-tenue); margin-bottom: 4px; }

.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge.ok { background: rgba(46, 204, 113, 0.15); color: var(--acento); }
.badge.pendiente { background: rgba(141, 150, 166, 0.15); color: var(--texto-tenue); }

.error { color: var(--peligro); font-size: 13px; margin: -8px 0 12px; }
.ok-msg { color: var(--acento); font-size: 13px; }

.hero {
  text-align: center;
  padding: 90px 20px 60px;
}
.hero .kicker {
  color: var(--acento);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hero h1 { font-size: 42px; max-width: 720px; margin: 0 auto 18px; }
.hero p.lead { max-width: 560px; margin: 0 auto 34px; }

.rejilla {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 40px;
}

@keyframes entra {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.entra {
  opacity: 0;
  animation: entra 0.45s ease-out forwards;
}

@keyframes tilda {
  from { transform: scale(0.4); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.check.he { animation: tilda 0.3s ease-out backwards; }

@media (max-width: 680px) {
  .topbar nav { display: none; }
}
