/* ============================================
   PAN DE VIDA CELESTIAL — Design System v2
   ============================================ */
:root {
    /* ── Palette ── */
    --bg-main: #0d1117;
    --bg-card: #111820;
    --bg-footer: #090d12;
    --border-nav: #1e2530;
    --border-card: #1e2a38;
    --text-primary: #f0e8d0;
    --text-secondary: #8892a0;
    --text-card: #d0c8a8;
    --text-muted: #606878;
    --gold: #c8a832;
    --gold-dim: #b89040;
    --green: #5a9a6a;

    /* ── Legacy aliases (inner pages) ── */
    --dark-900: #0d1117;
    --dark-800: #090d12;
    --dark-700: #111820;
    --dark-600: #1a2030;
    --dark-500: #222a38;
    --dark-400: #2a3a50;
    --dark-300: #3a4a60;
    --ivory: #f0e8d0;
    --ivory-soft: #d0c8a8;
    --ivory-muted: #8892a0;
    --gold-400: #c8a832;
    --gold-500: #b89040;
    --gold-300: #d4b848;
    --gold-600: #a07828;
    --gold-700: #806020;
    --glass-bg: #111820;
    --glass-border: #1e2a38;
    --glass-shadow: none;
    --gradient-card: #111820;
    --gradient-gold: #c8a832;
    --shadow-sm: none;
    --shadow-md: none;
    --shadow-lg: none;
    --shadow-gold: none;
    --shadow-gold-lg: none;

    /* ── Typography ── */
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    --font-heading: Georgia, 'Times New Roman', serif;

    /* ── Font scale ── */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 2rem;
    --text-4xl: 2.5rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;

    /* ── Spacing ── */
    --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
    --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem;
    --space-12: 3rem; --space-16: 4rem; --space-20: 5rem; --space-24: 6rem;

    /* ── Radii ── */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 10px;
    --radius-xl: 14px;
    --radius-full: 9999px;

    /* ── Transitions ── */
    --transition-fast: 120ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 350ms ease;

    /* ── Layout ── */
    --max-width: 1280px;
    --nav-height: 64px;
}

*,*::before,*::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-body); background: var(--bg-main); color: var(--text-primary); line-height: 1.6; overflow-x: hidden; min-height: 100vh; }
a { color: inherit; text-decoration: none; transition: color var(--transition-base); }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; background: none; border: none; outline: none; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb { background: #2a3a50; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #3a4a60; }

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

@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.animate-fade-in-up { animation: fadeInUp 0.5s ease forwards; opacity: 0; }
.animate-fade-in { animation: fadeIn 0.4s ease forwards; opacity: 0; }
.animate-delay-1 { animation-delay: .05s; } .animate-delay-2 { animation-delay: .1s; }
.animate-delay-3 { animation-delay: .15s; } .animate-delay-4 { animation-delay: .2s; }
.animate-delay-5 { animation-delay: .25s; } .animate-delay-6 { animation-delay: .3s; }

/* ── Buttons (legacy, used on inner pages) ── */
.btn { display: inline-flex; align-items: center; gap: var(--space-2); padding: 8px 18px; border-radius: var(--radius-md); font-weight: 500; font-size: 12px; transition: all var(--transition-base); }
.btn-primary { background: var(--gold); color: #1a1000; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-outline { border: 0.5px solid #2a3040; color: var(--gold-dim); background: transparent; }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-ghost { color: var(--text-secondary); }
.btn-ghost:hover { color: var(--text-primary); }

/* ── Section helpers (legacy, inner pages) ── */
.section-header { text-align: center; margin-bottom: var(--space-12); }
.section-label { display: inline-block; font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-secondary); margin-bottom: var(--space-3); }
.section-title { font-family: var(--font-heading); font-size: var(--text-3xl); font-weight: 600; color: var(--text-primary); margin-bottom: var(--space-3); line-height: 1.2; }
.section-subtitle { font-size: var(--text-sm); color: var(--text-secondary); max-width: 560px; margin: 0 auto; line-height: 1.7; }

#app-content { min-height: calc(100vh - var(--nav-height)); animation: fadeIn 0.3s ease; }

@media (max-width: 768px) { .container { padding: 0 16px; } }
