/* ============================================
   BASE - Variables, reset y estilos globales
   ============================================ */

:root {
    --gold: #d4af37;
    --gold-dark: #b8962e;
    --gold-light: #f0d060;
    --gold-rgb: 212, 175, 55;

    --bg-dark: #0a0a0a;
    --bg-card: #0d0d0d;
    --bg-section: #0f0f0f;
    --bg-elevated: #151515;
    --bg-input: #1a1a1a;

    --text-light: #e8e0d0;
    --text-muted: #8a7e6a;
    --text-secondary: #b0a890;
    --text-dark: #0a0a0a;

    --border-gold: rgba(212, 175, 55, 0.15);
    --border-gold-strong: rgba(212, 175, 55, 0.3);
    --border-gold-light: rgba(212, 175, 55, 0.08);

    --shadow-gold: rgba(212, 175, 55, 0.25);
    --shadow-dark: rgba(0, 0, 0, 0.6);
    --shadow-heavy: rgba(0, 0, 0, 0.8);
    --shadow-card: 0 4px 30px rgba(0, 0, 0, 0.4);

    --gradient-gold: linear-gradient(135deg, var(--gold), var(--gold-dark));
    --gradient-gold-light: linear-gradient(135deg, var(--gold), var(--gold-light), var(--gold));
    --gradient-dark: linear-gradient(135deg, #0a0a0a, #1a0a0a);
    --gradient-card: linear-gradient(145deg, #151515, var(--bg-card));

    --section-padding: 60px 16px;
    --card-padding: 28px 20px;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 50px;

    /* Alias para compatibilidad */
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --border-radius-full: 50px;

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-size-xs: 10px;
    --font-size-sm: 12px;
    --font-size-md: 14px;
    --font-size-lg: 16px;
    --font-size-xl: 20px;

    --transition-fast: all 0.2s ease;
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-bounce: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-slow: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);

    --text-shadow-gold: 0 2px 8px rgba(0, 0, 0, 0.5);
}

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

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-family);
    background: var(--bg-dark);
    color: var(--text-light);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: rgba(212, 175, 55, 0.3);
    color: var(--gold);
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

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

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

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

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

button {
    font-family: var(--font-family);
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

/* ============================================
   CONTENEDOR
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* ============================================
   BOTONES GLOBALES
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: var(--radius-full);
    font-size: 15px;
    font-weight: 600;
    transition: var(--transition-smooth);
    white-space: nowrap;
    text-align: center;
    cursor: pointer;
    border: none;
    font-family: var(--font-family);
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: var(--gradient-gold);
    color: var(--bg-dark);
    box-shadow: 0 4px 25px var(--shadow-gold);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 40px var(--shadow-gold);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    color: var(--gold);
    border: 1px solid var(--border-gold);
}

.btn-secondary:hover {
    background: rgba(212, 175, 55, 0.08);
    border-color: var(--border-gold-strong);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 13px;
}

/* ============================================
   PAGE HEADER (sub-páginas)
   ============================================ */
.page-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-gold);
    padding: 14px 20px;
}

.page-header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.page-header .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 16px;
    color: var(--gold);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.page-header .logo-icon {
    width: 34px;
    height: 34px;
    background: var(--gradient-gold);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-dark);
    font-size: 16px;
    flex-shrink: 0;
}

.page-header .back-link {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-gold);
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-header .back-link:hover {
    color: var(--gold);
    border-color: var(--border-gold-strong);
    background: rgba(212, 175, 55, 0.05);
}

/* ============================================
   TÍTULOS DE SECCIÓN
   ============================================ */
.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: clamp(24px, 4vw, 36px);
    color: var(--gold);
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 300;
}

/* ============================================
   UTILIDADES
   ============================================ */
.gold-text {
    color: var(--gold);
}

.text-center {
    text-align: center;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

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

    .page-header {
        padding: 10px 16px;
    }

    .page-header .logo {
        font-size: 13px;
    }

    .page-header .logo-icon {
        width: 28px;
        height: 28px;
        font-size: 13px;
    }

    .page-header .back-link {
        padding: 6px 12px;
        font-size: 12px;
    }

    .section-title {
        margin-bottom: 28px;
    }

    .section-title h2 {
        font-size: 22px;
    }

    .section-title p {
        font-size: 13px;
    }
}