/* ===== BODY ===== */
body {
    background-color: #f8f4ec;
    color: #333;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;

}

/* ===== MAIN CONTENT ===== */
.main-content {
    flex: 1;
    /* evita que estire el contenido */
}

/* ===== NAVBAR ===== */
.custom-navbar {
    backdrop-filter: blur(8px);
    background-color: rgba(255, 255, 255, 0.95) !important;
    transition: all 0.3s ease;
}

.navbar {
    background-color: #ffffff !important;
    position: relative;
}

.navbar::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, #d62828, #1d4ed8);
}

/* NAV LINKS */
.nav-link {
    position: relative;
    font-weight: 500;
    color: #333 !important;
    padding: 8px 12px;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(to right, #d62828, #1d4ed8);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #1d4ed8 !important;
}

.nav-link:hover::after {
    width: 100%;
}

.active-link {
    color: #d62828 !important;
}

.active-link::after {
    width: 100%;
}

/* BOTÓN OUTLINE */
.btn-outline-primary {
    border: 2px solid #1d4ed8;
    color: #1d4ed8;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: #1d4ed8;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(29, 78, 216, 0.25);
}

/* LOGO */
.logo-hover {
    transition: transform 0.4s ease, filter 0.4s ease;
}

.logo-hover:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.15));
}


/* ===== FOOTER ===== */
.footer {
    background-color: #ffffff;
    border-top: 1px solid #eee;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
    margin-top: 0;
    /* ahora ya no hace falta margin-top */
}