:root{
  --bg: #f6f8fb;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: rgba(15, 23, 42, .10);
  --shadow: 0 10px 30px rgba(2, 6, 23, .06);
  --shadow-sm: 0 6px 16px rgba(2, 6, 23, .06);

  --primary: #2563eb;
  --primary-2: #1d4ed8;

  --radius: 16px;
  --radius-sm: 12px;

  --nav-h: 74px;
}

*{ -webkit-tap-highlight-color: transparent; }
html, body{ height:100%; }
body{
  background: var(--bg);
  color: var(--text);
}

a{ color: var(--primary); text-decoration: none; }
a:hover{ color: var(--primary-2); text-decoration: underline; }

.container-narrow{ max-width: 860px; }

.app-topbar{
  position: sticky;
  top: 0;
  z-index: 1040;
  background: rgba(246, 248, 251, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.app-brand{
  font-weight: 700;
  letter-spacing: .2px;
  color: var(--text);
}
.app-brand:hover{ text-decoration:none; }

.app-card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.app-muted{ color: var(--muted); }

.app-pill{
  display:inline-flex;
  align-items:center;
  gap:.4rem;
  padding:.35rem .65rem;
  border:1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: .85rem;
}

.app-input{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .75rem .9rem;
}
.app-input:focus{
  border-color: rgba(37, 99, 235, .45);
  box-shadow: 0 0 0 .25rem rgba(37, 99, 235, .12);
}

.btn-primary{
  background: var(--primary);
  border-color: var(--primary);
}
.btn-primary:hover{
  background: var(--primary-2);
  border-color: var(--primary-2);
}

.app-content-pad{ padding-bottom: calc(var(--nav-h) + 18px); }

.app-nav-bottom{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1050;
  padding: 10px 0 14px;
  background: rgba(246, 248, 251, .92);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
}

.app-nav-inner{
  height: var(--nav-h);
  display:flex;
  align-items:center;
  justify-content: space-around;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.app-nav-item{
  width: 20%;
  min-width: 64px;
  text-align:center;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.1;
  padding: 10px 4px;
  border-radius: 14px;
}
.app-nav-item:hover{ text-decoration:none; color: var(--text); }
.app-nav-item.active{
  color: var(--primary);
  background: rgba(37, 99, 235, .08);
  border: 1px solid rgba(37, 99, 235, .18);
}

.app-ico{
  display:block;
  width: 22px;
  height: 22px;
  margin: 0 auto 6px;
  color: currentColor;
}

.app-hero{
  padding: 14px 0 6px;
}
.app-hero h1{
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 800;
  margin: 0;
}
.app-hero p{ margin: .4rem 0 0; }

hr.soft{
  border: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(15,23,42,.12), transparent);
  margin: 16px 0;
}

/* Desktop: nav bottom solo en móvil */
@media (min-width: 992px){
  .app-nav-bottom{ display:none; }
  .app-content-pad{ padding-bottom: 0; }
}
