body {
    background-image: url('img/fondo.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Custom Scrollbar Styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(241, 245, 249, 0.5);
}

::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.3);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 145, 222, 0.4);
}

/* Leaflet Map Custom Styling */
.leaflet-container {
    background-color: #f8fafc !important;
}

/* Custom Zoom Controls */
.leaflet-bar {
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
    border-radius: 12px !important;
    overflow: hidden;
}

.leaflet-bar a {
    background-color: #ffffff !important;
    color: #0f172a !important;
    border-bottom: 1px solid #e2e8f0 !important;
    transition: all 0.2s ease;
}

.leaflet-bar a:hover {
    background-color: #f1f5f9 !important;
    color: #0091de !important;
}

/* Custom Leaflet Popup - Glassmorphism Light */
.leaflet-popup-content-wrapper {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #0f172a !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid #e2e8f0;
    padding: 6px;
}

.leaflet-popup-tip {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid #e2e8f0;
}

.leaflet-popup-content {
    margin: 14px 18px !important;
    font-family: 'Outfit', sans-serif !important;
}

/* Custom Marker Icon Style - Glowing Circle */
.custom-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0091de;
    border: 2px solid #ffffff;
    color: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(0, 145, 222, 0.5);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 30px;
    height: 30px;
}

.custom-marker i {
    font-size: 12px;
}

.custom-marker:hover,
.custom-marker.active {
    background: #0f172a;
    color: #ffffff;
    border-color: #0091de;
    transform: scale(1.25);
    box-shadow: 0 0 25px rgba(0, 145, 222, 0.8);
    z-index: 1000 !important;
}

/* Card Hover Glow Effect */
.campus-card {
    position: relative;
    overflow: hidden;
}

.campus-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--x, 0px) var(--y, 0px), rgba(0, 145, 222, 0.05), transparent 40%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.campus-card:hover::before {
    opacity: 1;
}

/* State Badge Styles */
.state-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    border: 1px solid transparent;
}

.state-badge.zulia {
    background-color: rgba(0, 145, 222, 0.1);
    color: #0091de;
    border-color: rgba(0, 145, 222, 0.2);
}

.state-badge.falcón, .state-badge.falcon {
    background-color: rgba(245, 158, 11, 0.1);
    color: #d97706;
    border-color: rgba(245, 158, 11, 0.2);
}

.state-badge.trujillo {
    background-color: rgba(16, 185, 129, 0.1);
    color: #059669;
    border-color: rgba(16, 185, 129, 0.2);
}

/* Fallback style for newly added states */
.state-badge:not(.zulia):not(.falcón):not(.falcon):not(.trujillo) {
    background-color: rgba(100, 116, 139, 0.1);
    color: #475569;
    border-color: rgba(100, 116, 139, 0.2);
}

/* Modal map pointer cursor and layout */
#modalMap {
    cursor: crosshair;
}
.leaflet-container {
    font-family: 'Outfit', sans-serif !important;
}

/* -- Contenedor Principal del Footer -- */
.unermb-footer {
    position: relative;
    width: 100%;
    background-image: url('img/fondo.jpeg');
    background-size: cover;
    background-position: center;
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding-top: 80px;
    padding-bottom: 30px;
    overflow: hidden;
}

/* Capas Diagonales de Fondo */
.unermb-bg-layer-blue {
    position: absolute;
    inset: 0;
    background-color: #005cbb;
    z-index: 1;
}

.unermb-bg-layer-red {
    position: absolute;
    inset: 0;
    background-color: #cc0000;
    z-index: 2;
}

.unermb-bg-layer-dark {
    position: absolute;
    inset: 0;
    background-color: #0c1e42;
    z-index: 3;
}

@media (min-width: 768px) {
    /* Corte diagonal superior: derecha alta, izquierda baja */
    .unermb-bg-layer-blue {
        clip-path: polygon(0 80px, 45% 80px, 58% 0, 100% 0, 100% 100%, 0 100%);
    }
    
    /* Corte diagonal inferior red: desplazada y con saliente */
    .unermb-bg-layer-red {
        clip-path: polygon(0 80px, 45% 80px, 58% 0, 100% 0, 100% calc(100% - 80px), 56% calc(100% - 80px), 43% calc(100% - 150px), 0 calc(100% - 150px));
    }
    
    /* Corte diagonal oscuro superior: alineado con la roja pero recortado más arriba en la base */
    .unermb-bg-layer-dark {
        clip-path: polygon(0 80px, 45% 80px, 58% 0, 100% 0, 100% calc(100% - 105px), 55% calc(100% - 105px), 42% calc(100% - 175px), 0 calc(100% - 175px));
    }
}

/* -- Sección de Contenido -- */
.unermb-footer-top {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    padding: 20px 40px 60px 40px;
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
}

.unermb-location-info {
    flex: 1;
    max-width: 45%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.unermb-location-text {
    font-size: 0.75rem;
    line-height: 1.5;
    color: #ffffff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    max-width: 380px;
}

/* -- Columna de la Derecha: SEDES -- */
.unermb-sedes-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-left: 60px;
}

.unermb-sedes-title {
    font-size: 3.5rem;
    font-weight: 900;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 5px;
    line-height: 1;
    letter-spacing: 0.1em;
}

.unermb-sedes-divider {
    height: 2px;
    background-color: #cc0000;
    width: 100%;
    max-width: 600px;
    margin-bottom: 25px;
    opacity: 0.8;
}

.unermb-sedes-list {
    column-count: 2;
    column-gap: 40px;
    list-style: none;
    padding: 0;
    margin: 0;
    max-width: 600px;
}

.unermb-sedes-list li {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 12px;
    padding-left: 22px;
    position: relative;
    break-inside: avoid;
    transition: color 0.2s;
    text-transform: uppercase;
}

.unermb-sedes-list li:hover {
    color: #81d4fa;
}

.unermb-sedes-list li::before {
    content: "\f3c5"; /* Font Awesome location dot icon code */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #cc0000; /* Pin rojo */
    font-size: 0.8rem;
    position: absolute;
    left: 0;
    top: 2px;
}

.unermb-sedes-state {
    display: block;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    margin-top: 2px;
}

/* -- Barra Inferior del Footer (Glassmorphic) -- */
.unermb-footer-bottom-container {
    position: relative;
    z-index: 10;
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
    padding: 0 40px;
}

.unermb-footer-bottom {
    background-color: rgba(9, 26, 62, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 30px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.unermb-university-name {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.unermb-contact-info {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
}

.unermb-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}

.unermb-contact-item:hover {
    color: #81d4fa;
}

.unermb-social-icons {
    display: flex;
    gap: 12px;
}

.unermb-social-icons a {
    background-color: rgba(9, 26, 62, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.unermb-social-icons a:hover {
    transform: scale(1.1) translateY(-2px);
    background-color: #cc0000;
    border-color: #cc0000;
    box-shadow: 0 5px 15px rgba(204, 0, 0, 0.4);
}

/* Animaciones y Clases Auxiliares */
@keyframes bounce-slow {
    0%, 100% {
        transform: translateY(-50%) translateY(0);
    }
    50% {
        transform: translateY(-50%) translateY(-8px);
    }
}

.animate-bounce-slow {
    animation: bounce-slow 3s infinite ease-in-out;
}

/* Responsividad Móvil */
@media (max-width: 991px) {
    .unermb-footer-top {
        flex-direction: column;
        padding: 20px 20px 40px 20px;
        gap: 40px;
    }
    
    .unermb-location-info {
        max-width: 100%;
        align-items: center;
        text-align: center;
    }
    
    .unermb-location-text {
        max-width: 100%;
    }
    
    .unermb-sedes-column {
        padding-left: 0;
        align-items: center;
    }
    
    .unermb-sedes-divider {
        margin-left: auto;
        margin-right: auto;
    }
    
    .unermb-sedes-list {
        max-width: 100%;
    }
    
    .unermb-footer-bottom-container {
        padding: 0 20px;
    }
    
    .unermb-footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 20px;
    }
    
    .unermb-contact-info {
        flex-direction: column;
        gap: 8px;
    }
}

