/* ─────────────────────────────────────────────────────────────────
   Evidence GRC — design system
   Paleta: midnight #0A1628 + violeta #7C5CFF + cyan #22D3EE
   Tipografía: Inter (sistema) + Bebas Neue (display)
   ────────────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --midnight:        #0A1628;
    --midnight-2:      #0F1F35;
    --midnight-3:      #18294A;
    --violet:          #7C5CFF;
    --violet-2:        #6346E0;
    --violet-soft:     #ECE7FF;
    --cyan:            #22D3EE;
    --cyan-2:          #0EA5E9;
    --emerald:         #10B981;
    --amber:           #F59E0B;
    --rose:            #F43F5E;

    --text:            #0B1220;
    --text-soft:       #4A5670;
    --text-muted:      #8590A8;
    --border:          #E5E9F0;
    --border-strong:   #CBD2E1;
    --bg:              #FFFFFF;
    --bg-soft:         #F7F9FC;
    --bg-section:      #FAFBFE;
    --surface:         #FFFFFF;
    --surface-2:       #F4F6FB;

    --shadow-xs:       0 1px 2px rgba(10,22,40,.04);
    --shadow-sm:       0 2px 6px rgba(10,22,40,.06);
    --shadow-md:       0 8px 24px rgba(10,22,40,.08);
    --shadow-lg:       0 16px 48px rgba(10,22,40,.12);
    --shadow-violet:   0 12px 36px rgba(124,92,255,.28);

    --radius-sm:       6px;
    --radius:          10px;
    --radius-lg:       16px;
    --radius-xl:       22px;

    --container:       1200px;

    --font-sans:       'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-display:    'Bebas Neue', 'Inter', sans-serif;
    --font-mono:       ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, monospace;
}

[data-theme="dark"] {
    --text:            #E8EDF7;
    --text-soft:       #A7B2C9;
    --text-muted:      #6B7791;
    --border:          #1F2D49;
    --border-strong:   #2C3E5F;
    --bg:              #060C18;
    --bg-soft:         #0A1628;
    --bg-section:      #0D1B33;
    --surface:         #0F1F35;
    --surface-2:       #15273F;

    --shadow-xs:       0 1px 2px rgba(0,0,0,.3);
    --shadow-sm:       0 2px 6px rgba(0,0,0,.35);
    --shadow-md:       0 8px 24px rgba(0,0,0,.4);
    --shadow-lg:       0 16px 48px rgba(0,0,0,.5);
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
    font-family: var(--font-sans);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 16px;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--violet); text-decoration: none; }
a:hover { color: var(--violet-2); }

button { font: inherit; cursor: pointer; }

input, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4, h5 { margin: 0; line-height: 1.2; letter-spacing: -0.01em; }

h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); font-weight: 700; letter-spacing: -0.015em; }
h3 { font-size: 1.35rem; font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 600; }

p  { margin: 0 0 1em; color: var(--text-soft); }

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

/* ── Header ─────────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,0.85);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid var(--border);
}
[data-theme="dark"] .site-header {
    background: rgba(6,12,24,0.75);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 32px;
    height: 72px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}
.logo-mark {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--violet) 0%, var(--cyan) 100%);
    display: grid; place-items: center;
    color: #fff;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}
.logo:hover { color: var(--text); opacity: .85; }

.nav-main {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}
.nav-main a {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-soft);
    font-weight: 500;
    font-size: 0.95rem;
}
.nav-main a:hover { color: var(--text); background: var(--surface-2); }
.nav-main a.is-active { color: var(--text); }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 12px;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    height: 36px;
}
.lang-switch form { display: inline-flex; }
.lang-switch button {
    background: transparent;
    border: none;
    padding: 0 10px;
    height: 100%;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.lang-switch button.is-active { color: var(--text); background: var(--surface-2); }
.lang-switch button:hover:not(.is-active) { color: var(--text); }

.theme-toggle {
    width: 36px; height: 36px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: transparent;
    display: grid; place-items: center;
    color: var(--text-soft);
}
.theme-toggle:hover { background: var(--surface-2); color: var(--text); }
.theme-toggle form { width: 100%; height: 100%; display: grid; place-items: center; }
.theme-toggle button { background: none; border: none; color: inherit; padding: 0; }

.menu-toggle {
    display: none;
    width: 40px; height: 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: transparent;
    align-items: center; justify-content: center;
    color: var(--text);
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.96rem;
    border: 1px solid transparent;
    transition: transform .12s ease, box-shadow .15s ease, background .15s ease;
    white-space: nowrap;
    cursor: pointer;
}
.btn:active { transform: translateY(1px); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 0.88rem; }
.btn-lg { height: 52px; padding: 0 28px; font-size: 1.05rem; }

.btn-primary {
    background: var(--violet);
    color: #fff;
    box-shadow: var(--shadow-violet);
}
.btn-primary:hover {
    background: var(--violet-2);
    color: #fff;
    box-shadow: 0 16px 40px rgba(124,92,255,.36);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }

.btn-dark {
    background: var(--midnight);
    color: #fff;
}
.btn-dark:hover { background: var(--midnight-2); color: #fff; }

.btn-block { width: 100%; }

.btn-outline-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,.35);
}
.btn-outline-light:hover { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.6); }

.btn-light {
    background: #fff;
    color: var(--midnight);
}
.btn-light:hover { background: var(--surface-2); color: var(--midnight); }

/* ── Sections / Eyebrows ────────────────────────────────────── */
.section {
    padding: clamp(64px, 8vw, 120px) 0;
}
.section-tight { padding: clamp(48px, 6vw, 80px) 0; }
.section-soft { background: var(--bg-section); }
.section-dark {
    background: linear-gradient(180deg, var(--midnight) 0%, var(--midnight-2) 100%);
    color: #E6ECF7;
}
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: rgba(255,255,255,0.7); }

.eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--violet);
    margin-bottom: 14px;
}
.section-dark .eyebrow { color: var(--cyan); }

.section-head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto clamp(48px, 6vw, 72px);
}
.section-head p {
    font-size: 1.1rem;
    color: var(--text-soft);
    margin-top: 12px;
}
.section-head--left { text-align: left; margin-left: 0; margin-right: 0; }

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
    position: relative;
    padding: clamp(80px, 10vw, 140px) 0 clamp(60px, 8vw, 100px);
    background: linear-gradient(180deg, #FAFBFE 0%, #FFFFFF 100%);
    overflow: hidden;
}
[data-theme="dark"] .hero {
    background: linear-gradient(180deg, var(--midnight) 0%, var(--midnight-2) 60%, var(--bg) 100%);
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
      radial-gradient(700px 380px at 12% 10%, rgba(124,92,255,.18), transparent 70%),
      radial-gradient(600px 380px at 85% 35%, rgba(34,211,238,.14), transparent 70%);
    pointer-events: none;
    z-index: 0;
}
.hero-grid {
    position: relative; z-index: 1;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 64px;
    align-items: center;
}
@media (max-width: 980px) {
    .hero-grid { grid-template-columns: 1fr; gap: 48px; }
}

.hero h1 .grad {
    background: linear-gradient(90deg, var(--violet) 0%, var(--cyan) 100%);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
}
.hero p.lead {
    font-size: 1.15rem;
    color: var(--text-soft);
    max-width: 560px;
    margin: 22px 0 32px;
}
.hero-actions {
    display: flex; gap: 14px; flex-wrap: wrap; align-items: center;
}
.hero-trust {
    margin-top: 36px;
    color: var(--text-muted);
    font-size: 0.92rem;
}
.hero-trust strong {
    color: var(--text);
    font-weight: 600;
}

/* Hero visual */
.hero-visual {
    position: relative;
    aspect-ratio: 1 / 0.95;
    background: linear-gradient(135deg, var(--midnight) 0%, var(--midnight-3) 100%);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--border);
}
.hero-visual::before {
    content: '';
    position: absolute; inset: 0;
    background:
      radial-gradient(380px 240px at 20% 12%, rgba(124,92,255,.55), transparent 70%),
      radial-gradient(420px 280px at 80% 65%, rgba(34,211,238,.35), transparent 70%);
}
.hero-card-stack {
    position: absolute; inset: 24px;
    display: flex; flex-direction: column; gap: 12px;
}
.dash-card {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--radius);
    backdrop-filter: blur(8px);
    color: #fff;
    padding: 16px 18px;
}
.dash-card h5 {
    font-family: var(--font-mono);
    font-size: 0.7rem; font-weight: 600;
    letter-spacing: 0.18em; text-transform: uppercase;
    margin: 0 0 8px;
    color: var(--cyan);
}
.dash-card .v {
    display: flex; align-items: baseline; gap: 8px;
    font-family: var(--font-display);
    font-size: 2.4rem; line-height: 1;
}
.dash-card .v small { font-family: var(--font-sans); font-size: 0.9rem; color: rgba(255,255,255,.6); font-weight: 500; }
.dash-card-row { display: flex; gap: 12px; }
.dash-card-row .dash-card { flex: 1; }

.norm-pill-stack {
    display: flex; flex-wrap: wrap; gap: 8px;
}
.norm-pill {
    display: inline-flex;
    align-items: center; gap: 6px;
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,.1);
}
.norm-pill::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 999px;
    background: var(--emerald);
}
.norm-pill.is-pending::before { background: var(--amber); }

.hero-bar {
    height: 8px;
    border-radius: 999px;
    background: rgba(255,255,255,.06);
    overflow: hidden;
}
.hero-bar > span {
    display: block; height: 100%;
    background: linear-gradient(90deg, var(--violet), var(--cyan));
}

/* ── Trust bar ──────────────────────────────────────────────── */
.trust-bar {
    padding: 40px 0 60px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-section);
}
.trust-bar .eyebrow {
    text-align: center;
    color: var(--text-muted);
    display: block;
    margin-bottom: 24px;
}
.logo-strip {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 32px;
    align-items: center;
    opacity: .58;
}
.logo-strip > div {
    text-align: center;
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--text-soft);
    letter-spacing: 0.04em;
}
@media (max-width: 800px) { .logo-strip { grid-template-columns: repeat(3, 1fr); gap: 18px; } }

/* ── Pillars / Feature cards ────────────────────────────────── */
.grid {
    display: grid;
    gap: 24px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: transform .15s ease, box-shadow .2s ease, border-color .15s ease;
}
.card:hover {
    transform: translateY(-2px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-md);
}
.card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.card p { font-size: 0.97rem; margin: 0; color: var(--text-soft); }

.icon-wrap {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: var(--violet-soft);
    color: var(--violet);
    display: grid; place-items: center;
    margin-bottom: 16px;
}
[data-theme="dark"] .icon-wrap {
    background: rgba(124,92,255,0.16);
}
.icon-wrap.cyan { background: rgba(34,211,238,.14); color: var(--cyan-2); }
.icon-wrap.emerald { background: rgba(16,185,129,.14); color: var(--emerald); }
.icon-wrap.amber { background: rgba(245,158,11,.16); color: var(--amber); }

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--violet);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 16px;
}
.card-link::after { content: '→'; transition: transform .15s ease; }
.card-link:hover::after { transform: translateX(3px); }

/* ── Norms grid ─────────────────────────────────────────────── */
.norm-card {
    display: block;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 26px;
    color: var(--text);
    position: relative;
    overflow: hidden;
    transition: transform .15s ease, box-shadow .2s ease, border-color .15s ease;
}
.norm-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--violet);
    color: var(--text);
}
.norm-card .badge {
    display: inline-flex;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--violet);
    background: var(--violet-soft);
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 14px;
}
[data-theme="dark"] .norm-card .badge { background: rgba(124,92,255,.18); }
.norm-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.norm-card p { font-size: 0.93rem; margin: 0; color: var(--text-soft); }
.norm-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--violet), var(--cyan));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
}
.norm-card:hover::after { transform: scaleX(1); }

/* ── How it works ───────────────────────────────────────────── */
.steps {
    counter-reset: step;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .steps { grid-template-columns: 1fr; } }

.step {
    counter-increment: step;
    position: relative;
    padding-top: 62px;
}
.step::before {
    content: counter(step, decimal-leading-zero);
    position: absolute;
    top: 0; left: 0;
    width: 48px; height: 48px;
    display: grid; place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--violet) 0%, var(--cyan) 100%);
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.45rem;
    box-shadow: var(--shadow-violet);
}
.step h3 { font-size: 1.15rem; margin-bottom: 10px; }
.step p { font-size: 0.95rem; margin: 0; color: var(--text-soft); }

/* ── Use cases ──────────────────────────────────────────────── */
.use-card {
    border-radius: var(--radius-lg);
    padding: 32px;
    color: #fff;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    position: relative;
}
.use-card::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, var(--midnight) 0%, var(--midnight-3) 100%);
    z-index: 0;
}
.use-card.violet::before { background: linear-gradient(135deg, #4C2FBC 0%, #7C5CFF 100%); }
.use-card.cyan::before   { background: linear-gradient(135deg, #0C7C8C 0%, #22D3EE 100%); }
.use-card.dark::before   { background: linear-gradient(135deg, var(--midnight) 0%, var(--midnight-2) 100%); }
.use-card.emerald::before{ background: linear-gradient(135deg, #047857 0%, #10B981 100%); }
.use-card > * { position: relative; z-index: 1; }
.use-card .eyebrow { color: rgba(255,255,255,.85); }
.use-card h3 { color: #fff; font-size: 1.3rem; margin-bottom: 6px; }
.use-card p { color: rgba(255,255,255,.78); margin: 0; font-size: 0.95rem; }

/* ── CTA banner ─────────────────────────────────────────────── */
.cta-banner {
    background: linear-gradient(135deg, var(--midnight) 0%, var(--midnight-3) 100%);
    color: #fff;
    border-radius: var(--radius-xl);
    padding: clamp(36px, 5vw, 56px);
    position: relative;
    overflow: hidden;
}
.cta-banner::before {
    content: '';
    position: absolute; inset: 0;
    background:
      radial-gradient(400px 200px at 90% 100%, rgba(34,211,238,.25), transparent 70%),
      radial-gradient(360px 220px at 10% 0%, rgba(124,92,255,.35), transparent 70%);
}
.cta-banner > * { position: relative; }
.cta-banner h2 { color: #fff; max-width: 700px; }
.cta-banner p  { color: rgba(255,255,255,.78); margin: 16px 0 28px; max-width: 600px; }
.cta-banner .cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── Pricing teaser ─────────────────────────────────────────── */
.price-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
@media (max-width: 980px) { .price-grid { grid-template-columns: 1fr; } }

.price-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    position: relative;
    display: flex;
    flex-direction: column;
}
.price-card.featured {
    border-color: var(--violet);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}
.price-badge {
    position: absolute; top: -12px; left: 50%;
    transform: translateX(-50%);
    background: var(--violet);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 999px;
}
.price-name { font-family: var(--font-display); font-size: 1.6rem; letter-spacing: 0.04em; margin-bottom: 4px; }
.price-amt {
    font-family: var(--font-display);
    font-size: 3rem;
    line-height: 1;
    letter-spacing: 0.02em;
    margin: 14px 0 6px;
}
.price-amt small { font-family: var(--font-sans); font-size: 0.95rem; color: var(--text-muted); font-weight: 500; }
.price-card p { font-size: 0.95rem; color: var(--text-soft); }
.price-card .btn { margin-top: auto; }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
    background: var(--midnight);
    color: rgba(255,255,255,.7);
    padding: 64px 0 28px;
}
.site-footer h4 {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.site-footer a { color: rgba(255,255,255,.7); display: block; padding: 4px 0; font-size: 0.94rem; }
.site-footer a:hover { color: #fff; }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .logo { color: #fff; }
.footer-brand p { color: rgba(255,255,255,.55); font-size: 0.95rem; max-width: 320px; }
.footer-bottom {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,.08);
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
    font-size: 0.85rem;
    color: rgba(255,255,255,.55);
}

/* ── Auth pages ─────────────────────────────────────────────── */
.auth-shell {
    min-height: calc(100vh - 72px);
    display: grid;
    place-items: center;
    padding: 60px 24px;
    background: linear-gradient(180deg, var(--bg-section) 0%, var(--bg) 100%);
}
.auth-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 40px 36px;
    width: 100%;
    max-width: 440px;
}
.auth-card h1 { font-size: 1.7rem; margin-bottom: 8px; }
.auth-card .lead { color: var(--text-soft); margin-bottom: 28px; font-size: 0.96rem; }
.auth-card .field { margin-bottom: 18px; }
.auth-card label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 8px; }
.auth-card input[type=email], .auth-card input[type=text] {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.auth-card input:focus {
    outline: none;
    border-color: var(--violet);
    box-shadow: 0 0 0 3px rgba(124,92,255,.18);
}
.auth-card .err {
    background: rgba(244,63,94,.12);
    color: #be123c;
    border: 1px solid rgba(244,63,94,.25);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    margin-bottom: 18px;
}
[data-theme="dark"] .auth-card .err { color: #FECACA; }
.auth-card .info {
    background: rgba(34,211,238,.12);
    color: var(--cyan-2);
    border: 1px solid rgba(34,211,238,.25);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    margin-bottom: 18px;
}
.auth-card .links {
    margin-top: 18px;
    display: flex; flex-direction: column; gap: 8px;
    text-align: center;
}
.auth-card .links a { font-size: 0.9rem; color: var(--text-soft); }
.auth-card .links a:hover { color: var(--violet); }

.otp-input {
    display: flex;
    gap: 8px;
    justify-content: center;
}
.otp-input input {
    width: 48px; height: 56px;
    text-align: center;
    font-family: var(--font-display);
    font-size: 1.6rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
}
.otp-input input:focus {
    outline: none;
    border-color: var(--violet);
    box-shadow: 0 0 0 3px rgba(124,92,255,.18);
}

/* ── Dashboard ──────────────────────────────────────────────── */
.dash-shell {
    min-height: calc(100vh - 72px);
    background: var(--bg-section);
    padding: clamp(28px, 4vw, 48px) 0;
}
.dash-greeting {
    margin-bottom: 28px;
}
.dash-greeting h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.dash-greeting p { color: var(--text-soft); font-size: 1.02rem; margin-top: 6px; }

.dash-grid-norms {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
}
.dash-norm {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.dash-norm:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); border-color: var(--border-strong); }
.dash-norm-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.dash-norm-head h3 { font-size: 1.08rem; margin: 0; }
.status-chip {
    display: inline-flex;
    align-items: center; gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(245,158,11,.14);
    color: #B45309;
}
.status-chip::before { content: ''; width: 6px; height: 6px; border-radius: 999px; background: var(--amber); }
.status-chip.is-active { background: rgba(16,185,129,.14); color: #047857; }
.status-chip.is-active::before { background: var(--emerald); }
[data-theme="dark"] .status-chip { background: rgba(245,158,11,.18); color: #FCD34D; }
[data-theme="dark"] .status-chip.is-active { background: rgba(16,185,129,.18); color: #6EE7B7; }

.dash-progress {
    height: 6px;
    background: var(--surface-2);
    border-radius: 999px;
    overflow: hidden;
    margin: 12px 0 18px;
}
.dash-progress > span {
    display: block; height: 100%;
    background: linear-gradient(90deg, var(--violet), var(--cyan));
    border-radius: 999px;
}

.dash-norm p { font-size: 0.9rem; color: var(--text-soft); margin: 0 0 16px; }

.dash-card-row-shortcuts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin: 32px 0 0;
}
.dash-shortcut {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex; align-items: center; gap: 14px;
    color: var(--text);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.dash-shortcut:hover { border-color: var(--violet); box-shadow: var(--shadow-sm); color: var(--text); }
.dash-shortcut .icon-wrap { margin: 0; }
.dash-shortcut h4 { font-size: 0.98rem; margin: 0 0 2px; }
.dash-shortcut span { font-size: 0.84rem; color: var(--text-muted); }

/* ── Norma detail (private) ─────────────────────────────────── */
.norma-shell { padding: clamp(28px, 4vw, 48px) 0; }
.norma-head { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 28px; }
.norma-head .badge { font-family: var(--font-mono); background: var(--violet-soft); color: var(--violet); padding: 4px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; }
.norma-head h1 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.2rem); }

.placeholder-card {
    background: var(--surface);
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
}
.placeholder-card h3 { margin-bottom: 8px; }
.placeholder-card p { color: var(--text-soft); margin: 0 auto; max-width: 480px; }

/* ── Forms ──────────────────────────────────────────────────── */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.field input, .field textarea, .field select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    font: inherit;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
    outline: none;
    border-color: var(--violet);
    box-shadow: 0 0 0 3px rgba(124,92,255,.18);
}

/* ── Mobile nav ─────────────────────────────────────────────── */
@media (max-width: 980px) {
    .nav-main, .nav-actions .lang-switch { display: none; }
    .menu-toggle { display: inline-grid; place-items: center; }
}

.mobile-nav {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: 72px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 16px 24px 24px;
}
.mobile-nav.is-open { display: block; }
.mobile-nav a { display: block; padding: 10px 0; color: var(--text); border-bottom: 1px solid var(--border); }
.mobile-nav .btn { margin-top: 12px; width: 100%; }

/* ── Misc helpers ───────────────────────────────────────────── */
.muted { color: var(--text-muted); }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; } .mt-5 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-2 { gap: 16px; } .gap-1 { gap: 8px; }

/* SVG iconos pequeños inline */
.icon { width: 22px; height: 22px; stroke-width: 2; }
.icon-sm { width: 18px; height: 18px; }
.icon-lg { width: 28px; height: 28px; }
