* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: sans-serif;
  background: #0d1117;
  color: #fff;
  overflow-x: hidden;
}

.main-layout {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  gap: 32px;
  padding: 40px 24px;
  align-items: center; /* ← centra verticalmente */
  flex: 1; /* ← empuja footer abajo */
}

footer {
  position: relative;
  z-index: 5;
  padding: 20px 0;
}

/* Links blancos en el footer */
footer a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
}
footer a:hover {
  color: #fff;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}
.bg-stars {
  position: fixed;
  inset: 0;
  background: url("/images/index/stars.png") center top / cover repeat;
  z-index: 0;
  opacity: 0.8;
}
.bg-ciudad {
  position: fixed;
  inset: 0;
  background: url("/images/index/ciudad.png") center bottom / cover no-repeat;
  z-index: 1;
}
.bg-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 26, 0.55);
  z-index: 2;
}
.luna {
  position: fixed;
  top: 40px;
  right: 80px;
  width: 110px;
  height: 110px;
  z-index: 3;
}
.luna img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.helip {
  position: fixed;
  left: -220px;
  top: 38%;
  z-index: 3;
  animation: volar 18s linear infinite;
}
.helip img {
  width: 180px;
}
@keyframes volar {
  0% {
    left: -220px;
  }
  100% {
    left: 110%;
  }
}
.navbar {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 36px;
  background: rgba(10, 14, 26, 0.75);
  backdrop-filter: blur(8px);
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.08);
}
.navbar-logo {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #fff;
}
.navbar-logo img {
  height: 50px;
  vertical-align: middle;
}
.navbar-login {
  display: flex;
  align-items: center;
  gap: 8px;
}
.navbar-login input {
  background: rgba(255, 255, 255, 0.08);
  border: 0.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 8px 12px;
  color: #fff;
  font-size: 13px;
  width: 175px;
  outline: none;
}
.navbar-login input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}
.navbar-login input:focus {
  border-color: rgba(255, 255, 255, 0.35);
}
.errors {
  display: none;
  overflow: hidden;
  padding: 6px 11px;
  border-radius: 2px;
  background-color: #cc3333;
  text-align: center;
  font-size: 12px;
  margin-top: 4px;
}
.btn-entrar {
  background: #3b7dd8;
  border: none;
  border-radius: 8px;
  padding: 8px 20px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}
.btn-entrar:hover {
  background: #2d6bbf;
}
.btn-entrar:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.navbar-login .recordar {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
}
.recuperar {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  white-space: nowrap;
}
.recuperar:hover {
  color: #fff;
}
.navbar-login-sub {
  margin-top: 0.5rem;
}
footer {
  position: relative;
  z-index: 5;
}

.footer-nav > ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 0;
  padding: 0;
  color: #fff;
}

.col-registro {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.col-registro h1 {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.25;
}
.col-registro p.subtitulo {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
}
.metricas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.metrica-card {
  background: rgba(255, 255, 255, 0.05);
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 14px;
}
.metrica-card .label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.metrica-card .valor {
  font-size: 22px;
  font-weight: 700;
}
.form-registro-box {
  background: rgba(255, 255, 255, 0.05);
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 24px;
}
.form-registro-box h2 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.85);
}
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}
.form-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}
.form-registro-box input,
.form-registro-box select {
  background: rgba(255, 255, 255, 0.07);
  border: 0.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 10px 12px;
  color: #fff;
  font-size: 13px;
  width: 100%;
  outline: none;
}
.form-registro-box input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}
.form-registro-box input:focus,
.form-registro-box select:focus {
  border-color: rgba(255, 255, 255, 0.35);
}
.form-registro-box select option {
  background: #1a2236;
}
.form-registro-box .mb {
  margin-bottom: 10px;
}
.btn-registrar {
  width: 100%;
  background: #3b7dd8;
  border: none;
  border-radius: 8px;
  padding: 12px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 4px;
  transition: background 0.2s;
}
.btn-registrar:hover {
  background: #2d6bbf;
}
.btn-registrar:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.errors-registro {
  font-size: 12px;
  color: #f87171;
  margin-top: 8px;
  min-height: 18px;
}
.col-descubri {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.col-descubri .seccion-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 500;
}
.screenshots-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.screenshot-placeholder {
  background: rgba(59, 125, 216, 0.1);
  border: 0.5px solid rgba(59, 125, 216, 0.25);
  border-radius: 10px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.2);
  font-size: 12px;
  overflow: hidden;
}
.screenshot-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}
.features {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.feature-card {
  background: rgba(255, 255, 255, 0.04);
  border: 0.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.feature-icon {
  width: 36px;
  height: 36px;
  background: rgba(59, 125, 216, 0.15);
  border-radius: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.feature-card .feature-titulo {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
}
.feature-card .feature-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}

.container-login {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-evenly;
}

@media (max-width: 720px) {
  .main-layout {
    grid-template-columns: 1fr;
  }
  .navbar-login input {
    width: 130px;
  }
}
@media (max-width: 600px) {
  .navbar-logo {
    display: none;
  }
}
