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

:root {
    /* Color Palette */
    --color-primary: #667eea;
    --color-primary-dark: #4752c4;
    --color-primary-light: #8b9dff;
    --color-secondary: #764ba2;
    --color-accent: #5865F2;
    
    /* Background Colors */
    --bg-primary: #0a0a0a;
    --bg-secondary: rgba(255, 255, 255, 0.03);
    --bg-hover: rgba(255, 255, 255, 0.05);
    --bg-card: rgba(255, 255, 255, 0.08);
    --bg-promo: rgba(102, 126, 234, 0.1);
    
    /* Text Colors */
    --text-primary: #e0e0e0;
    --text-secondary: #b0b0b0;
    --text-muted: #888;
    --text-accent: #667eea;
    --text-white: #fff;
    
    /* Border Colors */
    --border-primary: rgba(255, 255, 255, 0.08);
    --border-secondary: rgba(255, 255, 255, 0.1);
    --border-accent: rgba(102, 126, 234, 0.3);
    --border-dashed: rgba(102, 126, 234, 0.5);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 50px;
    
    /* Shadows */
    --shadow-sm: 0 5px 20px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 40px rgba(0, 0, 0, 0.5);
    --shadow-primary: 0 10px 40px rgba(102, 126, 234, 0.3);
    --shadow-discord: 0 5px 20px rgba(88, 101, 242, 0.4);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-xs: 0.85em;
    --font-size-sm: 0.95em;
    --font-size-base: 1.05em;
    --font-size-lg: 1.1em;
    --font-size-xl: 1.2em;
    --font-size-2xl: 1.3em;
    --font-size-3xl: 1.8em;
    --font-size-4xl: 2.2em;
    --font-size-5xl: 2.5em;
    --font-size-6xl: 3em;
    
    /* Layout */
    --container-max-width: 900px;
    --container-padding: 80px 20px;
}

/* ===== BASE STYLES ===== */
body {
    font-family: var(--font-family);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: var(--font-size-base);
}

/* ===== LAYOUT COMPONENTS ===== */
.main-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: var(--container-padding);
}

/* ===== HEADER COMPONENT ===== */
.header {
    text-align: center;
    margin-bottom: 60px;
}

.header__logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    box-shadow: var(--shadow-primary);
}

.header__title {
    font-size: var(--font-size-6xl);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header__subtitle {
    font-size: var(--font-size-xl);
    color: var(--text-muted);
    font-weight: 400;
}

/* ===== CONTENT COMPONENTS ===== */
.content {
    margin-bottom: var(--spacing-xl);
}

.content__section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: 50px;
    margin-bottom: 30px;
    transition: all var(--transition-normal);
}

.content__section:hover {
    background: var(--bg-hover);
    border-color: var(--border-accent);
}

.content__title {
    font-size: var(--font-size-3xl);
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--text-white);
}

.content__text {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    margin-bottom: 18px;
}

.highlight {
    color: var(--text-accent);
    font-weight: 600;
}

/* ===== WINNER SECTION ===== */
.winner-section {
    background: linear-gradient(135deg, var(--bg-promo) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 2px solid var(--border-accent);
    border-radius: var(--radius-lg);
    padding: 60px 50px;
    text-align: center;
    margin: 40px 0;
}

.winner-section__label {
    font-size: var(--font-size-xs);
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.winner-section__name {
    font-size: var(--font-size-5xl);
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 20px;
}

.winner-section__prize {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    padding: 12px 30px;
    border-radius: var(--radius-full);
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-white);
}

/* ===== SCREENSHOT COMPONENT ===== */
.screenshot-container {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--border-secondary);
}

.screenshot-container__image {
    width: 100%;
    max-width: 700px;
    border-radius: var(--radius-md);
    border: 2px solid var(--border-accent);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal);
}

.screenshot-container__image:hover {
    transform: scale(1.02);
}

.screenshot-container__caption {
    margin-top: 15px;
    color: var(--text-muted);
    font-size: var(--font-size-sm);
    font-style: italic;
}

/* ===== PROMO SECTION ===== */
.promo-section {
    background: var(--bg-hover);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-lg);
    padding: 50px;
    text-align: center;
    margin: 40px 0;
}

.promo-section__label {
    font-size: var(--font-size-xs);
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.promo-section__description {
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.promo-section__code {
    display: inline-block;
    background: var(--bg-card);
    border: 2px dashed var(--border-dashed);
    padding: 25px 50px;
    border-radius: var(--radius-md);
    font-size: var(--font-size-4xl);
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--color-primary);
    margin: 20px 0;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-family: 'Courier New', monospace;
    border: none;
}

.promo-section__code:hover {
    background: rgba(102, 126, 234, 0.15);
    border-color: var(--color-primary);
    transform: scale(1.05);
}

.promo-section__code:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.promo-section__discount {
    font-size: var(--font-size-2xl);
    color: var(--text-secondary);
    margin-top: 15px;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    margin: 40px 0;
}

.contact-section__title {
    font-size: var(--font-size-3xl);
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-white);
}

.contact-section__description {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.contact-section__discord-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--color-accent);
    padding: 15px 35px;
    border-radius: 10px;
    font-size: var(--font-size-2xl);
    font-weight: 600;
    color: var(--text-white);
    text-decoration: none;
    margin-top: 20px;
    transition: all var(--transition-normal);
}

.contact-section__discord-tag:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-discord);
}

.contact-section__icon {
    font-size: 1.2em;
}

.contact-section__username {
    font-family: 'Courier New', monospace;
}

/* ===== FOOTER COMPONENT ===== */
.footer {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: var(--font-size-sm);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 60px;
}

.footer__text {
    margin-bottom: var(--spacing-sm);
}

.footer__cta {
    margin-top: 30px;
}

.footer__link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-fast);
}

.footer__link:hover {
    color: var(--color-primary-light);
    text-decoration: underline;
}

/* ===== NOTIFICATION COMPONENT ===== */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--color-primary);
    color: var(--text-white);
    padding: 15px 25px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    transform: translateX(100%);
    transition: all var(--transition-normal);
    opacity: 0;
    z-index: 1000;
    /* Notificaciones visibles solo cuando se muestran */
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    :root {
        --container-padding: 40px 20px;
    }

    .header__title {
        font-size: var(--font-size-4xl);
    }

    .content__section,
    .winner-section,
    .promo-section {
        padding: 30px 25px;
    }

    .winner-section__name {
        font-size: var(--font-size-4xl);
    }

    .promo-section__code {
        font-size: var(--font-size-3xl);
        padding: 20px 30px;
    }

    .notification {
        top: 10px;
        right: 10px;
        left: 10px;
        transform: translateY(-100%);
    }

    .notification.show {
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .header__title {
        font-size: var(--font-size-3xl);
    }

    .content__section,
    .winner-section,
    .promo-section {
        padding: 25px 20px;
    }

    .winner-section__name {
        font-size: var(--font-size-3xl);
    }

    .promo-section__code {
        font-size: var(--font-size-2xl);
        padding: 15px 25px;
        letter-spacing: 2px;
    }
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (prefers-color-scheme: light) {
    :root {
        --bg-primary: #f8f9fa;
        --text-primary: #212529;
        --text-secondary: #495057;
        --bg-secondary: rgba(0, 0, 0, 0.05);
        --bg-hover: rgba(0, 0, 0, 0.08);
        --border-primary: rgba(0, 0, 0, 0.1);
        --border-secondary: rgba(0, 0, 0, 0.15);
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .notification {
        display: none;
    }
    
    .promo-section__code {
        background: none;
        border: 2px solid #000;
    }
    
    .contact-section__discord-tag {
        background: none;
        border: 2px solid #000;
        color: #000;
    }
}
