body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.5;
  background-color: #ffffff;
}

header {
  background-color: white;
  color: #333;
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.acciones{

  display: flex;
  align-items: center;
  gap: 20px;

}

.nav {
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  top: 0;
  color: #daa520;
  border-bottom: 2px solid #daa520;
  background-color: white;
  z-index: 1000;
}

.menu {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0px;
}
.menu a {
  margin: 0 15px;
  color: rgb(0, 0, 0);
  text-decoration: none;
  font-weight: bold;
}

.icon-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 40px;
  height: 40px;
  cursor: pointer;
}

.icon-login {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  width: 40px;
  cursor: pointer;
}

.count-product {
  position: absolute;
  top: 7px;
  right: 1px;
  background-color: red;
  color: white;
  border-radius: 50%;
  width: 15px;
  height: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 12px;
}

.cart-svg {
  width: 24px;
  height: 24px;
  stroke: rgb(0, 0, 0);
  
}
.login-svg {
  width: 24px;
  height: 24px;
  stroke: rgb(0, 0, 0);
}

.texto-body{
    text-align: center;
}

.carrito-slide {
  position: fixed;
  top: 0;
  right: -100%;
  width: 350px;
  height: 100%;
  background-color: #fff;
  box-shadow: -2px 0 10px rgba(0,0,0,0.3);
  transition: right 0.3s ease;
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.carrito-slide.abierto {
  right: 0;
}

.carrito-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid #ddd;
}

.carrito-header h3 {
  margin: 0;
}

#cerrar-carrito {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.carrito-contenido {
  padding: 1rem;
  overflow-y: auto;
  flex-grow: 1;
}


.item-carrito {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
}

.carrito-slide {
  position: fixed;
  top: 0;
  right: -100%;
  width: 350px;
  height: 100%;
  background-color: #fff;
  box-shadow: -2px 0 10px rgba(0,0,0,0.3);
  transition: right 0.3s ease;
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.carrito-slide.visible {
  right: 0;
}

.carrito-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid #ddd;
}

.carrito-header h3 {
  margin: 0;
}

#cerrar-carrito {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.carrito-contenido {
  padding: 1rem;
  overflow-y: auto;
  flex-grow: 1;
}

.item-carrito {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
}
.usuario {
  display: flex;
  align-items: center;
  gap: 10px; /* espacio entre íconos y texto */
}



.nombre-usuario-contenedor {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-weight: 500;
  color: #333;
}

.bienvenida {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 400;
  color: #555;
}

.menu-desplegable {
  display: none;
  position: absolute;
  top: 60px;
  right: 60px;
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  flex-direction: column;
  padding: 10px 0;
  min-width: 150px;
}

.menu-desplegable a {
  display: block;
  padding: 10px 20px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
}

.menu-desplegable a:hover {
  background-color: #f0f0f0;
}

.usuario {
  position: relative; /* Necesario para posicionar el menú */
}

.acciones{

  display: flex;
  align-items: center;
  gap: 20px;

}














.contenedor-productos {
  display: grid;
  max-width: 300px;
  max-height: 300px;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 20px;
  padding: 20px;
}

.producto-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  padding: 16px;
  text-align: center;
  transition: transform 0.2s ease;
}

.producto-card:hover {
  transform: scale(1.03);
}

.producto-card img {
  max-width: 300px;
  max-height: 300px;
  height: auto;
  border-radius: 8px;
}

.producto-card h3 {
  font-size: 1.2em;
  margin: 10px 0;
  color: #333;
}

.producto-card p {
  color: #666;
  font-size: 0.95em;
  margin-bottom: 8px;
}

.btn-eliminar {
  background-color: #e74c3c;
  border: none;
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-eliminar:hover {
  background-color: #c0392b;
}











#perfil-contenido {
  max-width: 900px;
  margin: auto;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  padding: 2rem;
}

.perfil-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.perfil-grid div,
.perfil-grid label {
  display: flex;
  flex-direction: column;
  font-size: 16px;
}

.perfil-grid strong {
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.perfil-grid span {
  color: #444;
}

.perfil-grid input {
  padding: 0.6rem;
  font-size: 15px;
  border-radius: 8px;
  border: 1px solid #ccc;
  transition: 0.3s;
}

.perfil-grid input:focus {
  border-color: #ffcc00;
  outline: none;
  box-shadow: 0 0 5px #ffcc00a0;
}

.botones-perfil {
  text-align: center;
}

.botones-perfil button {
  background-color: #ffcc00;
  border: 2px solid #000;
  color: #000;
  font-weight: bold;
  padding: 0.8rem 1.5rem;
  margin: 0 0.5rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

.botones-perfil button:hover {
  background-color: #e6b800;
  transform: scale(1.05);
}

@media (max-width: 600px) {
  .perfil-grid {
    grid-template-columns: 1fr;
  }

  .botones-perfil button {
    display: block;
    width: 100%;
    margin: 0.5rem 0;
  }
}



.tabs-usuario {
  max-width: 800px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  font-family: 'Poppins', sans-serif;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.tab-buttons {
  display: flex;
  background: #f5f5f5;
  border-bottom: 2px solid #ccc;
}

.tab-btn {
  flex: 1;
  padding: 12px;
  cursor: pointer;
  background: none;
  border: none;
  font-weight: bold;
  transition: background 0.3s;
}

.tab-btn:hover {
  background: #ffe680;
}

.tab-btn.active {
  background: #ffc107;
  border-bottom: 2px solid black;
}

.tab-content {
  padding: 20px;
}

/* Estilo de contenido de perfil dentro de las pestañas */
#perfil-contenido .perfil-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

#perfil-contenido div {
  margin-bottom: 8px;
}

#perfil-contenido label {
  display: block;
  font-weight: bold;
}

#perfil-contenido input {
  width: 100%;
  padding: 8px;
  margin-top: 4px;
  border: 1px solid #ccc;
  border-radius: 4px;
}


















@media (max-width: 768px) {
  /* Header compacto */
  .nav {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
  }

  .marca {
    flex: 1;
  }

  /* Menú en una sola línea scrollable si no entra */
  .menu {
    position: static;
    transform: none;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0;
    width: 100%;
  }

  .acciones {
    flex: 1;
    justify-content: flex-end;
    gap: 10px;
  }

  /* Ajustar iconos */
  .icon-cart, .icon-login {
    width: 30px;
    height: 30px;
  }

  .cart-svg, .login-svg {
    width: 20px;
    height: 20px;
  }

  /* Hero */
  .hero {
    flex-direction: column;
    padding: 2rem;
    gap: 20px;
    text-align: center;
  }

  .hero img {
    width: 100%;
    max-width: 280px;
  }

  /* Productos */
  .img-producto {
    width: 100%;
    max-width: 220px;
    height: auto;
  }

  /* Carrito en móvil ocupa todo */
  .carrito-slide {
    width: 100%;
  }
}


@media (max-width: 480px) {
  .menu a {
    font-size: 14px;
    margin: 5px 0;
  }

  h2 {
    font-size: 28px;
  }

  .btn-comprar {
    padding: 10px 16px;
    font-size: 14px;
  }
}