body {
  padding: 0;
  margin: 0;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

main {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
}


header nav {
  width: 100%;
  margin: 0; /* Eliminar el margen para que quede pegado al header */
  background: #0004d8;
  transition: top 0.3s; /* Transición suave */
  height: auto;
}

nav {
  position: relative; /* Inicialmente relativo */
}

nav.fixed {
  position: fixed; /* Fijo en la parte superior */
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000; /* Asegura que esté por encima de otros elementos */
}

.center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.col {
  flex-direction: column;
}

.menu_bar {
	display:none;
}

header nav ul {
	overflow:hidden;
	list-style:none;
  margin: 0px;
  width: 100%;
}

header nav ul li {
	float:left;
}

header nav ul li a {
	color:#fff;
	padding:20px;
	display:block;
	text-decoration:none;
  font-size: 25px;
}

header nav ul li span {
	margin-right:10px;
}

header nav ul li a:hover {
	background:#001c99;
}

section {
	padding:20px;
}

.center {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.header {
  width: 100%;
  margin: 0px;
  padding: 0px;
  position: sticky;
  background-color: white;
  z-index: 10;
}

.header__logo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  margin: 0px;
  padding: 0px;
}

.logo {
  width: auto;
  height: auto;
  padding-left: 20px;
}

.header__buttons {
  display: flex;
  align-items: center;
}

.mi-perfil {
  display: none;
}

.error-message {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #f8d7da;
  color: #721c24;
  padding: 15px;
  border: 1px solid #f5c6cb;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  width: auto;
  max-width: 300px;
  text-align: center;
}




#nav-btn {
  background: none; /* Elimina el fondo del botón */
  border: none; /* Elimina el borde del botón */
  cursor: pointer; /* Cambia el cursor al pasar sobre el botón */
  height: 30px; /* Asegura que el botón tenga la misma altura que el nav */
}

.none {
  display: none;
}

nav.show {
    left: 0;
}

.nav-icon {
  display: flex;
  align-items: center;
  background: white;
  border: none;
  cursor: pointer;
  height: 30px;
  z-index: 100;
  position: absolute;
}




  /*headers buttons*/
  .header__button {
    margin: 10px;
    width: 50%;
    height: auto;
    border: none;
    border-radius: 20px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
  }

  .header__button2 {
    margin: 10px;
    width: 70%;
    height: auto;
    border: none;
    border-radius: 20px;
    font-weight: bold;
    font-size: small;
    text-transform: uppercase;
    cursor: pointer;
    display: none;
    background-color: #002fff;
  }



  .show {
    display: flex;
  }

  .showMobile {
    display: none;
  }
  
  .header__button--login {
    background-color: #002fff;
    margin: 10px;
    width: 80%;
    height: auto;
    border: none;
    border-radius: 20px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
  }

  .header__button--login a {
    color: white;
    max-width: auto;
    font-size: auto;
  }

  a {
    list-style: none;
    text-decoration: none;
  }
  
  .header__button--login:hover {
    background-color: #001dc2;
  }
  
  .header__button--register {
    background-color: #333;
  }

  .header__button--register a {
    color: #f9f9f9;
    font-size: auto;
  }


  .header__button--carrito {
    background-color: white;
    color: white;
  }
  
  .header__button--register:hover {
    background-color: #1a1a1a;
  }

  .header__icons {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
  }

  .header__icons a {
    width: 52px;
  }
  
  .logo {
    max-width: 200px;
    height: 5%;
    margin: 10px;
    background-color: #fff;
    border-radius: 20px;
  }

.logo-carrito {
  width: 30px;
  height: 30px;
}



.categorias {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  height: 0px;
  width: 120px;
  padding: 0;
  position: absolute;
  background-color: #002fff;
  transition: height 0.2s ease-in-out;
}

.nav ul li:nth-child(2):hover .categorias{
  height: 180px;
}




.titulo-productos {
    font-size: 50px;
    margin: 10px 400px;
    margin-top: 100px;
    width: 100%;
}

.contenedor-productos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    margin: 0px;
}

.producto {
    width: 250px;
    height: 300px;
    margin: 20px;
    padding: 10px;
    text-align: center;
    border: 1px solid gray;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.producto img {
    width: 60%;
    height: 50%;
    object-fit: cover;
    margin-bottom: 10px;
}

.producto h4 {
    margin-bottom: 5px;
}

.producto p {
    margin-bottom: 10px;
}

.producto button {
    background-color: blue;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
}

.agregar {
  background-color: #4133ff;
}

.agregar:hover {
  background-color: #4133ff;
  opacity: 0.5;
}

.footer {
    background-color: #f2f2f2;
    padding: 40px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    border-top: 5px black solid;
  }
  
  .footer__links,
  .footer__contact,
  .footer__social {
    flex-basis: 30%;
    margin-bottom: 20px;
  }
  
  .footer__links h3,
  .footer__contact h3,
  .footer__social h3 {
    margin-bottom: 10px;
  }
  
  .footer__links ul,
  .footer__contact ul,
  .footer__social ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  
  .footer__links ul li,
  .footer__contact ul li,
  .footer__social ul li {
    margin-bottom: 5px;
  }
  
  .footer__links a,
  .footer__contact a,
  .footer__social a {
    color: #333;
    text-decoration: none;
  }
  
  .footer__links a:hover,
  .footer__contact a:hover,
  .footer__social a:hover {
    text-decoration: underline;
  }



/*/*register/*/
.container-register {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #fff;
  padding: 5%;
  border-radius: 10px;
  margin: 0px 10%;
}

.container-register form div input {
  width: 100%;
}

.container-register form {
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.699);
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 70%;
}

.container-register button {
  background-color: blue;
    border: none;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    padding: 10px;
    align-items: center;
    width: 50%;
}

.form-group {
  margin-bottom: 15px;
}

.register {
  width: 100%;
}

label {
  display: block;
  margin-bottom: 5px;
}

input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
  margin-top: 5px;
}

.error-password {
  color: red;
  font-size: 12px;
}

button {
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}


/*producto.css*/
.a {
  text-decoration: none;
  color: white;
}



/*carrito/*


/* Estilos generales */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f9f9f9; /* Color de fondo más suave */
  height: auto;
}

.fixed {
  position: fixed;
}

.cart {
  cursor: pointer;
}

/* Estilos para el contenedor de productos */
.products {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  margin: 20px 0;
}

.product {
  text-align: center;
  width: 200px;
  padding: 20px;
  margin: 10px;
  border: 1px solid #e2e2e2;
  border-radius: 8px; /* Bordes redondeados */
  background-color: #fff; /* Fondo blanco para los productos */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Sombra sutil */
}

/* Estilos para el carrito */
.cart-container {
  position: fixed;
  top: 0;
  right: 0;
  background-color: #fff;
  height: 100%;
  width: 300px;
  padding: 20px;
  box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
  display: none; /* Cambiar a 'block' cuando se muestre el carrito */
  border-radius: 8px; /* Bordes redondeados */
}

/* Estilos para las imágenes del carrito */
.imgcarrito {
  width: auto;
  height: auto;
  max-width: 20vw;
  max-height: 20vh;
}

.perfil-icon {
  width: 100%;
  height: 100%;
}

.mobileshow {
  display: none;
}

/* Estilos para los productos en el carrito */

/* Estilos para el total */
.total {
  display: flex;
  width: 100%;
  flex-direction: row;
  justify-content: space-around;
  margin-top: 20px; /* Margen superior para separación */
}

.total p {
  font-size: 20px;
  font-weight: 800;
}

/* Estilos para el icono del carrito */
.carrito-icon {
  display: inline-block;
  margin-right: 5px;
}

.carrito-icon a img {
  width: 16px;
  height: 16px;
}

/* Estilos para la lista de productos en el carrito */
.cart-list {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #ddd;
}

.cart-list th,
.cart-list td {
  padding: 10px;
  text-align: center;
}

.cart-list tr:nth-child(even) {
  background-color: #f2f2f2; /* Color alterno para filas */
}

/* Estilos para los botones de cantidad */
.cart-list .quantity-btn {
  background-color: transparent;
  border: none;
  outline: none;
  padding: 5px;
  cursor: pointer;
}

.cart-list .quantity-btn:hover {
  opacity: 0.7; /* Efecto hover */
}

/* Estilos para el botón de pagar */
.pagar-btn {
  background-color: #4CAF50; /* Verde más atractivo */
  color: white;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  cursor: pointer;
}


/* perfil */

.container {
  max-width: 800px;
  margin: 50px auto;
  padding: 40px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h1 {
  text-align: center;
  color: #333;
}

.user-info {
  margin-top: 20px;
}

.user-info p {
  font-size: 18px;
  color: #555;
}

.user-info strong {
  color: #000;
}


/*index*/
.mensaje {
  color: white;
  margin-top: 10px;
  top: 5%;
  padding: 10px 15px;
  position: fixed;
  background-color: rgb(0, 180, 0);
  border-radius: 10px;
  transition: opacity 0.5s ease; /* Transición suave para la opacidad */
  opacity: 1;
  z-index: 10;
  left: 45%;
}

.paginacion {
  display: flex;
  justify-content: center;
  align-items: center;
}


.paginacion button {
  background-color: blue;
  margin: 10px 20px;
}


/*slider*/
.loader-section {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #ffffff; /* Fondo blanco */
  z-index: 999; /* Asegúrate de que esté por encima de otros elementos */
  opacity: 1;
  transition: opacity 1s ease-out; /* Transición suave */
}

.loaded {
  opacity: 0; /* Oculta el loader */
  z-index: -1; /* Lo quita del flujo del documento */
}

.loader {
  width: 48px;
  height: 48px;
  border: 5px solid #623ddb; /* Color del borde */
  border-bottom-color: transparent; /* Color del borde inferior transparente */
  border-radius: 50%; /* Círculo */
  animation: rotation 1s linear infinite; /* Animación de rotación */
}

@keyframes rotation {
  from {
      transform: rotate(0deg);
  }
  to {
      transform: rotate(360deg);
  }
}


@media screen and (max-width:800px ) {
	header nav {
		width:80%;
		height:100%;
		left:-100%;
		margin:0;
		position: fixed;
        transition: left 0.3s ease;
	}

	header nav ul li {
		display:block;
		float:none;
		border-bottom:1px solid rgba(255,255,255, .3);
	}

	.menu_bar {
		display:block;
		width:100%;
		background:#ccc;
	}

	.menu_bar .bt-menu {
		display:block;
		padding:20px;
		background:#1e2be2;
		color:#fff;
		text-decoration:none;
		font-weight: bold;
		font-size:25px;
		-webkit-box-sizing:border-box;
		-moz-box-sizing:border-box;
		box-sizing:border-box;
	}

	.menu_bar span {
		float:right;
		font-size:40px;
	}

  .header__button {
    display: none
  }

  .showMobile {
    display: flex;
  }

  .header__button2 {
    display: flex; /* Cambia a flex para mostrar los botones en móviles */
}

.slider-container img {
  animation: slide 16s infinite alternate ease-in-out;
}

.prev, .next {
  display: none;
}

.contenedor-destacados {
  margin: 0;
  width: 100vw;
  padding: 0 !important;
  gap: 0 !important;
}

.button2 {
  display: none;
}

.mi-perfil {
  display: flex;
}

.mobileshow {
  display: flex;
}

.mensaje {
  left: 0;
  margin-left: 20%;
}
}
