/* Pagina de inicio publica y ventana de acceso */
:root {
  --bg: #0b1520; --bg2: #111f2d; --bg3: #0c1824; --line: #23384c; --line2: #2d4760; --text: #d8e4ef; --muted: #8aa0b5;
  --accent: #5cc8ff; --red: #ff6b6b; --green: #6be38f; --yellow: #ffd24d;
  font-family: var(--font-ui, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif); font-size: 15px; color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); }
body { display: flex; flex-direction: column; min-height: 100vh; }
.hidden { display: none !important; }
button, input, select { font: inherit; }

/* cabecera */
.lp-top { display: flex; align-items: center; gap: 12px; padding: 10px 20px; background: rgba(11, 21, 32, .92); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; backdrop-filter: blur(6px); }
.lp-logo { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; min-width: 0; }
.lp-logo span { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.lp-logo b { font-size: 19px; letter-spacing: .5px; }
.lp-logo small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spacer { flex: 1; }
.lang { background: var(--bg3); color: var(--text); border: 1px solid var(--line2); border-radius: 6px; padding: 4px 6px; font-size: 13px; }
/* el boton del usuario (o «Iniciar sesion») siempre a la derecha del todo */
.userbtn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 6px; border: 1px solid #3a6d96; background: #16324a; color: var(--text); font-weight: 700; cursor: pointer; white-space: nowrap; max-width: 46vw; overflow: hidden; text-overflow: ellipsis; }
.userbtn:hover { background: #1d4161; }

/* portada */
main { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 18px 20px 30px; }
.hero { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); min-height: 340px; display: flex; align-items: flex-end; background: #0d2238; }
.hero-img { position: absolute; inset: 0; background: url(/assets/images/hero.svg) center / cover no-repeat; }
.hero-txt { position: relative; padding: 28px 30px; max-width: 640px; background: linear-gradient(90deg, rgba(6, 16, 28, .9), rgba(6, 16, 28, .55) 75%, rgba(6, 16, 28, 0)); }
.hero h1 { margin: 0 0 10px; font-size: 30px; line-height: 1.15; }
.hero p { margin: 0 0 18px; color: #c4d4e3; line-height: 1.5; }
.btn { border-radius: 6px; padding: 9px 14px; cursor: pointer; font-weight: 600; border: 1px solid var(--line2); background: #172a3b; color: var(--text); }
.btn:hover { background: #1f3850; }
.btn.primary { border-color: #2a86c2; background: #145a86; color: #fff; }
.btn.primary:hover { background: #1a6ea3; }
.btn.big { padding: 11px 26px; font-size: 16px; }

/* tablones */
.lp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.3fr); gap: 14px; margin-top: 16px; }
.box { background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; min-width: 0; }
.box h2 { margin: 0 0 10px; font-size: 15px; text-transform: uppercase; letter-spacing: .08em; color: #b9cde0; display: flex; align-items: center; gap: 8px; }
.box h2 .cnt { background: #173f2c; color: #93e6b0; border-radius: 9px; padding: 0 8px; font-size: 12px; letter-spacing: 0; }
.box h2 .cnt:empty { display: none; }
.lst { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.lst li { display: flex; align-items: center; gap: 8px; min-width: 0; }
.lst li .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lst li .mt { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.lst .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 6px rgba(107, 227, 143, .7); flex: none; }
.lst.top { counter-reset: pos; }
.lst.top li::before { counter-increment: pos; content: counter(pos); width: 22px; height: 22px; border-radius: 50%; background: #1b3a55; color: #9fd3ff; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex: none; }
.lst.top li:nth-child(1)::before { background: #6b5214; color: #ffd24d; }
.lst.top li .pts { font-family: var(--font-mono, ui-monospace, Consolas, monospace); font-weight: 700; color: var(--yellow); }
.empty { color: var(--muted); font-size: 13px; }
.news article { border-top: 1px solid var(--line); padding: 10px 0; }
.news article:first-child { border-top: 0; padding-top: 0; }
.news article h3 { margin: 0 0 4px; font-size: 15.5px; }
.news article .when { color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.news article .pin { color: var(--yellow); margin-right: 4px; }
.news article p { margin: 0; white-space: pre-line; line-height: 1.5; color: #c9d7e4; font-size: 14px; }
.lp-foot { text-align: center; color: var(--muted); font-size: 12px; padding: 14px 20px 18px; border-top: 1px solid var(--line); }
.lp-foot .ver { display: block; margin-top: 4px; opacity: .8; }

/* ventana de acceso */
.lmodal { position: fixed; inset: 0; z-index: 20; background: rgba(3, 8, 14, .72); display: flex; align-items: center; justify-content: center; padding: 16px; overflow-y: auto; }
.login { position: relative; width: 100%; max-width: 390px; background: rgba(17, 31, 45, .98); border: 1px solid var(--line); border-radius: 12px; padding: 24px; box-shadow: 0 12px 40px rgba(0, 0, 0, .55); margin: auto; }
.lclose { position: absolute; top: 8px; right: 10px; background: none; border: 0; color: var(--muted); font-size: 18px; cursor: pointer; padding: 4px 8px; }
.lclose:hover { color: var(--text); }
.brand { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; }
.brand h1 { margin: 0; font-size: 21px; letter-spacing: .5px; }
.brand p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.tabs { display: flex; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.tab { flex: 1; background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); padding: 8px; cursor: pointer; font-weight: 600; }
.tab.active { color: var(--text); border-bottom-color: var(--accent); }
.form { display: flex; flex-direction: column; gap: 12px; }
.form label { display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size: 12px; }
.form input { background: var(--bg3); border: 1px solid var(--line2); border-radius: 6px; padding: 9px 10px; color: var(--text); font-size: 15px; }
.form input:focus { outline: 1px solid var(--accent); }
.google { margin-top: 14px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
#google-btn { min-height: 44px; display: flex; justify-content: center; width: 100%; }
.sep { width: 100%; display: flex; align-items: center; gap: 10px; color: var(--muted); }
.sep::before, .sep::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.msg { min-height: 20px; margin-top: 12px; color: var(--red); font-size: 13px; white-space: pre-line; }
.msg.ok { color: var(--green); }
.btn.link { background: none; border: 0; color: var(--accent); padding: 6px 0 0; font-weight: 500; text-decoration: underline; }
.note { color: var(--muted); font-size: 12px; line-height: 1.45; margin: 10px 0 0; }
.note.small { margin: 0; }

@media (max-width: 900px) {
  .lp-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .lp-top { padding: 8px 12px; gap: 8px; }
  .lp-logo small { display: none; }
  main { padding: 12px 12px 24px; }
  .hero { min-height: 300px; }
  .hero-txt { padding: 20px 16px; background: linear-gradient(0deg, rgba(6, 16, 28, .92), rgba(6, 16, 28, .5) 80%, rgba(6, 16, 28, 0)); }
  .hero h1 { font-size: 23px; }
}
