/* header fijo en cabezera */

* {
    padding: 0;
    margin: 0;
}

.header {
    width: 100%;
    max-width: 100%;
    position: center;
    height: 80px;
    background: white;
    z-index: 9999999999999;
}

@media screen {
    body>.header {
        position: fixed;
    }
}


/* Fin header */

html {
    box-sizing: border-box;
    font-size: 62.5%;
    /* Reset para REMS - 62.5% = 10px de 16px */
}

*,
*:before,
*:after {
    /* No afecta si se pone un ancho en px y se agrega un padding no incrementa y se mantega el padding */
    box-sizing: inherit;
}

body {
    /* La fuente se aplica a todos los elementos del body */
    font-family: 'Lato', sans-serif;
    font-size: 1.6rem;
    /* Tamaño por default 16px */
    line-height: 2;
}


/* Globales */

img {
    max-width: 100%;
    /* Ajusta todas las imagenes en modo responsivo */
}

.contenedor {
    width: 95%;
    max-width: 120rem;
    /* = 120px */
    margin: 0 auto;
    /* Tamaño de margen para centrar 4 propiedades arriba, derecha, abajo, izquierda */
}


/* Tamaños de letras global para todo el proyecto */

h1 {
    font-size: 3.8rem;
}

h2 {
    font-size: 3.4rem;
}

h3 {
    font-size: 3rem;
}

h4 {
    font-size: 1.8rem;
    text-align: center;
}


/* Utilidades  */

.seccion {
    /* separaciones arriba y abajoc */
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.fw-300 {
    /* Tamaño encabezado */
    font-weight: 300;
}

.centrar-texto {
    /* Centrado encabezado */
    text-align: center;
}

.d-block {
    /* Propiedad para ajustar el boton al tamaño del elemento */
    display: block!important;
}

.contenido-centrado {
    max-width: 800px;
}


/* Botones */

@media (min-width: 768px) {
    .boton {
        display: inline-block;
        flex: 30 0 auto;
    }
}

.boton:hover {
    cursor: pointer;
    /* Forzamos al boton de submit que cambie el puntero al pasar el cursor */
}

.boton-amarillo {
    background-color: #3498DB;
    font-size: 1rem;
}

.boton-anaranjado {
    background-color: #E3AB2B;
    font-size: 1rem;
}


/* Header */

.site-header.inicio {
    background-image: url(../img/header.jpg);
    /* Imagen de portada */
    background-repeat: no-repeat;
    background-position: center center;
    /* Muestra la imagen desde el centro y la expande  */
    background-size: cover;
    /* Muestra todo el ancho y alto que hay disponible proporcional */
    height: 100vh;
    /* cubre la altura de la pantalla */
    min-height: 60rem;
    /* Ajusta el minimo de la resolucion*/
}

.site-header.final {
    background-color: black;
    background-position: center center;
    /* Muestra la imagen desde el centro y la expande  */
    background-size: cover;
    /* Muestra todo el ancho y alto que hay disponible proporcional */
    height: 20vh;
    /* cubre la altura de la pantalla */
    min-height: 10rem;
    /* Ajusta el minimo de la resolucion*/
}

.contenido-header {
    height: 100%;
    /* altura 100% */
    display: flex;
    /* La direccion del contenido */
    flex-direction: column;
    /* Se indica el posicionamiento del contenido */
    justify-content: space-between;
    /* Permite alinear contenido uno arriba y otro abajo */
    text-align: center;
}

@media (max-width: 768px) {
    .contenido-header {
        text-align: left;
    }
}

.contenido-header h1 {
    color: white;
    padding-bottom: 2rem;
    /* Agrega espacio hacia adentro del elemento */
    max-width: 60rem;
    line-height: 1.8;
    /* Ajusta la separacion del texto */
    font-family: 'Lato', sans-serif;
}

.barra {
    padding-top: 0;
    /* Espacio con el elemento hacia abajo */
    display: flex;
    /* Coloca el elemento logotipo lado izq y menu lado derecho */
    justify-content: space-evenly;
    /* Alinea el elemento uno a la izquierda y otra a la derecha horizontal */
    align-items: center;
    /* Alinea verticalmente al centro el nav y el logo */
}

@media (min-width: 768px) {
    .barra {
        display: flex;
        /* Coloca el elemento logotipo lado izq y menu lado derecho */
        justify-content: space-evenly;
        /* Alinea el elemento uno a la izquierda y otra a la derecha horizontal */
        align-items: center;
        /* Alinea verticalmente al centro el nav y el logo */
    }
}


/* Navegacion */

.navegacion a {
    color: white;
    text-decoration: none;
    /* Quita la linea del texto */
    font-size: 2.2rem;
    /* 2rem equivale a 20px */
}

.navegacion a:hover {
    /* Cambia de color al seleccionar cualquier icono de navegacion */
    color: #024B7A;
}

.navegacion a {
    color: #277EB6;
    font-size: 1em;
}


/* Iconos nosotros */

@media (min-width: 768px) {
    .iconos-nosotros {
        display: flex;
        /* Posiciona el elemento uno fente al otro */
        justify-content: space-between;
        /* Ajusta el elemento y deja un espacio entre los elementos*/
    }
}

.icono {
    text-align: center;
}

@media (min-width: 768px) {
    .icono {
        flex-basis: calc(50.0% - 1rem);
        /* Asigna a cada elemento el mismo ancho */
    }
}

.icono h3 {
    text-transform: uppercase;
    /* Convierte los heading en Mayusculas */
}


/* Anuncios */

@media (min-width: 768px) {
    .contenedor-anuncios {
        display: flex;
        /* Posiciona el elemento uno frente al otro */
        justify-content: space-between;
        /* Ajusta el elemento y deja un espacio entre los elementos */
        padding-top: 2rem;
        /* Espacio con el elemento hacia abajo */
    }
}

.anuncio {
    border: 1px solid gray;
    /* Ancho del borde, 1 linea, color del borde */
    background-color: ghostwhite;
    margin-bottom: 1.1rem;
}

@media (max-width: 768px) {
    .anuncio {
        flex: 0 0 calc(33.3% - 1 rem);
        /* Ajusta el tamaño del elemento en automatico */
    }
}

.contenido-anuncio {
    padding: 2rem;
    /* Margen dentro del elemento top, right, bottom, left */
}

img {
    display: block;
    margin: auto;
}

.contenido-anuncio h3,
.contenido-anuncio h4,
.contenido-anuncio p {
    margin: 0;
    /* Elimina el margen o separacion de los texto */
    padding: 0;
}

@media (min-width: 768px) {
    .contenido-anuncio {
        flex: 0 0 calc(33.3% - 1 rem);
    }
    img {
        display: block;
        margin: auto;
    }
}

.contenido-anuncio h3,
.contenido-anuncio h4,
.contenido-anuncio p {
    margin: 0;
    /* Elimina el margen o separacion de los texto */
    padding: 0;
}

.precio {
    color: black;
    font-weight: 700;
    /* El tamaño de h1 por default es de 700 y p es de 400 */
}

.ver-todas {
    display: flex;
    justify-content: flex-end;
    /* Ajusta el boton de lado derecho */
}


/* Contacto */

legend {
    font-size: 2rem;
    color: #4f4f4f;
}

label {
    font-weight: 700;
    /* Tamaño del label */
    text-transform: uppercase;
    /* Transforma el texto en Mayusculas */
    display: block;
    /* Toma todo el espacio disponible */
}

input:not([type="submit"]),
textarea {
    /* Los input tomaran estos cambios menos el boton submit */
    padding: 1.5rem;
    /* Incrementa el espacio de todos sus lados del elemento */
    display: block;
    /* Toma todo el espacio disponible */
    width: 95%;
    /* Forzamos que mida 100 % */
    background-color: #e1e1ee;
    /* Fondo de color */
    margin-bottom: 2rem;
    /* Realiza la separacion del otro elemento */
    border: none;
    /* Tipo de borde */
    border-radius: 1rem;
    /* Esquinas redondeadas */
}

textarea {
    height: 20rem;
}

.privacidad a {
    /* Cambia de color al seleccionar cualquier icono de navegacion */
    color: white;
}

.privacidad a:hover {
    /* Cambia de color al seleccionar cualquier icono de navegacion */
    color: #0090F3;
}

.site-footer {
    padding: 0rem 0.1rem;
    background-color: black;
    margin: 0;
}

.contenedor-footer {
    padding: 3rem 0;
    text-align: center;
    color: white;
}

@media (min-width: 768px) {
    .contenedor-footer {
        justify-content: space-between;
        color: white;
    }
}

img {
    /* Se les da formato a las imagenes para que sean responsive */
    max-width: 100%;
}

.headerlogo {
    /* Se crea contenedor para realizar el proyecto responsive */
    max-width: 100%;
    /* Se le asigna el margen al logotipo en el header */
    margin: 0 50em 0 auto;
}

.page-heading {
    font-size: 2em;
    font-weight: bold;
    margin: 20px 40px;
    width: 85%;
}

input.checkout {
    background-color: #ffb932;
    border-color: #ffc87a #e2a348 #da9d0a;
    padding: 13px;
    text-align: center;
    cursor: pointer;
    color: #000;
    width: 100px;
    margin-left: 40px;
}

div#empty-cart {
    padding: 15px;
    text-align: center;
    cursor: pointer;
    font-weight: bold;
}

#cart-icon-container {
    cursor: pointer;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #8cc152;
}

#floating-cart-container {
    position: fixed;
    top: 50%;
    right: 0px;
    cursor: pointer;
    width: 80px;
    height: 80px;
}

#cart-icon {
    margin-top: 15px;
    margin-left: 22px;
}

div#tot {
    display: none;
}

div#count {
    position: relative;
    font-size: 0.8em;
}

#shopping-cart {
    display: block;
    font-size: 0.9em;
    height: auto;
    margin: 20px 40px !important;
    width: 85%;
}

strong#totamt {
    margin-left: 180px;
}

input.quantity {
    width: 40px;
}

div#count {
    margin-left: 36px;
    margin-top: 4px;
    color: #ffffff;
}

div#tot {
    background-color: #8080801c;
    padding-bottom: 12px;
    padding-top: 12px;
}

div#txt-heading {
    margin-top: 0px;
    background-color: rgba(224, 224, 224, 1);
    height: 37px;
}

#cart-heading {
    padding: 10px 15px;
    display: inline-block;
}

div#carttable {
    margin-top: 5px;
}

#btnEmpty {
    color: #d00000;
    cursor: pointer;
}

div#close {
    position: relative;
    bottom: 68px;
    right: 10px;
    cursor: pointer;
    float: right;
    padding: 6px -3px -1px 6px;
    padding-bottom: -7px;
}

img.cart-item-image {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: #E0E0E0 1px solid;
    padding: 5px;
    vertical-align: middle;
    margin-right: 15px;
}

#product-grid {
    margin: 20px 40px;
    width: 85%;
}

#product-grid .txt-heading {
    font-size: 1.5em;
    margin-bottom: 7px;
    margin-right: 105px;
    font-weight: bold;
}

.product-image {
    height: 107px;
    width: 175px;
    background-color: #FFF;
}

.cart-action {
    cursor: pointer;
}

input.btnAddAction {
    background-color: #ffb932;
    border-color: #ffc87a #e2a348 #da9d0a;
    color: #000;
    padding: 5px 10px;
    margin-left: 55px;
    text-decoration: none;
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    bottom: 5px;
    width: auto;
}

.btnRemoveAction {
    cursor: pointer;
}

#tbl-cart {
    border: 1px solid #CCC;
    background-color: white;
}

#cart-table {
    font-size: 0.9em;
}

.text-right {
    text-align: right;
}

table#cart-table th {
    font-weight: normal;
    border-bottom: #F0F0F0 1px solid;
    text-align: left;
}

table#cart-table th.text-right {
    text-align: right;
}

table#cart-table td.text-right {
    text-align: right;
}

table#cart-table td {
    border-bottom: #F0F0F0 1px solid;
}

table#cart-table tr:last-child td {
    border: none;
}

.inline-block {
    display: inline-block;
}

.row {
    margin: 15px 0px;
    display: flex;
}

.billing-details {
    margin: 20px 40px;
    width: 85%;
}

.billing-detail-heading {
    font-size: 1.5em;
    margin-bottom: 20px;
    margin-right: 105px;
    font-weight: bold;
}

.form-label {
    width: 150px;
    margin-top: 10px;
}

input.input-box-330 {
    border: 1px solid #9a9a9a;
    width: 200px;
    border-radius: 3px;
    padding: 7px;
}

.seller-note {
    width: 200px;
    border-radius: 4px;
}

.seller-label {
    width: 150px;
    margin-bottom: 3px;
}

#one-page-checkout-form .error {
    color: #ee0000;
    padding: 0px;
    background: none;
    border: #ee0000;
}

#one-page-checkout-form .error-field {
    border: 1px solid #d96557;
}

#one-page-checkout-form .error:before {
    content: '*';
    padding: 0 3px;
    color: #D8000C;
}

.product-img {
    height: 100px;
}

.payment-details {
    margin: 20px 40px;
    width: 85%;
}

.payment-details-heading {
    font-size: 1.5em;
    margin-bottom: 20px;
    margin-right: 105px;
    font-weight: bold;
}

input.bank-transfer {
    width: 20px;
}

.info-label {
    width: 100%;
    margin-top: 20px;
    font-size: .9em;
    color: #737373;
}

div.order-message {
    margin: 0px 40px;
    padding: 10px;
    border-radius: 3px;
    opacity: 0.83;
    transition: opacity 0.6s;
}

div.order-success {
    color: #00883a;
    background-color: #aef1ca;
    border: 1px solid #9fdeb9;
}

.btn-message-close {
    margin-left: 15px;
    color: #888;
    font-weight: bold;
    float: right;
    font-size: 22px;
    line-height: 20px;
    cursor: pointer;
    transition: 0.3s;
}

.cart-error-message {
    margin: 0px 40px;
    color: #D8000C;
    display: none;
}