.slider {
    position: relative;
    height: 650px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.slider-background {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    transition: opacity 2s ease-in-out;
    z-index: 1;
    animation: subtleMove 30s infinite alternate ease-in-out;
}

.slider-background.hidden {
    opacity: 0;
}

.slider .ley {
    position: absolute;
    bottom: 20px;
    z-index: 20000;
    display: grid;
    width: 100%;
    max-width: 1300px;
    grid-template-columns: repeat(4, 1fr);
    grid-column-gap: 25px;
    text-align: center;
}

.ley2 {
    background: linear-gradient(180deg, rgba(8, 79, 110, 1) 0%, rgba(35,142,0,0.5) 20%, rgba(255,188,0,1) 80%);
    width: 100%;
    height: 300px;
    border: 1px solid #fff;
    border-radius: 15px 15px 12% 12%;
    padding: 50px 0px 0px 0px;
    color: white;
    font-size: 30px;
    font-weight: 900;
    text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.5);
    line-height: 30px;
    cursor: pointer;
}

/* Movimiento sutil del fondo */
@keyframes subtleMove {
    0% { transform: scale(1) translateY(0px); }
    100% { transform: scale(1.9) translateY(-10px); }
}
@media only screen and (max-width: 618px) {
    .slider {

    height: 350px;}
.slider .ley { display: none;
}