:root {
    --bg: #0a0e15;
    --bg-soft: #0f1521;
    --card: #0e141f;
    --card-2: #121a27;
    --border: #1d2735;
    --ink: #eef3f8;        /* texto fuerte / títulos */
    --text: #aeb9c7;
    --muted: #6b7888;
    --accent: #2ee6a6;     /* verde cyber */
    --accent-2: #22d3ee;   /* cian */
    --accent-3: #f5b14a;   /* ámbar */
    --ok: #34d399;
    --warn: #fbbf24;
    --bad: #f87171;
    --grad: linear-gradient(120deg, #22d3ee 0%, #2ee6a6 100%);
    --shadow: 0 18px 40px rgba(0, 0, 0, .55);
    --shadow-sm: 0 8px 22px rgba(0, 0, 0, .45);
    --radius: 16px;
    --radius-sm: 11px;
    --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    background-image:
        linear-gradient(rgba(46, 230, 166, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(46, 230, 166, .025) 1px, transparent 1px);
    background-size: 44px 44px;
}

/* ---------- Glows de fondo ---------- */
.blobs { position: fixed; inset: 0; z-index: -1; overflow: hidden; filter: blur(90px); }
.blob { position: absolute; border-radius: 50%; opacity: .14; }
.blob-1 { width: 460px; height: 460px; background: #22d3ee; top: -160px; left: -120px; }
.blob-2 { width: 380px; height: 380px; background: #2ee6a6; top: 8%; right: -140px; }
.blob-3 { width: 380px; height: 380px; background: #155e63; bottom: -160px; left: 28%; }

.app {
    max-width: 920px;
    margin: 0 auto;
    padding: 44px 20px 80px;
}

/* ---------- Topbar (login) ---------- */
.topbar { display: flex; justify-content: flex-end; align-items: center; gap: 10px; min-height: 44px; margin-bottom: 8px; }

.btn-login {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: var(--card-2);
    color: var(--ink);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 9px 16px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.btn-login:hover { border-color: var(--accent); color: var(--accent); }
.btn-login:active { transform: scale(.98); }
.btn-login .logo { display: inline-flex; color: var(--accent); }
.btn-login svg { display: block; }

.user-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--card-2);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 5px 6px;
}
.user-chip img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.user-chip .user-name { font-weight: 600; font-size: 14px; color: var(--ink); max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-left: 4px; }
.user-chip .logout {
    font-size: 13px;
    font-weight: 600;
    color: var(--bg);
    background: var(--accent);
    border-radius: 999px;
    padding: 5px 12px;
    text-decoration: none;
}
.user-chip .user-cuenta {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 5px 12px;
    cursor: pointer;
    transition: border-color .15s ease, color .15s ease;
}
.user-chip .user-cuenta:hover { border-color: var(--accent); color: var(--accent); }
.user-chip .logout:hover { filter: brightness(1.08); }

.logout {
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 12px;
    transition: border-color .15s ease, color .15s ease;
}
.logout:hover { border-color: var(--bad); color: var(--bad); }

/* ---------- Marca / wordmark ---------- */
.brand-mark {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    font-family: var(--mono);
    letter-spacing: .5px;
}
.brand-sigil { color: var(--accent); font-weight: 700; font-size: 26px; }
.brand-name { font-size: 26px; font-weight: 700; color: var(--ink); }
.brand-accent { color: var(--accent); }

/* ---------- Panel Mi cuenta ---------- */
.modal-cuenta { max-width: 540px; }
.cuenta-sub { color: var(--muted); font-size: 14px; margin: -8px 0 18px; }
.cuenta-error {
    background: rgba(248, 113, 113, .12);
    border: 1px solid var(--bad);
    color: #fca5a5;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 14px;
}
.cuenta-error[hidden] { display: none !important; }
.cuenta-lista { display: flex; flex-direction: column; gap: 10px; max-height: 420px; overflow-y: auto; }
.cuenta-loading, .cuenta-vacio { color: var(--muted); font-size: 14px; text-align: center; padding: 24px 12px; }
.informe-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    text-align: left;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    cursor: pointer;
    transition: border-color .12s ease, background .12s ease;
}
.informe-item:hover { border-color: var(--accent); background: var(--card-2); }
.informe-item-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.informe-item-tit { font-weight: 700; font-size: 15px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.informe-item-sub { font-size: 12.5px; color: var(--muted); font-weight: 500; font-family: var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.informe-item-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.informe-item-tipo {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    background: rgba(46, 230, 166, .1);
    border: 1px solid rgba(46, 230, 166, .35);
    border-radius: 999px;
    padding: 2px 8px;
    color: var(--accent);
}
.informe-item-fecha { font-size: 11.5px; color: var(--muted); font-weight: 500; white-space: nowrap; }

.hist-badge {
    background: var(--card-2);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent-2);
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text);
    font-family: var(--mono);
}
.hist-badge--new {
    border-left-color: var(--ok);
    color: var(--ok);
}

/* ---------- Modal de autenticación ---------- */
.modal-overlay[hidden],
.modal-form[hidden] { display: none !important; }

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    background: rgba(4, 7, 12, .78);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn .18s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
    position: relative;
    width: 100%;
    max-width: 410px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px 26px 26px;
    animation: popIn .2s ease;
}
@keyframes popIn { from { transform: translateY(10px) scale(.98); opacity: .6; } to { transform: none; opacity: 1; } }

.modal-close {
    position: absolute;
    top: 14px; right: 14px;
    width: 30px; height: 30px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--card-2);
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
    line-height: 1;
    transition: border-color .15s ease, color .15s ease;
}
.modal-close:hover { border-color: var(--bad); color: var(--bad); }

.modal-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}
.modal-logo .brand-sigil, .modal-logo .brand-name { font-size: 19px; }

.modal-tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 20px;
    width: fit-content;
}
.modal-tab {
    border: none;
    background: transparent;
    padding: 7px 18px;
    border-radius: 7px;
    font-weight: 600;
    font-size: 14px;
    color: var(--muted);
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}
.modal-tab.is-active { background: var(--accent); color: var(--bg); }

.modal-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 21px;
    color: var(--ink);
    margin-bottom: 18px;
}

.modal-error {
    background: rgba(248, 113, 113, .12);
    border: 1px solid var(--bad);
    color: #fca5a5;
    border-radius: var(--radius-sm);
    padding: 10px 13px;
    font-size: 13.5px;
    font-weight: 600;
    margin-bottom: 16px;
}

.modal-form { display: flex; flex-direction: column; gap: 14px; }
.modal-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--muted);
}
.modal-form input {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-size: 15px;
    font-family: inherit;
    color: var(--ink);
    outline: none;
    transition: border-color .15s ease;
}
.modal-form input::placeholder { color: #45505f; }
.modal-form input:focus { border-color: var(--accent); }

.modal-submit {
    margin-top: 4px;
    border: none;
    background: var(--grad);
    color: #06140f;
    font-weight: 700;
    font-size: 15px;
    padding: 13px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: filter .15s ease, transform .15s ease;
}
.modal-submit:hover { filter: brightness(1.08); transform: translateY(-1px); }
.modal-submit:disabled { opacity: .6; cursor: progress; }

.modal-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
    margin: 18px 0;
}
.modal-divider::before, .modal-divider::after {
    content: '';
    flex: 1;
    border-top: 1px solid var(--border);
}
.modal-divider span { padding: 0 12px; font-weight: 600; }

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: var(--card-2);
    color: var(--ink);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px;
    font-weight: 600;
    font-size: 14.5px;
    text-decoration: none;
    transition: border-color .15s ease;
}
.btn-google:hover { border-color: var(--accent); }

/* ---------- Hero ---------- */
.hero { text-align: center; }

.brand-logo {
    display: inline-flex;
    align-items: center;
}
.logo { font-size: 18px; line-height: 1; }

.hero h1 {
    margin: 22px 0 14px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(28px, 5.6vw, 46px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -1px;
    color: var(--ink);
}

.subtitle {
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto 30px;
    font-size: 16px;
}
.subtitle strong { color: var(--accent); font-weight: 700; }

/* ---------- Search ---------- */
.search {
    display: flex;
    gap: 10px;
    max-width: 600px;
    margin: 0 auto;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 9px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(46, 230, 166, .12); }
.search input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--ink);
    font-size: 16px;
    font-weight: 500;
    font-family: var(--mono);
    padding: 12px 16px;
    letter-spacing: .3px;
}
.search input::placeholder { color: #45505f; font-weight: 400; }

.search button {
    border: none;
    background: var(--grad);
    color: #06140f;
    font-weight: 700;
    font-size: 15px;
    padding: 0 28px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    white-space: nowrap;
    transition: transform .12s ease, filter .12s ease;
}
.search button:hover { filter: brightness(1.08); transform: translateY(-1px); }
.search button:active { transform: scale(.97); }
.search button:disabled { opacity: .6; cursor: progress; }

.hint { color: var(--muted); font-size: 13px; margin-top: 14px; font-family: var(--mono); }

/* ---------- Resultado ---------- */
.resultado { margin-top: 40px; display: grid; gap: 16px; }

.identity-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 22px;
    background: var(--card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius);
    padding: 22px 24px;
    color: var(--ink);
}
.identity-bar .name { font-size: 21px; font-weight: 700; font-family: 'Space Grotesk', sans-serif; }
.identity-bar .meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13.5px; color: var(--muted); font-family: var(--mono); margin-top: 4px; }
.identity-bar .meta b { font-weight: 700; color: var(--text); }

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color .14s ease;
}
.card:hover { border-color: #2a3a4d; }

.card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--card-2);
}
.card-head h3 { font-size: 15px; font-weight: 700; flex: 1; color: var(--ink); font-family: 'Space Grotesk', sans-serif; }

.pill {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 11px;
    border-radius: 999px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: .4px;
    border: 1px solid currentColor;
}
.pill.ok    { background: rgba(52, 211, 153, .12); color: var(--ok); }
.pill.vacio { background: rgba(107, 120, 136, .12); color: var(--muted); }
.pill.error { background: rgba(248, 113, 113, .12); color: var(--bad); }

.card-body { padding: 20px; }
.card-body .empty { color: var(--muted); font-size: 14px; }

/* Tabla */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .6px; }
tr:last-child td { border-bottom: none; }
td { color: var(--text); }
td.num { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--mono); }
tbody tr { transition: background .12s ease; }
tbody tr:hover { background: var(--bg-soft); }

/* Badges de situación */
.sit { display: inline-block; padding: 3px 10px; border-radius: 6px; font-size: 12px; font-weight: 700; }
.sit-1 { background: rgba(52, 211, 153, .14); color: var(--ok); }
.sit-2 { background: rgba(251, 191, 36, .14); color: var(--warn); }
.sit-3, .sit-4, .sit-5, .sit-6 { background: rgba(248, 113, 113, .14); color: var(--bad); }

/* Grid de datos clave-valor */
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 28px; }
.kv .item label { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .6px; margin-bottom: 4px; font-weight: 700; }
.kv .item span { font-size: 15px; font-weight: 600; color: var(--ink); }
.tag-ok { color: var(--ok) !important; }
.tag-muted { color: var(--muted) !important; font-weight: 500 !important; }

.note { margin-top: 16px; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--border); padding-top: 13px; line-height: 1.5; }
.note code { background: var(--bg-soft); padding: 2px 6px; border-radius: 6px; font-size: 12px; font-family: var(--mono); color: var(--accent); }

.subt { margin: 18px 0 8px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--accent-2); }
.subt small { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--muted); }
ul.lista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
ul.lista li { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 8px; padding: 9px 12px; font-size: 14px; font-weight: 500; color: var(--text); }
ul.lista li small { color: var(--muted); font-weight: 500; }
ul.lista li .star { color: var(--accent); }

ul.menciones { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
ul.menciones .mencion { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
.mencion-top { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.mencion-link { font-size: 14.5px; font-weight: 700; color: var(--accent-2); text-decoration: none; line-height: 1.3; }
.mencion-link:hover { text-decoration: underline; }
.mencion-tipo { flex: none; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); background: var(--card-2); border: 1px solid var(--border); border-radius: 999px; padding: 2px 9px; }
.mencion-dom { font-size: 12px; color: var(--muted); font-weight: 500; font-family: var(--mono); margin-top: 2px; }
.mencion-snip { margin: 8px 0 0; font-size: 13.5px; color: var(--text); line-height: 1.45; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.chip-emp { background: var(--card-2); border: 1px solid var(--border); border-radius: 999px; padding: 5px 13px; font-size: 13px; font-weight: 600; color: var(--ink); }

.perfiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.perfil { display: flex; align-items: center; gap: 11px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 10px; padding: 11px 13px; text-decoration: none; transition: border-color .12s ease; }
.perfil:hover { border-color: var(--accent); }
.perfil-ico { font-size: 21px; line-height: 1; }
.perfil-txt { display: flex; flex-direction: column; min-width: 0; }
.perfil-red { font-size: 14px; font-weight: 700; color: var(--ink); }
.perfil-user { font-size: 12.5px; color: var(--muted); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.fotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.foto { position: relative; display: block; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; aspect-ratio: 1/1; transition: border-color .12s ease; }
.foto:hover { border-color: var(--accent); }
.foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.foto-src { position: absolute; left: 0; right: 0; bottom: 0; padding: 3px 6px; font-size: 10.5px; font-weight: 600; color: #cbd5e1; background: rgba(0,0,0,.7); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Avatar en la barra de identidad */
.identity-avatar {
    width: 56px; height: 56px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

/* Perfil de Gravatar */
.gravatar { display: flex; gap: 16px; align-items: flex-start; }
.gravatar-pic {
    width: 92px; height: 92px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    border: 1px solid var(--border);
    flex-shrink: 0;
}
.gravatar-info { flex: 1; min-width: 0; }
.gravatar-name { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 18px; color: var(--ink); }
.gravatar-name small { color: var(--muted); font-weight: 500; font-size: 13px; }
.gravatar-row { margin-top: 5px; font-size: 14px; color: var(--muted); }
.gravatar-row a { color: var(--accent-2); font-weight: 600; text-decoration: none; }
.gravatar-row a:hover { text-decoration: underline; }
.gravatar-bio { margin-top: 9px; font-size: 14px; line-height: 1.5; color: var(--text); }

.redes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.red {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 14px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-weight: 600; font-size: 13.5px;
    color: var(--text); text-decoration: none;
    transition: border-color .12s ease, color .12s ease;
}
.red:hover { border-color: var(--accent); color: var(--accent); }
.red img { width: 18px; height: 18px; }

/* Foto del frente (Google Street View) */
.streetview {
    margin: 18px 0 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .25s ease, transform .25s ease;
}
.streetview.ready { opacity: 1; transform: none; }
.streetview img { display: block; width: 100%; height: auto; }
.streetview figcaption {
    padding: 9px 12px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--muted);
    background: var(--bg-soft);
    border-top: 1px solid var(--border);
}

/* Loader */
.loader { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 50px 0; color: var(--muted); font-weight: 500; font-family: var(--mono); }
.spinner {
    width: 40px; height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-right-color: var(--accent-2);
    border-radius: 50%;
    animation: spin .75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.alert {
    background: rgba(248, 113, 113, .1);
    border: 1px solid var(--bad);
    border-left: 3px solid var(--bad);
    color: #fca5a5;
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    font-size: 14.5px;
    font-weight: 500;
}

.footer { margin-top: 56px; text-align: center; color: var(--muted); font-size: 12.5px; border-top: 1px solid var(--border); padding-top: 24px; }
.footer p { max-width: 640px; margin: 0 auto; line-height: 1.6; }
.footer strong { color: var(--accent); }

.candidatos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.candidatos code { background: var(--bg-soft); border: 1px solid var(--border); padding: 5px 10px; border-radius: 6px; font-size: 13px; color: var(--accent); font-weight: 600; font-family: var(--mono); }

/* ---------- Muro de acceso (login para ver) ---------- */
.gate {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--card);
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    padding: 16px 20px;
}
.gate-ico { color: var(--accent); display: inline-flex; line-height: 1; flex: none; }
.gate-ico svg, .locked-ico svg { display: block; }
.gate-txt { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.gate-txt strong { color: var(--ink); font-size: 15px; }
.gate-txt span { color: var(--muted); font-size: 13.5px; }
.gate-btn, .locked-btn {
    flex: none;
    border: none;
    background: var(--grad);
    color: #06140f;
    font-weight: 700;
    font-size: 14px;
    padding: 11px 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: filter .15s ease, transform .12s ease;
}
.gate-btn:hover, .locked-btn:hover { transform: translateY(-1px); filter: brightness(1.08); }

/* Cuerpo de tarjeta bloqueada: contenido fantasma + overlay con candado */
.locked { position: relative; min-height: 130px; }
.locked-ghost { display: flex; flex-direction: column; gap: 12px; filter: blur(5px); opacity: .35; pointer-events: none; user-select: none; }
.locked-ghost .gl { height: 16px; border-radius: 6px; background: linear-gradient(90deg, var(--card-2), var(--bg-soft)); }
.locked-ghost .gl-1 { width: 70%; }
.locked-ghost .gl-2 { width: 92%; }
.locked-ghost .gl-3 { width: 55%; }
.locked-ghost .gl-4 { width: 80%; }
.locked-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    padding: 10px;
}
.locked-ico { color: var(--accent); display: inline-flex; line-height: 1; }
.locked-overlay p { color: var(--text); font-weight: 600; font-size: 14px; max-width: 320px; }

@media (max-width: 560px) {
    .gate { flex-direction: column; text-align: center; }
    .search { flex-direction: column; }
    .search button { padding: 14px; }
    .kv { grid-template-columns: 1fr; }
    table { font-size: 13px; }
    th, td { padding: 9px 8px; }
}
