:root {
    --fuentePrimaria: 'Lora', serif;
    --fuenteSecundaria:'Playfair Display', serif;
    --fuentetitulos:'Inconsolata', monospace;
    --colorprimario:#030d17;
    --colorsecundario:rgb(224, 77, 1);
    --blanco:rgba(255,255,255,255);
    --bototonSubmit:#0F4FE6;
}
html {
    box-sizing: border-box;
    font-size: 62.5%; /*1 rem es igual a 10px*/
}
*, *:before, *:after {
    box-sizing: inherit;
}
h1,h2,p{
    font-family: var(--fuentePrimaria);
}
h1,h2,p,label{
    color: var(--blanco);
}
img {
    max-width: 30rem;
    max-height: 20rem;
    margin: 0 auto;
}
/*Header*/
header h1 {
    font-size: 3rem;
    text-align: center;
    color: black;
}
header p{
    font-size: 2rem;
    text-align: center;
    color: slategray;
}
header em{
    color: rgb(213, 170, 62);
    font-weight: bold;
}
header a{
    color: rgb(115, 158, 50);
    text-decoration: none;
}
header a:hover{
    font-size: 2.2rem;
    margin: 1rem auto 3rem;
}/*Main*/
.container{
    width: 90%;
    height: 89rem;
    margin: 0 auto;
    max-width: 40rem;
    max-height: 98rem;
    background:
    linear-gradient(
    rgba(35,43,85,0.75),
    rgba(35,43,85,0.95)),
    url(https://dl.dropboxusercontent.com/u/22006283/preview/codepen/clouds-cloudy-forest-mountain.jpg) no-repeat center center;
    background-size: cover;
    margin-left: auto;
    margin-right: auto;
    border-top: solid 1px rgba(255,255,255,.5);
    border-radius: 5px;
    box-shadow: 0px 2px 7px rgba(0,0,0,0.2);
    overflow: hidden;
    transition: all .5s ease;
    border-radius: 1rem;
}
.sub-container{
    position: relative;
    top: 2rem;
}
.mobile-header h2{
    text-align: center;
    padding: 2rem 0 0;
    font-size: 3rem;
    text-transform: uppercase;
    color: var(--colorsecundario);
    position: relative;
    bottom: 1rem;
}
/*middle-main-card*/
.up-card{
    text-align: center;
    margin-top: 4rem;
}
.up-card h2{
    font-size: 2.5rem;
    position: relative;
    bottom: 2rem;
}
.up-card h4{
    font-size: 1.3rem;
}
/*============================Scroller===================*/
.scroller{
    max-width: 28rem;
    padding:1rem;
    display: grid;
    grid-auto-flow: column;
    overflow-x:auto;
    position: relative;
    bottom: 2rem;
    left: 8rem;
}
.scroller::-webkit-scrollbar{
    display: none;
}
.scroller-item{
    position: relative;
    bottom: 3rem;
    width: 30rem;
    height: 34rem;
    object-fit: cover;
    margin:0;
}
.scroller-item h4{
    position: relative;
    font-size: 2rem;
    top: 2rem;
    right: 5rem;
    margin: 0 auto;
    color: #e1e1e1;
    font-family: Arial, Helvetica, sans-serif;
}
.scroller-item img {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin: 0 0;
    top: 4rem;
    border-radius: 3rem;
}
.precio-articulo{
    color: rgb(209, 205, 205);
    font-size: 1rem;
    font: bold;
    width: 20rem;
    height: 2.7rem;
    position: relative;
    top: 4rem;
    font-size: 1.6rem;
}
.scroller-item input{
    font-family: var(--fuentetitulos);
    background-color:var(--colorprimario);
    color: white;
    position: relative;
    top: 3rem;
    right: 4.5rem;
    text-transform: capitalize;
}
/*================Middle========================*/
.middle-main-card{
    position: relative;
    max-width: 33rem;
    margin: 0 auto;
    bottom: 3rem;
}
.middle-card{
    position: relative;
    top: 5rem;
    right: 1rem;
    display: flex;
    gap: 1.5rem;
}
.input-group{
    position: relative;
    left: 2rem;
}
input{
    font-family: var(--labelsFonts);
    display: block;
    height: 3vh;
    width: 15rem;
    border: none;
    outline: none;
    border-radius: .4rem;
    font-size: 1.8rem;
    margin: 1rem auto 0;
    -webkit-appearance: textfield !important;
    -moz-appearance:textfield !important;
}
label{
    font-family: var(--labelsFonts);
    color:white;
    position: absolute;
    font-size: 1.8rem;
    top: -2.2rem;
    left: -2.4rem;
    line-height: 1.6rem;
    display: inline-flex;
    column-gap: 1rem;
    align-items: center;
    transition: transform .25s, opacity .25s;
}
label::before{
    content:url(./icons/money.png);
    opacity: 0;
    left: 4rem;
    top: 4rem;
}
.resultado{
    display: flex;
    justify-content: center;
    position: relative;
    margin: 0 auto;
    top: 7rem;
    font-size: 1.8rem;
    text-align: left;
}
.descuento::before{
    content: url(./icons/cupones.png);
    opacity: 0;
}
.input-group:focus-within label{
    transform: translateX(2.6rem); 
}
.input-group:focus-within label::before {
    opacity: 1;
    transition-delay: .1s;
}
input::placeholder {
    transition: opacity .25s;
}

input:focus::placeholder {
    opacity: 0;
}
.text-coupon{
    position: relative;
    top: 7rem;
    text-align: center;
    font-size: 1.5rem;
    margin: 1rem auto 0;
    padding-bottom:1rem ;
    color: white;
    border-bottom: .1rem solid #e1e1e1;
}
.coupon-container-up{
    display: flex;
    justify-content: space-around;
    position: relative;
    top: 9rem;
    right: 1rem;
}
.coupon-container-up button{
    width: 27.3%;
    height: 6vh;
    background-color:transparent;
    margin: .8rem;
    border: none;
    border-radius: .4rem;
}

.first-coupon img{
    position: relative;
    bottom:2rem;
    width: 13rem;
    margin: 0 auto;
    right: 1.5rem;
}
.coupon-container-up button:hover{
    transform: scale(1.1);
}
.coupon-container-up p{
    font-size: 1.4rem;
    font-weight: lighter;
}
.position-relative-footer{
    position: relative;
}
.footer-card{
    display: flex;
    justify-content: center;
    position: relative;
    top: 7.3rem;
    margin: 2rem;
}
.button{
    position: relative;
    width: 19rem;
    height: 4rem;
    background-color: var(--colorprimario);
    color: aliceblue;
    border: none;
    border-radius: .4rem;
    cursor: pointer;
    font-size: 1.7rem;
    transition: width .5s,
    border-radius .5s ;
}
.button *{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity .25s;
}
.icon{
    content: url(./icons/Copia\ de\ correct.png);
    opacity: 0;
    position: relative;
    bottom: 2rem;
    right: .4rem;
}
.button:focus {
    width: 5rem;
    background-color: rgba(76,174,79,255);
    border-radius: 50%;
}

.button:focus .text {
    opacity: 0;
}

.button:focus .icon {
    opacity: 1;
    transition-delay: .4s;
}