/* ==========================================================================
   MOAI — Diagnóstico de Madurez en IA
   Design System: shell oscuro MOAI (header/hero/footer) + contenido claro
   Acento: lima neón #ccff00 · Tinta: #0a0a0a
   ========================================================================== */
:root {
    --ink: #0a0a0a;
    --ink-soft: #1c1c1c;
    --lime: #ccff00;
    --lime-dark: #a8d400;
    --lime-ink: #5c7400;          /* lima legible sobre blanco */
    --lime-tint: rgba(204, 255, 0, 0.14);

    --bg: #f6f7f3;                /* fondo claro cálido */
    --surface: #ffffff;
    --surface-2: #eef0e9;
    --text: #161813;
    --muted: #6b7280;
    --border: #e2e5db;
    --border-dark: #24261f;

    --blue: #2f9fe0;
    --amber: #f59e0b;
    --red: #ef4444;

    --r-sm: 10px;
    --r-md: 16px;
    --r-lg: 26px;
    --shadow-sm: 0 1px 3px rgba(10, 10, 10, 0.06), 0 4px 14px rgba(10, 10, 10, 0.05);
    --shadow-md: 0 10px 34px rgba(10, 10, 10, 0.10);
    --shadow-lime: 0 8px 30px rgba(204, 255, 0, 0.25);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    color: var(--ink);
    line-height: 1.2;
}

img { max-width: 100%; }

/* ══════════════ HEADER ══════════════ */
.site-header {
    background: var(--ink);
    border-bottom: 1px solid var(--border-dark);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 14px 0;
}

.header-inner {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-logo { height: 26px; width: auto; display: block; }

.brand-tag {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--ink);
    background: var(--lime);
    padding: 3px 10px;
    border-radius: 40px;
    white-space: nowrap;
}

.header-nav { display: flex; gap: 6px; }

.nav-link {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 9px 16px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    border-radius: var(--r-sm);
    transition: all 0.25s var(--ease);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nav-link:hover { color: var(--lime); background: rgba(204, 255, 0, 0.08); }
.nav-link.active { color: var(--ink); background: var(--lime); }
.nav-admin { opacity: 0.75; }

/* ══════════════ LAYOUT ══════════════ */
.main {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
    flex-grow: 1;
    padding-bottom: 70px;
}

.screen { display: none; }
.screen.active { display: block; animation: screenIn 0.45s var(--ease); }

@keyframes screenIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════ BUTTONS & INPUTS ══════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 26px;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    border-radius: 50px;
    cursor: pointer;
    border: none;
    transition: all 0.25s var(--ease);
    text-decoration: none;
}

.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { background: var(--lime-dark); transform: translateY(-2px); box-shadow: var(--shadow-lime); }

.btn-dark { background: var(--ink); color: #ffffff; }
.btn-dark:hover { background: #262626; transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-ghost { background: var(--surface); color: var(--text); border: 1.5px solid var(--border); }
.btn-ghost:hover { border-color: var(--ink); }

.btn-danger-ghost { background: transparent; color: var(--red); border: 1.5px solid rgba(239, 68, 68, 0.4); }
.btn-danger-ghost:hover { background: rgba(239, 68, 68, 0.06); }

.btn-outline-light { background: transparent; color: #e8eae2; border: 1.5px solid rgba(255, 255, 255, 0.25); }
.btn-outline-light:hover { border-color: var(--lime); color: var(--lime); transform: translateY(-2px); }

.btn-xl { padding: 18px 36px; font-size: 16px; }
.btn-sm { padding: 8px 16px; font-size: 12.5px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

.input {
    width: 100%;
    padding: 13px 16px;
    font-size: 14px;
    font-family: inherit;
    border-radius: var(--r-sm);
    border: 1.5px solid var(--border);
    background: var(--surface);
    color: var(--text);
    outline: none;
    transition: all 0.25s var(--ease);
}

.input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px var(--lime-tint); }
.input-sm { width: auto; padding: 8px 12px; font-size: 13px; }

/* ══════════════ HERO (dark) ══════════════ */
.hero {
    position: relative;
    background: var(--ink);
    border-radius: var(--r-lg);
    margin-top: 34px;
    margin-bottom: 26px;
    padding: 64px 56px;
    overflow: hidden;
    color: #e8eae2;
}

.hero-glow {
    position: absolute;
    top: -220px;
    right: -140px;
    width: 560px;
    height: 560px;
    background: radial-gradient(circle, rgba(204, 255, 0, 0.22), transparent 62%);
    filter: blur(10px);
    animation: glowFloat 9s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes glowFloat {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(-50px, 40px) scale(1.15); }
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(204, 255, 0, 0.12);
    border: 1px solid rgba(204, 255, 0, 0.35);
    color: var(--lime);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.4px;
    padding: 7px 16px;
    border-radius: 50px;
    margin-bottom: 22px;
}

.hero-title {
    color: #ffffff;
    font-size: clamp(30px, 4.5vw, 48px);
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 18px;
}

.hero-title .hl {
    color: var(--lime);
    position: relative;
    white-space: nowrap;
}

.hero-sub {
    color: #b9bdb0;
    font-size: 17px;
    max-width: 560px;
    margin-bottom: 22px;
}

.hero-sub strong { color: #ffffff; }

.hero-points {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 30px;
}

.hero-points li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #d4d7cb; }
.hero-points i { color: var(--lime); }

.hero-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

.counter-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #b9bdb0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 8px 16px;
    border-radius: 50px;
}

.counter-pill i { color: var(--lime); }

.hero-art { display: flex; justify-content: center; }

.hero-moai {
    max-height: 340px;
    width: auto;
    animation: moaiFloat 6s ease-in-out infinite alternate;
    filter: drop-shadow(0 20px 40px rgba(204, 255, 0, 0.12));
}

@keyframes moaiFloat {
    from { transform: translateY(0) rotate(-1deg); }
    to   { transform: translateY(-16px) rotate(1.5deg); }
}

/* ══════════════ HOW STRIP ══════════════ */
.how-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    padding: 24px 30px;
    margin-bottom: 26px;
    box-shadow: var(--shadow-sm);
    flex-wrap: wrap;
}

.how-step { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 220px; }

.how-num {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--lime);
    color: var(--ink);
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.how-step h3 { font-size: 15px; margin-bottom: 2px; }
.how-step p { font-size: 13px; color: var(--muted); line-height: 1.4; }
.how-arrow { color: var(--border); font-size: 20px; }

/* ══════════════ FEATURE CARDS ══════════════ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
}

.feature-card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s var(--ease);
}

.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--lime-dark); }

.feature-icon {
    width: 54px;
    height: 54px;
    border-radius: var(--r-sm);
    background: var(--ink);
    color: var(--lime);
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.feature-card h3 { font-size: 17px; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--muted); }

/* ══════════════ WIZARD ══════════════ */
.wizard {
    max-width: 760px;
    margin: 40px auto 0 auto;
}

.wizard-top {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 34px;
}

.wizard-back {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: 15px;
    cursor: pointer;
    transition: all 0.25s var(--ease);
    flex-shrink: 0;
}

.wizard-back:hover { border-color: var(--ink); transform: translateX(-2px); }

.wizard-progress { flex-grow: 1; }

.wizard-progress-bar {
    height: 8px;
    background: var(--surface-2);
    border-radius: 50px;
    overflow: hidden;
}

#wizard-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--lime-dark), var(--lime));
    border-radius: 50px;
    transition: width 0.5s var(--ease);
}

.wizard-counter {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 13px;
    color: var(--muted);
    flex-shrink: 0;
    min-width: 52px;
    text-align: right;
}

.wizard-step { animation: stepIn 0.4s var(--ease); }
.wizard-step.leaving { animation: stepOut 0.22s ease forwards; }

@keyframes stepIn {
    from { opacity: 0; transform: translateX(26px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes stepOut {
    from { opacity: 1; transform: translateX(0); }
    to   { opacity: 0; transform: translateX(-22px); }
}

.q-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--lime-ink);
    margin-bottom: 10px;
}

.q-title {
    font-size: clamp(21px, 3vw, 28px);
    margin-bottom: 8px;
}

.q-help { font-size: 14px; color: var(--muted); margin-bottom: 26px; }

/* Option cards */
.opt-list { display: flex; flex-direction: column; gap: 12px; }

.opt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 12px;
}

.opt-card {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    text-align: left;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--r-md);
    padding: 17px 20px;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    transition: all 0.22s var(--ease);
    position: relative;
}

.opt-card:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-sm); }

.opt-card.selected {
    border-color: var(--lime-dark);
    background: var(--lime-tint);
    box-shadow: 0 0 0 3px rgba(204, 255, 0, 0.18);
}

.opt-card.selected::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--lime);
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.opt-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--r-sm);
    background: var(--surface-2);
    color: var(--ink);
    font-size: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.22s var(--ease);
}

.opt-card.selected .opt-icon { background: var(--ink); color: var(--lime); }

.opt-body { flex-grow: 1; padding-right: 26px; }
.opt-label { font-weight: 600; color: var(--ink); }
.opt-desc { font-size: 12.5px; color: var(--muted); line-height: 1.45; margin-top: 2px; }

.wizard-actions {
    margin-top: 28px;
    display: flex;
    justify-content: flex-end;
}

.q-hint {
    font-size: 12.5px;
    color: var(--muted);
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ══════════════ RESULTS ══════════════ */
.results-wrap { max-width: 860px; margin: 44px auto 0 auto; }

.results-hero {
    display: flex;
    align-items: center;
    gap: 44px;
    background: var(--ink);
    border-radius: var(--r-lg);
    padding: 46px 50px;
    margin-bottom: 26px;
    color: #d4d7cb;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}

.results-hero::before {
    content: '';
    position: absolute;
    top: -160px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(204, 255, 0, 0.16), transparent 62%);
    pointer-events: none;
}

.results-ring-wrap { position: relative; width: 190px; height: 190px; flex-shrink: 0; }

.score-ring { width: 100%; height: 100%; transform: rotate(-90deg); }

.ring-bg { fill: none; stroke: rgba(255, 255, 255, 0.1); stroke-width: 14; }

.ring-fill {
    fill: none;
    stroke: var(--lime);
    stroke-width: 14;
    stroke-linecap: round;
    stroke-dasharray: 540.35;
    stroke-dashoffset: 540.35;
    transition: stroke-dashoffset 1.4s var(--ease);
}

.ring-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.score-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 52px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
}

.score-max { font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, 0.5); }

.results-headline { flex: 1; min-width: 260px; position: relative; }

.results-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.6px;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 8px;
}

.level-name {
    color: var(--lime);
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 900;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}

.level-desc { font-size: 15px; color: #c9ccbf; max-width: 480px; }

/* Dimension bars */
.dims-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
    margin-bottom: 26px;
}

.dim-card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    padding: 22px 24px;
    box-shadow: var(--shadow-sm);
}

.dim-head {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 13.5px;
    margin-bottom: 14px;
}

.dim-head i { color: var(--lime-ink); }

.dim-bar { height: 10px; background: var(--surface-2); border-radius: 50px; overflow: hidden; }

.dim-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--lime-dark), var(--lime));
    border-radius: 50px;
    transition: width 1.1s var(--ease) 0.3s;
}

.dim-pct {
    margin-top: 8px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 18px;
    color: var(--ink);
}

/* Recommendations */
.reco-section {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    padding: 30px;
    margin-bottom: 26px;
    box-shadow: var(--shadow-sm);
}

.reco-section h3 { font-size: 18px; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.reco-section h3 i { color: var(--lime-ink); }

.reco-list { display: flex; flex-direction: column; gap: 14px; }

.reco-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 16px 18px;
}

.reco-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--r-sm);
    background: var(--ink);
    color: var(--lime);
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.reco-item h4 { font-size: 14.5px; margin-bottom: 3px; }
.reco-item p { font-size: 13.5px; color: var(--muted); }

/* CTA band */
.cta-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: linear-gradient(120deg, var(--ink) 60%, #1d2205);
    border-radius: var(--r-md);
    padding: 30px 36px;
    margin-bottom: 26px;
    flex-wrap: wrap;
}

.cta-band h3 { color: #ffffff; font-size: 20px; margin-bottom: 6px; }
.cta-band p { color: #b9bdb0; font-size: 14px; max-width: 520px; }

.results-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ══════════════ ADMIN GATE ══════════════ */
.gate-card {
    max-width: 420px;
    margin: 80px auto 0 auto;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--r-lg);
    padding: 46px 40px;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.gate-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--lime);
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px auto;
}

.gate-card h2 { font-size: 24px; margin-bottom: 8px; }
.gate-card p { font-size: 14px; color: var(--muted); margin-bottom: 26px; }
.gate-card .input { margin-bottom: 14px; text-align: center; }

/* ══════════════ DASHBOARD ══════════════ */
.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin: 40px 0 30px 0;
    flex-wrap: wrap;
}

.dash-header h2 { font-size: 28px; margin-bottom: 4px; }
.dash-header p { color: var(--muted); font-size: 14px; }
.dash-controls { display: flex; gap: 10px; flex-wrap: wrap; }

.sync-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

.sync-badge.online { background: var(--lime-tint); color: var(--lime-ink); border: 1px solid rgba(168, 212, 0, 0.4); }
.sync-badge.offline { background: rgba(245, 158, 11, 0.1); color: #92600a; border: 1px solid rgba(245, 158, 11, 0.35); }

.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-sm);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.si-ink { background: var(--ink); color: var(--lime); }
.si-lime { background: var(--lime); color: var(--ink); }
.si-blue { background: rgba(47, 159, 224, 0.12); color: var(--blue); }
.si-amber { background: rgba(245, 158, 11, 0.12); color: var(--amber); }

.stat-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: var(--ink);
    line-height: 1.15;
}

.stat-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
    gap: 22px;
    margin-bottom: 30px;
}

.chart-card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    padding: 26px;
    box-shadow: var(--shadow-sm);
}

.chart-card h3 {
    font-size: 15px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.chart-container { position: relative; height: 260px; width: 100%; }

/* Table */
.table-card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 30px;
}

.table-head {
    padding: 22px 26px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border);
}

.table-head h3 { font-size: 17px; }
.table-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.table-wrapper { overflow-x: auto; width: 100%; }

.data-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }

.data-table th {
    background: var(--surface-2);
    color: var(--ink);
    font-weight: 700;
    padding: 13px 18px;
    white-space: nowrap;
}

.data-table td { padding: 13px 18px; border-bottom: 1px solid var(--border); }
.data-table tr:hover td { background: var(--lime-tint); }
.td-empty { text-align: center; color: var(--muted); padding: 30px !important; }

.badge {
    display: inline-block;
    padding: 4px 11px;
    font-size: 10.5px;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    white-space: nowrap;
}

.badge-novato { background: rgba(239, 68, 68, 0.12); color: #b91c1c; }
.badge-explorador { background: rgba(245, 158, 11, 0.14); color: #92600a; }
.badge-especialista { background: rgba(47, 159, 224, 0.13); color: #1769a0; }
.badge-lider { background: var(--lime-tint); color: var(--lime-ink); }
.badge-server { background: var(--lime-tint); color: var(--lime-ink); }
.badge-local { background: rgba(245, 158, 11, 0.14); color: #92600a; }
.badge-sim { background: var(--surface-2); color: var(--muted); }

/* ══════════════ FOOTER ══════════════ */
.site-footer {
    background: var(--ink);
    border-top: 1px solid var(--border-dark);
    padding: 30px 0;
    text-align: center;
    margin-top: auto;
}

.footer-logo { height: 20px; width: auto; opacity: 0.9; margin-bottom: 10px; }

.site-footer p { color: rgba(255, 255, 255, 0.45); font-size: 12px; }
.site-footer a { color: var(--lime); text-decoration: none; font-weight: 600; }

/* ══════════════ TOASTS ══════════════ */
#toast-container {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 380px;
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--ink);
    color: #f0f0f0;
    border-left: 4px solid var(--lime);
    border-radius: var(--r-sm);
    padding: 14px 18px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: var(--shadow-md);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s var(--ease);
}

.toast.visible { opacity: 1; transform: translateY(0); }
.toast i { margin-top: 2px; }
.toast-success { border-left-color: var(--lime); }
.toast-success i { color: var(--lime); }
.toast-error { border-left-color: var(--red); }
.toast-error i { color: var(--red); }
.toast-info { border-left-color: var(--blue); }
.toast-info i { color: var(--blue); }

/* ══════════════ HELPERS ══════════════ */
[hidden] { display: none !important; }

/* ══════════════ ADMIN TOOLS (empresas / participantes) ══════════════ */
.admin-tools { margin-bottom: 30px; }

.admin-tools .table-head h3 { display: flex; align-items: center; gap: 10px; }
.admin-tools .table-head h3 i { color: var(--lime-ink); }

#company-create-form { display: flex; gap: 10px; flex-wrap: wrap; }
#company-create-form .input-sm { min-width: 240px; }

.share-info { font-size: 13px; color: var(--muted); }
.share-info code {
    background: var(--lime-tint);
    color: var(--lime-ink);
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 6px;
}

.participants-body { padding: 22px 26px; }

.participants-label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 10px; }

#participants-form textarea { margin-bottom: 12px; resize: vertical; font-size: 13px; }

.participants-summary { font-size: 13px; font-weight: 600; color: var(--muted); margin: 18px 0 10px 0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 12.5px;
    font-weight: 500;
    padding: 6px 8px 6px 12px;
    border-radius: 50px;
}

.chip i { color: var(--muted); font-size: 11px; }
.chip-done { background: var(--lime-tint); border-color: rgba(168, 212, 0, 0.4); }
.chip-done i { color: var(--lime-ink); }

.chip-x {
    background: transparent;
    border: none;
    color: var(--muted);
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    padding: 2px 5px;
    border-radius: 50%;
}
.chip-x:hover { color: var(--red); background: rgba(239, 68, 68, 0.08); }

.data-table code {
    background: var(--surface-2);
    padding: 2px 7px;
    border-radius: 5px;
    font-size: 11.5px;
    white-space: nowrap;
}

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

button:focus-visible, a:focus-visible, .input:focus-visible {
    outline: 3px solid var(--lime-dark);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ══════════════ RESPONSIVE ══════════════ */
@media (max-width: 900px) {
    .hero { padding: 44px 30px; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-art { display: none; }
    .how-arrow { display: none; }
    .results-hero { padding: 36px 28px; justify-content: center; text-align: center; }
    .results-headline { text-align: center; }
    .level-desc { margin: 0 auto; }
    .cta-band { justify-content: center; text-align: center; }
}

@media (max-width: 560px) {
    .header-inner { flex-direction: column; gap: 10px; }
    .hero-title { font-size: 28px; }
    .hero-title .hl { white-space: normal; }
    .btn-xl { width: 100%; }
    .opt-grid { grid-template-columns: 1fr; }
    .wizard-top { gap: 10px; }
    .dash-controls { width: 100%; }
    .table-tools { width: 100%; }
}
