/* Estilos Generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #fff;
    color: #333;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.logo {
    text-decoration: none;
    color: #333;
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.logo .material-icons {
    font-size: 1.8rem;
    margin-right: 5px;
}

.logo .highlight {
    color: #0051FF;
}

.menu-toggle {
    font-size: 1.8rem;
    background: none;
    border: none;
    cursor: pointer;
    display: none;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

.nav-links .register-btn {
    color: #fff;
    background-color: black;
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
}

.nav-links .register-btn:hover {
    background-color: #333;
}

/* Sidebar para móviles */
.sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 250px;
    height: 100%;
    background-color: white;
    color: black;
    padding: 20px;
    transition: left 0.3s ease;
    z-index: 1001;
}

.sidebar.active {
    left: 0;
    display: block;
}

.sidebar .menu-close {
    font-size: 1.8rem;
    background: none;
    border: none;
    color: black;
    cursor: pointer;
    margin-bottom: 20px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    margin-bottom: 15px;
}

.sidebar ul li a {
    text-decoration: none;
    color: black;
    font-size: 1.2rem;
    display: block;
}

.sidebar ul li a:hover {
    text-decoration: underline;
}

/* Estilos de Contenido de Cursos */

h1 {
    font-size: 24px;
    margin: 100px auto 20px; /* Ajuste para el header fijo */
    text-align: center;
}

.container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    max-width: 800px;
    margin: 15px auto 50px; 
}

/* Estilo de las tarjetas */
.card {
    width: 150px;
    background-color: #f1f1f1;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Efecto de flotación al pasar el cursor */
.card:hover {
    transform: translateY(-10px); 
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); 
}

/* Encabezado de las tarjetas */
.card-header {
    padding: 10px 0;
    color: #fff;
    font-weight: bold;
    font-size: 16px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

/* Contenido de las tarjetas */
.card-content {
    padding: 20px;
}

.card-content img {
    width: 80px;
    height: auto;
}

/* Colores específicos de cada universidad */
.ipn { background-color: #800000; }
.unam { background-color: #0033cc; }
.uam { background-color: #333333; }
.buap { background-color: #00bfff; }
.udeg { background-color: #ff3333; }
.uanl { background-color: #ffcc00; }
.uv { background-color: green; }
.exani { background-color: #01AAB1; }


/* Footer */
.footer-section {
    background-color: black;
    color: #fff;
    padding: 20px;
    font-family: Arial, sans-serif;
    text-align: center;
    margin-top: 50px; 
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
}

.footer-column {
    flex: 1;
    min-width: 150px;
    margin: 10px;
    text-align: left;
}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column li a {
    text-decoration: none; 
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: #ddd;
    display: block;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.social-icon {
    width: 24px;
    height: 24px;
    cursor: pointer;
    transition: filter 0.3s;
}

.social-icon:hover {
    filter: brightness(1.5) saturate(2);
}

.footer-copyright {
    font-size: 0.8rem;
    color: #aaa;
    margin-top: 10px;
}

/* Media Queries (Adaptabilidad) */

/* Escritorio */
@media (min-width: 769px) {
    .menu-toggle {
        display: none; 
    }
    .sidebar {
        display: none; 
    }
    .footer-social {
        justify-content: flex-start; 
    }
}

/* Móvil */
@media (max-width: 768px) {
    .navbar {
        padding: 20px 20px; 
    }
    .menu-toggle {
        display: block; 
    }
    .nav-links {
        display: none; 
    }
    .footer-container {
        flex-direction: column; 
        align-items: center;
    }
    .footer-column {
        min-width: 90%;
        text-align: center;
    }
    .footer-social {
        justify-content: center; 
    }
    h1 {
        margin: 100px auto 20px; 
    }
    .container {
        padding: 0 10px; 
    }
    .card {
        width: 45%; 
    }
}
