:root {
    --FuentePrincipal:"Open Sans";
}

body {
    background-color: #222222;
    font-family: var(--FuentePrincipal),sans-serif;
}
*,:after,:before{
    box-sizing: inherit;
}
html {
    box-sizing: border-box;
    font-size: 62.5%;
}
.no-margin {margin: 0;}
.no-padding {padding: 0;}
a {text-decoration: none}
.contenedor {
    display: flex;
    flex-direction: column;
    border-radius:5px ;
    margin: 10rem auto;
    max-width: 40rem;
    width: auto;
    height: auto;
    padding: 2rem;
    background-color: white;
    gap: 10px;
}
.contenedor--header {
    display: flex;
    width: auto;
    gap: 1rem;

}
.contenedor--header h2 {
    text-align: center;
    font-family: monospace;
    font-size: 2rem;
    background-color: #e4f3f6;
    height: 100%;
    padding: 1rem;
    border-radius: 5px;
    flex: 1 1 auto;
}
#detalleProducto {
    text-align: center;
    font-size: 1.2rem;
    padding: 1rem;
    align-self: center;
    cursor: pointer;
    border-radius: 5px;
    border: none;
    transition: all ease 0.3s;
    font-weight: bold;
    flex: 1 1 5rem;
    background-color: #e4f3f6;

}
#detalleProducto:hover {
    transition: box-shadow ease 0.3s;
}
a {
    color: black;
}
.infoProducto {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    background-color: #e4f3f6;
    width: 100%;
    height: 100%;
    border-radius: 5px;
    padding: 1.5rem;
}
.agreProducto {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    width: 95%;
    margin: auto;
    gap: 10px;
}
.infoProducto--campo {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    font-weight: bold;
    gap: 1rem;

}
.infoProducto--campo:first-of-type {
    background-color: #319d90;
    font-size: 2rem;
    border-radius: 5px;
}
.infoProducto--campo:last-of-type {
}
#lastProduct {
    text-align: center;
    overflow: auto;
    background-color: #319d90;
    padding: 1rem;
    border-radius: .5rem;
}
.agreProducto--campo {
    background-color: #319d90;
    border-radius: .5rem;
    margin: auto;
    display: flex;
    flex-direction: column;
  width: 100%;
    padding: .5rem;
    gap: 1rem;

}
.agreProducto label {
    font-size: 1.5rem;
    text-align: center;
    color: #e4f3f6;
}
.agreProducto input {
    background-color: #e4f3f6;
    border-radius: .5rem;
    border: none;
    width: auto;
    padding: 1rem;
    text-align: center;
}
input::placeholder {text-align: center}
.boton {
    display: flex;
    background-color: unset;
    flex-wrap: wrap;
    flex-direction: row;
    flex: 1 1 auto;
    justify-content: flex-end;
}
#agregarproducto {
    padding: 1rem;
    border-radius: .5rem;
    border: none;
    cursor: pointer;
    font-weight: bold;
    flex: 1 1 5rem;
}
#agregarproducto:hover {
    background-color: #e4f3f6;
}
#agregarproducto:active {
    margin-top: 1px;
}
p {
    font-size: 1.2rem;
    align-self: center;
}
#TotalActual{
    font-size: 2rem;
    width: 10rem;
    height: 100%;
    padding: 1rem;
    text-align: center;
    color: #e4f3f6;
}

@media (max-width: 45rem) {
    #agregarproducto,#detalleProducto {
        width: 100%;
        padding: 1.5rem;
        font-size: 1.5rem;
    }
    .contenedor {
        width:95%;
        margin-top: auto;
        padding: 0;
        margin-bottom: 0;
    }
    .agreProducto {
        width: 100%;
    }
    .contenedor--header {
        padding: 1rem;
    }
    .contTable {
        margin-top: auto;
    }
    input {
        padding: 2rem !important;
    }

    .boton {
        flex-direction: column;
    }

}
/*Detalles del producto*/

.botonDetalle {
    text-align: center;
    padding: 1.5rem;
}

@media (max-width: 45rem) {
    .contTable {

        padding: 1.5rem;
    }
    table {
        table-layout: fixed;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }
    .regresar {
        min-width: 100%;
        padding: 2rem;
        order:  2;
    }
    .regresar:hover {
        box-shadow: 0 0 3px 1px #319d90;
    }
    td {
            overflow: auto;
    }
}

table {
    table-layout: fixed;
    text-align: center;
    width: 100%;
}
th {
    background-color: #319d90;
    padding: 1rem;
    font-weight: bold;
    font-size: 1.6rem;
}
td {
    background-color: rgba(153, 153, 153, 0.53);
    padding: 1rem;
    height:4.5rem;
    color: #319d90;
    font-size: 1.7rem;
    text-transform: capitalize;
}
td:hover {
    box-shadow:0 0 5px 1px black;
    border-radius: 0.5rem;
    transform: scale(1.05);
    transition: all ease 0.3s;
}
caption {
    margin: 1rem 0 1rem 0;
    font-size:2.2rem;
    font-weight: bold;
}
.author {
    /*Colocar el footer hasta abajo*/
    margin-top: 1rem;
    bottom:0;
    left: 0;
    width: 100%;
    position: sticky;
    text-align: center;
    font-weight: bold;
    font-size: 1.5rem;
    color: green;
}
.regresar {
    text-align: center;
    background-color: #e4f3f6;
    font-size: 1.8rem;
    width: 15rem;
    padding: 1rem;
    border-radius: .5rem;
}
a {
    color: green;
}