body, h1, h2, p, ul, li {
    margin: 0;
    padding: 0;
  }

body {
    background: rgb(248, 217, 105);
    margin: 0;
    padding: 0;
    width: 100%; 
    height: 100vh; 
    box-sizing: border-box;
}


.main-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width:380px;
    margin: 10px;
    border: 2px solid black;
    border-radius: 4px;
    padding: 10px;
    background-color: #50633C;
}

article {
    position: relative;
    width: 100%;
    transition: all 0.3s ease;
}

article img:first-child { 
    box-shadow: 20px 20px 30px -20px black;
    border-radius: 10px;
    object-fit: cover;
    width: 100%;
    height: auto;
}

article img:last-child {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    width: 80%;
    margin: auto;
    transform: translateY(25%);
    transition: 0.3s ease;
    opacity: 0;
}

article:hover {
    transform: perspective(250px) rotateX(10deg) translateY(-5%) translateZ(0);
}

article::before {
    content: '';
    position: absolute;
    bottom: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(
        to bottom,
        transparent 10%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0) 95%
    );
    opacity: 0;
    transition: all 0.3s ease;
}

article:hover::before {
    opacity: 1;
}

article:hover img:last-child {
    opacity: 1;
    transform: translateY(10%);
}

.sr-only {
    visibility: hidden;
}


.container {
    box-shadow: 10px 10px 5px #161616;
}
.descripcion {
    width: 100%;
    height:300px;
    text-align: justify;
    font-size: 15px;
    font-weight: bold;
    color: black;
    background-color: #cd7e35;
    padding: 10px;
    border-radius: 10px;
    box-sizing: border-box;
    margin-top: 5px; 
}

.link {
    color: gold;
}

#video {
    width: 100%; 
    height: auto;
  }

  .highlight {
    background-color: yellow;
    color: red;
}
  
/******************************** Media queries para Celulares **********************************/
@media (max-width: 650px) {
    .main-container {
        margin: 0;
        padding: 0;
        width: 100%;
        padding-top: 50px;
        display: flex;
        flex-direction: column; 
        align-items: center;
    }
    
    .descripcion {
        font-size: 20px;
        width: 100%;
        height: 100%;
    }

    .container {
       width: fit-content;
       margin: -10px;
       margin-top: 20px;
       margin-bottom: 10px;
    }
}

#img1, #img2, #img3 {
    width: max-content;
}

/******************************** Media queries para Tablets *******************************/
@media (min-width: 651px) and (max-width: 850px) { 
    .main-container {
        flex-direction: column; 
        align-items: center;
        padding: 10px;
    }
    .container {
        width: 100%;
        min-width: fit-content;
    }
    .descripcion {
        font-size: x-large;
        height:100%;
        padding-top: 30px;
    }

    #img1, #img2, #img3 {
        width: 100%;
    }

    footer {
        margin-top: 150px;
    }
}

