/* style-index - Mobile First Approach */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1575BA;
    --primary-dark: #0F4F73;
    --secondary-color: #81dd36;
    --accent-color: #F1C40F;
    --text-light: #FFFFFF;
    --text-dark: #333333;
    --bg-light: #F7F7F7;
    --bg-lighter: #FFFFFF;
    --border-light: #E0E0E0;
    --border-primary: rgba(21, 117, 186, 0.3);
    --header-height: 60px; 
    --footer-height: 60px; 
}

body {
    font-family: Arial, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
}

.container {
    width: 95%;
    margin: 0 auto;
    padding: 0 10px;
}

.separador {
    height: 20px;
    width: 100%;
}

/* Estructura principal */
.estructura {
    display: flex;
    flex-direction: column;
    width: 95%;
    margin: 0 auto;
    position: relative;
}

.main-content {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Estilos seccion botones */
.botones {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

.botones a {
    width: 100%;
    padding: 12px 20px;
    background-color: rgb(54, 128, 180);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 15px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.botones a:hover {
    background-color:  rgb(37, 89, 126);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.botones a.selected {
    background-color: #81dd36;
    color: rgb(29, 106, 161);
    font-weight: bold;
    border: none;
}

/* Enlaces section */
.enlaces {
    width: 100%;
    padding: 25px;
    background-color: var(--bg-lighter);
    border: 2px solid var(--border-primary);
    border-radius: 8px;
    box-sizing: border-box;
    margin: 20px auto;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.enlaces:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.enlaces h2 {
    margin-top: 0;
    color: var(--primary-color);
    position: absolute;
    top: -30px;
    left: 20px;
    font-size: 1.2rem;
    background-color: var(--bg-light);
    padding: 5px 15px;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100% - 40px);
}

.enlaces-container .column {
    list-style: none;
    padding: 0;
}
.enlaces-container a {
    text-decoration: none;
}

/* Lista destacada */
.lista-destacada {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
    padding: 0;
    list-style: none;
}

.lista-destacada li {
    background-color: var(--bg-lighter);
    width: 100%;
    max-width: 280px;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    margin: 0 auto;
    border: 1px solid var(--border-light);
}

.lista-destacada li:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.lista-destacada img {
    max-width: 70%;
    height: auto;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.lista-destacada li:hover img {
    transform: scale(1.05);
}

.info1 {
    margin-top: 15px;
    text-align: center;
}

.info1 h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 18px;
    color: var(--primary-dark);
}

.info1 h4 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.info1 button {
    background-color: var(--primary-color);
    border: none;
    padding: 10px 20px;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 5px;
    margin-top: 12px;
    width: 100%;
    font-weight: bold;
}

.info1 button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.info1 a {
    text-decoration: none;
    color: var(--text-light);
    display: block;
    width: 100%;
}

.info1 p {
    margin: 10px 0;
    color: #555;
    font-size: 15px;
    line-height: 1.5;
}

/* Add styles for players container and items */
.players-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    width: 100%;
    margin-top: 10px;
}

.player-item {
    background-color: var(--bg-light);
    padding: 6px 8px;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
    border-left: 3px solid var(--primary-color);
    display: flex;
    flex-direction: column;
}

.player-name {
    font-weight: bold;
    margin-bottom: 3px;
}

.player-points {
    font-size: 12px;
    color: var(--primary-dark);
}

.user-name {
    font-size: 12px;
    color: var(--text-dark);
    font-style: italic;
}

/* style-index - Mobile First Approach */
.seccion1 {
    width: 100%;
    height: 250px; /* Altura fija para el carrusel */
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    z-index: 1; /* Asegura que esté por debajo del sticky */
}

.bg-image {
    width: 100%;
    height: 100%;
    position: absolute;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-image 0.5s ease-in-out;
}

.enlaces-info {
    margin-top: 20px;
    border-radius: 10px;
    
    background-color: var(--bg-lighter);
    transition: all 0.3s ease;
}

.enlaces-info:hover {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
}

.columns-title {
    width: 100%;
    margin-bottom: 25px;
    color: var(--text-light);
    background-color: var(--primary-color);
    text-align: center;
    padding: 12px 0;
    border-radius: 6px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    border: none;
    font-size: 16px;
    transition: all 0.3s ease;
    animation: buttonColorChange 1s infinite alternate ease-in-out;
}

.columns-title h3 {
    font-size: 1.3rem;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.columns-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 10px;
}

.column-enlace {
    display: flex;
    flex-direction: column;
    gap: 2px; 
    align-items: center; 
    width: 100%; 
}

.column-enlace a {
    display: block;
    padding: 5px 10px; 
    background-color: var(--bg-light);
    border-radius: 6px;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
    width: 90%; 
    max-width: 100%; 
    text-align: center; 
}

.con_enlace {
    border-left: 4px solid var(--accent-color);
}

.sin_enlace {
    border-left: 4px solid var(--primary-color);
}

.column-enlace a:hover {
    background-color: var(--bg-lighter);
    transform: translateX(5px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.column-enlace a::after {
    position: absolute;
    right: 15px;
    opacity: 0;
    transition: all 0.3s ease;
}

.column-enlace a:hover::after {
    opacity: 1;
    right: 10px;
}

/* Estilos para la sección de Gamificación */
.Gamificacion {
    width: 90%;
    max-width: 800px;
    padding: 15px;
    background-color: var(--bg-lighter);
    border: 2px solid var(--border-primary);
    border-radius: 8px;
    box-sizing: border-box;
    margin: 30px auto;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.Gamificacion:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.Gamificacion img {
    max-width: 70%;
    height: auto;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.Gamificacion img:hover {
    transform: scale(1.05);
}

.Gamificacion h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.Gamificacion h4 {
    margin-top: 0;
    margin-bottom: 8px;
}

.Gamificacion .players-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    width: 100%;
    margin-top: 10px;
    margin-bottom: 0;
}

/* Estilo para el contenedor botones-enlaces */
.botones-enlaces {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 20px;
    margin-top: 30px;
}

.botones-enlaces .botones {
    margin-top: 0;
}

.botones-enlaces .enlaces {
    margin-top: 20px;
    margin-bottom: 0;
}

.ir_a_avisos {
    margin-top: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.ir_a_avisos button {
    background-color: var(--primary-color);
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    animation: buttonColorChange 1s infinite alternate ease-in-out;
}

.ir_a_avisos a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: bold;
}

.ir_a_avisos button:hover {
    animation-play-state: paused;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

@keyframes buttonColorChange {
    0% {
        background-color: #F1C40F;  
    }
    100% {
        background-color: #81dd36;  
    }
}

/* Media Queries */
@media (min-width: 576px) {
    .container {
        width: 90%;
    }
    
    .botones {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .botones a {
        width: auto;
        min-width: 150px;
    }
    
    .lista-destacada {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
    
    .lista-destacada li {
        width: calc(50% - 20px);
        max-width: 250px;
        margin: 0;
    }
    
    .enlaces {
        width: 80%;
    }

    /* Ajustes para Gamificación en tablets */
    .Gamificacion .players-container {
        grid-template-columns: repeat(3, 1fr);
    }

}

@media (min-width: 768px) {
    .seccion1 {
        height: 400px;
    }

    .container {
        width: 85%;
    }
    
    .estructura {
        width: 90%;
    }
    
    .lista-destacada li {
        width: calc(33.33% - 20px);
    }
    
    .columns-container {
        flex-direction: row;
        flex-wrap: wrap;
    }

    /* Ajustes para Gamificación en tablets grandes */
    .Gamificacion {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 20px;
    }
    
    .Gamificacion img {
        max-width: 40%;
        margin-bottom: 0;
        margin-right: 20px;
    }
    
    .Gamificacion .info1 {
        width: 55%;
    }
    
    .Gamificacion .players-container {
        grid-template-columns: repeat(3, 1fr);
    }

}

@media (min-width: 992px) {
    .container {
        width: 80%;
        max-width: 1200px;
    }
    
    .estructura {
        width: 90%;
        max-width: 1200px;
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: 30px;
    }
    
    .main-content {
        width: 70%;
    }
    
    .enlaces-info {
        width: 60%;
        max-width: 400px;
    }
    
    .lista-destacada li {
        width: calc(50% - 30px);
    }
    
    .enlaces-info {
        padding: 10px;
    }
    
    .columns-container {
        padding: 15px;
    }

    /* Ajustamos Gamificación para que ocupe todo el ancho */
    .Gamificacion {
        width: 100%;
        max-width: 100%;
        margin: 30px 0;
    }

    .Gamificacion .players-container {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Keep botones-enlaces in column layout even in desktop */
    .botones-enlaces {
        flex-direction: column;
    }

    .ir_a_avisos {
        display: none;
        visibility: hidden;
    }
}

@media (min-width: 1200px) {
    .estructura {
        width: 85%;
        max-width: 1400px;
    }
    
    .main-content {
        width: 75%;
    }
    
    .enlaces-info {
        width: 60%;
    }
    
    .lista-destacada li {
        width: calc(33.33% - 30px);
    }
}