/* Paleta de colores Gamer */
:root {
    /* Colores principales - Verde bosque pixelado 
    --primary-color: #1a3e2e;          
    --primary-light: #2d5a45;          
    --primary-dark: #0d2a1d;           
    
    /* Colores de acento - Rojo coral vintage 
    --accent-color: #8b2635;           /* Rojo coral vintage
    --accent-light: #b33d4f;           /* Rojo coral claro
    --accent-dark: #5f1a24;            /* Rojo coral oscuro
    
    /* Colores secundarios - Café tostado
    --secondary-color: #6b4423;        /* Café tostado
    --secondary-light: #8d5a30;        /* Café tostado claro
    --secondary-dark: #4a2e17;         /* Café tostado oscuro
    
    /* Colores de resalte - Dorado crema
    --highlight-color: #f4d58d;        /* Dorado crema
    --highlight-light: #f8e4b3;        /* Dorado crema claro
    --highlight-dark: #e6c66a;         /* Dorado crema oscuro
    
    /* Colores neutros
    --dark-bg: #0d2a1d;                /* Verde muy oscuro para fondos
    --dark-bg-light: #1a3e2e;          /* Verde oscuro para elementos
    --light-bg: #f0f4f1;               /* Blanco verdoso muy claro
    --light-text: #FFFFFF;             /* Blanco puro
    --dark-text: #0d2a1d;              /* Verde muy oscuro para texto
    --muted-text: #7a8471;             /* Verde grisáceo para texto secundario
    
    /* Colores para medallas
    --gold-color: #f4d58d;             /* Dorado crema para primer lugar
    --silver-color: #C0C0C0;           /* Plata para segundo lugar 
    --bronze-color: #6b4423;           Café tostado para tercer lugar */

    /* Colores principales*/
    --primary-color: #6C4AE2;          /* Púrpura vibrante */
    --primary-light: #8E72FF;          /* Púrpura claro */
    --primary-dark: #4A29B8;           /* Púrpura oscuro */
    
    /* Colores de acento */
    --accent-color: #FF5E5B;           /* Rojo-coral energético */
    --accent-light: #FF8A87;           /* Rojo-coral claro */
    --accent-dark: #D13F3C;            /* Rojo-coral oscuro */
    
    /* Colores secundarios */
    --secondary-color: #00E1D9;        /* Cian vibrante */
    --secondary-light: #45FFF7;        /* Cian claro */
    --secondary-dark: #00B3AC;         /* Cian oscuro */
    
    /* Colores de resalte */
    --highlight-color: #FFBE0B;        /* Amarillo eléctrico */
    --highlight-light: #FFD65C;        /* Amarillo claro */
    --highlight-dark: #DB9D00;         /* Amarillo oscuro */
    
    /* Colores neutros */
    --dark-bg: #14141F;                /* Casi negro con tinte azul */
    --dark-bg-light: #22223A;          /* Azul muy oscuro */
    --light-bg: #F5F5F8;               /* Blanco tinte azulado */
    --light-text: #FFFFFF;             /* Blanco puro */
    --dark-text: #14141F;              /* Casi negro */
    --muted-text: #89899C;             /* Gris con tinte púrpura */
    
    /* Colores para medallas */
    --gold-color: #FFD700;             /* Oro para primer lugar */
    --silver-color: #C0C0C0;           /* Plata para segundo lugar */
    --bronze-color: #CD7F32;           /* Bronce para tercer lugar */
    
    /* Colores para gradientes */
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --gradient-dark: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-bg-light) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
    --gradient-highlight: linear-gradient(135deg, var(--highlight-color) 0%, var(--accent-color) 100%);
}

/* Estilos base para la app expo */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--light-bg);
    color: var(--dark-text);
}

header {
    background-color: var(--dark-bg);
    background-image: var(--gradient-dark);
    color: var(--light-text);
    padding: 1rem;
    width: 100%;
    box-shadow: 0 2px 10px rgba(20, 20, 31, 0.2);
    position: relative;
    z-index: 90;
}

.header-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
}

.header-content h1 {
    font-size: 1.8rem;
}

.header-content h1 a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.header-content h1 a:hover {
    color: #ddd;
}

.mobile-menu-button {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 6px;
    z-index: 100;
}

.menu-icon {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.main-nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.main-nav a:hover {
    background-color: var(--primary-dark);
}

.main-nav a.active {
    background-color: var(--primary-color);
    font-weight: bold;
}

.w-100 {
    width: 100% !important;
}

.gap-2 {
    gap: 0.5rem !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.m-0 {
    margin: 0 !important;
}
.m-2 {
    margin: 0.5rem !important;
}

.row {
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    gap: 1.5rem;
}

.col{
    display: flex;
    flex-direction: column; 
    gap: 1rem;
}


.justify-content-end {
    justify-content: flex-end !important;
}
.justify-content-between {
    justify-content: space-between !important;
}
.justify-content-center {
    justify-content: center !important;
}

/* Media queries para el header responsive */
@media (max-width: 768px) {
    .header-content {
        padding: 0.5rem 0;
    }
    
    .header-content h1 {
        font-size: 1.5rem;
    }
    
    .mobile-menu-button {
        display: flex;
    }    
    
    .main-nav {
        position: fixed;
        top: -100vh;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--dark-bg);
        background-image: var(--gradient-dark);
        transition: top 0.4s ease-in-out;
        z-index: 99;
        padding: 80px 20px 20px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    .main-nav::before {
        content: 'Zona Indie';
        font-size: 1.8rem;
        font-weight: bold;
        color: var(--primary-color);
        text-align: center;
        margin-bottom: 2rem;
        position: relative;
        padding-bottom: 1rem;
    }
    
    .main-nav::after {
        content: '';
        position: absolute;
        top: 75px;
        left: 50%;
        transform: translateX(-50%);
        width: 50px;
        height: 3px;
        background-color: var(--primary-color);
        border-radius: 2px;
    }

    .main-nav.active {
        top: 0;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 1.5rem;
        width: 100%;
        max-width: 300px;
        align-items: center;
    }

    .main-nav li {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
        transition-delay: calc(0.1s * var(--item-index, 0));
    }

    .main-nav.active li {
        opacity: 1;
        transform: translateY(0);
    }

    .main-nav a {
        display: block;
        padding: 1rem;
        width: 100%;
        text-align: center;
        border-radius: 8px;
        font-size: 1.2rem;
        transition: all 0.3s ease;
    }

    
    
    
}

/* Ajustes adicionales para tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    .main-nav ul {
        gap: 1rem;
    }
    
    .main-nav a {
        font-size: 0.95rem;
        padding: 0.4rem 0.6rem;
    }
}



.container {
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

.content {
    flex: 1;
}

footer {
    background-color: var(--dark-bg);
    background-image: var(--gradient-dark);
    color: var(--light-text);
    text-align: center;
    width: 100%;
    box-shadow: 0 -2px 10px rgba(20, 20, 31, 0.2);
}


/* ========================================
   SISTEMA DE MENSAJES
======================================== */

.messages-container {
    position: fixed;
    top: 80px; /* Ajustar según la altura del header */
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    max-width: 500px;
    width: 90%;
}

.alert {
    width: 100%;
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.4;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.4s ease-out;
}

.alert i {
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

.alert-success {
    background: linear-gradient(135deg, rgba(0, 225, 217, 0.9) 0%, rgba(108, 74, 226, 0.9) 100%);
    color: white;
    
}

.alert-error {
    background: linear-gradient(135deg, rgba(255, 94, 91, 0.9) 0%, rgba(209, 63, 60, 0.9) 100%);
    color: white;
}

.alert-warning {
    background: linear-gradient(135deg, rgba(255, 190, 11, 0.9) 0%, rgba(219, 157, 0, 0.9) 100%);
    color: var(--dark-text);
}

.alert-info {
    background: linear-gradient(135deg, rgba(108, 74, 226, 0.9) 0%, rgba(142, 114, 255, 0.9) 100%);
    color: white;
}

.btn-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 1rem;
    cursor: pointer;
    margin-left: auto;
    padding: 0.25rem;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.btn-close:hover {
    opacity: 1;
}

.btn-close i {
    margin: 0;
    font-size: 0.9rem;
}

.alert-dismissible {
    position: relative;
}

.fade {
    transition: opacity 0.3s ease;
}

.show {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .messages-container {
        top: 70px;
        width: 95%;
    }
    
    .alert {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .alert i {
        margin-right: 0.5rem;
        font-size: 1rem;
    }
}

/* ========================================
   ANIMACIONES
======================================== */

.alert.auto-close {
    animation: fadeIn 0.4s ease-out, fadeOut 0.3s ease-in 4.7s forwards;
}

/* Definición de keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translate(-50%, -20px);
    }
}