/* ==========================================================================
   Variables & Reset
   ========================================================================== */
:root {
    /* Colors (UAS Inspired - Modernized) */
    --uas-blue: #002856;
    --uas-blue-light: #004080;
    --uas-gold: #D4AF37;
    --uas-gold-light: #f1c40f;

    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --white: #ffffff;

    /* Typography */
    --font-primary: 'Inter', sans-serif;

    /* Layout */
    --container-width: 1200px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

p {
    text-align: justify;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.bg-light {
    background-color: var(--bg-light);
}

.text-center {
    text-align: center;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--uas-gold);
    color: var(--uas-blue);
}

.btn-primary:hover {
    background-color: var(--uas-gold-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-text {
    color: var(--uas-blue);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-text:hover {
    color: var(--uas-gold);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.main-header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-uas {
    color: var(--uas-blue);
}

.logo-faceam {
    color: var(--uas-gold);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--uas-gold);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--uas-blue);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 320px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: var(--transition);
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 500;
}

.dropdown-menu a::after {
    display: none;
}

.dropdown-menu a:hover {
    background-color: var(--bg-light);
    color: var(--uas-blue);
    padding-left: 25px;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--uas-blue);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    height: 100vh;
    min-height: 600px;
    background-image: url('../img/PORTADA_FACEAM.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 40, 86, 0.85) 0%, rgba(0, 40, 86, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--white);
    max-width: 800px;
    padding-top: 80px;
}

/* Internal Pages Hero */
.hero-internal {
    height: 50vh;
    min-height: 400px;
    background-image: url('../img/PORTADA_FACEAM.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-internal h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 10px;
    font-weight: 700;
}

.page-content {
    padding: 80px 0;
}

.content-section {
    margin-bottom: 50px;
}

.content-section h2 {
    color: var(--uas-blue);
    margin-bottom: 20px;
    font-size: 2rem;
    position: relative;
    padding-bottom: 10px;
}

.content-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--uas-gold);
}

.content-section h3 {
    color: var(--uas-blue-light);
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.content-list {
    list-style: none;
    padding-left: 0;
}

.content-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.content-list li::before {
    content: '\f058';
    /* FontAwesome check circle */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--uas-gold);
}

.mapa-curricular-img {
    width: 100%;
    max-width: 1000px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 30px auto;
    display: block;
}

.badge {
    display: inline-block;
    background: rgba(212, 175, 55, 0.2);
    color: var(--uas-gold);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero h1 span {
    color: var(--uas-gold);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* ==========================================================================
   Quick Links (Accesos Rápidos)
   ========================================================================== */
.quick-links {
    padding: 80px 0;
    margin-top: -60px;
    position: relative;
    z-index: 2;
}

.section-header {
    margin-bottom: 50px;
    text-align: center;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--uas-blue);
    margin-bottom: 10px;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.grid-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.card-link {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: var(--transition);
}

.card-link:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 40, 86, 0.1);
    border-color: rgba(0, 40, 86, 0.1);
}

.card-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(0, 40, 86, 0.05);
    color: var(--uas-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.card-link:hover .card-icon {
    background-color: var(--uas-blue);
    color: var(--white);
}

.card-link h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--uas-blue);
}

.card-link p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ==========================================================================
   Oferta Educativa
   ========================================================================== */
.oferta-educativa {
    padding: 100px 0;
}

.grid-oferta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.oferta-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.oferta-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.oferta-img {
    height: 200px;
    background-color: var(--uas-blue-light);
    background-size: cover;
    background-position: center;
    position: relative;
}

.bg-admin {
    background-image: url('../img/admin_new.png');
}

.bg-conta {
    background-image: url('../img/conta_new.png');
}

.bg-rh {
    background-image: url('../img/rh_new.png');
}

.bg-mkt {
    background-image: url('../img/mkt_new.png');
}

.bg-maestria {
    background-image: url('../img/maestria_new.png');
}

.bg-doctorado {
    background-image: url('../img/doctorado_new.png');
}


.oferta-info {
    padding: 30px;
}

.oferta-info h3 {
    font-size: 1.3rem;
    color: var(--uas-blue);
    margin-bottom: 15px;
}

.oferta-info p {
    color: var(--text-light);
    margin-bottom: 20px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.main-footer {
    background-color: var(--uas-blue);
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-brand h2 {
    margin-bottom: 15px;
}

.footer-brand .logo-uas {
    color: var(--white);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
}

.social-links a:hover {
    background: var(--uas-gold);
    color: var(--uas-blue);
}

.footer-links h4,
.footer-contact h4 {
    color: var(--uas-gold);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links ul li,
.footer-contact ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links ul li a:hover {
    color: var(--uas-gold);
    padding-left: 5px;
}

.footer-contact ul li {
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-contact ul li i {
    margin-top: 5px;
    color: var(--uas-gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 40px 0;
        overflow-y: auto;
        transition: var(--transition);
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    .dropdown-menu {
        position: relative;
        top: 0;
        box-shadow: none;
        background: transparent;
        transform: none;
        opacity: 1;
        visibility: visible;
        padding-top: 10px;
        min-width: 100%;
        display: none;
    }

    .dropdown:hover .dropdown-menu,
    .dropdown:active .dropdown-menu,
    .dropdown.mobile-open .dropdown-menu {
        display: block;
    }

    .dropdown-menu a {
        font-size: 1.1rem;
        padding: 8px 0;
        text-align: center;
    }


    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .quick-links {
        margin-top: 0;
        padding: 60px 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}