/* ==========================================================================
       VARIABLES Y ESTILOS BASE (TODO TU CSS ORIGINAL)
       ========================================================================== */
:root {
  --bg-primary: #080c10;
  --bg-secondary: #0d1117;
  --bg-card: #111820;
  --bg-card-hover: #151e28;
  --accent: #00c2ff;
  --accent-2: #0066ff;
  --accent-glow: rgba(0, 194, 255, 0.18);
  --text-primary: #e8f0f8;
  --text-muted: #6a8399;
  --border: rgba(0, 194, 255, 0.12);
  --border-hover: rgba(0, 194, 255, 0.4);
  --gradient: linear-gradient(135deg, #00c2ff, #0066ff);
  --font-display: "Syne", sans-serif;
  --font-body: "DM Sans", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 3px;
}
::selection {
  background: var(--accent);
  color: #000;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 150px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

h1,
h2,
h3,
h4,
h5,
.section-title {
  font-family: "Roboto", sans-serif;
  font-weight: 700;
}
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── NAVBAR ────────────────────────────────────── */
.navbar {
  background: rgba(8, 12, 16, 0.85) !important;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  transition: all 0.3s;
}
.navbar.scrolled {
  padding: 10px 0;
  box-shadow: 0 4px 30px rgba(0, 194, 255, 0.08);
}
.navbar-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--text-primary) !important;
  letter-spacing: -1px;
}
.navbar-brand span {
  color: var(--accent);
}
.nav-link {
  color: var(--text-muted) !important;
  font-weight: 400;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  padding: 6px 14px !important;
  position: relative;
  transition: color 0.3s;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: all 0.3s;
  transform: translateX(-50%);
}
.nav-link:hover,
.nav-link.active {
  color: var(--accent) !important;
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 60%;
}
.navbar-toggler {
  border-color: var(--border);
}
.navbar-toggler-icon {
  filter: invert(1);
}
.btn-nav-cta {
  background: var(--gradient);
  color: #000 !important;
  border-radius: 50px;
  font-weight: 600;
  padding: 8px 22px !important;
  font-size: 0.85rem;
  letter-spacing: 0.3px;
  border: none;
}
.btn-nav-cta:hover {
  opacity: 0.85;
}

/* Elementos Comunes */
.section-pad {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 194, 255, 0.07);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 5px 14px;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -1px;
  margin-bottom: 16px;
  line-height: 1.1;
}
.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 560px;
  font-weight: 300;
}
.divider {
  width: 48px;
  height: 3px;
  background: var(--gradient);
  border-radius: 2px;
  margin: 20px 0;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.orb-1 {
  width: 500px;
  height: 500px;
  background: rgba(0, 102, 255, 0.15);
  top: -100px;
  right: -100px;
}
.orb-2 {
  width: 350px;
  height: 350px;
  background: rgba(0, 194, 255, 0.1);
  bottom: -50px;
  left: -80px;
}

/* ==========================================================================
       ESTILOS ESPECÍFICOS PARA LA TIENDA
       ========================================================================== */
.store-header {
  padding: 160px 0 60px;
  text-align: center;
  position: relative;
}
.filter-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 50px;
  padding: 7px 20px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.3s;
}
.filter-btn.active,
.filter-btn:hover {
  background: var(--gradient);
  border-color: transparent;
  color: #000;
  font-weight: 600;
}

/* Tarjeta de Producto */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}
.product-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 194, 255, 0.15);
}
.product-thumb {
  height: 220px;
  background: linear-gradient(
    135deg,
    rgba(17, 24, 32, 1) 0%,
    rgba(13, 17, 23, 1) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.product-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    var(--accent-glow) 0%,
    transparent 70%
  );
  opacity: 0.5;
  transition: opacity 0.3s;
}
.product-card:hover .product-thumb::after {
  opacity: 1;
}
.product-icon {
  font-size: 5rem;
  color: var(--accent);
  z-index: 1;
  transition: transform 0.4s;
}
.product-card:hover .product-icon {
  transform: scale(1.1);
}
.product-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.product-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.badge-stock {
  background: rgba(40, 200, 64, 0.1);
  color: #28c840;
  border: 1px solid rgba(40, 200, 64, 0.2);
  border-radius: 50px;
  padding: 4px 10px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-cat {
  background: var(--bg-secondary);
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 4px 10px;
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
}
.product-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
  color: var(--text-primary);
}
.product-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-grow: 1;
}
.product-footer {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 16px;
}
.product-price-wrapper {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 16px;
}
.product-price {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.product-price-old {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: line-through;
}
.btn-buy {
  width: 100%;
  background: transparent;
  border: 1px solid var(--border-hover);
  color: var(--accent);
  border-radius: 50px;
  padding: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s;
  text-decoration: none;
  cursor: pointer;
}
.btn-buy:hover {
  background: var(--gradient);
  border-color: transparent;
  color: #000;
  box-shadow: 0 8px 20px rgba(0, 194, 255, 0.2);
}

/* ==========================================================================
       MODAL VISTA RÁPIDA
       ========================================================================== */
.modal-backdrop.show {
  opacity: 0.8;
}
.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  color: var(--text-primary);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}
.modal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 24px 32px;
  background: rgba(0, 0, 0, 0.2);
}
.modal-body {
  padding: 32px;
}
.btn-close-custom {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  transition: color 0.3s;
  cursor: pointer;
}
.btn-close-custom:hover {
  color: var(--accent);
}
.modal-product-icon {
  font-size: 6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(17, 24, 32, 1) 0%,
    rgba(13, 17, 23, 1) 100%
  );
  border-radius: 16px;
  border: 1px solid var(--border);
  min-height: 250px;
  position: relative;
}
.modal-product-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    var(--accent-glow) 0%,
    transparent 70%
  );
  opacity: 0.8;
}
.feature-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}
.feature-list li {
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.5;
}
.feature-list li i {
  color: var(--accent);
  font-size: 1.2rem;
  margin-top: -2px;
}
.btn-outline-details {
  width: 100%;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 50px;
  padding: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.3s;
  text-decoration: none;
  margin-bottom: 10px;
  cursor: pointer;
}
.btn-outline-details:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0, 194, 255, 0.18);
}

/* ==========================================================================
       CARRITO LATERAL (OFFCANVAS)
       ========================================================================== */
.cart-nav-icon {
  cursor: pointer;
  position: relative;
  transition: all 0.3s;
}
.cart-nav-icon:hover {
  color: var(--accent) !important;
  transform: scale(1.05);
}
.cart-badge {
  position: absolute;
  top: 0;
  right: 0;
  transform: translate(30%, -30%);
  font-size: 0.65rem;
  background: #ff5f57;
  color: white;
  border-radius: 50%;
  padding: 3px 6px;
  font-weight: bold;
  border: 2px solid var(--bg-primary);
}
.offcanvas-cart {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-left: 1px solid var(--border);
  width: 400px;
  max-width: 100%;
}
.offcanvas-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 16px 0;
}
.cart-item-info {
  flex-grow: 1;
  padding-right: 12px;
}
.cart-item-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.2;
}
.cart-item-price {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 600;
}
.cart-qty-ctrl {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 50px;
  padding: 4px 10px;
  border: 1px solid var(--border);
}
.qty-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: color 0.2s;
  padding: 0;
}
.qty-btn:hover {
  color: var(--accent);
}
.qty-val {
  font-size: 0.9rem;
  font-weight: 600;
  min-width: 20px;
  text-align: center;
}
.btn-remove {
  background: none;
  border: none;
  color: #ff5f57;
  font-size: 1.2rem;
  cursor: pointer;
  transition: opacity 0.2s;
  padding: 4px;
}
.btn-remove:hover {
  opacity: 0.7;
}
.empty-cart-msg {
  text-align: center;
  color: var(--text-muted);
  margin-top: 40px;
  font-size: 0.9rem;
}
.empty-cart-msg i {
  font-size: 3rem;
  opacity: 0.5;
  margin-bottom: 16px;
  display: block;
}
.cart-footer {
  background: var(--bg-card);
  padding: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.btn-whatsapp-checkout {
  background: #25d366;
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 14px;
  width: 100%;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s;
}
.btn-whatsapp-checkout:hover {
  background: #1ebd5a;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
  color: #fff;
}

/* Footer & WhatsApp Button (Compartidos) */
footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
  position: relative;
  z-index: 1;
}
.footer-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.8rem;
  margin-bottom: 12px;
}
.footer-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 280px;
}
.footer-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.footer-link {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  margin-bottom: 10px;
  transition: color 0.3s;
}
.footer-link:hover {
  color: var(--accent);
}
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(0, 194, 255, 0.06);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s;
}
.social-btn:hover {
  background: var(--accent-glow);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.whatsapp-float {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 9999;
  text-decoration: none;
}
.whatsapp-float .wsp-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #fff;
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.4);
  transition: all 0.3s;
  position: relative;
}
.whatsapp-float .wsp-btn::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.3);
  animation: ping 2s ease-in-out infinite;
}
.whatsapp-float:hover .wsp-btn {
  transform: scale(1.1);
  box-shadow: 0 8px 40px rgba(37, 211, 102, 0.5);
}
.wsp-tooltip {
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  background: #1a1a2e;
  border: 1px solid rgba(37, 211, 102, 0.3);
  color: #fff;
  font-size: 0.78rem;
  padding: 6px 14px;
  border-radius: 50px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.whatsapp-float:hover .wsp-tooltip {
  opacity: 1;
}
.btn-primary-fems {
  background: var(--gradient);
  border: none;
  color: #000;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 0.95rem;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary-fems:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 194, 255, 0.3);
  color: #000;
}

/* Animaciones */
@keyframes ping {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  80%,
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
