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