/* ═══════════════════════════════════════
   tokens.css — Design tokens & base styles
   Delfos Estudios © 2026
═══════════════════════════════════════ */

:root {
    /* Colors */
    --navy: #0B1628;
    --navy-2: #132040;
    --navy-3: #1E3060;
    --gold: #C9A84C;
    --gold-lt: #E2C882;
    --gold-dk: #A07828;
    --white: #FFFFFF;
    --off: #F7F6F3;
    --off-2: #EDEAE3;
    --ink: #1A1A2E;
    --slate: #5A6880;
    --slate-lt: #8A9BB0;
    --success: #1A7A5E;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 96px;

    /* Layout */
    --max-width: 1200px;
    --radius: 6px;

    /* Transitions */
    --t: .3s cubic-bezier(.4, 0, .2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--ink);
    background: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

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

p {
    line-height: 1.75;
    color: var(--slate);
}

/* ── Typography ── */
h1,
h2,
h3,
h4 {
    font-family: 'Libre Baskerville', serif;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
}

h3 {
    font-size: 1.15rem;
    font-weight: 700;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: var(--off);
}

::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 3px;
}

/* ── Layout helpers ── */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.section {
    padding: var(--space-4xl) 0;
}

.section-dark {
    background: var(--navy);
}

.section-off {
    background: var(--off);
}

/* ── Section label ── */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 11px;
    font-weight: 600;
    color: var(--gold-dk);
    letter-spacing: .14em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.section-label::before {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--gold);
    display: inline-block;
}

/* ── Buttons ── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 14px 28px;
    border-radius: var(--radius);
    background: var(--gold);
    color: var(--navy);
    font-size: 14px;
    font-weight: 600;
    transition: var(--t);
    box-shadow: 0 4px 20px rgba(201, 168, 76, .35);
}

.btn-primary:hover {
    background: var(--gold-lt);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(201, 168, 76, .4);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 14px 24px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, .2);
    color: #ccc;
    font-size: 14px;
    font-weight: 500;
    transition: var(--t);
}

.btn-ghost:hover {
    border-color: rgba(255, 255, 255, .5);
    color: #fff;
}

/* ── Reveal animation ── */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
}

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

.reveal.d1 {
    transition-delay: .1s;
}

.reveal.d2 {
    transition-delay: .2s;
}

.reveal.d3 {
    transition-delay: .3s;
}

/* ── Toast ── */
.toast {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999;
    background: var(--navy);
    color: #fff;
    padding: 14px 22px;
    border-radius: 8px;
    font-size: 13.5px;
    border-left: 3px solid var(--gold);
    box-shadow: 0 8px 32px rgba(0, 0, 0, .3);
    display: none;
    animation: fadeUp .3s ease;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}