/* ============================================
   BASE - Variables, Reset, Tipografia
   Kedwyn la Bruja
   ============================================ */

/* === Variables CSS === */
:root {
    --color-bg-deep: #0a0612;
    --color-bg: #110b1f;
    --color-bg-card: #1a1230;
    --color-bg-card-hover: #221845;
    --color-primary: #b388ff;
    --color-primary-dark: #7c4dff;
    --color-primary-light: #d4b8ff;
    --color-accent: #ffd54f;
    --color-accent-dark: #c9a825;
    --color-secondary: #ff80ab;
    --color-text: #e8e0f0;
    --color-text-muted: #9e8fbf;
    --color-text-bright: #ffffff;
    --color-border: rgba(179, 136, 255, 0.15);
    --color-glow: rgba(179, 136, 255, 0.4);
    --color-glow-accent: rgba(255, 213, 79, 0.3);

    --font-display: 'Cinzel Decorative', serif;
    --font-heading: 'Cinzel', serif;
    --font-body: 'Raleway', sans-serif;

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px rgba(179, 136, 255, 0.2);
    --shadow-glow-strong: 0 0 60px rgba(179, 136, 255, 0.35);

    --transition-base: 0.3s ease;
    --transition-slow: 0.6s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-deep);
    color: var(--color-text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* === Tipografia Base === */
a {
    color: var(--color-primary-light);
    text-decoration: none;
    transition: color var(--transition-base);
}

a:hover {
    color: var(--color-accent);
}

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

strong {
    color: var(--color-primary-light);
}

/* === Seleccion === */
::selection {
    background: rgba(124, 77, 255, 0.4);
    color: var(--color-text-bright);
}

/* === Accesibilidad === */
:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 4px;
}

/* === Canvas de Particulas === */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* === Contenedor === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* === Section Headers === */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 64px;
}

.section-header__tag {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: var(--color-accent);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 16px;
    position: relative;
}

.section-header__tag::before,
.section-header__tag::after {
    content: '\2726';
    margin: 0 12px;
    opacity: 0.5;
}

.section-header__title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--color-text-bright);
    margin-bottom: 20px;
    line-height: 1.3;
}

.section-header__description {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    line-height: 1.8;
}