/* ========== Base sólida (para que nunca se vea blanco/lavado) ========== */
:root{
  --bg: #0b1220;
  --txt: #e5e7eb;
  --muted: rgba(229,231,235,.78);
  --card: rgba(255,255,255,.06);
  --border: rgba(255,255,255,.12);
  --shadow: rgba(0,0,0,.35);
  --green: rgba(0,255,122,.70);
  --green2: rgba(0,255,122,.16);
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }

body{
  margin: 0;
  min-height: 100vh;
  color: var(--txt);

  /* Fondo pro (similar al login) */
  background:
    radial-gradient(1200px 700px at 20% 10%, rgba(0,255,122,.14), transparent 55%),
    radial-gradient(900px 600px at 90% 20%, rgba(25,118,210,.12), transparent 55%),
    radial-gradient(900px 600px at 60% 120%, rgba(255,255,255,.06), transparent 60%),
    var(--bg);
}

/* Watermark con ruta ABSOLUTA */
.wm{
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .06;
  filter: blur(.2px);
  background-image: url("/public/brand/logo-512.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 520px;
}

/* ========== Layout ========== */
.home-wrap{
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 16px;
}

.home-card{
  width: 100%;
  max-width: 560px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 18px 45px var(--shadow);
  backdrop-filter: blur(10px);
  padding: 18px;
}

/* ========== Header ========== */
.brand{
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 10px 10px 14px;
}

.home-logo{
  width: 64px;
  height: 64px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 10px 25px rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.2);
}

.home-title{
  margin: 0;
  font-weight: 900;
  letter-spacing: .2px;
  font-size: 20px;
  line-height: 1.1;
  color: #d1fae5;
}

.home-subtitle{
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--muted);
}

/* ========== Botones ========== */
.home-actions{ padding: 6px 10px 12px; }

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 14px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 900;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
  user-select: none;
}

.btn-ico{ filter: drop-shadow(0 4px 10px rgba(0,0,0,.35)); }

.btn-main{
  color: #eafff6;
  background: var(--green2);
  border: 1px solid rgba(0,255,122,.55);
  box-shadow:
    0 0 0 1px rgba(0,255,122,.18),
    0 0 22px rgba(0,255,122,.12);
}

.btn-main:hover{
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(0,255,122,.35),
    0 0 26px rgba(0,255,122,.18);
}

/* ========== Accesos rápidos ========== */
.quick-grid{
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.quick-item{
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--txt);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.quick-item:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.07);
  border-color: rgba(0,255,122,.22);
}

.qi-ico{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.08);
  font-size: 18px;
}

.qi-title{
  font-weight: 900;
  font-size: 13px;
  line-height: 1.1;
}

.qi-sub{
  font-size: 12px;
  margin-top: 3px;
  opacity: .8;
}

/* ========== Tips ========== */
.tips{
  margin-top: 14px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.10);
}

.tip{
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  line-height: 1.4;
  opacity: .92;
}
.tip + .tip{ margin-top: 8px; }

.dot{
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 14px rgba(0,255,122,.35);
}

/* ========== Footer ========== */
.home-footer{
  margin-top: 14px;
  display: flex;
  justify-content: center;
  gap: 10px;
  font-size: 12px;
  opacity: .78;
}
.sep{ opacity: .55; }

/* Responsive */
@media (max-width: 460px){
  .quick-grid{ grid-template-columns: 1fr; }
}
