/* --- ESTILOS GENERALES (Para todas las páginas) --- */
body { 
    display: flex; 
    flex-direction: column; 
    min-height: 100vh; 
    background-color: #f8f9fa; 
    margin: 0;
}

.main-content {
    flex: 1; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* --- BARRA DE NAVEGACIÓN --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #002b4d;
    padding: 20px 50px;
    color: white;
}

.logo { font-size: 1.5em; font-weight: bold; }
.nav-links { list-style: none; display: flex; gap: 20px; }
.nav-links a { color: white; text-decoration: none; transition: color 0.3s; }
.nav-links a:hover { color: #4da6ff; }

/* --- TARJETAS (LOGIN Y REGISTRO) --- */
.login-card { 
    background: white; 
    padding: 40px; 
    border-radius: 15px; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.1); 
    width: 100%; 
    max-width: 400px; 
    text-align: center; 
}

.login-card h2 { color: #02c799; margin-bottom: 20px; }
input { width: 100%; padding: 12px; margin: 10px 0; border: 1px solid #ddd; border-radius: 8px; box-sizing: border-box;}
.btn-login { width: 100%; background: #02c799; color: white; padding: 12px; border: none; border-radius: 8px; cursor: pointer; margin-top: 10px; }

/* --- CURSOS (INDEX) --- */
.course-container { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.card { background: white; border-radius: 10px; padding: 15px; width: 280px; box-shadow: 0 4px 8px rgba(0,0,0,0.1); text-align: center; }
.card img { width: 100%; border-radius: 8px; height: 150px; object-fit: cover; }

/* --- FOOTER --- */
footer { background-color: #001a2e; color: white; padding: 40px 20px; margin-top: 50px; text-align: center; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; max-width: 1100px; margin: 0 auto; }
.footer-content h4 { margin-bottom: 15px; color: #4da6ff; }
.footer-content p, .footer-content a { color: #ccc; text-decoration: none; font-size: 0.9em; }

/* --- RESPONSIVO --- */
@media (max-width: 768px) {
    .nav-links { flex-direction: column; gap: 10px; }
    .course-container { flex-direction: column; align-items: center; }
    .card { width: 90%; }
}
/* Para que el logo no se desborde */
.logo img {
    max-height: 50px; /* Ajusta este valor si tu logo se ve muy grande o pequeño */
    width: auto;
}