/* Estilo 4: Japonés Moderno con Colores Oscuros Elegantes */

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

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background-color: #121212;
  color: #f2f2f2;
}

/* Encabezado principal */
.header {
  background: #000;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  flex-wrap: wrap;
}

.header-left {
  flex: 1;
}

.header-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.logo-img {
  height: 90px;
  max-width: 100%;
}

.letras-img {
  height: 60px;
  max-width: 100%;
}

.nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  z-index: 1;
}

.nav a {
  color: #fff;
  margin-left: 20px;
  text-decoration: none;
  font-weight: 500;
}

.nav a:hover {
  color: #e63946;
}

.cart {
  background-color: #ffffff;
  color: #000;
  padding: 10px 15px;
  border-radius: 30px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  font-size: 18px;
  cursor: pointer;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
}

#cart-count {
  background-color: #28a745;
  color: #fff;
  padding: 2px 6px;
  border-radius: 50%;
  font-size: 14px;
}

.cart:hover {
  transform: scale(1.2);
}

.cart.fixed {
  position: fixed;
  top: 88%;
  right: 35%;
  transform: translateX(-50%) scale(1.3);
  z-index: 1000;
  display: flex;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  background-color: white;
  border-radius: 30px;
}

/* Adaptabilidad móvil */
@media (max-width: 768px) {
  .header {
    flex-direction: column;
    align-items: center;
    padding: 15px;
  }

  .header-left,
  .nav {
    flex: unset;
    width: 100%;
    justify-content: center;
    margin-top: 10px;
  }

  .header-center {
    position: static;
    transform: none;
    margin-top: 10px;
  }

  .logo-img {
    height: 40px;
  }

  .letras-img {
    height: 30px;
  }

  .nav a {
    margin: 10px;
  }
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  background-color: #1e1e1e;
  justify-content: center;
  border-bottom: 1px solid #333;
}

.tab {
  padding: 1rem;
  border: none;
  background-color: transparent;
  color: #f2f2f2;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s;
}

.tab:hover,
.tab.active {
  color: #e85d5d;
  border-bottom: 2px solid #e85d5d;
}

#product-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  padding: 1rem;
}

.product {
  background-color: #1e1e1e;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  transition: transform 0.2s;
}

.product:hover {
  transform: scale(1.02);
}

.product img {
  width: 100%;
  border-radius: 10px;
  max-height: 180px;
  object-fit: cover;
}

.product h3 {
  margin: 0.5rem 0;
  font-size: 1rem;
  color: #fff;
}

.product p {
  font-size: 0.85rem;
  color: #ccc;
}

.product button {
  background-color: #e37c32;
  color: white;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  width: 100%;
}

#cart-details {
  position: fixed;
  top: 10px;
  right: 20px;
  width: 320px;
  max-height: 80vh;
  overflow-y: auto;
  background-color: #434a44;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0,0,0,0.6);
  z-index: 1000;
}

#next-button {
  background-color: #e85d5d;
  color: white;
  border: none;
  padding: 0.7rem;
  width: 100%;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 10px;
  font-size: 1rem;
}

#next-button:hover {
  background-color: #d94848;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#user-info.show {
  animation: fadeIn 0.6s ease forwards;
}

.hidden {
  display: none;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #2a2a2a;
  padding: 8px 10px;
  margin-bottom: 8px;
  border-radius: 6px;
}

.cart-name {
  flex: 1;
  font-size: 0.9rem;
  color: #fff;
}

.cart-price {
  margin: 0 10px;
  color: #ccc;
}

.remove-from-cart {
  background-color: #b8abab;
  border: none;
  color: white;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
}

#user-auth {
  background-color: #1e1e1e;
  padding: 1rem;
  text-align: center;
}

.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 50px;
  right: 20px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  opacity: 0.9;
}

.whatsapp-float img {
  width: 30px;
  height: 30px;
}

.total-highlight {
  background-color: #0f0f0f;
  color: #adadad;
  font-size: 1.2rem;
  font-weight: 600;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
  text-align: center;
  margin-top: 1rem;
  border: 1px solid #333;
  transition: background 0.3s ease, color 0.3s ease;
}

.logout-icon {
  background: none;
  border: none;
  font-size: 1.3rem;
  color: #bdbdbd;
  cursor: pointer;
  margin-left: 10px;
  transition: transform 0.2s ease;
}

.logout-icon:hover {
  transform: scale(1.2);
  color: #ff6b6b;
}

#user-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bienvenida {
  color: white;
  text-align: center;
  margin-left: 10px;
  font-size: 1rem;
}

.getnet-container {
  text-align: center;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  padding: 2rem 1rem;
  border-radius: 10px;
  margin-top: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.getnet-logo {
  height: 60px;
  margin-bottom: 1rem;
}

.getnet-title {
  font-weight: bold;
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 0.5rem;
}

.getnet-desc {
  font-size: 0.95rem;
  color: #555;
  max-width: 500px;
  margin: 0 auto;
}

.button-group {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.btn-pagar,
.btn-volver {
  background-color: #e60000;
  color: white;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  min-width: 150px;
}

.btn-pagar:hover,
.btn-volver:hover {
  background-color: #cc0000;
  transform: scale(1.02);
}

.btn-volver {
  background-color: #555;
}

.btn-volver:hover {
  background-color: #333;
}

.footer {
  background: #000;
  text-align: center;
  padding: 30px;
  font-size: 12px;
  color: #aaa;
}

/* === FORMULARIO COMPACTO Y RESPONSIVE === */
.auth-form form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 0.5rem;
}

.auth-form input,
.auth-form button {
  flex: 1 1 180px;
  padding: 0.6rem;
  font-size: 0.9rem;
  border-radius: 8px;
  border: none;
  background-color: #333;
  color: white;
}

.auth-form button {
  background-color: #2ecc71;
  color: white;
  cursor: pointer;
  transition: background 0.3s ease;
}

.auth-form button:hover {
  background-color: #27ae60;
}

.auth-form h2 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 1px; /* puedes ajustar según lo que necesites */
  text-align: center;
}

.auth-form p {
  font-size: 0.9rem;
  color: #ccc;
}

.auth-form a {
  color: #2ecc71;
  text-decoration: none;
}



/* Responsive para móviles */
@media (max-width: 480px) {
  .auth-form {
    padding: 1rem;
    font-size: 0.85rem;
    max-width: 95%;
  }

  .auth-form input,
  .auth-form button {
    font-size: 0.85rem;
    padding: 0.55rem;
  }

  .auth-form h2 {
    font-size: 1.1rem;
  }
.auth-form p {
  font-size: 0.9rem;
  color: #ccc;
}

.auth-form a {
  color: #2ecc71;
  text-decoration: none;
}

}


form input {
  display: block;
  width: 100%;
  padding: 0.7rem;
  margin-bottom: 1rem;
  border: none;
  border-radius: 8px;
  background-color: #2a2a2a;
  color: #f2f2f2;
}

