body {
    margin: 0;
    font-family: monospace;
    background-color: #468189;
    justify-content: center;
    overflow-x: hidden;
}

header {
    background-color: #042031;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 30;
    padding: 0;
    box-shadow: 0 0 30px #000;
}

.div_total1 {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 10px;
    flex-wrap: wrap;
    flex: 1 1 350px;
}

.foto_principal {
    min-width: 250px;
    max-width: 275px;
    margin-right: 50px;
    margin: 7px 0;
    border-radius: 5px;
}

.contacto_ubicacion_social {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.div_contacto,
.div_ubicacion,
.div_social {
    color: #ddd;
    min-width: 70px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.icono {
    width: 18px;
    height: 18px;
}

.whatsapp,
.ubicacion,
.social {
    font-size: 12px;
    margin: 0;
}

h1{
    color: #031926;
    text-shadow: 3px 3px 7px #49abdf;
    font-size: 45px;
    transition-property: text-shadow color font-size;
    transition-duration: 1s;
}

h1:hover{
    color: #091255;
    text-shadow: 0 0 6px #fff;
    font-size: 50px;
}

.tender1{
    min-width: 600px;
    max-width: 650px;
    margin-right: 50px;
    transition-property: filter max-width min-width;
    transition-duration: 1s;
}

.tender1:hover{
    filter: drop-shadow(0 0 4px #000);
    min-width: 625px;
    max-width: 675px;    
}

.producto1 {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
    justify-content: center;
    margin: 20px;
}

.div_descripcion1 {
    display: flex;
    flex-direction: column;
    max-width: 400px;
    flex: 1;
    min-width: 250px;
    margin-top: 130px;
}

.titulo_descripcion1 {
    font-size: 30px;
    color: #ddd;
    text-align: center;
    margin: 0;
    text-wrap: balance;
    font-family: serif;
}

.descripcion1 {
    color: #031926;
    text-align: center;
    text-wrap: balance;
}

.producto2 {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: flex-start;
    justify-content: center;
    margin: 20px;
    margin-top: 40px;
    margin-right: 0;
}

.div_descripcion2 {
    display: flex;
    flex-direction: column;
    max-width: 400px;
    flex: 1;
    min-width: 250px;
    margin-top: 130px;
    margin-left: 20px;
}

.titulo_descripcion2 {
    font-size: 30px;
    color: #ddd;
    text-align: center;
    margin: 0;
    text-wrap: balance;
    font-family: serif;
}

.descripcion2 {
    color: #031926;
    text-align: center;
    font-size: 15px;
    text-wrap: balance;
}

.tender2{
    min-width: 575px;
    max-width: 625px;
    margin-left: 80px;
    transition-property: filter max-width min-width;
    transition-duration: 1s;
}

.tender2:hover{
    filter: drop-shadow(0 0 4px #000);
    min-width: 625px;
    max-width: 675px;    
}

@media screen and (min-width:300px) and (max-width:1000px) {
    .div_descripcion2{
        margin: 0;
        margin-top: 70px;
        order: 2;
        justify-content: center;
    }

    .tender2{
        order: 1;
        justify-content: center;
        margin: 0;
    }

    .producto2{
        margin: 0;
    }

    .tender1{
        margin-right: 0;
    }

    h1{
        margin-top: 150px;
        margin-left: 35%;
    }

    .foto_principal{
        margin-right: 0;
    }
}

@media screen and (min-width:533px) and (max-width:1000px) {
        h1{
        margin-top: 80px;
        margin-left: 45%;
    }
}

@media screen and (min-width:1001px) and (max-width:1500px) {
    .div_descripcion2{
        order: 1;
        margin-top: 130px;
    }

    .tender2{
        order: 2;
        
    }

    .producto2{
        margin-left: 120px;
    }

    h1{
        margin-top: 95px;
        margin-left: 42%;
    }
}

.tender3{
    min-width: 500px;
    max-width: 500px;
    margin-right: 70px;
    transition-property: filter max-width min-width;
    transition-duration: 1s;
}

.tender3:hover{
    filter: drop-shadow(0 0 4px #000);
    min-width: 525px;
    max-width: 525px;    
}

.producto3 {
    display: flex;
    flex-wrap: wrap;
    gap: 70px;
    align-items: flex-start;
    justify-content: center;
    margin: 0px;
}

.div_descripcion3 {
    display: flex;
    flex-direction: column;
    max-width: 400px;
    flex: 1;
    min-width: 250px;
    margin-top: 230px;
    margin-right: 90PX;
}

.titulo_descripcion3 {
    font-size: 30px;
    color: #ddd;
    text-align: center;
    margin: 0;
    text-wrap: balance;
    font-family: serif;
}

.descripcion3 {
    color: #031926;
    text-align: center;
    font-size: 18px;
    text-wrap: balance;
}

@media screen and (min-width:400px) and (max-width:800px){
    .div_descripcion3{
        margin-top: 0;
    }
}

.producto4 {
    display: flex;
    flex-wrap: wrap;
    gap: 70px;
    align-items: flex-start;
    justify-content: center;
    margin: 20px;
    margin-top: 40px;
    margin-right: 0;
}

.div_descripcion4 {
    display: flex;
    flex-direction: column;
    max-width: 400px;
    flex: 1;
    min-width: 250px;
    margin-top: 130px;
}

.titulo_descripcion4 {
    font-size: 30px;
    color: #ddd;
    text-align: center;
    margin: 0;
    text-wrap: balance;
}

.descripcion4 {
    color: #031926;
    text-align: center;
    text-wrap: balance;
}

.tender4{
    min-width: 450px;
    max-width: 500px;
    margin-left: 80px;
    transition-property: filter max-width min-width;
    transition-duration: 1s;
}

.tender4:hover{
    filter: drop-shadow(0 0 4px #000);
    min-width: 475px;
    max-width: 500px;    
}

@media screen and (min-width:300px) and (max-width:1000px) {
    .div_descripcion4{
        margin: 0;
        margin-top: 10px;
        order: 2;
        justify-content: center;
    }

    .tender4{
        order: 1;
        justify-content: center;
        margin: 0;
    }

    .producto4{
        margin: 0;
    }
}

@media screen and (min-width:1001px) and (max-width:1500px) {
    .div_descripcion4{
        order: 1;
        margin-top: 50px;
    }

    .tender4{
        order: 2;
        
    }

    .producto4{
        margin-left: 0px;
    }
}

@keyframes opacidad {
    0%{
        opacity: 0;
    }

    20%{
        opacity: 0.2;
    }

    30%{
        opacity: 0.4;
    }

    50%{
        opacity: 1;
    }

    70%{
        opacity: 0.6;
    }

    90%{
        opacity: 0;
    }
}

.producto2{
    animation: opacidad;
    animation-timeline: view();
}

.producto3{
    animation: opacidad;
    animation-timeline: view();
}


.producto1{
    animation: opacidad;
    animation-timeline: view();
}

@keyframes opacidad2 {
    0%{
        opacity: 0;
    }

    20%{
        opacity: 0.5;
    }

    50%{
        opacity: 1;
    }
}

.producto4{
    animation: opacidad2;
    animation-timeline: view();
    margin-bottom: 100px;
    font-family: serif;
}

@media screen and (min-width:350px) and (max-width:1200px) { 
    .div_descripcion1{
        margin-top: 20px;
    }

    .div_descripcion3{
        margin-top: 5px;
    }

}

@keyframes opacidad1 {
    100%{
        opacity: 1;
    }
    
    50%{
        opacity: 1;
    }

    87%{
        opacity: 0.3;
    }

    90%{
        opacity: 0;
    }

}

.producto1{
    animation: opacidad1;
    animation-timeline: view();
}

@keyframes color-header {
    0%{
        background-color: #042031;
    }
    50%{
        background-color: #042031ee;
    }

    100%{
        background-color: #042031ee;
    }
}

header{
    animation: color-header both;
    animation-timeline: scroll();
}

@media screen and (min-width:300px) and (max-width:700px){
    .div_descripcion4{
        order: 2;
    }

    .tender4{
        order: 1;
    }

}

@media screen and (max-width: 600px) {
  .tender1,
  .tender2,
  .tender3,
  .tender4 {
    min-width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }

  .tender1:hover,
  .tender2:hover,
  .tender3:hover,
  .tender4:hover {
    min-width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }

  .div_descripcion1,
  .div_descripcion2,
  .div_descripcion3,
  .div_descripcion4 {
    margin-top: 20px;
    margin-right: 0;
    margin-left: 0;
  }

  h1 {
    font-size: 30px;
    margin: 20px auto;
    margin-top: 200px;
    text-align: center;
  }

  main {
    margin-left: 0; /* quitamos el desplazamiento lateral */
    padding: 10px;
  }
}
