:root{
    --fuente-principal: "Press Start 2P", system-ui;
    --fuente-secundaria: "IBM Plex Mono";
}

/* Cabecera */
header{
    font-size: 24px;
    box-shadow: 0px 7px 0.9px 0px #00000040;
}

header, footer{
    background-color: #5300C8;
    font-family: var(--fuente-principal);
    color: white;
    font-weight: 400;
    font-style: normal;
    display: flex;
    justify-content: center;
    align-items: center;
}

h1{
    padding: 15px 0;
}

/* contenido del main */
main{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 50px;
    font-family: var(--fuente-secundaria);
    gap: 50px;
    margin-bottom: 100px;
}

h2{
    font-family: var(--fuente-principal);
    text-align: center;
    font-size: 24px;
}

/* Registro de productos */
[data-registro]{
    display: flex;
    flex-direction: column;
    gap: 40px;
}

[data-input-text]{
    display: flex;
    flex-direction: column;
    gap: 40px;
}

input[type=text]{
    border: 3px solid #03318C;
    border-radius: 50px;
    padding: 10px;
    font-size: 16px;
    font-weight: 600;
    line-height: 20.8px;
    text-align: left;
    box-sizing: border-box;
}

input[type=text]::placeholder{
    color: #03318C;
}

[data-button]{
    display: flex;
    justify-content: space-around;
    gap: 13px;
}

[data-button] input{
    font-size: 20px;
    font-weight: 500;
    line-height: 26px;
    text-align: center;
    color: #03318C;
    background-color: transparent;
    border: 3px solid #03318C;
    border-radius: 15px;
    padding: 0;
    width: 164px;
    height: 55px;
    cursor: pointer;
    box-sizing: border-box;
}

[data-button] input:active{
    opacity: 0.8;
}

[data-enviar]{
    color: #fff!important;
    background-color: #03318C!important;
}

/* Area de productos */
[data-container-productos]{
    display: flex;
    gap: 10px;
    padding: 10px;
    overflow: auto;
    max-width: 100vw;
    box-sizing: border-box;
}

.producto{
    background-color: #5300C8;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 196px;
    border: 3px solid #000;
    border-radius: 10px;
    padding: 10px;
    box-sizing: border-box;
    box-shadow: -5px 6px 3.3px 0px #00000040;
}

.img-producto{
    width: 176px;
    height: 174px;
    border: 3px solid #000;
    border-radius: 10px;
    box-sizing: border-box;
}

.info-producto{
    width: 100%;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Div que contiene precio y boton borrar */
.info-producto div{
    display: flex;
    justify-content: space-between;
}

/* Pie de pagina */
footer{
    flex-direction: column;
    padding: 20px 0;
    box-shadow: 0px -10px 9.5px 0px #00000040;
}

footer div{
    display: flex;
    align-items: center;
}

footer p{
    font-family: var(--fuente-secundaria);
    font-size: 16px;
    font-weight: 100;
    text-transform: capitalize;
}

@media (max-width: 430px) {
    header{
        padding: 15px 0;
    }

    header img{
        display: none;
    }

    [data-button] input{
        width: 100px;
    }
}


@media (min-width: 800px) {
    body{
        min-height: 100vh;
    }

    main{
        flex-direction: row-reverse;
        gap: 0px;
        justify-content: space-around;
        align-items: start;
        flex-wrap: wrap;
        align-content: center;
        max-width: 1300px;
        margin: 0 auto;
        position: relative;
        padding: 40px 0;
    }

    .section-mis-productos{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 678px;
    }

    [data-container]{
        width: 600px;
        height: 700px;
        padding: 15px 55px 15px 15px;
        overflow: auto;
        box-shadow: -12px 10px 5.8px 0px #00000040;
        box-sizing: border-box;
        border-radius: 10px;
    }

    [data-container-productos]{
        flex-wrap: wrap;
        justify-content: center;
    }

    footer{
        margin-top: 50px;
        width: 100%;
    }
}