/* --- ESTILOS --- */
:root {
    --unam-blue: #002B7A;
    --unam-dark: #001f52;
    --unam-gold: #D59F0F;
    --bg-body: #f8f9fa;
}

body { 
    font-family: 'Roboto', sans-serif; 
    background-color: var(--bg-body); 
    color: #4a4a4a;
}

/* 1. HERO CON DEGRADADO */
.hero-unam {
    background: linear-gradient(135deg, var(--unam-dark) 0%, var(--unam-blue) 100%);
    color: white;
    border-bottom: 5px solid var(--unam-gold);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.title-unam { color: white !important; font-weight: 700; letter-spacing: -0.5px; }
.subtitle-unam { color: #e0e0e0 !important; font-weight: 300; }

/* 2. CONTENEDORES  */
.content-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
    border: 1px solid #eaeaea;
}

.section-header {
    color: var(--unam-blue);
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 12px;
    margin-bottom: 25px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

/* 3. ACORDEÓN  */
.accordion-header {
    background-color: #fff;
    border: 1px solid #e5e5e5;
    padding: 18px 20px;
    cursor: pointer;
    border-radius: 6px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.accordion-header:hover { 
    border-color: var(--unam-blue); 
    transform: translateX(3px);
}
.accordion-header.is-active {
    background-color: var(--unam-blue);
    color: white !important;
    border-color: var(--unam-blue);
    box-shadow: 0 4px 10px rgba(0, 43, 122, 0.2);
}
.accordion-header.is-active strong,
.accordion-header.is-active i {
    color: white !important;
}

.accordion-content {
    display: none;
    border: 1px solid #e5e5e5;
    border-top: none;
    padding: 25px;
    background: white;
    margin-bottom: 15px;
    border-radius: 0 0 6px 6px;
    margin-top: -8px; 
}
.accordion-content.is-active { display: block; animation: slideDown 0.3s ease-out; }

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 4. SIDEBAR  */
.sticky-sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: 20px; 
}

.price-card {
    border-top: 5px solid var(--unam-gold);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
    background: white;
    overflow: hidden;
}
.price-tag {
    font-size: 2.2rem;
    color: var(--unam-blue);
    font-weight: 800;
    line-height: 1;
}
.btn-unam {
    background-color: var(--unam-gold);
    color: var(--unam-dark);
    font-weight: 800;
    border: none;
    transition: transform 0.2s;
}
.btn-unam:hover { 
    filter: brightness(105%); 
    color: var(--unam-dark); 
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(213, 159, 15, 0.4);
}

/* 5. INSTRUCTORES */
.instructor-card {
    text-align: center;
    padding: 15px;
    border-radius: 8px;
    transition: background 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.instructor-card:hover { background-color: #f0f4ff; }

.avatar-wrapper {
    width: 120px; 
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid white;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    margin: 0 auto 15px auto;
    background-color: #fff;
    transform: translateZ(0); 
}

.avatar-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    image-rendering: high-quality;
    -webkit-font-smoothing: antialiased;
}