/* ═════════════════════════════════════════════════════════════════════════
   HEADER - Logo y franja UA
   ═════════════════════════════════════════════════════════════════════════ */

.ua-logo-header {
    border-bottom: none;
    margin-bottom: 0;
    padding: 0;
}

.ua-logo-header img {    
    max-width: 15rem;
    padding-left: 0rem;
    object-fit: contain;
}

.ua-logo-header .container-fluid {
    padding-left: 0;
    padding-right: 0;
}

.ua-logo-header .row {
    margin-left: 0;
    margin-right: 0;
    padding: 6px 15px;
    background-color: #f0f0f0;
}

.ua-logo-header .row > * {
    padding-left: 0;
    padding-right: 0;
}

.ua-logo-header .white-bg {
    background-color: #ffffff;
    padding: 8px 15px;
}

.ua-header-nivel3-wrapper {
    background-color: #333e4a;
    position: relative;
    margin: 0;
    margin-top: 10px;
    width: 100%;
    padding: 0;
    border-top: 2px solid #c60c30;
}

.ua-header-nivel3-wrapper .container-fluid {
    padding-left: 0;
    padding-right: 0;
    margin: 0 auto;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.ua-header-nivel3-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    position: relative;
    margin: 0;
    padding: 0;
}

.ua-header-logo-unidad {
    position: absolute;
    left: 15px;
    top: -25px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    padding: 4px;
    border-radius: 3px;
    z-index: 20;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    width: 100px;
    height: 95px;
}

.ua-header-logo-unidad img {
    height: 90px;
    width: auto;
    object-fit: contain;
    display: block;
}

.ua-header-nivel3 {
    background-color: transparent;
    color: white;
    flex: 1;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-left: 130px;
    min-height: 100px;
    position: relative;
}

.ua-header-titulo-unidad {
    color: white;
    font-weight: 600;
    font-size: 1rem;
    white-space: normal;
    line-height: 1.3;
}

.ua-header-titulo-convenios {
    background-color: #800;
    color: white;
    padding: 12px 25px;
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 0;
    margin-top: 0;
    height: auto;
    align-self: flex-start;
    flex-shrink: 0;
}

@media (max-width: 1024px) {
    .ua-header-nivel3-wrapper {
        padding-top: 45px;
    }
    
    .ua-header-logo-unidad {
        top: -40px;
    }
    
    .ua-header-logo-unidad img {
        height: 80px;
    }
    
    .ua-header-nivel3 {
        padding: 15px 15px;
        min-height: 90px;
    }
    
    .ua-header-titulo-unidad {
        font-size: 0.95rem;
    }
    
    .ua-header-titulo-convenios {
        padding: 15px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .ua-header-nivel3-wrapper {
        padding-top: 40px;
    }
    
    .ua-header-logo-unidad {
        top: -30px;
        left: 10px;
    }
    
    .ua-header-logo-unidad img {
        height: 70px;
    }
    
    .ua-header-nivel3-content {
        flex-direction: column;
        gap: 0;
        min-height: auto;
    }
    
    .ua-header-nivel3 {
        margin-left: 0;
        width: 100%;
        padding: 12px 15px 12px 120px;
        min-height: auto;
    }
    
    .ua-header-titulo-unidad {
        font-size: 0.9rem;
    }
    
    .ua-header-titulo-convenios {
        width: 100%;
        padding: 12px 15px;
        font-size: 0.85rem;
        min-height: auto;
    }
}

/* ═════════════════════════════════════════════════════════════════════════
   FOOTER - Diseño profesional UA
   ═════════════════════════════════════════════════════════════════════════ */

.ua-footer {
    background-color: #1a5a7d;
    color: #e0e0e0;
    padding: 40px 0 0;
    margin-top: 60px;
    font-size: 0.9rem;
}

.ua-footer-container {
    padding: 0 0px;
}

.ua-footer-update {
    background-color: rgba(0, 0, 0, 0.2);
    color: #fff;
    padding: 12px 20px;
    font-size: 0.85rem;
    text-align: right;
}

.ua-footer-content {
    padding: 0px 0 0px;
}

.ua-footer-col {
    margin-bottom: 30px;
}

.ua-footer-section {
    padding: 0 15px;
}

.ua-footer-logo {
    margin-bottom: 20px;
}

.ua-footer-logo a {
    display: inline-block;
    padding: 8px;
    border-radius: 3px;
}

.ua-footer-logo img {
    height: 45px;
    object-fit: contain;
}

.ua-footer-address,
.ua-footer-phone,
.ua-footer-emergency {
    margin: 12px 0;
    line-height: 1.6;
    color: #e0e0e0;
}

.ua-footer-address i,
.ua-footer-phone i,
.ua-footer-emergency i {
    color: #64b5f6;
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

.ua-footer-emergency {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 4px;
    margin-top: 15px;
    font-size: 0.85rem;
}

.ua-footer-emergency strong {
    color: #ffb3b3;
}

.ua-footer-title {
    font-size: 0.95rem;
    color: white;
    font-weight: 600;
    margin-bottom: 15px;
    border-bottom: 2px solid #64b5f6;
    padding-bottom: 8px;
}

.ua-social-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ua-social-links a {
    color: #ffffff !important;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    transition: color 0.3s ease;
}

.ua-social-links a i {
    color: #64b5f6;
    font-size: 1.1em;
}

.ua-social-links a:hover {
    color: #64b5f6 !important;
}

.ua-social-links a:hover i {
    color: #fff;
}

.ua-quick-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ua-quick-links a {
    color: #ffffff !important;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    transition: color 0.3s ease;
}

.ua-quick-links a i {
    color: #64b5f6;
    font-size: 1em;
}

.ua-quick-links a:hover {
    color: #64b5f6 !important;
}

.ua-quick-links a:hover i {
    color: #fff;
}

.ua-footer-bottom {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 20px 0;
    text-align: center;
}

.ua-footer-links {
    font-size: 0.85rem;
}

.ua-footer-links a {
    color: #ffffff;
    text-decoration: none;
    display: inline;
    transition: color 0.3s ease;
}

.ua-footer-links a:hover {
    color: #64b5f6;
}

.ua-footer-separator {
    color: #888;
    margin: 0 8px;
}

@media (max-width: 768px) {
    .ua-footer-content {
        padding: 30px 0 20px;
    }
    
    .ua-footer-col {
        margin-bottom: 25px;
    }
    
    .ua-footer-update {
        text-align: center;
    }
    
    .ua-social-links,
    .ua-quick-links {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .ua-footer-links {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    .ua-footer-separator {
        display: none;
    }
}

/* ═════════════════════════════════════════════════════════════════════════
   LAYOUT GENERAL
   ═════════════════════════════════════════════════════════════════════════ */

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

.container {
    flex: 1;
}
