/* Fuente Infantil */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');


/* Fuente general */
body {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
   /* background-color: #f8f9fa;*/
    padding-top: 60px;
    background-image: url('img/inicio.jpg'); /* Ruta de la imagen */
    background-size: cover; /* Cubre toda la pantalla */
    background-position: left; /* Centra la imagen */
    background-repeat: no-repeat; /* No se repite */
    background-attachment: fixed; /* Hace que el fondo sea fijo */

}

.container {
    margin-top: 120px; /* Ajusta según lo necesites */
}
/* Estilos para la barra de novedades */
#novedades {
    position: fixed;
    top: 60px;
    right: 0;
    width: 280px;
    height: calc(100vh - 60px);
    background-color: #ffdd57;
    border-left: 4px solid #ff9900;
    overflow-y: auto;
    padding: 12px;
    font-family: 'Nunito', sans-serif;
    font-size: 13px;
    z-index: 1000;
}

#novedades h5 {
    text-align: center;
    color: #444;
    font-size: 1.2rem;
    font-weight: 600;
}

.novedades-lista {
    list-style: none;
    padding: 0;
}

.novedades-lista li {
    background-color: white;
    padding: 6px 8px;
    margin-bottom: 8px;
    border-radius: 6px;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, background 0.3s;
    font-size: 12px;
}

.novedades-lista li:hover {
    transform: scale(1.04);
    background: #ffe680;
}

.novedades-lista a {
    text-decoration: none;
    color: #222;
    font-weight: 500;
}

/* Ajustes responsive */
@media (max-width: 768px) {
    #novedades {
        width: 100%;
        position: relative;
        height: auto;
        border-left: none;
        border-top: 4px solid #ff9900;
    }
}

.card {
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.card-header {
    background-color: #007bff;
    color: white;
    border-radius: 10px 10px 0 0;
    padding: 15px;
    font-size: 1.25rem;
    font-weight: bold;
}

.card-body {
    padding: 20px;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.card-text {
    font-size: 1.1rem;
    color: #555;
}

.btn-outline-primary, .btn-outline-secondary, .btn-outline-danger {
    margin-bottom: 10px;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 1rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: #007bff;
    color: white;
}

.btn-outline-secondary:hover {
    background-color: #6c757d;
    color: white;
}

.btn-outline-danger:hover {
    background-color: #dc3545;
    color: white;
}

/* Estilos para las variables económicas */
.variable {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
    margin-bottom: 10px;
    transition: background-color 0.3s ease;
}

.variable:hover {
    background-color: #e9ecef;
}

.variable strong {
    color: #333;
}

/* Estilos para la barra de variables económicas 
#barra-variables {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: black;
    z-index: 1000;
    overflow: hidden;
    white-space: nowrap;
    padding: 10px 0;
}

.scroll-container {
    display: inline-block;
    white-space: nowrap;
    animation: scroll 80s linear infinite;
}

.variable-item {
    display: inline-block;
    margin-right: 40px;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    color: white;
    white-space: nowrap;
}
*/
/* Colores para las tendencias */
.variable-item.bg-success {
    background-color: #28a745; /* Verde */
}

.variable-item.bg-danger {
    background-color: #dc3545; /* Rojo */
}

.variable-item.bg-secondary {
    background-color: #6c757d; /* Gris */
}

/* Animación de scroll infinito */
@keyframes scroll {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Estilos para el panel de control */
#juego .card {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#juego .card-header {
    background-color: #343a40;
}

#juego .card-body {
    flex-grow: 1;
}

/* Estilos para el login y registro */
#login-registro .card {
    max-width: 400px;
    margin: 0 auto;
}

#login-registro .card-header {
    background-color: #007bff;
}

#login-registro .btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

#login-registro .btn-success {
    background-color: #28a745;
    border-color: #28a745;
}

#login-registro .btn-primary:hover, #login-registro .btn-success:hover {
    opacity: 0.9;
}
.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
    z-index: 10000;
}

.popup-contenido {
    text-align: center;
}

.popup h2 {
    font-size: 20px;
    color: #333;
}

.popup p {
    font-size: 16px;
    color: #555;
}

.popup button {
    margin-top: 10px;
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
}

.popup button:hover {
    background: #0056b3;
}

#menu-lateral {
    margin-top: 60px; /* Ajusta según la altura de la barra_indices.php */
}

@media (max-width: 768px) {
    #menu-lateral {
        position: absolute;
        width: 100%;
        z-index: 1000; /* Asegura que esté sobre la barra */
        background-color: white;
        box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    }
}

/* 🌟 Mejoras en el Menú Lateral */
#menu-lateral {
    width: 260px; /* Más ancho */
    background-color: #1c1c1c;
    color: white;
    position: fixed;
    top: 80px; /* Margen superior agregado */
    left: 10px;
    height: calc(100vh - 80px);
    padding: 10px;
    border-radius: 10px;
    overflow-y: auto;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

/* 🌟 Encabezado del Menú */
.menu-header {
    background-color: #343a40;
    color: #ffffff;
    font-weight: bold;
    font-size: 18px;
    padding: 12px;
    border-radius: 8px 8px 0 0;
}

/* 🌟 Estilos de los ítems del menú */
.menu-item {
    display: block;
    padding: 12px;
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-item:hover {
    background-color: #444;
    padding-left: 20px;
}

/* 🌟 Ícono en cada ítem */
.menu-item i {
    margin-right: 10px;
}

/* 🌟 Estilo para el botón de cerrar sesión */
.logout {
    background-color: #dc3545;
    color: white;
    font-weight: bold;
    text-align: center;
    border-radius: 5px;
}

.logout:hover {
    background-color: #b02a37;
}

/* 🌟 Ajuste para que el contenido principal no quede tapado */
#contenido {
    margin-left: 280px; /* Espacio para que no se solape con el menú */
    padding: 20px;
}
