body {
    font-family: Arial, sans-serif;
    line-height: 1.2;
    margin: 0;
    padding: 0;
    background-color: silver;
    height: 220vh;
}
/*
.main-header {
	background-color: #fff;
}	
.main-footer {
	background-color: #fff;
}	
*/
.container {
    width: 80%;
    max-width: 100%;
    margin: auto;
    overflow: hidden;
    background: silver;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 3%;
}

.image-text,
.image-text2 {
    display: grid;
    gap: 20px;
    align-items: center;
    grid-template-rows: auto;
}

.image-text {
    grid-template-columns: 1fr 2fr;
}

.image-text2 {
    grid-template-columns: 2fr 1fr;
}

.image-text img,
.image-text2 img {
    width: 100%;
    height: auto;
    opacity: 1; /* Estado inicial de la opacidad */
    transition: transform 1s ease-out, opacity 1s ease-out, width 0.5s ease, height 0.5s ease;
}

.image-text img {
    grid-column: 1 / 2;
}

.image-text .text {
    grid-column: 2 / 3;
    display: flex;
    flex-direction: column;
/*    justify-content: center;*/
}

.image-text .slide-up {
    width: 80%;
	margin-left: 5%;
  }

.image-text .primer-h1 {
	margin-left: -20%;
  }

.image-text2 .slide-up {
    width: 80%;
	margin-left: 5%;
  }


.image-text2 img {
    grid-column: 2 / 3;
}

.image-text2 .text {
    grid-column: 1 / 2;
    display: flex;
    flex-direction: column;
/*    justify-content: center;*/
}

h1 {
    margin-top: 0;
}

p {
    margin-top: 0;
    line-height: 2;
}

img {
    border-radius: 5px;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.3), 
                -5px -5px 15px rgba(255, 255, 255, 0.5); /* sombra oscura hacia la derecha e inferior y sombra clara hacia la izquierda y superior */
}

.slide-in-left {
    transform: translateX(-90%);
}

.slide-in-right {
    transform: translateX(90%);
}

.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-up {
    position: relative;
    bottom: -50px; /* Ajusta este valor según la cantidad de desplazamiento que desees */
    opacity: 0;
    transition: bottom 1s ease-out, opacity 1s ease-out;
}

.slide-up.visible {
    bottom: 0;
    opacity: 1;
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .image-text,
    .image-text2 {
        grid-template-columns: 1fr;
    }

    .image-text img,
    .image-text2 img {
        width: 100%;
        height: auto;
    }

    .image-text .text,
    .image-text2 .text {
        grid-column: 1 / -1;
    }
}

/* celular y tablet en vertical */
@media (max-width: 550px) {
    .container {
        width: 100%;
        padding: 10px;
    }

    .image-text,
    .image-text2 {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .image-text2 img {
        order: 1;
        width: 10em;
        height: auto;
    }

    .image-text2 .text {
        order: 2;
    }

    .image-text img {
        width: 10em;
        height: auto;
        order: 1;
    }

    .image-text .text {
        order: 2;
    }

    .image-text .text,
    .image-text2 .text {
        margin-top: 1em;
    }

}
