/* SPDX-License-Identifier: GPL-3.0-or-later
   Copyright (C) 2026 Elizandro Urizar — Sitio web de Autenticador · EU Labs */

:root {
  --bg: #121110;
  --bg-2: #191715;
  --surface: #1e1b18;
  --line: #2e2a26;
  --text: #ede8e1;
  --muted: #a8a29e;
  --accent: #f59e0b;
  --accent-2: #ea580c;
  --accent-ink: #1c1206;
  --radius: 16px;
  --max: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: #fbbf24; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.hl { color: var(--accent); }

/* ---------- Cabecera ---------- */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 18px; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand small { color: var(--muted); font-weight: 400; font-size: 15px; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--text); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 12px;
  font-family: inherit; font-weight: 600; font-size: 16px; line-height: 1.2; text-decoration: none;
  border: 1px solid var(--line); color: var(--text); background: var(--surface);
}
.btn:hover { border-color: #4a443d; color: var(--text); }
.btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink); border: 0; }
.btn.primary:hover { filter: brightness(1.08); color: var(--accent-ink); }
.btn[aria-disabled='true'] { opacity: .6; cursor: default; pointer-events: none; }
.btn .tag { font-size: 12px; font-weight: 600; padding: 3px 7px; border-radius: 6px; background: var(--line); color: var(--muted); }

/* ---------- Portada ---------- */
.hero { padding: 72px 0 56px; background: radial-gradient(60% 70% at 85% 30%, #3a240c55, transparent 70%); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(36px, 5.2vw, 58px); line-height: 1.08; margin: 0 0 18px; letter-spacing: -0.02em; }
.hero p.lead { font-size: 20px; color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.note { margin-top: 16px; font-size: 14px; color: var(--muted); }
.shot { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 30px 80px #000a, 0 0 0 1px #0006; }
.hero .shot { width: 100%; max-width: 400px; margin-left: auto; }

.pills { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; }
.pills li { font-size: 14px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; }

/* ---------- Secciones ---------- */
section { padding: 80px 0; }
section.alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.kicker { color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 10px; }
h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.15; margin: 0 0 16px; letter-spacing: -0.01em; }
.sub { color: var(--muted); font-size: 18px; max-width: 40em; margin: 0 0 40px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { font-size: 18px; margin: 14px 0 6px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: #f59e0b1f; color: var(--accent); }
.ic svg { width: 22px; height: 22px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split .shot { width: 100%; max-width: 400px; margin-left: auto; }
.split.rev .shot { margin-left: 0; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li { padding-left: 32px; position: relative; }
.checks li::before {
  content: ''; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 6px;
  background: #f59e0b26 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f59e0b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.checks b { color: var(--text); }
.checks span { color: var(--muted); }

.wide .shot { margin-top: 8px; }

/* ---------- Preguntas ---------- */
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 0 0 18px; color: var(--muted); }

/* ---------- Código abierto ---------- */
.oss { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.oss p { margin: 0; color: var(--muted); max-width: 40em; }

/* ---------- Pie ---------- */
footer { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; justify-content: space-between; }
footer img { height: 34px; width: auto; }
footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
footer a { color: var(--muted); }

/* ---------- Página de texto (privacidad) ---------- */
.doc { max-width: 760px; padding: 56px 20px 80px; margin: 0 auto; }
.doc h1 { font-size: 36px; margin: 0 0 6px; }
.doc h2 { font-size: 22px; margin: 36px 0 8px; }
.doc .meta { color: var(--muted); font-size: 15px; margin-bottom: 28px; }
.doc .summary { border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 10px; padding: 14px 18px; background: var(--surface); }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }

/* ---------- Móvil ---------- */
@media (max-width: 860px) {
  .nav { display: none; }
  .hero { padding-top: 48px; }
  .hero .wrap, .split { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero .shot, .split .shot, .split.rev .shot { margin: 0 auto; }
  .split.rev > :first-child { order: 2; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  section { padding: 56px 0; }
}
@media (min-width: 861px) and (max-width: 1020px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
