/* Estilos Generales y Tipografía */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f7f9;
    color: #333;
    line-height: 1.6;
}

main {
    padding: 20px;
    max-width: 1200px;
    margin: 20px auto;
}

h2 {
    color: #004d99;
    text-align: center;
    margin-top: 30px;
    margin-bottom: 20px;
    font-size: 2em;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.info-general {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    text-align: center;
}

.info-general p {
    font-size: 1.1em;
    color: #555;
}

/* Estilos de Encabezado (Header) y Navegación */
header {
    background-color: #004d99;
    color: white;
    padding: 20px;
    text-align: center;
    border-bottom: 5px solid #ffcc00;
}

header h1 {
    margin-bottom: 5px;
    font-size: 2.5em;
}

header p {
    font-style: italic;
    font-size: 1.1em;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 40px;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0;
    padding: 0;
}

.nav-menu a {
    text-decoration: none;
    color: #ffffff;
    font-family: "Lexend", sans-serif;
    font-weight: 500;
    font-size: 16px;
    padding: 8px 0;
    position: relative;
    transition: all 0.3s ease;
}

.nav-menu a:hover {
    color: #fffb00;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: #fffb00;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Estilos para las Sedes (Tarjetas) */
.sedes-contacto {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.card {
    background-color: white;
    border: 1px solid #ddd;
    border-left: 5px solid #004d99;
    border-radius: 8px;
    padding: 20px;
    flex: 1 1 300px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.card h3 {
    color: #ffcc00;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.4em;
}

.card p {
    margin: 10px 0;
    font-size: 0.95em;
}

.card i {
    color: #004d99;
    margin-right: 10px;
}

.card a {
    color: #004d99;
    text-decoration: none;
}

.card a:hover {
    text-decoration: underline;
}

/* Redes Sociales */
.redes-sociales {
    text-align: center;
    margin-top: 40px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    font-size: 1.5em;
    text-decoration: none;
    transition: transform 0.3s, opacity 0.3s;
}

.social-icon:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

.facebook { background-color: #3b5998; }
.instagram { background-color: #e4405f; }
.twitter { background-color: #00acee; }
.linkedin { background-color: #0077b5; }

/* Pie de Página (Footer) */
footer {
    background-color: #333;
    color: #ccc;
    text-align: center;
    padding: 15px;
    margin-top: 40px;
    font-size: 0.9em;
}

/* Estilos Adicionales del Footer */
.footer {
    background-color: #1a1a2e;
    color: #e4e4e4;
    padding: 40px 20px 20px;
    font-family: Arial, sans-serif;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 20px;
}

.footer-section {
    width: 23%;
    margin-bottom: 20px;
}

.footer-section h3 {
    color: #1a6bb3;
    margin-bottom: 15px;
    font-size: 1.2em;
    border-bottom: 2px solid #ffcc00;
    padding-bottom: 5px;
}

.footer-section p {
    font-size: 0.9em;
    line-height: 1.5;
    margin-bottom: 10px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section a {
    color: #e4e4e4;
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #1a6bb3;
    text-decoration: underline;
}

.footer-section.contact i {
    margin-right: 8px;
    color: #1a6bb3;
}

.social-links a {
    display: inline-block;
    font-size: 2em;
    margin-right: 15px;
    color: #e4e4e4;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #1a6bb3;
}

.footer-bottom {
    border-top: 1px solid #333;
    text-align: center;
    padding-top: 15px;
    font-size: 0.85em;
}

/* Media Queries para diseño responsivo */
@media (max-width: 768px) {
    .sedes-contacto {
        flex-direction: column;
        gap: 15px;
    }

    .card {
        flex: 1 1 100%;
    }

    header h1 {
        font-size: 2em;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
    }

    .footer-section {
        width: 100%;
        text-align: center;
        margin-bottom: 30px;
    }

    .footer-section h3 {
        border-bottom: none;
        padding-bottom: 0;
    }

    .social-links {
        text-align: center;
    }
}