#btnHistorialGeneral {
    position: relative;
    display: block;
    background: #2e7d32;
    color: white;
    font-weight: bold;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.3rem;
    text-align: center;
    cursor: pointer;
    transition: background 0.6s ease-in-out, color 0.6s ease-in-out;
    overflow: hidden;
}

.m-2 {
    margin: 2.5rem !important;
}

#btnHistorialGeneral::before,
#btnHistorialGeneral::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 0;
    transition: height 0.6s ease-in-out;
    z-index: -1;
}

#btnHistorialGeneral::before {
    top: 0;
    border: 2px solid white;
    border-top: 0;
    border-bottom: 0;
}

#btnHistorialGeneral::after {
    bottom: 0;
    background: white;
    height: 0;
}

#btnHistorialGeneral span {
    position: relative;
    display: inline-block;
    transition: color 0.6s ease-in-out;
    z-index: 2;
}

#btnHistorialGeneral:hover {
    background: white;
    color: #2e7d32;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.2);
}

#btnHistorialGeneral:hover::before,
#btnHistorialGeneral:hover::after {
    height: 100%;
}

#btnHistorialGeneral:hover span {
    color: #2e7d32;
    transition-delay: 0.3s;
}

#btnHistorialGeneral:not(:hover) {
    background: #2e7d32;
    transition: background 0.6s ease-in-out, color 0.6s ease-in-out;
}

#btnHistorialGeneral:not(:hover) span {
    color: white;
    transition-delay: 0.3s;
}
