body.publico { background: #fff; color: var(--ink); }
body.publico .proto-badge { bottom: 16px; }

.topbar {
  background: var(--navy); color: #fff; font-size: 0.82rem;
}
.topbar .wrap {
  max-width: var(--max); margin: 0 auto; padding: 8px 20px;
  display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap;
}
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; color: #fff; }
.topbar .proto {
  font-family: var(--fuente-tit); font-weight: 700; font-size: 0.75rem;
  background: rgba(255,255,255,.14); padding: 3px 10px; border-radius: 999px;
}

.site-h { background: #fff; border-bottom: 1px solid var(--line-suave); }
.site-h .wrap {
  max-width: var(--max); margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.site-h .logo img { width: 190px; height: auto; }
.site-h nav { display: flex; gap: 22px; }
.site-h nav a {
  color: var(--ink); text-decoration: none; font-family: var(--fuente-tit);
  font-weight: 600; font-size: 0.92rem;
}
.site-h nav a[aria-current="page"] { color: var(--azul); }
.site-h nav a:hover { color: var(--azul); }

.hero {
  background: linear-gradient(180deg, #f3f7fb 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line-suave);
}
.hero .wrap {
  max-width: var(--max); margin: 0 auto; padding: 56px 20px 64px;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center;
}
.hero h1 { max-width: 18ch; }
.hero .lead { font-size: 1.1rem; color: var(--mut); max-width: 42ch; margin-top: 16px; }
.hero .acc { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh); padding: 8px; overflow: hidden;
}
.hero-card .hc-top {
  background: var(--navy); color: #fff; border-radius: 12px 12px 0 0;
  padding: 14px 16px; display: flex; justify-content: space-between; align-items: baseline;
}
.hero-card .hc-top strong { font-family: var(--fuente-tit); }
.hero-card .hc-top span { font-size: 0.8rem; color: #d7e4f2; }
.hero-card ol { list-style: none; padding: 8px 4px 4px; }
.hero-card li {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 10px; align-items: center;
  padding: 12px 12px; border-bottom: 1px solid var(--line-suave);
}
.hero-card li:last-child { border-bottom: 0; }
.hero-card .hora { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--azul); font-family: var(--fuente-tit); font-size: 0.9rem; }
.hero-card .meta { color: var(--mut); font-size: 0.8rem; }

.how { max-width: var(--max); margin: 0 auto; padding: 56px 20px; }
.how h2 { margin-bottom: 8px; }
.how > p { color: var(--mut); max-width: 60ch; margin-bottom: 28px; }
.pasos { display: grid; gap: 0; }
.paso {
  display: grid; grid-template-columns: 56px 1fr; gap: 16px;
  padding: 18px 0; border-top: 1px solid var(--line-suave);
}
.paso:last-child { border-bottom: 1px solid var(--line-suave); }
.paso .n {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--info-cl); color: var(--azul);
  display: grid; place-items: center;
  font-family: var(--fuente-tit); font-weight: 800;
}
.paso h3 { margin-bottom: 4px; }
.paso p { color: var(--mut); }

.banda {
  background: var(--navy); color: #fff;
}
.banda .wrap {
  max-width: var(--max); margin: 0 auto; padding: 36px 20px;
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
}
.banda h2 { color: #fff; }
.banda p { color: #d7e4f2; margin-top: 6px; }
.banda .btn { background: #fff; color: var(--navy); }
.banda .btn:hover { background: var(--lima); color: var(--ink); }

.pie { background: #0b2238; color: #d7e4f2; }
.pie .wrap {
  max-width: var(--max); margin: 0 auto; padding: 40px 20px 24px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px;
}
.pie .logo-p { width: 180px; background: #fff; padding: 8px 10px; border-radius: 8px; margin-bottom: 14px; }
.pie h3 { color: #fff; font-size: 0.95rem; margin-bottom: 10px; }
.pie a { color: #d7e4f2; text-decoration: none; display: block; margin: 6px 0; }
.pie a:hover { color: #fff; text-decoration: underline; }
.pie .copy {
  border-top: 1px solid rgba(255,255,255,.12);
  max-width: var(--max); margin: 0 auto; padding: 14px 20px 28px;
  font-size: 0.82rem; color: #9aacbb;
}

/* Login */
body.login-p { background: var(--fondo); min-height: 100vh; }
.login-lay {
  min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr;
}
.login-brand {
  background: var(--navy); color: #fff; padding: 48px 56px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.login-brand .logo-box {
  background: #fff; padding: 10px 12px; border-radius: 10px; width: fit-content;
}
.login-brand .logo-box img { width: 200px; }
.login-brand h1 { color: #fff; margin: 32px 0 12px; max-width: 16ch; }
.login-brand p { color: #d7e4f2; max-width: 40ch; }
.login-brand .nota { font-size: 0.85rem; color: #d7e4f2; }
.login-side {
  display: flex; align-items: center; justify-content: center; padding: 32px 20px;
}
.login-box {
  width: min(460px, 100%); background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--sh); padding: 28px 28px 24px;
}
.login-box h2 { margin-bottom: 6px; }
.login-box .intro { color: var(--mut); margin-bottom: 20px; }
.creditos { margin: 0 0 20px; padding: 0; list-style: none; display: grid; gap: 8px; }
.creditos li {
  display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center;
  border: 1px solid var(--line); border-radius: 10px; padding: 8px 8px 8px 12px;
}
.creditos .quien { font-weight: 700; font-family: var(--fuente-tit); font-size: 0.88rem; }
.creditos .cta { font-variant-numeric: tabular-nums; color: var(--mut); font-size: 0.8rem; }
.creditos .btn { min-height: 44px; padding: 0 12px; font-size: 0.82rem; }
.sim {
  margin-top: 14px; background: var(--amb-cl); color: var(--amb);
  padding: 10px 12px; border-radius: 8px; font-size: 0.88rem; font-weight: 600;
}
.volver { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 18px; font-weight: 600; text-decoration: none; min-height: 44px; }
.proto-bar {
  display: none; background: var(--ink); color: #fff; text-align: center;
  font-family: var(--fuente-tit); font-size: 0.75rem; font-weight: 700; padding: 6px 12px;
}
@media (max-width: 900px) {
  .proto-bar { display: block; }
}

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; padding: 36px 20px 40px; gap: 28px; }
  .site-h nav { display: none; }
  .pie .wrap { grid-template-columns: 1fr; gap: 24px; }
  .login-lay { grid-template-columns: 1fr; }
  .login-brand { padding: 24px 20px 28px; }
  .login-brand h1 { margin-top: 20px; }
}
