:root{
    --dark: #22223b;
    --white: #edf2fb;
    --open: "Open Sans", sans-serif;
}

*{
    /* font-size: 10px; */
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html{
    font-size: 62.5%;
    font-family: "DM Sans", sans-serif;
    background-color: #f2f0f0;
}

a {
    color: black;
    text-decoration: none;
}

a:link {
    color:red;
}

a:hover {
    color:green;
    text-decoration:none;
}

a:visited {
    color:purple;
}

a:active {
    color:lime;
}

header ul {
    display: flex;
    margin: 10px;
    font-size: 1.6rem;
    list-style: none;
}

header ul li {
    margin: 5px 10px;
    padding: 5px 0;
    font-size: 1.8rem;
}

header {
    display: flex;
    justify-content: center;
    width: 100%;
}

header > h2 {
    font-size: 4rem;
    margin: 20px auto;
}

/* animacion */

header ul li {
    text-decoration: none;
    background-image: linear-gradient(currentColor, currentColor);
    background-position: 0% 100%;
    background-repeat: no-repeat;
    background-size: 0% 2px;
    transition: background-size 0.3s;
}
header ul li:hover {
    background-size: 100% 2px;
}

body{
    
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--open);

    display: flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    height:100vh;
    width: 100%;
}


main{
    display: flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;

    width: 100%;
    max-width: 1280px;
    margin: auto;
}

header{
    width: 100%;
}

h1{
    /* color: var(--white); */
    font-size: 3.5rem;
    letter-spacing: 5px;
    margin: 0;
    padding-top: 10px;
    margin-bottom: 80px;
    text-align: center;
}


.dataOut{
    position: relative;
    margin: 20px auto;
}

.card{
    border-radius: 10px;
    border: solid 1px #222;
    overflow: hidden;
}

.cardImage{
    display: block;
    margin: auto;
    width: 300px;
    height: auto;
}

.cardPrecioInicial, .cardPrecioFinal {
    text-align: center;
    font-size: 2rem;
    color: #ddd;
    background-color: #222;
    font-family: cursive;
}

.card_discount {
    border-radius: 100%;
    width: 7rem;
    height: 7rem;
    background-color: tomato;
    position: absolute;
    top: -5%;
    right: -10%;
    display: flex;
    justify-content:center;
    align-items:center;
    text-align:center;
    font-size:2rem;
    font-family: cursive;
    color: white;
    transition: all 1s;
}

.card_discount:hover{
    width: 10rem;
    height: 10rem;
    font-size:2.5rem;
    background-color: #222;
}

.cardPrecioIncial{
    text-decoration: line-through;
}

button{
    padding:15px;
    background-color:  rgb(72, 158, 255);
    color: #fff;
    font-size:2rem;
    border-radius: 15px;
    outline:none;
    border: none;
    cursor: pointer;
}

button:hover{
    background-color:  rgb(58, 127, 207);
}
