/* Neurobyte — hoja única. Sin build; editar y subir. */

:root {
    --bg: #fbfbfd;
    --surface: #ffffff;
    --ink: #14141a;
    --ink-soft: #55555f;
    --line: #e6e6ec;
    --accent: #5a4ff3;
    --accent-hover: #473cd6;
    --accent-soft: #eeecff;
    --error: #c02a2a;
    --radius: 14px;
    --radius-lg: 20px;
    --wrap: 1080px;
    --font-head: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
    --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin-inline: auto;
    padding-inline: 24px;
}

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }

h1, h2, h3 { font-family: var(--font-head); font-weight: 600; letter-spacing: -0.02em; }

/* Foco visible y consistente en todo */
:where(a, button, input, textarea, [tabindex]):focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
    border-radius: 6px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--ink);
    color: #fff;
    padding: 10px 16px;
    z-index: 10;
}
.skip-link:focus { left: 12px; top: 12px; color: #fff; }

/* ---------- Marca ---------- */
.brand {
    text-align: center;
    padding-top: clamp(28px, 6vw, 56px);
}
.wordmark {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: -0.03em;
    text-decoration: none;
    color: var(--ink);
}
.wordmark__byte { color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
    max-width: 600px;
    margin-inline: auto;
    text-align: center;
    padding-top: clamp(40px, 8vw, 84px);
    padding-bottom: clamp(64px, 12vw, 132px);
}

.hero h1 {
    margin: 0 0 20px;
    font-size: clamp(2.4rem, 7vw, 3.7rem);
    line-height: 1.06;
    text-wrap: balance;
}
.hero h1 strong { font-weight: 700; }

.lede {
    margin: 0 auto;
    font-size: 1.12rem;
    color: var(--ink-soft);
    max-width: 40ch;
    text-wrap: balance;
}

.services {
    margin: 14px auto 0;
    font-size: 0.92rem;
    color: var(--ink-soft);
    text-wrap: balance;
}

/* ---------- Form card ---------- */
.hero__form {
    margin-top: 44px;
    text-align: left;
}

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: 0 1px 2px rgba(20, 20, 26, 0.04), 0 18px 40px -24px rgba(20, 20, 26, 0.18);
}

.card__title {
    margin: 0 0 24px;
    font-size: 1.3rem;
}

.field { margin-bottom: 18px; }
.field label {
    display: block;
    margin-bottom: 7px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--ink);
}

.field input,
.field textarea {
    width: 100%;
    font: inherit;
    color: var(--ink);
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    padding: 12px 14px;
    transition: border-color 0.12s ease;
}
.field input:hover,
.field textarea:hover { border-color: #cfcfd8; }
.field input:focus,
.field textarea:focus { border-color: var(--accent); outline-offset: 1px; }
.field textarea { resize: vertical; min-height: 120px; }

.error {
    margin: 7px 0 0;
    color: var(--error);
    font-size: 0.86rem;
}

.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.btn {
    appearance: none;
    border: 0;
    cursor: pointer;
    width: 100%;
    margin-top: 6px;
    padding: 14px 20px;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1rem;
    color: #fff;
    background: var(--accent);
    border-radius: var(--radius);
    transition: background 0.12s ease, transform 0.05s ease;
}
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

.privacy {
    margin: 14px 0 0;
    font-size: 0.82rem;
    color: var(--ink-soft);
    text-align: center;
}

.sent { text-align: center; padding: 16px 4px; }
.sent h2 { margin: 0 0 10px; font-size: 1.4rem; }
.sent p { margin: 0 0 20px; color: var(--ink-soft); }

.link {
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    color: var(--accent);
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ---------- Footer ---------- */
.site-footer {
    margin-top: clamp(64px, 12vw, 120px);
    background: #0f0f14;
    color: #fff;
    padding: clamp(48px, 9vw, 80px) 24px;
}
.site-footer__inner {
    max-width: var(--wrap);
    margin-inline: auto;
    text-align: center;
}
.wordmark--light { color: #fff; font-size: clamp(1.6rem, 4vw, 2rem); }
.site-footer__tag {
    margin: 14px 0 0;
    font-size: 0.98rem;
    color: rgba(255, 255, 255, 0.6);
}
.site-footer__contact { margin: 22px 0 0; font-size: 1rem; }
.site-footer__contact a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.3); padding-bottom: 2px; }
.site-footer__contact a:hover { border-color: #fff; }
.site-footer__legal {
    margin: 32px 0 0;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.38);
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
    .header-cta { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}

/* ---------- Panel /leads ---------- */
body.panel { background: var(--bg); padding-block: 40px; }
body.panel h1 { font-size: 1.6rem; margin: 0 0 24px; }
body.panel .tag {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--ink-soft);
    background: var(--accent-soft);
    padding: 3px 10px;
    border-radius: 999px;
    vertical-align: middle;
    margin-left: 8px;
}
.lead {
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 4px solid var(--line);
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 14px;
}
.lead--new { border-left-color: var(--accent); }
.lead--contacted { border-left-color: #2aa06a; }
.lead--archived { opacity: 0.6; }
.lead header {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    align-items: baseline;
    margin-bottom: 8px;
}
.lead header time { color: var(--ink-soft); font-size: 0.85rem; margin-left: auto; }
.lead__msg { margin: 0 0 12px; white-space: pre-wrap; }
.lead footer { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.lead footer form { display: flex; gap: 6px; }
.lead footer button {
    font: inherit;
    font-size: 0.8rem;
    cursor: pointer;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 8px;
    padding: 4px 10px;
}
.lead footer button:disabled { background: var(--accent-soft); border-color: var(--accent-soft); cursor: default; }
.lead footer button.danger { color: var(--error); border-color: #f0d0d0; }
.lead .meta { font-size: 0.8rem; color: var(--ink-soft); }
.pagination { display: flex; gap: 16px; margin-top: 20px; }

/* ---------- Login + cabecera panel ---------- */
.login-page { background: var(--bg); }
.login-wrap {
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 24px;
}
.login-wrap .card { width: 100%; max-width: 360px; }
.panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}
.panel__head h1 { margin: 0; }
.btn-ghost {
    font: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 8px 16px;
    color: var(--ink);
}
.btn-ghost:hover { border-color: #cfcfd8; }
