/* Variables de color estilo BUAP/Olimfis */
:root {
    --primary: #003B5C; /* Azul BUAP */
    --secondary: #FBC02D; /* Dorado/Amarillo */
    --text-dark: #333;
    --text-light: #fff;
    --bg-light: #f4f4f4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

/* Navbar */
.navbar {
    background: var(--primary);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.nav-container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.brand span {
    color: var(--secondary);
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
}

.nav-links li {
    position: relative;
    padding: 0 15px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--secondary);
}

.pa-ima {
    width: 100%;       /* Ajusta el ancho al contenedor */
    max-width: 100px;  /* Tamaño máximo */
    z-index: 9999;
    height: auto;      /* Mantiene la proporción */
    border-radius: 2px; /* Bordes redondeados */
}



/* Dropdown Menu */
.submenu {
    display: none;
    position: absolute;
    background: white;
    top: 100%;
    left: 0;
    min-width: 150px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 4px;
}

.submenu li a {
    color: var(--text-dark);
    padding: 10px;
    display: block;
}

.dropdown:hover .submenu {
    display: block;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,59,92,0.8), rgba(0,59,92,0.8)), 
                url('https://www.fcfm.buap.mx/assets/images/fcfm_bg.jpg') center/cover;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.info-badge {
    display: inline-block;
    background: var(--secondary);
    color: var(--primary);
    padding: 5px 15px;
    margin: 10px;
    border-radius: 20px;
    font-weight: bold;
}

/* Grid de Actividades */
.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}
.container2 {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}
.events-grid2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s;
    border-bottom: 4px solid var(--secondary);
}
.card2 {
    background: white;
    padding: 100px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s;
    border-bottom: 4px solid var(--secondary);
}
.card2:hover {
    transform: translateY(-10px);
}

.card:hover {
    transform: translateY(-10px);
}

.icon-main {
    font-size: 50px;
    color: var(--primary);
    margin-bottom: 15px;
}

/* Footer */
footer {
    background: #222;
    color: white;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: auto;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    border-top: 1px solid #444;
    padding-top: 20px;
    font-size: 0.8rem;
}

#menu-bar { display: none; }

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
}
