/* Clic by Spars — base tokens
   Paleta: fondo blanco, acento lima, azul eléctrico
*/
:root {
    --c-bg: #ffffff;
    --c-bg-soft: #f6f8fb;
    --c-surface: #ffffff;
    --c-border: #e3e7ee;
    --c-text: #0f172a;
    --c-text-soft: #475569;
    --c-muted: #94a3b8;

    --c-primary: #2458ff;          /* azul */
    --c-primary-soft: #d7e0ff;
    --c-primary-ink: #ffffff;

    --c-accent: #c6f24e;            /* lima */
    --c-accent-dark: #a8d92f;
    --c-accent-ink: #0f172a;

    --c-danger: #ef4444;
    --c-success: #10b981;

    --radius-sm: 6px;
    --radius: 12px;
    --radius-lg: 18px;

    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 30px 60px rgba(15, 23, 42, 0.12);

    --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
    min-height: 100vh;
    font-family: var(--font);
    color: var(--c-text);
    background: var(--c-bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img, video, iframe { max-width: 100%; height: auto; }

a { color: var(--c-primary); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.muted { color: var(--c-muted); font-size: 13px; }

/* Botones */
.btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 18px;
    font-size: 14px; font-weight: 600;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    transition: transform .08s, box-shadow .2s, background .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
    background: var(--c-primary);
    color: var(--c-primary-ink);
    box-shadow: 0 4px 14px rgba(36, 88, 255, 0.28);
}
.btn-primary:hover { background: #1747e8; }
.btn-accent {
    background: var(--c-accent);
    color: var(--c-accent-ink);
    box-shadow: 0 4px 14px rgba(198, 242, 78, 0.45);
}
.btn-accent:hover { background: var(--c-accent-dark); }
.btn-ghost {
    background: transparent;
    border: 1px solid var(--c-border);
    color: var(--c-text);
    border-radius: var(--radius-sm);
    padding: 8px 14px;
    font-size: 13px; font-weight: 500;
}
.btn-ghost:hover { background: var(--c-bg-soft); }
.btn-danger {
    background: #fff;
    color: var(--c-danger);
    border: 1px solid #fecaca;
}
.btn-danger:hover { background: #fef2f2; }

/* Form */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field > span { font-size: 13px; font-weight: 500; color: var(--c-text-soft); }
.field input, .field select, .field textarea {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    background: var(--c-surface);
    color: var(--c-text);
    font-family: inherit;
    transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(36, 88, 255, 0.15);
}
.form-error {
    color: var(--c-danger);
    font-size: 13px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    margin: 0;
}

/* Modal */
.modal {
    position: fixed; inset: 0;
    background: rgba(15, 23, 42, 0.35);
    display: flex; align-items: center; justify-content: center;
    z-index: 100;
    animation: fade .18s ease-out;
}
.modal[hidden] { display: none; }
.modal-card {
    background: var(--c-surface);
    border-radius: var(--radius-lg);
    width: min(440px, calc(100% - 32px));
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: pop .22s ease-out;
}
.modal-lg { width: min(780px, calc(100% - 32px)); }
.modal-head {
    display: flex; justify-content: space-between; align-items: center;
    padding: 18px 22px;
    border-bottom: 1px solid var(--c-border);
}
.modal-head h2 { margin: 0; font-size: 18px; }
.modal-body { padding: 22px; }
.modal-foot {
    display: flex; justify-content: flex-end; gap: 10px;
    margin-top: 16px; padding-top: 16px;
    border-top: 1px solid var(--c-border);
}

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop {
    from { opacity: 0; transform: translateY(10px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Scrollbar sutil */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #d8dde6; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #b9c1cf; }
