:root {
    --azul: #003b70;
    --oro: #c79216;
    --blanco: #ffffff;
    --gris-claro: #f8f9fa;
    --texto: #333;
}

body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    color: var(--texto);
    line-height: 1.6;
}

.container { max-width: 1200px; margin: auto; padding: 0 20px; }
.section { padding: 50px 0; text-align: center; }


.navbar {
    background: var(--azul);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}
.logo { height: 50px; }
.nav-menu { list-style: none; display: flex; gap: 20px; margin: 0; }
.nav-menu a { color: white; text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.btn-cert { border: 1px solid var(--oro); padding: 5px 15px; border-radius: 20px; color: var(--oro) !important; }


.hero {
    height: 70vh;
    background: url('https://images.unsplash.com/photo-1517245386807-bb43f82c33c4?auto=format&fit=crop&w=1200') center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}
.hero-overlay {
    background: rgba(0, 59, 112, 0.7);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.hero h1 { font-size: 3rem; margin-bottom: 10px; letter-spacing: 2px; }

/* Búsqueda */
.search-box {
    margin-top: 30px;
    background: #acacac;
    padding: 5px;
    border-radius: 30px;
    display: flex;
    width: 80%;
    min-width: 300px;
}
.search-box input {
    border: none;
    padding: 15px 25px;
    flex: 1;
    border-radius: 30px;
    outline: none;
}
.search-box button {
    background: var(--azul);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
}

/* Grid de Oferta */
.main-title { font-size: 2.2rem; color: var(--azul); margin-bottom: 10px; }
.subtitle { margin-bottom: 50px; color: #666; }

.grid-oferta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.card-oferta {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: 0.3s;
    border-top: 5px solid transparent;
}
.card-oferta:hover {
    transform: translateY(-10px);
    border-top: 5px solid var(--oro);
}
.card-oferta .icon { font-size: 50px; color: var(--azul); margin-bottom: 20px; }
.card-oferta h3 { margin-bottom: 15px; color: var(--azul); }
.link-more { color: var(--oro); text-decoration: none; font-weight: bold; }


#footer-unam-final {
    background-color: #004179 !important;
    color: white !important;
    width: 100% !important;
    display: block !important;
    text-align: left !important; 
    margin: 0 !important;
    padding-top: 40px !important;
    font-family: 'Open Sans', sans-serif !important;
}

.main-footer {
    background-color: #004a87; 
    color: white;
    width: 100%;
    padding-top: 30px;
}

.footer-container {
    display: flex; 
    justify-content: space-between; 
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 30px 20px;
}


.footer-block {
    flex: 1;
    padding: 0 15px;
}

.f-logo { width: 250px; margin-bottom: 15px; }

.f-links a {
    display: block;
    color: white;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.f-title { margin: 0 0 10px 0; font-size: 1rem; }
.f-text { font-size: 0.85rem; line-height: 1.4; }


.f-align-right { text-align: right; }

.f-socials { margin-bottom: 15px; }
.f-socials a {
    background: white;
    color: #004a87;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-left: 8px;
    text-decoration: none;
}

.f-escudo { height: 80px; }


.footer-legal {
    background-color: #003666; 
    padding: 15px 40px;
    font-size: 0.7rem;
    text-align: center;
    line-height: 1.4;
}

.footer-wrapper {
    display: flex !important;
    flex-direction: row !important; 
    justify-content: space-between !important;
    align-items: flex-start !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px 40px 20px !important;
}


.footer-box { flex: 1 !important; text-align: left !important; }
.box-lg { flex: 1.5 !important; } 
.box-sm { text-align: right !important; } 


.img-footer-logo { width: 200px !important; margin-bottom: 20px !important; display: block !important; }

.links-footer-avisos a {
    display: block !important;
    color: white !important;
    text-decoration: none !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    margin-bottom: 8px !important;
}

.intro-flex {
    display: flex;
    gap: 40px;
    align-items: center;
    padding: 40px 0;
    flex-wrap: wrap; 
}

.video-wrapper {
    flex: 1;
    min-width: 300px;
}


.video-responsive {
    position: relative;
    border-radius: 12px; 
    overflow: hidden;
   width:700px;
    background: #000;
}

.video-responsive video {
    width: 100%;
    display: block;
}

.video-description {
    flex: 1;
    min-width: 300px;
}

.servicios-mini-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.servicios-mini-list li {
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: #444;
    display: flex;
    align-items: center;
    gap: 10px;
}

.servicios-mini-list li i {
    color: var(--oro); 
}

/* Ajuste para móviles */
@media (max-width: 768px) {
    .intro-flex {
        flex-direction: column;
        text-align: center;
    }
    
    .servicios-mini-list li {
        justify-content: center;
    }
}
.title-footer { font-size: 16px !important; margin: 0 0 15px 0 !important; font-weight: bold !important; }
.text-footer { font-size: 14px !important; line-height: 1.4 !important; }


.icons-social-footer { margin-bottom: 20px !important; }
.icons-social-footer a {
    background: white !important;
    color: #004a87 !important;
    width: 35px !important;
    height: 35px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    margin-left: 10px !important;
}

.img-escudo-475 { height: 65px !important; margin-right: 4px; }


.cintillo-legal {
    background-color: #00589c !important;
    padding: 20px !important;
    border-top: 1px solid rgba(255,255,255,0.1) !important;
}
.container-legal p {
    max-width: 1100px !important;
    margin: 0 auto !important;
    font-size: 12px !important;
    text-align: center !important;
    line-height: 1.5 !important;
}

.img-responsive {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.banner-container {
    width: 100%;
    padding: 10px 0;
}
.header-banner {
    background-color: #ffffff; 
    width: 100%; 
    border-bottom: 10px solid #004a87; 
    padding: 20px 0; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.header-container {
    max-width: 1200px; 
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}


.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
}

.menu-toggle {
    display: none; 
    background: none;
    border: none;
    color: var(--azul-oscuro);
    font-size: 1.5rem;
    cursor: pointer;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px;
    padding: 20px 0;
}


.servicio-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.servicio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}


.servicio-image {
    width: 100%;
    height: 200px; 
    overflow: hidden;
}

.servicio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}


.servicio-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
	align-items: center;
}

.servicio-content h3 {
    margin: 0 0 15px 0;
    font-size: 1.25rem;
    color: #333;
    font-weight: bold;
}


.ver-mas {
    text-decoration: none;
    color: #666;
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}

.ver-mas:hover {
    color: #c79216; 
}

.main-title { 
    font-size: 2.2rem; 
    color: var(--azul-oscuro); 
    margin-bottom: 10px; 
}

.subtitle { 
    margin-bottom: 50px; 
    color: #666; 
}

.grid-oferta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card-oferta {
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
        border-top: 5px solid transparent; 
    border-bottom: 0px solid transparent; 
}
.card-oferta1 {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s ease; 
    
  
    border-top: 5px solid transparent; 
    border-bottom: 0px solid transparent; 
}

.card-oferta:hover {
    transform: translateY(-8px); 
    
   
    border-top: 5px solid var(--oro); 
    
   
    border-bottom: 4px solid var(--azul-oscuro); 
}

.card-oferta,
.link-more {
    cursor: pointer;
}

.card-oferta .icon { 
    font-size: 50px; 
    color: var(--azul-oscuro); 
    margin-bottom: 20px; 
}
.card-oferta1 .icon { 
    font-size: 50px; 
    color: var(--azul-oscuro); 
    margin-bottom: 20px; 
}

.servicio-card h3 { 
    margin-bottom: 15px; 
    color: var(--azul-oscuro); 
    font-weight: bold;
}


.link-more { 
    color: var(--oro); 
    text-decoration: none; 
    font-weight: bold; 
    display: inline-block;
}

.link-more:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block; 
    }

    .nav-menu {
        display: none; 
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 70px; 
        left: 0;
        background-color: white;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        z-index: 1000;
    }

    .nav-menu.active {
        display: flex; 
    }

    .nav-menu li {
        text-align: center;
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    .nav-menu li a {
        padding: 15px;
        display: block;
        color: white;
    }
	
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.menu-icon {
    display: none; 
    font-size: 24px;
    color: white;
    cursor: pointer;
}


@media (max-width: 992px) {
    .menu-icon {
        display: block; 
    }

    .nav-menu {
        position: absolute;
        top: 100%; 
        left: 0;
        width: 100%;
        background-color: #003b70; 
        flex-direction: column; 
        max-height: 0; 
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
        z-index: 1000;
    }

    
    .nav-menu.active {
        max-height: 500px; 
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
		color:white;
    }

    .nav-menu li a {
        padding: 15px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        display: block;
    }
	/* --- Estilos Base (Escritorio) --- */
#footer-unam-final {
    background-color: #004a87 !important;
    color: white !important;
    width: 100% !important;
    padding-top: 40px !important;
}

.footer-wrapper {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px 40px 20px !important;
}

.footer-box { flex: 1 !important; }
.box-lg { flex: 1.5 !important; }
.box-sm { text-align: right !important; }


@media (max-width: 768px) {
    .footer-wrapper {
        flex-direction: column !important; 
        text-align: center !important;    
        padding-bottom: 20px !important;
    }

    .footer-box {
        width: 100% !important;
        margin-bottom: 30px !important; 
    }

    .box-sm {
        text-align: center !important; 
    }

    .img-footer-logo {
        margin: 0 auto 20px auto !important; 
    }

    .icons-social-footer {
        justify-content: center !important;
        display: flex !important;
        gap: 10px !important;
    }

    .icons-social-footer a {
        margin-left: 5px !important;
        margin-right: 5px !important;
    }

    .img-escudo-475 {
        margin-top: 20px !important;
    }
}

.cintillo-legal {
    background-color: #003b70 !important;
    padding: 20px !important;
    text-align: center !important;
    font-size: 12px !important;
}
}
}