@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,100..900;1,9..144,100..900&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

:root{
  --Green-500: hsl(158, 36%, 37%);
  --Green-700: hsl(158, 42%, 18%);

  --Black: hsl(212, 21%, 14%);
  --Grey: hsl(228, 12%, 48%);
  --Cream: hsl(30, 38%, 92%);
  --White: hsl(0, 0%, 100%);
}

html{
    font-size: 14px;
}


*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body{
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background: var(--Cream);
}

main{
    
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
}

.div__flex{
    width: 100%;
    max-width: 600px;
    display: flex;
    overflow: hidden;
}

.picture{
    width: 100%;
    display: block;
}

.img{
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 10px 0  0 10px;
    object-fit: cover;
}

/* texto */

.contenido__texto{
    width: 100%;
    padding: 30px;
    background: var(--White);
    border-radius: 0 10px 10px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;

}

.subtitulo{
    font-family: "Montserrat", sans-serif;
    letter-spacing: 5px;
    font-weight: 500;
    color: var(--Grey);
    font-size: 1.1rem;
}

.titulo{
    margin: 20px 0;
    font-family: "Fraunces", serif;
    font-size: 2.4rem;
    font-weight: bold;
    max-width: 250px;
    line-height: 0.9;
}

.parrafo{
    color: var(--Grey);
    font-size: 1.2rem;
    max-width: 230px;  
    margin-bottom: 20px;
    line-height: 1.3;
}

.precio{
    font-size: 2rem;
    color: var(--Green-500);
    font-weight: bold;
    font-family: "Fraunces", serif;
    margin-bottom: 20px;
    position: relative;
}

.precio__viejo{
    font-size: 1rem;
    text-decoration: line-through;
    margin-left: 5px;
    min-height: 60px;
    position: absolute;
    right: 0px;
    left: 125px;
    top: 9px;
    color: var(--Grey);
    font-weight: 500;
}

.enlace{
    display: inline-block;
    width: 100%;
    background: var(--Green-500);
    padding: 15px;
    border-radius: 15px;
    text-decoration: none;
    color: var(--White);
    text-align: center;
    font-weight: bold;
}

.icon{
    margin-right: 10px;
    vertical-align: middle;
}

@media screen and (max-width:470px){
    .div__flex{
        width: 90%;
        flex-direction: column;
    }

    .picture__img source {
        display: none;
    }
    .picture__img img {
        border-radius: 10px 10px 0 0 ;
        content: url('img/image-product-mobile.jpg');
    }

    .attribution{
        display: none;
    }

    .contenido__texto{
        padding: 20px;
        border-radius: 0 0 10px 10px;
    }

    .titulo{
        font-size: 2rem;
        max-width: 85%;
    }

    .parrafo{
        
       max-width: 94%;

    }

    .icon{
        margin-right: 10px;
        vertical-align: middle;
    }
}


