*{ box-sizing:border-box }
html,body{ height:100% }
body{ margin:0; font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; color:var(--text); background:var(--bg); }

/* LAYOUT */
.hero{
  min-height:100%; position:relative; display:grid; place-items:center; padding:24px;
}
.bg-deco{
  position:absolute; inset:-20% -10% auto -10%;
  height:70dvh;
  background: radial-gradient(60% 60% at 20% 20%, rgba(14,165,233,.35), transparent 60%),
              radial-gradient(60% 60% at 80% 30%, rgba(34,197,94,.35), transparent 60%);
  filter: blur(36px); z-index:0; pointer-events:none;
  animation: float 12s ease-in-out infinite alternate;
}
@keyframes float{
  to{ transform: translateY(18px) }
}

.card{
  position:relative; z-index:1;
  width:100%; max-width:720px;
  background: var(--panel);
  border:1px solid var(--stroke);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  padding: 28px 22px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: translateY(4px);
  animation: pop .6s ease both;
}
@keyframes pop{ from{ opacity:0; transform: translateY(12px) } }

.brand{ text-align:center; margin-bottom: 18px; }
.logo{
  width:56px; height:56px; margin: 0 auto 8px;
  display:grid; place-items:center; font-size:28px;
  background: linear-gradient(135deg, var(--grad-a), var(--grad-b));
  color:white; border-radius:14px; box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
h1{ margin:6px 0 4px; font-size:28px; letter-spacing:.3px; }
.tagline{ margin:0; color:var(--muted); }

.cta-group{
  display:grid; gap:10px; grid-template-columns: 1fr; margin: 18px auto 6px; max-width: 520px;
}
@media (min-width: 700px){
  .cta-group{ grid-template-columns: repeat(3, 1fr); }
}

.cta{
  display:flex; align-items:center; justify-content:center; gap:8px;
  height:46px; border-radius:10px; border:1px solid var(--stroke);
  background: rgba(255,255,255,.06);
  color: var(--text); text-decoration:none; font-weight:600;
  transition: transform .08s ease, background .2s ease, border-color .2s ease;
}
.cta:hover{ transform: translateY(-1px); background: rgba(255,255,255,.1); }
.cta:active{ transform: translateY(0); }
.cta .ico{ display:grid; place-items:center; opacity:.9 }

.cta.primary{
  background: linear-gradient(135deg, var(--grad-a), var(--grad-b));
  color:white; border-color: transparent;
  box-shadow: 0 6px 18px rgba(16,185,129,.25);
}
.cta.primary:hover{ filter: brightness(1.02); }

.mini-actions{
  display:flex; flex-wrap:wrap; gap:10px; justify-content:center; margin-top: 10px;
}
.file-btn, .link-btn{
  border:none; background:transparent; color: var(--muted); cursor:pointer;
  padding:6px 10px; border-radius:8px;
}
.file-btn:hover, .link-btn:hover{ color: var(--text); background: rgba(255,255,255,.06); }
.file-btn{ border:1px dashed var(--stroke); }

.foot{
  position: absolute; left:0; right:0; bottom: 12px; text-align:center;
  color: var(--muted); font-size: 13px; z-index:1;
}

/* ==== Botones coherentes para <a> y <button> ==== */
.btn, a.btn, button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  cursor: pointer;

  border: 1px solid var(--border);
  background: #f7f7f7;
  color: var(--text);
  font: inherit;
  text-decoration: none;    /* quita subrayado en <a> */
  line-height: 1;           /* evita saltos raros */
  vertical-align: middle;
}

.btn:hover, a.btn:hover, button.btn:hover { filter: brightness(.98); }

.btn.danger, a.btn.danger, button.btn.danger {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
}

.btn.ghost, a.btn.ghost, button.btn.ghost {
  background: transparent;
  border-style: dashed;
}

/* Accesibilidad focus visible idéntico */
.btn:focus-visible, a.btn:focus-visible, button.btn:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

/* Reseteo de enlaces para heredar color y quitar subrayado en cualquier caso */
a.btn { color: inherit; text-decoration: none; }

/* NOTE: moved landing variables to css/common.css; scope landing rules under .home-page instead */

/* Landing styles scoped to .home-page; variables moved to common.css */
.home-page *{ box-sizing:border-box; }

.home-page .hero{ min-height:60vh; display:grid; place-items:center; padding:32px 16px; }
.home-page .card{ max-width:820px; width:100%; background:var(--panel); border-radius:14px; padding:28px; border:1px solid var(--stroke); }
.home-page .logo{ width:56px; height:56px; display:grid; place-items:center; border-radius:12px; background:linear-gradient(135deg,var(--grad-a),var(--grad-b)); color:#fff; }
.home-page .cta{ display:inline-flex; gap:8px; align-items:center; padding:10px 14px; border-radius:10px; background:linear-gradient(135deg,var(--grad-a),var(--grad-b)); color:#fff; border:0; }
.home-page .foot{ margin-top:18px; color:var(--muted); text-align:center; font-size:13px; }
