
    :root {
      --background: 150 30% 97%;
      --foreground: 160 30% 10%;
      --card: 0 0% 100%;
      --card-foreground: 160 30% 10%;
      --primary: 160 85% 25%;
      --primary-foreground: 150 30% 97%;
      --secondary: 160 20% 93%;
      --secondary-foreground: 160 30% 15%;
      --muted: 150 15% 93%;
      --muted-foreground: 160 10% 45%;
      --accent: 163 80% 50%;
      --accent-foreground: 160 85% 10%;
      --border: 150 15% 88%;
      --ring: 160 85% 25%;
      --radius: 0.75rem;
      --font-heading: 'Outfit', sans-serif;
      --font-body: 'Figtree', sans-serif;
      
    }

    *, *::before, *::after {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    body {
      font-family: var(--font-body);
      background-color: hsl(var(--background));
      color: hsl(var(--foreground));
      line-height: 1.6;
      -webkit-font-smoothing: antialiased;
    }

    h1, h2, h3, h4, h5, h6 {
      font-family: var(--font-heading);
    }

    a {
      text-decoration: none;
      color: inherit;
    }

    img {
      max-width: 100%;
      display: block;
    }

    .container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 1.5rem;
    }

    /* ── Navbar ── */
    .navbar {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 50;
      background: hsla(var(--background) / 0.8);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      border-bottom: 1px solid hsl(var(--border));
    }
.user-menu {
  position: relative;
}
.hidden {
  display: none !important;
}
.dropdown-menu {
  position: absolute;
  top: 110%;
  left: 0;
  right: auto;
  background: white;
  border-radius: 10px;
  padding: 0.5rem 0;
  min-width: 180px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  display: none;
  z-index: 100;
}
    .navbar .container {
      display: flex;
      align-items: center;
      justify-content: space-between;
      height: 72px;
    }

    .navbar-logo {
      font-family: var(--font-heading);
      font-size: 1.5rem;
      font-weight: 700;
      color: hsl(var(--foreground));
    }

    .navbar-logo span {
      color: hsl(var(--primary));
    }

    .navbar-links {
      display: flex;
      align-items: center;
      gap: 2rem;
      list-style: none;
    }

    .navbar-links a {
      font-size: 0.875rem;
      font-weight: 500;
      color: hsl(var(--muted-foreground));
      transition: color 0.2s;
    }

    .navbar-links a:hover {
      color: hsl(var(--foreground));
    }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
      font-family: var(--font-body);
      font-weight: 500;
      border-radius: var(--radius);
      cursor: pointer;
      transition: all 0.2s;
      border: none;
    }

    .btn-primary {
      background-color: hsl(var(--primary));
      color: hsl(var(--primary-foreground));
      padding: 0.625rem 1.5rem;
      font-size: 0.875rem;
    }

    .btn-primary:hover {
      opacity: 0.9;
    }

    .btn-lg {
      padding: 0.875rem 2rem;
      font-size: 1rem;
    }

    .btn-outline {
      background: transparent;
      border: 1px solid hsla(var(--primary-foreground) / 0.3);
      color: hsl(var(--primary-foreground));
      padding: 0.875rem 2rem;
      font-size: 1rem;
    }

    .btn-outline:hover {
      background: hsla(var(--primary-foreground) / 0.1);
    }

    .hamburger {
      display: none;
      background: none;
      border: none;
      cursor: pointer;
      padding: 0.5rem;
    }

    .hamburger svg {
      width: 24px;
      height: 24px;
      stroke: hsl(var(--foreground));
      stroke-width: 2;
      fill: none;
    }

.mobile-menu {
  display: none;
  flex-direction: column;
  background: white;
  position: absolute;
  top: 72px;
  left: 0;
  width: 100%;
  z-index: 99;
}

.mobile-menu.open {
  display: flex;
}
    .mobile-menu a {
      display: block;
      padding: 0.5rem 0;
      color: hsl(var(--muted-foreground));
      font-size: 0.9rem;
      transition: color 0.2s;
    }

    .mobile-menu a:hover {
      color: hsl(var(--foreground));
    }

    .mobile-menu .btn {
      margin-top: 0.75rem;
      width: 100%;
    }

    /* ── Hero ── */
    .hero {
      position: relative;
      min-height: 90vh;
      display: flex;
      align-items: center;
      padding-top: 72px;
      overflow: hidden;
    }

    .hero-bg {
      position: absolute;
      inset: 0;
    }

    .hero-bg img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .hero-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(
        to right,
        hsla(var(--foreground) / 0.9),
        hsla(var(--foreground) / 0.7),
        hsla(var(--foreground) / 0.3)
      );
    }

    .hero-content {
      position: relative;
      z-index: 10;
      max-width: 640px;
    }

    .hero-badge {
      display: inline-block;
      padding: 0.375rem 1rem;
      border-radius: 9999px;
      background: hsla(var(--primary) / 0.2);
      color: hsl(var(--accent));
      font-size: 0.875rem;
      font-weight: 500;
      border: 1px solid hsla(var(--primary) / 0.3);
      backdrop-filter: blur(8px);
    }

    .hero h1 {
      font-size: 3rem;
      font-weight: 700;
      color: hsl(var(--primary-foreground));
      line-height: 1.15;
      margin-top: 1.5rem;
    }

    .hero h1 span {
      color: hsl(var(--accent));
    }

    .hero p {
      font-size: 1.125rem;
      color: hsla(var(--primary-foreground) / 0.8);
      max-width: 480px;
      margin-top: 1.5rem;
      line-height: 1.7;
    }

    .hero-buttons {
      display: flex;
      gap: 1rem;
      margin-top: 2rem;
      flex-wrap: wrap;
    }

    /* ── Features ── */
    .features {
      padding: 5rem 0 6rem;
      background: hsl(var(--background));
    }

    .features-header {
      text-align: center;
      margin-bottom: 3.5rem;
    }

    .features-header span {
      font-size: 0.8rem;
      font-weight: 600;
      color: hsl(var(--primary));
      text-transform: uppercase;
      letter-spacing: 0.15em;
    }

    .features-header h2 {
      font-size: 2rem;
      font-weight: 700;
      color: hsl(var(--foreground));
      margin-top: 0.75rem;
    }

    .features-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 1.5rem;
    }

    .feature-card {
      background: hsl(var(--card));
      border: 1px solid hsl(var(--border));
      border-radius: var(--radius);
      padding: 1.5rem;
      transition: all 0.3s;
    }

    .feature-card:hover {
      border-color: hsla(var(--primary) / 0.4);
      box-shadow: 0 10px 30px -10px hsla(var(--primary) / 0.1);
    }

    .feature-icon {
      width: 48px;
      height: 48px;
      border-radius: 0.5rem;
      background: hsla(var(--primary) / 0.1);
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 1rem;
      transition: background 0.3s;
    }

    .feature-card:hover .feature-icon {
      background: hsla(var(--primary) / 0.2);
    }

    .feature-icon svg {
      width: 24px;
      height: 24px;
      stroke: hsl(var(--primary));
      stroke-width: 2;
      fill: none;
    }

    .feature-card h3 {
      font-size: 1.1rem;
      font-weight: 600;
      color: hsl(var(--foreground));
      margin-bottom: 0.5rem;
    }

    .feature-card p {
      font-size: 0.875rem;
      color: hsl(var(--muted-foreground));
      line-height: 1.6;
    }

    .feature-card a {
      display: inline-block;
      margin-top: 0.75rem;
      font-size: 0.875rem;
      font-weight: 500;
      color: hsl(var(--primary));
    }

    .feature-card a:hover {
      text-decoration: underline;
    }

    /* ── Footer ── */
    .footer {
      background: hsl(var(--foreground));
      color: hsl(var(--primary-foreground));
      padding: 3rem 0;
    }

    .footer-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 2rem;
    }

    .footer a {
      color: hsla(var(--primary-foreground) / 0.7);
      transition: color 0.2s;
    }

    .footer .footer-icon {
      display: inline-block;
      width: 16px;
      height: 16px;
      vertical-align: middle;
      margin-right: 0.4rem;
      stroke: hsla(var(--primary-foreground) / 0.7);
      fill: none;
    }

    .footer .footer-note {
      font-size: 0.75rem;
      color: hsla(var(--primary-foreground) / 0.5);
      margin-top: 0.75rem;
      font-style: italic;
    }

    .footer h3 {
      font-size: 1.25rem;
      font-weight: 700;
      margin-bottom: 0.75rem;
    }

    .footer h3 span {
      color: hsl(var(--accent));
    }

    .footer h4 {
      font-weight: 600;
      margin-bottom: 0.75rem;
    }

    .footer p,
    .footer li {
      font-size: 0.875rem;
      color: hsla(var(--primary-foreground) / 0.7);
      line-height: 1.7;
    }

    .footer ul {
      list-style: none;
    }

    .footer li {
      margin-bottom: 0.5rem;
    }

    .footer a:hover {
      color: hsl(var(--accent));
    }

    .footer-bottom {
      border-top: 1px solid hsla(var(--primary-foreground) / 0.1);
      margin-top: 2.5rem;
      padding-top: 1.5rem;
      text-align: center;
      font-size: 0.875rem;
      color: hsla(var(--primary-foreground) / 0.5);
    }

    /* ── Responsive ── */
    @media (max-width: 1024px) {
      .features-grid {
        grid-template-columns: repeat(2, 1fr);
      }
      .footer-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    @media (max-width: 768px) {
      .navbar-links {
        display: none;
      }

      .hamburger {
        display: block;
      }

      .mobile-menu.open {
        display: flex;
      }

      .hero h1 {
        font-size: 2.25rem;
      }

      .hero p {
        font-size: 1rem;
      }

      .hero-buttons {
        flex-direction: column;
      }

      .hero-buttons .btn {
        width: 100%;
      }

      .footer-grid {
        grid-template-columns: 1fr;
      }
    }

    @media (max-width: 480px) {
      .features-grid {
        grid-template-columns: 1fr;
      }
    }
/* Estilos generales */
.user-menu {
  position: relative;
}

.user-trigger {
  display: flex;
  align-items: center;
  cursor: pointer;
}

#userAvatar {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  background-color: hsl(var(--primary)); /* Color de fondo para la inicial */
  color: white; /* Color de la inicial */
  font-weight: 600;
  border-radius: 50%;
  margin-right: 8px;
}

#userInitial {
  font-size: 1rem;
  line-height: 1;
}

#usrnme {
  font-size: 1rem;
  color: hsl(var(--foreground));
}

/* Dropdown */
.dropdown-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: none;
  z-index: 10;
}

.dropdown-menu.active {
  display: block;
}

.dropdown-menu li {
  list-style: none;
}

.dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  color: hsl(var(--muted-foreground));
  text-decoration: none;
}

.dropdown-menu a:hover {
  background: #f5f5f5;
}

#cartContainer {
  display: inline-flex;
  position: relative;
  z-index: 1000;
}
.hidden {
  display: none;
}
/* Estilos generales para el carrito */
.cart-icon {
  position: relative;
  display: inline-block;
  margin-left: 20px;
  cursor: pointer;
}

.cart-icon a {
  display: flex;
  align-items: center;
  position: relative;
}

.cart-icon i {
  font-size: 1.5rem;
  color: #333;
  transition: color 0.3s ease-in-out;
}

.cart-icon i:hover {
  color: #007bff; /* Color al pasar el cursor */
}

/* Contador de productos en el carrito */
.cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: #ff4b5c;
  color: white;
  font-size: 0.8rem;
  font-weight: bold;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease-in-out;
}

.cart-count.invisible {
  opacity: 0; /* Hacemos invisible el contador cuando no hay productos */
}

.cart-count.visible {
  opacity: 1;
}

/* Estilo para el menú desplegable del carrito (cuando se hace clic) */
.cart-dropdown {
  display: none;
  position: absolute;
  top: 40px;
  right: 0;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
  width: 250px;
  padding: 10px;
  z-index: 1000;
  transition: all 0.3s ease-in-out;
}

.cart-dropdown.open {
  display: block;
}

/* Estilos dentro del carrito (productos listados) */
.cart-dropdown ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cart-dropdown ul li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #f1f1f1;
}

.cart-dropdown ul li:last-child {
  border-bottom: none;
}

.cart-dropdown .cart-item {
  display: flex;
  align-items: center;
}

.cart-dropdown .cart-item img {
  width: 40px;
  height: 40px;
  margin-right: 10px;
  border-radius: 5px;
}

.cart-dropdown .cart-item .item-info {
  display: flex;
  flex-direction: column;
  margin-right: 10px;
}

.cart-dropdown .cart-item .item-info .item-name {
  font-size: 0.9rem;
  font-weight: bold;
}

.cart-dropdown .cart-item .item-info .item-price {
  font-size: 0.8rem;
  color: #666;
}

.cart-dropdown .cart-item .item-remove {
  cursor: pointer;
  font-size: 1rem;
  color: #ff4b5c;
  padding: 5px;
  transition: color 0.3s ease-in-out;
}

.cart-dropdown .cart-item .item-remove:hover {
  color: #d33;
}

/* Estilo para el total y botones dentro del carrito */
.cart-dropdown .cart-total {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
  font-weight: bold;
}

.cart-dropdown .cart-total span {
  color: #333;
}

.cart-dropdown .checkout-btn {
  display: block;
  width: 100%;
  background-color: #007bff;
  color: white;
  padding: 10px;
  font-size: 1rem;
  text-align: center;
  border-radius: 5px;
  margin-top: 10px;
  text-decoration: none;
  transition: background-color 0.3s ease-in-out;
}

.cart-dropdown .checkout-btn:hover {
  background-color: #0056b3;
}

.cart-dropdown .empty-cart {
  text-align: center;
  font-size: 0.9rem;
  color: #888;
  padding: 15px 0;
}
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .navbar-links {
    display: none;
  }

  .mobile-menu {
    display: none;
    flex-direction: column;
    background: white;
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    z-index: 999;
  }

  .mobile-menu.open {
    display: flex;
  }
}
