/* ================================
   RESET & VARIABLES
================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --vs-yellow: #FFD95A;
    --vs-blue: #0B4A6F;
    --vs-blue-dark: #08344F;

    --bg-light: #ffffff;
    --bg-dark: #0b1220;
    --bg-accent: #f3f5f7;

    --text-dark: #0f172a;
    --text-muted: #64748b;
    --text-light: #e5e7eb;

    --radius: 2px;
    --transition: all .35s ease;
}

/* ================================
   BASE
================================ */
html {
    scroll-behavior: smooth;
}

body {
    font-family: Inter, system-ui, -apple-system, sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.65;
    font-size: 16px;
}

/* ================================
   TYPOGRAPHY
================================ */
h1, h2, h3 {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 500;
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(42px, 5vw, 64px); }
h2 { font-size: clamp(32px, 4vw, 40px); }
h3 { font-size: 18px; }

p {
    color: var(--text-muted);
    font-size: 15.5px;
}

.lead {
    font-size: 18px;
    color: inherit;
}

/* ================================
   LINKS & BUTTONS
================================ */
a {
    text-decoration: none;
    color: inherit;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 40px;
    background: var(--vs-blue);
    color: white;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--vs-blue-dark);
    transform: translateX(4px);
}

/* ================================
   TOAST NOTIFICATIONS
================================ */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 16px 22px;
    background: #0f172a;
    color: #fff;
    font-size: 14px;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0,0,0,.2);
    opacity: 0;
    transform: translateY(20px);
    transition: all .35s ease;
    z-index: 3000;
}

.toast.visible {
    opacity: 1;
    transform: translateY(0);
}

.toast-success {
    border-left: 4px solid #22c55e;
}

.toast-error {
    border-left: 4px solid #ef4444;
}

/* ================================
   FORM ERRORS
================================ */
.field-error {
    border-color: #ef4444 !important;
    background: rgba(239,68,68,0.05);
}
/* ================= LOADER ================= */
#loader {
    position: fixed;
    inset: 0;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.4s ease;
}

.loader-spinner {
    width: 64px;
    height: 64px;
    border: 5px solid rgba(255,255,255,0.15);
    border-top-color: var(--vs-yellow);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Animación circular */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
