@import url('https://fonts.googleapis.com/css2?family=Oswald&display=swap');

:root{
  --colBoton: #777777;
  --colBotonHover: #b91817;
  --colTextoBoton:#1a180d;
  --colTextoBotonHover:#fff;
  --colBordeProd:#333333;
  --colFondoProd: #e8e8e7;
  --colFondoScroll:#f6f5f5;
  --colFondoTabla: #999;
  --colScroll:#888;
  --colPaginacion:#b91817;
  --colPaginacionActivo: #f6f5f5;
  --colPaginacionBorde: #e8e8e7;
  --colPiePagina:rgba(255,0,0,.8);
  --colSombra:rgba(0, 0, 0, .7);  
  --separacion:2rem;
  --colFondo:#edece8;
  --colMenu:#333;
  --colFuente:#1a180d;
  --colFuente2:#fff;
  --colTextoLink: #fff;
  --colLink:#222;
  --ColLinkHover: #fff;
  --colElemento:#888;
  --colElemento2: #981914;
  --colElemento3:#333;
  --colElemento4:#fff;  
  --colFondo1: rgb(210,210,210);
  --colFondo2: rgb(50,50,50);
  --fuente: 'Roboto Condensed', sans-serif;
  --fuenteElemento:'Roboto Condensed', sans-serif;
  --fuente2: 'Lato', sans-serif;
  --fuenteProd: 'Oswald', sans-serif;;
}

* {
  box-sizing: border-box;
  margin:0;
  padding:0;
  border:none;
}

article,body,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section,img{
  display: block;
}

html{
  margin:0 auto;
  font-family: var(--fuente2);
  font-size: 18px;
  width: 100%;
  scroll-behavior: smooth;
}

html::-webkit-scrollbar{
  width: .6rem;
}

::-webkit-scrollbar-track{
  border-radius: 0;
  background: var(--colFondoScroll);
}

html::-webkit-scrollbar-thumb{
  border-radius: 5px;
  background:var(--colScroll);
}

body{
  min-height: 100vh;
}

/* Estilos Generales */
.boton{
  background:var(--colBoton);
  color:var(--colTextoBoton);
  border: none;
}

.boton:hover{
  background: var(--colBotonHover);
  color: var(--colTextoBotonHover);
  cursor: pointer;
}

.sombra{
  box-shadow: 0px 2px 2px 1px rgba(0, 0, 0, 0.7);
}

/******************* Fin Estilos Generales *******************/

main.pagina-login {
    justify-content: center;
    align-items: center;
    padding: 1rem;
    box-sizing: border-box;
}

/* Ajuste del cuadro de login */
main.pagina-login > .modal {
    width: 100%;
    max-width: 50ch;
    margin: 0;
}

.modal {
  box-shadow: #111, 0 0 0 100vw rgb(0 0 0 / 0.7);
  background: #fff;
  color: #222;
  border: 1px solid #111;
  border-radius: 0.75rem;
  padding: 2rem;
  text-align: center;
  margin: 0 auto;
}

.modal {
  max-width: 50ch;
}

form .txt_field{
  position: relative;
  margin: 2rem 0.5rem;
}

#email{
  text-transform: lowercase;
}

.txt_field label{
  position: absolute;
  top: 65%;
  left: .35rem;
  color: #adadad;
  transform: translateY(-70%);
  font-size: 1rem;
  pointer-events: none;
  transition: 1s;
}

.txt_field span::before{
  content: '';
  position: absolute;
  top: 2.5rem;
  left: 0;
  width: 0%;
  height: 2px;
  transition: 1s;
}

.txt_field input:focus ~ label,
.txt_field input:valid ~ label{
  top: -5px;
  color: #red;
}

.txt_field input:focus ~ span::before,
.txt_field input:valid ~ span::before{
  width: 100%;
}

.pass{
  margin: -.35rem 0 1.25rem .35rem;
  color: #a6a6a6;
  cursor: pointer;
}

.pass:hover{
  text-decoration: underline;
}

.pass:visited{
  color: #a6a6a6;
}

.txt_field input.valido{
  border: 1px solid var(--verde);
}

.txt_field input.invalido{
  border: 1px solid var(--rojo);
}

input[type="submit"]{
  width: 60%;
  margin: 0 auto;
  height: 2.5rem;
  border: 1px solid;
  background: red;
  border-radius: 2rem;
  font-size: 1.2rem;
  color: #e9f4fb;
  font-weight: 700;
  cursor: pointer;
  outline: none;
}

.signup_link{
  margin: 2rem 0;
  text-align: center;
  font-size: 1rem;
  color: #666666;
}

.signup_link a{
  color: red;
  text-decoration: none;
}

.signup_link a:hover{
  text-decoration: underline;
}

/* Estilos para el botón cuando está deshabilitado */
input[type="button"]:disabled {
  cursor: not-allowed; /* Cambia el cursor a "no permitido" cuando el botón está deshabilitado */
  background-color: #ccc; /* Cambia el color de fondo cuando el botón está deshabilitado */
}

button:disabled{
  cursor: not-allowed; /* Cambia el cursor a "no permitido" cuando el botón está deshabilitado */
  background-color: #ccc; /* Cambia el color de fondo cuando el botón está deshabilitado */
}

.display-error{
  height: 2rem;
  line-height: 2rem;
  font-size: .8rem;
  color: var(--rojo-oscuro);
}

.form-control{
  display: flex;
  height: 2.5rem;
  width: 100%;
  border: 1.5px solid var(--gris-suave);
  color: var(--gris-oscuro);
  font-size: 1.2rem;
  padding: 0.2rem;
  background: none;
  outline: none;
  transition: all 2s ease;
  font-family: 'Roboto Condensed', sans-serif;
}

.form-control:hover{
  box-shadow: 3px 3px 8px 1px var(--sombra);
  transition: all 2s ease;
}

#error{
  display: none;
}

#cargaPagina{
  position: fixed;
  top:0;
  left: 0;
  background: white;
  width: 100%;
  height: 100%;
  z-index: 1300;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all .5s ease;
  visibility: visible;
  opacity: 1;
}

.loader {
  width: 5rem;
  height: 5rem;
  background-image: url("/img/favicon.png");
  background-repeat: no-repeat;
  background-position: center;
}

.loader::before {
 content: "";
 box-sizing: border-box;
 position: absolute;
 width: 5rem;
 height: 5rem;
 border-radius: 50%;
 border-top: 2px solid var(--colBotonHover);
 border-right: 2px solid transparent;
 animation: spinner8217 0.8s linear infinite;
}

@keyframes spinner8217 {
 to {
  transform: rotate(360deg);
 }
}

#imagenModal, #ventanaCarrito{
  position: fixed;
  top:0;
  left: 0;
  background: rgb(0, 0, 0,.8);
  width: 100%;
  height: 100%;
  z-index: 1005;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 1s ease;
  opacity: 0;
  visibility: hidden;
}

.fotoMaximizada{
  position: relative;
  height: auto;
  width: auto;
  max-height: 80%;
  padding: .8rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.fotoMaximizada img{
  height: 80vh;
  object-fit: contain;
}

#imagenModal span, #ventanaModal span{
  position: absolute;
  display: flex;
  align-items: center;
  font-size: 1.7rem;
  width: 2rem;
  margin: 0 auto;
  text-align: center;
  line-height: 2rem;
  border-radius: 1rem;
  color:var(--colTextoBotonHover);
  left:2rem;
  top:2rem;
  border: 1px solid var(--colTextoBotonHover);
}

#imagenModal span p, #ventanaModal span p{
  margin: 0 auto;
}

#imagenModal span:hover, #ventanaModal span:hover{
  cursor: pointer;
  background: rgb(0,0,0,.8);
  border: 1px solid var(--colTextoBotonHover);
}

.fondoCarrito{
  position: fixed;
  display: flex;
  right: -600px;
  flex-wrap: wrap;
  height: 100vh;
  width: 600px;
  justify-content: center;
  align-items: center;
  background: var(--colFondoProd);
  overflow: hidden;
  transition: all .5s ease-in;
}

#infoCarrito{
  width: 100%;
  margin: 0 auto;
  padding: 0.5rem .5rem;
  background: var(--colTextoBotonHover);
  border: 1px solid var(--colFondoTabla);
  border-radius: .3rem;
  text-align:center;
}

#carrito{
  padding: 0.5rem .5rem;
  background: var(--colTextoBotonHover);
  border: 1px solid var(--colFondoTabla);
  border-radius: .3rem;
  text-align: center;
  width: 100%;
}

.prodCarrito{
  position: relative;
  display: flex;
  width: 100%;
  margin: 0 auto;
  padding: 0.5rem .5rem;
  background: var(--colTextoBotonHover);
  border: 1px solid var(--colFondoTabla);
  border-radius: .3rem;
  flex-direction: row;
  gap: 1rem;
  margin-bottom: .5rem;
}

.fotoCarrito{
  width: 15rem;  
}

.detalleCarrito{
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  gap: .5rem;
  width: 100%;
}

.codigoCarrito{
  font-size: .85rem;
  color:var(--colFondoTabla);
  text-align: left;
}

.descripcionCarrito{
  font-size: 1rem;
}

.operacionCarrito{
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.8rem;
}

.cantCarrito{
  width: 40%;
  font-size: .85rem;
  line-height: 1.2rem;
}

.totalCarrito{
  width: 60%;
  text-align: right;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2rem;
}

.totales{
  display: flex;
  /*float: right;*/
  width: 55%;
  margin: 0 auto;
  padding: 0.5rem .5rem;
  background: var(--colTextoBotonHover);
  border: 1px solid var(--colFondoTabla);
  border-radius: .3rem;
  flex-direction: row;
  flex-wrap: wrap;
  margin-bottom: .5rem;
}

.tituloTotales{
  width: 50%;
  line-height: 2rem;
  text-align: left;
}

.importeTotales{
  width: 50%;
  line-height: 2rem;
  text-align: right;
}

main{
  display: flex;
  width: 100%;
  flex-direction: column;
  margin: 0 auto;
  background: linear-gradient(120deg,var(--colFondo1), var(--colFondo2));
  min-height: 100vh;
}

h2{
  text-align: left;
  font-size: 2rem;
  padding: 0;
}

h3{
  margin: 0 auto;
  margin-top: 2rem;
  text-align: center;
  font-size: 1.2rem;
  padding: 0;
}

h4{
  text-align: center;
  font-size: 1.25rem;
  padding: 1rem;
}

img {
  width: 100%;
  height: auto;
  margin:0 auto;
  border:none;
}

img.imgcenter{
  vertical-align: middle;
  object-fit: cover;
} 

/***** Header  *******/

img.logo{
  display:block;
} 

.encabezado{
  display: flex;
  width: 100%;
  max-width: 1400px;
  height: 5rem;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center
  padding: .75rem 0 .75rem 1rem;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--colorFuente);
}

.logo img{
  height: 3rem;
}

.log:hover{
  cursor: pointer;
}

#usuario{
  display: flex;
  flex-direction:row;
  position: relative;
  margin-right: 1rem;
}

#datos{
  display: flex;
  flex-direction:column;
  margin-right:.8rem;
  color: var(--colFuente2);
  line-height:3rem;
  text-align: right ;
}

#razonSocial{
  line-height:2rem;
  font-size:.9rem;
  max-height: 2rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

#cuit{
  line-height:1rem;
  font-size:.75rem;
}

.botones{
  margin: .2rem 0 0 .8rem;
  height: 3rem;
  width: 3rem;
  border-radius: 1.5rem;
  cursor: pointer;
  transition: all ease 1.5s;
}

.botones:hover{
  box-shadow: 0rem .2rem .3rem var(--colSombra);
  background: var(--colBotonHover);
}

.logomovil{
  display: none;
}


/****** Menu ********/
.botonesMovil{
  display: flex;
  flex-direction: row;
  height: 2.5rem;
  width: 7rem;
  display: none;
}

.navegador{
  display: flex;
  justify-content: center;
  flex-direction: row;
  width: 95%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0; 
  background: var(--colMenu);
  border-radius: 1.5rem;
  border: 2px solid var(--colElemento4);
  height: 3.2rem;
  text-align: center;
  box-shadow: 0px 5px 5px -2px var(--colSombra);
}

.menu {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu li {
  display: inline-block;
  padding: .75rem .75rem;
}

.menu a {
  text-transform: uppercase;
  color: var(--colTextoLink);
  font-size: .9rem;
  font-weight: 500;
  line-height: 1.5rem;
  position: relative;
  transition: width 0.25s ease-out;
  padding: .65rem .65rem;
  border-radius: 1.25rem;
  text-decoration: none;
}

.menu a:hover {
  background: white;
  color: var(--colLink);
  transition: all ease 1.5s;
}

.menu i{
  font-size: 1.875rem;
}

.menu a.active{
  background: white;
  color: var(--colLink);
}

.abrir-menu, .cerrar-menu {
  color: var(--colFuente2);
  display: none;
  width: 3rem;
}

.abrir-menu img{
  width: 1.5rem;
}

.logotype {
  display: flex;
  justify-content: center;
}

#imagen{
    width:70%;
    height:auto;
    max-height: 200px;
    margin: 0 auto;
}

.contenido{
  margin: 0 auto;
  margin-top: 1.2rem;
  margin-bottom: 2rem;
  width: 95%;
  max-width: 1300px;
  display: flex;
  padding: 1rem 0 2rem 0;
  flex-direction: column;
  background: rgba(255,255,255,0.9);
  border-radius: 1rem;
  border: 1px solid rgba(0,0,0,.5);
}

.Info{
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.datosInfo{
  display: flex;
  flex-direction: column;
  width: 80%;
  margin: 0 auto;
  margin: 1rem;
  padding: 1rem;
  border: 1px solid var(--colFondoTabla);
  border-radius: .5rem;
}

.datosInfo p{
  padding: .3rem 0;
  line-height: 1.5rem;
  font-size: 1.3rem;
}

.listado{
  display: flex;
  flex-wrap: wrap;
  padding: 1rem .5rem;
}

.headerProductos{
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-evenly;
  gap: 1rem;
}

.filtro{
  position: relative;
  width: 40%;
  display: flex;
  flex-wrap: wrap;
}

.filtro img{
  position: absolute;
  top: .7rem;
  right: 1rem;
  width: .9rem;
  background: none;
}

.filtroListado{
  margin: 0 auto;
  width: 50%;
}

.filtro label{
  position: absolute;
  font-size: .9rem;
  line-height: 2.5rem;
  color: var(--colorFuente);
}

.rubro{
  display: flex;
  height: 2.5rem;
  width: 100%;
  border:2px solid var(--colElemento);
  padding: 0 4rem 0 1rem;
  background: none;
  outline: none;
  color: var(--colorFuente);  
  font-size: .9rem;
  box-shadow: none;
  cursor:pointer;
  appearance: none;
  transition: all 2s ease;
  font-family: var(--fuenteElemento);
  border-radius: 1.25rem;
  z-index: 1;
}

#selectrubro option{
  padding: .8rem;
}

#selectrubro select{
  border-radius: 1.25rem;
}

.RubroCompra{
  padding: 0 4rem;
}

.rubro:hover{
  box-shadow: 3px 3px 8px 1px var(--colorsombra);
  transition: all 2s ease;
}

.busqueda{
  position: relative;
  width: 40%;
  display: flex;
  flex-wrap: wrap;
  height: 2.5rem;
  background: none;
}

.busqueda .form-control{
  display: flex;
  height: 2.5rem;
  width: 100%;
  border: 2px solid var(--colElemento);
  color: var(--colorFuente);
  font-size: .9rem;
  padding: 0 0 0 2.75rem;
  background: none;
  outline: none;
  transition: all 2s ease;
  border-radius: 1.25rem;
  font-family: var(--fuenteElemento);
}

.busqueda .form-control:hover{
  box-shadow: 3px 3px 8px 1px var(--colorsombra);
  transition: all 2s ease;
}

.busqueda img{
  position:absolute;
  top: .4rem;
  left: 3%;
  width: 1.7rem;
  background: none;
}

::-webkit-input-placeholder{
    color: var(--colorFuente);
}

.label{
  display: inline-block;
  line-height: 2.5rem;
  font-size: 1.1rem;
  padding: 0 .75rem;
}

.contenedor{
  width:100%;
  height: auto;
  padding: 1.5rem 0rem;
  margin:0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  gap: 1rem
}

.producto {
  position: relative;
  width:31%;
  background-color: var(--colFondoProd);
  border: 1px solid var(--colBordeProd);
  transition: 2s all;
  font-family: var(--fuenteProd);
}

.producto img:hover{
  cursor: pointer;
}

.codigo{
  display:block;
  width:100%;
  font-size:1rem;
  line-height:1.2rem;
  text-align:left;
  font-weight: bold;
  padding: 0 .5rem;
  margin-top: .3rem;
  font-family: var(--fuenteProd);
}
  
.descripcion{
  width:100%;
  font-size:0.9rem;
  line-height:1.2rem;
  text-align:left;
  padding: 0 .5rem;
  margin-top: .3rem;
}

.noencontrado{
  width: 100%;
  line-height: 1.5rem;
  font-size: 1.2rem;
  text-align: center;
  padding: .75rem;
}

.existencia{
  position: absolute;
  right: 0rem;
  top: 1rem;
  border-top-left-radius: .4rem;
  border-bottom-left-radius: .4rem;
  background: var(--colBotonHover);
  padding: .4rem;
  font-size:.7rem;
  color: var(--colTextoBotonHover);
}

.separador{
  height: 4.5rem;
  width: 100%;
  margin: .8rem;
}
 
.descuento{
  position: absolute;
  bottom: 5rem;
  left: 1.5rem;
  height: 4rem;
  width: 4rem;
  background: var(--colElemento2);
  border-radius:2rem ;
  color: white;
  line-height: 4rem;
  font-size: 2rem;
  text-align: center;
} 

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

.precio{
  width:100%;
  font-size:2rem;
  line-height:3rem;
  text-align:right;
  color: var(--colFuente4);
  padding: 0 0.5rem;
}
  
.masIVA{
  font-size: 0.8rem;
  line-height: 1rem;
  text-align: right;
  padding: 0 0.5rem;
}
  
.Agregarcarrito{
  display: flex;
  width: 95%;
  flex-wrap: wrap;
  flex-direction: column;
  justify-items: center;
  justify-content: space-between;
  margin: .8rem 0.5rem;
  gap: .3rem;
}

.container{
  margin: 0 auto;
  height: 2rem;
  width: 8rem;
  display: flex;
  background: #ffffff;
  border-radius: .9rem;
  border: 2px solid var(--colBoton);
}

.cantidades{
  appearance: textfield;
  text-align: center;
  width: 5rem;
  font-size: 1rem;
  border: none;
  background: #ffffff;
}

.cantidades::-webkit-outer-spin-button,
.cantidades::-webkit-inner-spin-button{
    -webkit-appearance: none;
    margin: 0;
}

.decrement, .increment{
    color: var(--colBoton);
    background: #ffffff;
    width: 1.5rem;
    height: 1.6rem;
    line-height: 1.7rem;
    text-align: center;
    font-weight: 400;
    font-size: 1.5rem;
    cursor: pointer;
    border:none;
}

.decrement{
    border-radius: .9rem 0 0 .9rem;
}
.increment{
    border-radius: 0 .9rem .9rem 0;
}

.increment:hover, .decrement:hover{
  color: var(--colBotonHover);
}

.boton-agregar {
  margin: 0 auto;
  position: relative;
  height: 2rem;
  width: 8rem;
  border-radius: 1rem;
  text-align: center;
  transition: background-color .15s ease-in-out;
  cursor: pointer;
}

.imgAgregar, .imgEnviar, .imgEliminar {
  position: absolute;
  margin:0;
  top: 0.15rem;
  left: 0.15rem;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: .85rem;
  background: var(--colElemento4);
}

.imgAgregar img{
  position: relative;
  width: 100%;
  height: auto;
  margin:0 auto;
  border:none;
  text-align:center;
} 

.imgEnviar img, .imgEliminar img{
  position: relative;
  width: 100%;
  height: auto;
  margin:0 auto; 
  border:none;
  text-align:center;
}

.txtAgregar, .txtEnviar, .txtEliminar{
  position: absolute;
  height: 2rem;
  line-height: 2rem;
  font-size: 1rem;
  font-weight: 600;
  right: 1.35rem;
  top: 0;
}

.txtEnviar{
  right: 1.7rem;
}

.paginacion{
  display: flex;
  width: 100%;
  flex-direction: column;
  justify-content: space-evenly;
  align-content: center;
}

.lbl-total{
  text-align: center;
  display: block;
}

.nav-paginacion{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  width: 100%;
  padding: 0;
}

.pagination{
  display: flex;
  flex-direction: row;
  margin: 0 auto;
  height: 2.5rem;
  padding: .25rem 1.2rem;
  text-decoration: none;
  list-style: none;
  background: var(--colPaginacion);
  border-radius: 1.25rem;
}

.page-item a:hover{
  border: 1px solid var(--colPaginacionBorde);
}

.activo a{
  border: 1px solid var(--colPaginacionBorde);
  color: var(--colBotonHover);
  background: var(--colPaginacionBorde);
  font-weight: 700;
}

.activo a:hover{
  color: var(--colBotonHover);
}

.page-link {
  display: inline-block;
  text-decoration: none;
  border: 1px solid var(--colPaginacionBorde);
  padding: 0 0rem;
  width: 2rem;
  height: 2rem;
  line-height: 2rem;
  text-align: center;
  font-size: 1.2rem;
  margin: 0rem;
  color: var(--colTextoBotonHover);  
}

.fotos{
  width: 100%;
}

#vistaCarrito{
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items:flex-start;
  overflow-y: auto;
  padding-top: 2rem;
  width: 98%;
  height: 95%;
}

#vistaCarrito::-webkit-scrollbar{
  width: 5px;
}

#contenidoCarrito{
  margin: 0 auto;
  width: 98%;
}

#vistaCarrito::-webkit-scrollbar-thumb{
  border-radius: 5px;
  background:var(--colElemento2);
}

#vistaCarrito i:hover{
  cursor: pointer;
}

.eliminar{
  position: absolute;
  top: .5rem;
  right: .5rem;
  width: 1.2rem;
  height: 1.2rem;
  line-height: 1.2rem;
  font-size: 1rem;
  margin: 0 auto;
  text-align: center;
  border: none;
  background: none;
  color: var(--colTextoBoton);
  border-radius: .6rem;
  cursor: pointer;
}

.eliminar:hover{
  background: var(--colBotonHover);
  color: var(--colTextoBotonHover);
  border: none;
}

#cargandoCarrito{
  position: fixed;
  right: 0px;
  height: 100vh;
  width: 100vw;
  max-width: 600px;
  padding: .8rem;
  background: var(--colFondoProd);
  overflow: hidden;
  transition: all .5s ease-in;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1100;
}

.carga{
  position: relative;
  height: auto;
  width: auto;
  max-height: 80%;
  padding: .8rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.carga img {
  width: 12rem;
}

.envioCarrito{
  margin: 0 auto;
  padding: 2rem 0;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
}

.lineaCpte, .tituloCpte, .tituloPed{
  margin: 0 auto;
  display: flex;
  width: 90%;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.tituloCpte, .tituloPed{
  margin-top:1rem;
}

.lineaCpte{
  border-bottom:1px solid var(--colFondoTabla);
}

.lineaCpte:hover{
  background: var(--colBotonHover);
  color: var(--colTextoBotonHover);
}

.titulo, .tituloPedido{
  text-align: center;
  padding: .5rem .2rem;
  font-size: .8rem;
  font-weight: 700;
  background: var(--colFondoTabla);
  border:1px solid var(--colTextoBotonHover);
}

.titulo:nth-child(1), .titulo:nth-child(5){
  width: 15%;
}

.titulo:nth-child(3){
  width: 20%;
} 

.titulo:nth-child(2), .titulo:nth-child(4){
  width: 25%;
}

.titulo:nth-child(6){
  display: none;
}

.tituloPedido:nth-child(1), .tituloPedido:nth-child(3) {
  width: 15%;
}

.tituloPedido:nth-child(2) {
  width: 20%;
}

.tituloPedido:nth-child(4), .tituloPedido:nth-child(5) {
  width: 25%;
}

.datosCpte, .datosPedido{
  padding: .5rem .2rem;
  font-size: .8rem;
}

.datosCpte:nth-child(1), .datosPedido:nth-child(1) {
  width: 15%;
  text-align: center;
}

.datosCpte:nth-child(5){
  width: 15%;
  text-align: center;
  display: block;
}

.datosCpte:nth-child(6){
  width: 5%;
  text-align: center;
  display: none;
}

.datosCpte:nth-child(3) {
  width: 20%;
  text-align: center;
}

#resultadoPedidos{
  margin: 0 auto;
  width: 90%;
}

.ultimoPedido{
  display: flex;
  width: 620px;
  height: 200px;
  margin: 0 auto;
  border: 1px solid var(--colFondoTabla);
  border-radius: 10px;
  overflow: hidden;
}

.titulo_Ultimo_Pedido{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 200px;
  margin: 0;
  background-color: var(--colFondoTabla);
}

.titulo_Ultimo_Pedido h4{
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: white;
}

.pedido_grafico{
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto;
}

.pedido_detalle{
  padding-left: 20px;
  width: 370px;
}

.pedido_detalle p{
  padding: 9px 0;
}

.circulo {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto;
}

.circulo-fondo {
  position: absolute;
  top: 15px;
  left: 15px;
  width: 85%;
  height: 85%;
  border-radius: 50%;
  z-index: 0;
  /* Este bloque recorta el centro, dejando solo el borde coloreado */
  -webkit-mask: radial-gradient(circle, transparent 60%, black 61%);
  mask: radial-gradient(circle, transparent 60%, black 61%);
}

/* Separación entre partes: usamos transparencias entre los segmentos */
.estado-anulado {
  background: conic-gradient(
    lightgray 0deg 110deg,
    transparent 110deg 120deg,
    lightgray 120deg 230deg,
    transparent 230deg 240deg,
    lightgray 240deg 350deg,
    transparent 350deg 360deg
  );
  rotate: 5deg;
}

.estado-espera {
  background: conic-gradient(
    red 0deg 110deg,
    transparent 110deg 120deg,
    lightgray 120deg 230deg,
    transparent 230deg 240deg,
    lightgray 240deg 350deg,
    transparent 350deg 360deg
  );
  rotate: 5deg;
}

.estado-preparando {
  background: conic-gradient(
    orange 0deg 110deg,
    transparent 110deg 120deg,
    orange 120deg 230deg,
    transparent 230deg 240deg,
    lightgray 240deg 350deg,
    transparent 350deg 360deg
  );
   rotate: 5deg;
}

.estado-terminado {
  background: conic-gradient(
    green 0deg 110deg,
    transparent 110deg 120deg,
    green 120deg 230deg,
    transparent 230deg 240deg,
    green 240deg 350deg,
    transparent 350deg 360deg
  );
  rotate: 5deg;
}

/* Icono central perfectamente centrado */
.icono-central {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1; /* Asegura que esté encima del fondo */
}

.icono-central img {
  width: 110px;
  height: 110px;
  object-fit: contain;
}

.historial{
  padding: 10px 0;
}

.datosPedido:nth-child(3) {
  width: 15%;
  text-align: center;
}

.datosCpte:nth-child(2) {
  text-align: left;
  width: 25%;
}

.datosPedido:nth-child(2){
  text-align: left;
  width: 20%;
}

.datosPedido:nth-child(4), .datosPedido:nth-child(5) {
  text-align: left;
  width: 25%;
}

.datosCpte:nth-child(4){
  text-align: right;
  width: 23%;
}

.totalVencido, .totalVigente{
  margin: 0 auto;
  width: 90%;
  font-size: 1.5rem;
  border: 1px solid var(--colBoton);
  margin-bottom: 1rem;
  padding: .75rem;
  border-radius: .5rem;
}

.totalVigente{
  margin-top: 1rem;
}

.totalVencido{
  background: var(--colBotonHover);
  color: var(--colTextoBotonHover);
}

.totales{
  justify-content: end;
  align-items: center;
}


table {
  border-spacing: 1;
  border-collapse: collapse;
  background: white;
  border-radius: 6px;
  overflow: hidden;
  width: 90%;
  margin: 0 auto;
  position: relative;
  font-size: .85rem;
}

table * {
  position: relative;
}

table thead th{
  border: 2px solid var(--colTextoBotonHover);
  font-size: .9rem;
}

table td, table th {
  padding-left: 8px;
}

table thead tr {
  height: 60px;
  background: var(--colFondoTabla);
  border: 2px solid var(--colTextoBotonHover);
  font-size: 1rem;
}

table tbody tr {
  height: 48px;
  border-bottom: 1px solid var(--colBoton);
}

table tbody tr:hover {
  background: var(--colBotonHover);
  color: var(--colTextoBotonHover);
}

table tbody tr:last-child {
  border: 0;
}

table th{
  text-align: center;
}

table td{
  text-align: left;
  padding: 0 .5rem;
}

.alinear-centro{
  text-align: center;
}

.alinear-derecha{
  text-align: right;
}

.tabla1 td:nth-child(1), .tabla1 td:nth-child(3), .tabla1 td:nth-child(4){
  text-align: left;
}

.tabla1 td:nth-child(2), .tabla1 td:nth-child(5), .tabla1 td:nth-child(6), .tabla1 td:nth-child(7) {
    text-align: right;
}


#cierreSesion{
  position: fixed;
  top:0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1005;
  background: rgba(0,0,0,.5);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 1s ease;
  opacity: 0;
  visibility: hidden;
}

.ventana{
  position: fixed;
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  height: 32vh;
  width: 40vw;
  padding: .8rem;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: .5rem;
  background: var(--colElemento2);
  box-shadow: 0rem .2rem .3rem var(--colSombra);
}

#datos, #tiempo{
  color: var(--colFuente2);
  font-size: 1.2rem;
  line-height: 2rem;
  margin: 0 0 .5rem 0rem;
}

#SeguirConectado{
  appearance: none;
  font-size: 1.2rem;
  padding: .8rem;
  border: 1px solid var(--colElemento);
  border-radius: .5rem;
  box-shadow: 0rem .2rem .3rem var(--colSombra);
  cursor: pointer;
}

.ventanaMensaje{
  border-radius: .5rem;
  width: auto;
  margin: 2rem;
  color: white;
  font-size: 1rem;
  line-height: 1.7rem;
  background: var(--colElemento2);
  padding: .8rem 2rem .8rem 1rem;
  box-shadow: .2rem .2rem .3rem var(--colSombra);
  z-index: 2;
}

.mensaje{
  width: 100%;
  font-size: .8rem;
  line-height: 1rem;
  color: var(--colFuente2);
}

#importeDeudor{
  text-align: right;
  font-size: 2rem;
  color: var(--colFuente2);
  line-height: 2.5rem;
}

.cerrar{
  position: absolute;
  width: 1rem;
  height: 1rem;
  top: .5rem;
  right: .5rem;
  background: var(--colFuente);
  color: var(--colFuente2);
  border-radius: .5rem;
  line-height: .9rem;
  font-size: .7rem;
  text-align: center;
  cursor: pointer;
}

.cerrarCarrito{
  position: fixed;
  width: 1.6rem;
  height: 1.6rem;
  top: .5rem;
  right: 555px;
  color: var(--colBordeProd);
  border-radius: .8rem;
  line-height: 1.4rem;
  font-size: 1.4rem;
  text-align: center;
  cursor: pointer;
  z-index: 1001;
  background: var(--colFondoProd);
  border: 1px solid var(--colBordeProd);
}

.cerrarCarrito:hover{
  background: var(--colBotonHover);
  color:var(--colTextoBotonHover);
  border: 1px solid var(--colBotonHover);
}

.cantcarrito{
  position: absolute;
  margin: 0 auto;
  width: 1.7rem;
  height: 1.7rem;
  right: -.5rem;
  top: -.5rem;
  border-radius: .85rem;
  line-height: 1.7rem;
  font-size: .9rem;
  color:var(--colFuente2);
  background: var(--colElemento2);
  text-align: center;
  z-index: 2;
}

#descarga{
  display: flex;
  display: 60%;
  margin: 0 auto;
  flex-direction: row;
  justify-content:space-around;
}

.descarga{
  appearance: none;
  width: 6rem;
  height: auto;
  margin: 2rem;
  padding:  1rem;
  cursor: pointer;
  font-size: 1rem;
  border: 1px solid var(--colElemento);
  border-radius: .5rem;
  background:none;
  transition: all ease 1.5s;
}

.descarga:hover{
  box-shadow: 0rem .2rem .3rem var(--colSombra);
}

/* Medias Query */



@media all and (max-width: 830px){
  table {
    display: block;
    width: 95%;
  }
  table > *, table tr, table td, table th {
    display: block;
  }
  table thead {
    display: none;
  }
  table tbody tr {
    height: auto;
    padding: 8px 0;
  }
  table tbody tr td {
    padding-left: 45%;
    margin-bottom: 12px;
    text-align: left;
  }
  table tbody tr td:last-child {
    margin-bottom: 0;
  }
  table tbody tr td:before {
    position: absolute;
    font-weight: 700;
    width: 40%;
    left: 10px;
    top: 0;
    text-align: left;
  }
  table tbody tr td:nth-child(1):before {
    content: "F.Ingreso";
  }
  table tbody tr td:nth-child(2):before {
    content: "Estado";
  }
  table tbody tr td:nth-child(3):before {
    content: "F.Envio";
  }
  table tbody tr td:nth-child(4):before {
    content: "Transporte";
  }
  table tbody tr td:nth-child(5):before {
    content: "Remito";
  }

  table tbody tr td:nth-child(6):before {
    content: "Estado";
  }

  .tabla1 tbody tr td:nth-child(1):before {
    content: "Fecha";
  }

  .tabla1 tbody tr td:nth-child(2):before {
    content: "Sucursal";
  }

  .tabla1 tbody tr td:nth-child(3):before {
    content: "Tipo Cpte.";
  }

  .tabla1 tbody tr td:nth-child(4):before {
    content: "Nº Cpte";
  }

  .tabla1 tbody tr td:nth-child(5):before {
    content: "Debe";
  }

  .tabla1 tbody tr td:nth-child(6):before {
    content: "Haber";
  }

  .tabla1 tbody tr td:nth-child(7):before {
    content: "Saldo";
  }

  .tabla1 td:nth-child(1), .tabla1 td:nth-child(3), .tabla1 td:nth-child(4), .tabla1 td:nth-child(2), .tabla1 td:nth-child(5), .tabla1 td:nth-child(6), .tabla1 td:nth-child(7) {
    text-align: left;
  }


  .alinear-centro, .alinear-derecha{
    text-align: left;
  }

  blockquote {
    color: white;
    text-align: center;
  }

  .precio{
    font-size: 1.5rem;
    line-height: 2.5rem;
  }

  .descuento{
    bottom: 6rem;
    left: .75rem;
  }
}

@media all and (max-width: 630px) and (min-width: 481px){
  html{
    font-size: 16px;
  }

  .registro{
    /*grid-gap: .5rem;*/
  }

  .producto {
    width:45%;
  }

  .filtro, .busqueda{
    width: 47%;
  }

  .filtroListado{
    width: 55%;
  }

  .fotoCarrito{
    width:17rem;
  }

  .descuento{
    width: 3rem;
    height: 3rem;
    border-radius: 1.5rem;
    line-height: 3rem;
    font-size: 1.35rem;
    left: 1rem;
    bottom: 6rem;
  }
}

@media all and (max-width: 730px) and (min-width: 320px){
  .ultimoPedido{
    flex-direction: column;
    width: 100%;
    height: auto;
  }

  .titulo_Ultimo_Pedido{
    width: 100%;
    height: 50px;
  }

  .titulo_Ultimo_Pedido h4{
    writing-mode: horizontal-tb;
    transform: rotate(0deg);
  }

  .pedido_detalle{
    width: 95%;
  }
}

@media all and (max-width: 600px) and (min-width: 320px){
  .fondoCarrito {
    width:100%;
  }
  .cerrarCarrito{
    left:.5rem;
  }
}

@media screen and (min-width:420px) and (max-width:480px) {
 
  html{
  font-size:14px;
  }

  main{
    display:flex;
  }
  .encabezado{
    display: none;
  }

  #login2{
    display: block;
  }

  .logomovil{
    display: block;
    height: 3rem;
  }

  .logomovil img{
    margin-top: .4rem;
    height: 2.2rem;
    width: auto;
  }

  .botonesMovil{
    display: block;
    width: 5rem;
  }

  .botones{
    display: inline-flex;
    margin: .5rem .1rem 0 0;
    height: 2rem;
    width: 2rem;
  }

  .botones img{
    width: 2rem;
  }

  .navegador{
    position: fixed;
    justify-content: space-between;
    z-index: 1001;
    margin: .75rem 2.5% .75rem 2.5%;
  }

  .menu {
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    align-items: center;
    background: var(--colBotonHover);
    height: 100%;
    overflow-y: auto;
    overflow-x: none;
    z-index: 1001;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }

  .menu li {
    display: inline-block;
    width: 100%;
    line-height: 5rem;
  }

  .menu a {
    display: inline-block;
    padding: 0;
    width: 100%;
    border-radius: 0;
    line-height: 5rem;
  }

  .menu a:hover{
    border-radius: 0;
    color: var(--colorFuente);
  }

  .abrir-menu,
  .cerrar-menu {
    display: block;
    border: none;
    background: none;
    cursor: pointer;
  }

  .abrir-menu img{
    margin-left: 1.2rem;
  }

  .close-menu {
    align-self: flex-end;
    padding: 20px 15px;
  }

  .menu_abierto {
    opacity: 1;
    pointer-events: all;
  }

  .abrir-menu:focus:not(:focus-visible),
  .cerrar-menu:focus:not(:focus-visible) {
    outline: none;}

  .contenido{margin-top: 5rem;}

  #cantcarrito{display: block;}

  .producto{width:45%;}

  .filtro, .busqueda{width: 60%;}

  #selectrubro option{padding: .25rem;}

  .listado{
    padding: 1rem .5rem;
  }

  .headerProductos{
    height: auto;
    gap:1rem;
  }

  .filtroListado{
    width: 65%;
  }

  .operacionCarrito{
    margin-top: 1.2rem;
  }

  .descuento{
    bottom: 6rem;
    left: 1.5rem;
    width: 3rem;
    height: 3rem;
    line-height: 3rem;
    border-radius: 1.5rem;
    font-size: 1.35rem;
  }

}

@media all and (min-width: 320px) and (max-width:420px){

  html{
    font-size: 14px;
  }

  .cerrar-menu {
  align-self: flex-end;
  margin-top: 1rem;
  margin-right: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

  .encabezado{
    display: none;
  }
  
  .titulo:nth-child(1), .datosCpte:nth-child(1){
    width: 18%;
  }

  .titulo:nth-child(3), .datosCpte:nth-child(3){
    width: 23%;
  } 

  .titulo:nth-child(2), .titulo:nth-child(4),
  .datosCpte:nth-child(2), .datosCpte:nth-child(4) {
    width: 27%;
  }

  .titulo:nth-child(6), .datosCpte:nth-child(6) {
    display: block;
    width: 5%;
  }
  
  .titulo:nth-child(5), .datosCpte:nth-child(5){
    display: none;
  }

  .tituloPedido:nth-child(1), .tituloPedido:nth-child(3),
  .datosPedido:nth-child(1), .datosPedido:nth-child(3) {
    width: 12%;
  } 

  .tituloPedido:nth-child(2), .datosPedido:nth-child(2) {
    width: 14%;
  }

  .tituloPedido:nth-child(4), .tituloPedido:nth-child(5),
  .datosPedido:nth-child(4), .datosPedido:nth-child(5) {
    width: 31%;
  } 

  .descripcionCarrito{
    max-height: 1rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .botonesMovil{
    display: block;
    width: 5rem;
  }

  .botones{
    display: inline-flex;
    margin: .5rem .1rem 0 0;
    height: 2rem;
    width: 2rem;
  }

  .botones img{
    width: 2rem;
  }

  .contenido{
    margin-top: 5rem;
  }  

  .listado{
    padding: 1rem .5rem;
  }

  .logomovil{
    display: block;
    height: 3rem;
  }

  .logomovil img{
    margin-top: .4rem;
    height: 2.2rem;
    width: auto;
  }

  .navegador{
    position: fixed;
    justify-content: space-between;
    z-index: 1001;
    margin: .75rem 2.5% .75rem 2.5%;
  }

  .menu {
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    align-items: center;
    background: var(--colBotonHover);
    height: 100%;
    overflow-y: auto;
    z-index: 1001;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }
  
  .menu li {
    display: inline-block;
    width: 100%;
    line-height: 5rem;
  }

  .menu a {
    display: inline-block;
    padding: 0;
    width: 100%;
    border-radius: 0;
    line-height: 5rem;
  }

  .menu a:hover{
    border-radius: 0;
  }

  .abrir-menu,
  .cerrar-menu {
    display: block;
    border: none;
    background: none;
    cursor: pointer;
  }

  .abrir-menu{
    padding-left: 1.25rem;
    color:var(--colorFuente2);
  }
  .close-menu {
    align-self: flex-end;
    padding: 1.2rem 1rem;
  }

  .menu_abierto {
    opacity: 1;
    pointer-events: all;
  }

  .headerProductos{
    flex-direction: column;
    flex-wrap: nowrap;
    height: auto;
    margin: 0 auto;
    gap: .8rem;
  }

  .filtro, .busqueda{
    width: 80%;
    margin: 0 auto;
  }

  .RubroCompra{
    padding: 0 50px;
  }
  .producto {
    width:90%;
  }

  .Agregarcarrito{
    flex-direction: row;
  }

  .operacionCarrito{
    margin-top: 1rem;
  }

  .descuento{
    width: 4rem;
    height: 4rem;
    border-radius: 2rem;
    line-height: 4rem;
    font-size: 2rem;
    left: 1rem;
    bottom: 3.5rem;
  }

}

@media screen and (max-width:319px){

  main {display: none;}

  html{background: white;}

  #error{display:block;}

  img{padding: 1rem;}

  p {font-size: 0.8rem; padding: 1rem;margin:0 auto;text-align: center;}

}