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

/* ============ TechNova - Exact Mockup Design System ============ */
:root {
  --primary: #2563eb; /* Royal Blue */
  --primary-hover: #1d4ed8;
  --primary-glow: rgba(37, 99, 235, 0.15);
  
  --dark-bg: #070f1e; /* Dark Blue/Black */
  --light-bg: #f8fafc; /* Very light slate */
  --border: #e2e8f0;
  
  --texto-main: #0f172a;
  --texto-mutado: #64748b;
  
  --exito: #10b981;
  --error: #ef4444;
  --oferta: #2563eb; /* In the mockup, the offer tag is blue! */
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.04), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.08);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 9999px;
  
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body { 
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; 
  background: #fcfcfd; 
  color: var(--texto-main); 
  line-height: 1.6; 
  -webkit-font-smoothing: antialiased;
}

a { 
  color: var(--primary); 
  text-decoration: none; 
  transition: var(--transition);
}
a:hover { 
  color: var(--primary-hover); 
}

.contenedor { 
  max-width: 1240px; 
  margin: 0 auto; 
  padding: 0 24px; 
}

main.contenedor { 
  min-height: 70vh; 
  padding-top: 24px; 
  padding-bottom: 64px; 
}

section { 
  margin-bottom: 48px; 
}

h1, h2, h3, h4 { 
  font-weight: 700; 
  letter-spacing: -0.02em; 
  color: var(--texto-main);
}

h2 { 
  font-size: 1.5rem; 
  margin: 0;
}

/* ---- Topbar ---- */
.topbar {
  background: var(--dark-bg);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 8px 0;
  font-size: 0.82rem;
  color: #94a3b8;
}
.topbar-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar-right {
  display: flex;
  gap: 20px;
  align-items: center;
}
.topbar-right a {
  color: #94a3b8;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}
.topbar-right a:hover {
  color: #fff;
}
.topbar-left {
  font-weight: 500;
}

/* ---- Header ---- */
.header { 
  background: #ffffff; 
  color: var(--texto-main); 
  border-bottom: 1px solid var(--border);
}
.header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 20px 0;
}

.logo {
  display: flex;
  flex-direction: column;
}
.logo-main {
  font-size: 1.75rem;
  font-weight: 800;
  color: #0b0f19;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.logo-accent {
  color: var(--primary);
}
.logo-sub {
  font-size: 0.58rem;
  color: var(--texto-mutado);
  font-weight: 700;
  letter-spacing: 0.22em;
  margin-top: 2px;
}

.buscador {
  flex: 1;
  max-width: 580px;
  display: flex;
  border-radius: var(--radius-sm);
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  transition: var(--transition);
}
.buscador:focus-within {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.buscador input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px 18px;
  font-size: 0.92rem;
  font-family: inherit;
  color: var(--texto-main);
  outline: none;
}
.buscador button {
  width: 50px;
  border: none;
  background: var(--primary);
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.buscador button:hover {
  background: var(--primary-hover);
}
.buscador button svg {
  width: 20px;
  height: 20px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}
.action-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #334155;
  font-weight: 600;
  font-size: 0.9rem;
}
.action-item:hover {
  color: var(--primary);
}
.action-item svg {
  color: #475569;
}
.action-item:hover svg {
  color: var(--primary);
}

.btn-carrito {
  position: relative;
}
.cart-icon-wrapper {
  position: relative;
}
.btn-carrito .badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ffffff;
}

/* ---- Navigation Bar ---- */
.navigation-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}
.navigation-wrapper {
  display: flex;
  align-items: center;
}

/* Category Dropdown */
.category-dropdown {
  position: relative;
  width: 240px;
  z-index: 10;
}
.category-dropdown-btn {
  width: 100%;
  background: var(--primary);
  color: #ffffff;
  border: none;
  padding: 14px 18px;
  font-size: 0.92rem;
  font-weight: 600;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: var(--transition);
}
.category-dropdown-btn:hover {
  background: var(--primary-hover);
}
.category-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border);
  border-top: none;
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
}
.category-dropdown:hover .category-dropdown-menu {
  display: flex;
}
.category-dropdown-menu a {
  padding: 12px 18px;
  color: #334155;
  font-size: 0.9rem;
  font-weight: 500;
  border-bottom: 1px solid #f1f5f9;
}
.category-dropdown-menu a:hover {
  background: #f8fafc;
  color: var(--primary);
}

/* Menu Links */
.menu-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: 32px;
}
.menu-links > a, .menu-dropdown-toggle {
  color: #334155;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 14px 0;
  display: flex;
  align-items: center;
}
.menu-links > a:hover, .menu-dropdown-toggle:hover {
  color: var(--primary);
}

.menu-item-dropdown {
  position: relative;
}
.menu-dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
  min-width: 180px;
  z-index: 20;
}
.menu-item-dropdown:hover .menu-dropdown-content {
  display: flex;
}
.menu-dropdown-content a {
  padding: 10px 16px;
  color: #334155;
  font-size: 0.88rem;
  font-weight: 500;
  border-bottom: 1px solid #f1f5f9;
}
.menu-dropdown-content a:hover {
  background: #f8fafc;
  color: var(--primary);
}

/* ---- Hero Banner Card ---- */
.hero-banner-card {
  background: linear-gradient(135deg, #060c1d 0%, #0d172e 100%);
  border-radius: var(--radius-lg);
  padding: 48px 48px 24px;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}
.hero-banner-content {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: center;
}
.hero-banner-text h1 {
  font-size: 3.2rem;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 16px;
  font-weight: 800;
}
.hero-banner-text p {
  color: #94a3b8;
  font-size: 1.1rem;
  margin-bottom: 32px;
  max-width: 440px;
}
.hero-btn {
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
}
.hero-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}
.hero-banner-image {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.hero-banner-image img {
  max-height: 340px;
  object-fit: contain;
  filter: drop-shadow(0 25px 30px rgba(0,0,0,0.5));
}

/* Fila de Beneficios */
.hero-benefits {
  display: flex;
  justify-content: flex-start;
  gap: 56px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 40px;
  padding-top: 24px;
  flex-wrap: wrap;
}
.benefit-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
}
.benefit-icon {
  width: 24px;
  height: 24px;
  color: var(--primary);
}
.benefit-text strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
}
.benefit-text small {
  color: #94a3b8;
  font-size: 0.8rem;
}

.hero-slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.hero-slider-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
}
.hero-slider-dots .dot.active {
  background: var(--primary);
  width: 24px;
  border-radius: 4px;
}

/* ---- Categorías Row Grid ---- */
.categorias-row-section {
  margin-bottom: 40px;
}
.categorias-row-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.categoria-row-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
  overflow: hidden;
}
.categoria-row-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(37, 99, 235, 0.2);
}
.cat-card-info h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--texto-main);
  margin-bottom: 4px;
}
.cat-card-info a {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
}
.cat-card-info a:hover {
  text-decoration: underline;
}
.cat-card-img {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cat-card-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* ---- Sección Título Wrapper ---- */
.section-title-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}
.view-all-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
}
.view-all-link:hover {
  text-decoration: underline;
}

/* ---- Grilla Productos Destacados ---- */
.grilla-productos-destacados {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.producto-destacado-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.producto-destacado-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}
.tag-oferta {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  z-index: 2;
  text-transform: uppercase;
}
.p-card-image-link {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  background: #ffffff;
  margin-bottom: 12px;
}
.p-card-image-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.p-card-image-wrapper img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  transition: var(--transition);
}
.producto-destacado-card:hover .p-card-image-wrapper img {
  transform: scale(1.05);
}

.p-card-details {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.p-card-title h3 {
  font-size: 0.9rem;
  color: var(--texto-main);
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 38px;
}
.p-card-title:hover h3 {
  color: var(--primary);
}

.p-card-rating {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.stars-yellow {
  color: #fbbf24;
  font-size: 0.85rem;
}
.p-card-rating small {
  color: var(--texto-mutado);
  font-size: 0.8rem;
  font-weight: 500;
}

.p-card-pricing {
  margin-bottom: 14px;
}
.p-card-pricing .current-price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--texto-main);
}
.p-card-pricing .old-price {
  font-size: 0.85rem;
  color: var(--texto-mutado);
  text-decoration: line-through;
  margin-left: 6px;
}

.p-card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}
.p-card-add-btn {
  width: 100%;
  padding: 10px 14px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--primary);
  border: none;
  font-weight: 600;
  transition: var(--transition);
}
.p-card-add-btn:hover {
  background: var(--primary-hover);
}
.p-card-fav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: #64748b;
  transition: var(--transition);
}
.p-card-fav-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(37, 99, 235, 0.05);
}

/* ---- Banner Ofertas Exclusivas ---- */
.banner-ofertas-exclusivas {
  margin-bottom: 48px;
}
.ofertas-exclusivas-wrapper {
  background: var(--light-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  align-items: center;
}
.ofertas-col-left {
  display: flex;
  align-items: center;
  gap: 20px;
}
.oferta-badge-percentage {
  width: 64px;
  height: 64px;
  background: var(--primary);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.2);
}
.ofertas-left-text h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--texto-main);
  line-height: 1.3;
  margin-bottom: 12px;
}
.btn-ofertas {
  padding: 10px 20px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.ofertas-col-center {
  display: flex;
  justify-content: center;
  align-items: center;
}
.img-promo-gear {
  max-height: 150px;
  object-fit: contain;
}

.ofertas-col-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.countdown-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--texto-mutado);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}
.countdown-timer {
  display: flex;
  gap: 10px;
}
.timer-box {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  min-width: 65px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.timer-num {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--texto-main);
  line-height: 1.1;
}
.timer-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--texto-mutado);
  margin-top: 4px;
}

/* ---- Footer ---- */
.footer { 
  background: var(--dark-bg); 
  color: #94a3b8; 
  margin-top: 64px; 
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.footer-grid { 
  display: grid; 
  grid-template-columns: 1.3fr 0.8fr 1fr 0.8fr 1.3fr; 
  gap: 32px; 
  padding: 64px 24px; 
}
.footer h4 { 
  color: #fff; 
  margin-bottom: 18px; 
  font-size: 1rem;
  font-weight: 700;
}
.footer a { 
  display: block; 
  color: #94a3b8; 
  padding: 6px 0; 
  font-size: 0.9rem;
}
.footer a:hover { 
  color: #fff; 
}
.footer-logo {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}
.footer-logo .logo-main {
  color: #ffffff;
}
.footer-logo .logo-sub {
  color: #64748b;
}
.brand-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 20px;
}
.footer-socials {
  display: flex;
  gap: 12px;
}
.footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  transition: var(--transition);
  padding: 0;
}
.footer-socials a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.footer-col-newsletter p {
  font-size: 0.88rem;
  margin-bottom: 16px;
}
.footer-newsletter-form input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  margin-bottom: 10px;
  transition: var(--transition);
}
.footer-newsletter-form input:focus {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.08);
}
.footer-newsletter-form button {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

/* Footer Bottom Bar */
.footer-bottom-bar {
  background: #040914;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding: 24px 0;
  font-size: 0.85rem;
}
.footer-bottom-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-payment-methods {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #64748b;
}
.payment-icons {
  display: flex;
  gap: 8px;
}
.payment-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.payment-badge.visa { background: #1e3a8a; color: #ffffff; }
.payment-badge.mastercard { background: #ea580c; color: #ffffff; }
.payment-badge.paypal { background: #0284c7; color: #ffffff; }
.payment-badge.applepay { background: #334155; color: #ffffff; }

.footer-copyright {
  color: #64748b;
}

/* ---- WhatsApp Flotante ---- */
.whatsapp-flotante { 
  position: fixed; 
  bottom: 24px; 
  right: 24px; 
  background: #25d366; 
  width: 56px; 
  height: 56px; 
  border-radius: 50%; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  font-size: 1.8rem; 
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.3); 
  z-index: 50; 
  transition: var(--transition);
}
.whatsapp-flotante:hover {
  transform: scale(1.1) rotate(5deg);
  background: #20ba5a;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .grilla-productos-destacados {
    grid-template-columns: repeat(3, 1fr);
  }
  .categorias-row-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .ofertas-exclusivas-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 24px;
  }
  .ofertas-col-left {
    justify-content: center;
    flex-direction: column;
  }
  .ofertas-col-right {
    align-items: center;
  }
}

@media (max-width: 768px) {
  .hero-banner-content {
    grid-template-columns: 1fr;
  }
  .hero-banner-text h1 {
    font-size: 2.2rem;
  }
  .hero-banner-image {
    order: -1;
  }
  .hero-benefits {
    gap: 24px;
  }
  .grilla-productos-destacados {
    grid-template-columns: repeat(2, 1fr);
  }
  .categorias-row-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .header-wrapper {
    flex-direction: column;
    gap: 16px;
    padding: 16px 0;
  }
  .buscador {
    width: 100%;
    max-width: 100%;
  }
  .navigation-wrapper {
    flex-direction: column;
    width: 100%;
  }
  .category-dropdown {
    width: 100%;
  }
  .menu-links {
    margin-left: 0;
    width: 100%;
    justify-content: center;
    overflow-x: auto;
    padding: 10px 0;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom-wrapper {
    flex-direction: column;
    text-align: center;
  }
}

/* ============ OTROS FORMATOS Y COMPONENTES DE SUBPÁGINAS ============ */

/* ---- Grilla General ---- */
.grilla { 
  display: grid; 
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); 
  gap: 20px; 
}

/* ---- Catálogo ---- */
.catalogo-layout { 
  display: grid; 
  grid-template-columns: 280px 1fr; 
  gap: 32px; 
  align-items: start; 
}
.filtros { 
  background: #ffffff; 
  border: 1px solid var(--border); 
  border-radius: var(--radius-md); 
  padding: 24px; 
  position: sticky; 
  top: 100px; 
  box-shadow: var(--shadow-sm);
}
.filtros h3 { 
  font-size: 0.8rem; 
  margin: 20px 0 8px; 
  text-transform: uppercase; 
  color: var(--texto-mutado); 
  letter-spacing: 0.05em;
  font-weight: 700;
}
.filtros h3:first-child { 
  margin-top: 0; 
}
.filtros select, .filtros input[type=number] { 
  width: 100%; 
  padding: 10px 12px; 
  border: 1px solid var(--border); 
  border-radius: var(--radius-sm); 
  background: var(--light-bg);
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--texto-main);
  transition: var(--transition);
}
.filtros select:focus, .filtros input[type=number]:focus {
  outline: none;
  border-color: var(--primary);
  background: #ffffff;
}
.rango-precio { 
  display: flex; 
  gap: 8px; 
}
.check { 
  display: flex; 
  align-items: center;
  gap: 8px;
  margin: 16px 0; 
  font-size: 0.95rem;
  cursor: pointer;
  user-select: none;
}
.check input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}
.catalogo-top { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  margin-bottom: 24px; 
  flex-wrap: wrap; 
  gap: 16px; 
}
.orden-form select { 
  padding: 10px 16px; 
  border: 1px solid var(--border); 
  border-radius: var(--radius-sm); 
  background: #ffffff;
  font-family: inherit;
  color: var(--texto-main);
  font-weight: 500;
}
.paginacion { 
  display: flex; 
  gap: 8px; 
  margin-top: 32px; 
  justify-content: center; 
}
.paginacion a { 
  padding: 10px 16px; 
  background: #ffffff; 
  border: 1px solid var(--border); 
  border-radius: var(--radius-sm); 
  font-weight: 600;
  color: var(--texto-main);
}
.paginacion a.activa { 
  background: var(--primary); 
  color: #ffffff; 
  border-color: var(--primary); 
}
.paginacion a:hover:not(.activa) {
  background: var(--light-bg);
}
.vacio { 
  background: #ffffff; 
  border: 1px dashed #cbd5e1; 
  border-radius: var(--radius-md); 
  padding: 64px 32px; 
  text-align: center; 
  color: var(--texto-mutado); 
  font-size: 1.1rem; 
}

/* ---- Ficha de Producto PDP ---- */
.migas { 
  color: var(--texto-mutado); 
  font-size: 0.88rem; 
  margin-bottom: 24px; 
  font-weight: 500;
}
.migas a {
  color: var(--texto-mutado);
}
.migas a:hover {
  color: var(--primary);
}
.pdp { 
  display: grid; 
  grid-template-columns: 1.1fr 0.9fr; 
  gap: 48px; 
  background: #ffffff; 
  border-radius: var(--radius-lg); 
  padding: 40px; 
  border: 1px solid var(--border); 
  box-shadow: var(--shadow-sm);
}
.pdp-imagen {
  background: var(--light-bg);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}
.pdp-imagen img { 
  border-radius: var(--radius-md); 
  max-height: 480px;
  object-fit: contain;
}
.marca { 
  color: var(--primary); 
  font-weight: 800; 
  text-transform: uppercase; 
  font-size: 0.8rem; 
  letter-spacing: 0.1em;
  display: inline-block;
  margin-bottom: 8px;
}
.pdp-info h1 { 
  font-size: 2.2rem; 
  margin: 0 0 12px; 
  line-height: 1.25;
}
.stock-info { 
  margin: 16px 0; 
  font-weight: 600; 
  font-size: 1.05rem;
}
.agregar-form { 
  display: flex; 
  gap: 16px; 
  align-items: flex-end; 
  margin: 24px 0 32px; 
  flex-wrap: wrap; 
}
.agregar-form label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--texto-mutado);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.agregar-form input[type=number] { 
  width: 90px; 
  padding: 11px; 
  border: 1px solid var(--border); 
  border-radius: var(--radius-sm); 
  background: var(--light-bg);
  font-family: inherit;
  font-weight: 600;
  font-size: 1rem;
}
.descripcion { 
  color: #334155; 
  margin-bottom: 32px; 
  font-size: 1.05rem;
}
.tabla-specs { 
  width: 100%; 
  border-collapse: collapse; 
  font-size: 0.95rem; 
  margin-top: 24px;
}
.tabla-specs th, .tabla-specs td { 
  text-align: left; 
  padding: 12px 16px; 
  border-bottom: 1px solid var(--border); 
}
.tabla-specs tr:nth-child(even) {
  background: var(--light-bg);
}
.tabla-specs th { 
  color: var(--texto-mutado); 
  width: 35%; 
  font-weight: 600; 
}

/* ---- Reseñas ---- */
.resenas-seccion { 
  background: #ffffff; 
  border-radius: var(--radius-lg); 
  padding: 40px; 
  border: 1px solid var(--border); 
  margin-top: 32px; 
  box-shadow: var(--shadow-sm);
}
.form-resena { 
  display: grid; 
  gap: 16px; 
  max-width: 540px; 
  margin: 20px 0 32px; 
  background: var(--light-bg);
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
.form-resena label {
  font-weight: 600;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-resena textarea, .form-resena select { 
  padding: 12px; 
  border: 1px solid var(--border); 
  border-radius: var(--radius-sm); 
  font-family: inherit; 
  background: #ffffff;
  font-size: 0.95rem;
}
.form-resena textarea:focus, .form-resena select:focus {
  outline: none;
  border-color: var(--primary);
}
.resena { 
  border-top: 1px solid var(--border); 
  padding: 20px 0; 
}
.resena strong {
  font-size: 1.05rem;
}
.resena small { 
  color: var(--texto-mutado); 
  margin-left: 12px; 
  font-weight: 500;
}
.resena p {
  margin-top: 8px;
  color: #334155;
}

/* ---- Carrito ---- */
.carrito-layout { 
  display: grid; 
  grid-template-columns: 1fr 360px; 
  gap: 32px; 
  align-items: start; 
}
.tabla-carrito { 
  width: 100%; 
  background: #ffffff; 
  border-radius: var(--radius-md); 
  border-collapse: collapse; 
  overflow: hidden; 
  border: 1px solid var(--border); 
  box-shadow: var(--shadow-sm);
}
.tabla-carrito th, .tabla-carrito td { 
  padding: 16px 20px; 
  text-align: left; 
  border-bottom: 1px solid var(--border); 
}
.tabla-carrito thead { 
  background: var(--light-bg); 
}
.tabla-carrito th {
  font-weight: 600;
  color: var(--texto-mutado);
}
.celda-producto { 
  display: flex; 
  align-items: center; 
  gap: 16px; 
}
.celda-producto img { 
  width: 64px; 
  height: 64px; 
  border-radius: var(--radius-sm); 
  object-fit: cover; 
  border: 1px solid var(--border);
}
.celda-producto a {
  font-weight: 600;
  color: var(--texto-main);
}
.celda-producto a:hover {
  color: var(--primary);
}
.input-cantidad { 
  width: 75px; 
  padding: 8px 10px; 
  border: 1px solid var(--border); 
  border-radius: var(--radius-sm); 
  background: var(--light-bg);
  font-family: inherit;
  font-weight: 600;
  text-align: center;
}
.input-cantidad:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--primary);
}
.carrito-acciones { 
  margin-top: 20px; 
  display: flex; 
  gap: 12px; 
}
.resumen { 
  background: #ffffff; 
  border: 1px solid var(--border); 
  border-radius: var(--radius-md); 
  padding: 24px; 
  position: sticky; 
  top: 100px; 
  box-shadow: var(--shadow-lg);
}
.resumen h3 {
  font-size: 1.25rem;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--light-bg);
  padding-bottom: 10px;
}
.resumen .linea { 
  display: flex; 
  justify-content: space-between; 
  padding: 10px 0; 
  font-size: 0.95rem;
  color: var(--texto-mutado);
}
.resumen .linea strong {
  color: var(--texto-main);
}
.resumen .linea.total { 
  border-top: 2px solid var(--light-bg); 
  margin-top: 12px; 
  padding-top: 16px; 
  font-size: 1.35rem; 
  font-weight: 800; 
  color: var(--texto-main);
}
.resumen .linea.descuento { 
  color: var(--exito); 
  font-weight: 600;
}
.cupon-form { 
  display: flex; 
  gap: 8px; 
  margin-bottom: 16px; 
}
.cupon-form input { 
  flex: 1; 
  padding: 10px 14px; 
  border: 1px solid var(--border); 
  border-radius: var(--radius-sm); 
  font-family: inherit;
  background: var(--light-bg);
}
.cupon-form input:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--primary);
}
.cupon-ok { 
  font-size: 0.88rem; 
  color: var(--exito); 
  margin-bottom: 12px; 
  font-weight: 600;
}

/* ---- Checkout ---- */
.checkout-layout { 
  display: grid; 
  grid-template-columns: 1fr 380px; 
  gap: 32px; 
  align-items: start; 
}
.checkout-form { 
  background: #ffffff; 
  border: 1px solid var(--border); 
  border-radius: var(--radius-md); 
  padding: 32px; 
  box-shadow: var(--shadow-sm);
}
.checkout-form h3 { 
  margin: 24px 0 16px; 
  font-size: 1.2rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}
.checkout-form h3:first-child { 
  margin-top: 0; 
}
.campo { 
  margin-bottom: 16px; 
}
.campo label { 
  display: block; 
  font-size: 0.9rem; 
  font-weight: 600; 
  margin-bottom: 6px; 
  color: var(--texto-main);
}
.campo input { 
  width: 100%; 
  padding: 12px 14px; 
  border: 1px solid var(--border); 
  border-radius: var(--radius-sm); 
  font-size: 0.95rem; 
  font-family: inherit;
  background: var(--light-bg);
  transition: var(--transition);
}
.campo input:focus {
  outline: none;
  border-color: var(--primary);
  background: #ffffff;
}
.fila-2 { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 16px; 
}
.radio-pago { 
  display: block; 
  border: 1px solid var(--border); 
  border-radius: var(--radius-sm); 
  padding: 16px 20px; 
  margin-bottom: 12px; 
  cursor: pointer; 
  font-size: 0.95rem; 
  transition: var(--transition);
}
.radio-pago input {
  margin-right: 10px;
  accent-color: var(--primary);
}
.radio-pago:hover {
  background: var(--light-bg);
}
.radio-pago:has(input:checked) { 
  border-color: var(--primary); 
  background: rgba(37, 99, 235, 0.03); 
  box-shadow: 0 0 0 1px var(--primary);
}

/* ---- Confirmación y Seguimiento ---- */
.confirmacion { 
  background: #ffffff; 
  border: 1px solid var(--border); 
  border-radius: var(--radius-lg); 
  padding: 48px; 
  text-align: center; 
  max-width: 760px; 
  margin: 0 auto; 
  box-shadow: var(--shadow-sm);
}
.check-grande { 
  font-size: 3.5rem; 
  margin-bottom: 16px;
}
.aviso-pago { 
  background: rgba(37, 99, 235, 0.04); 
  border: 1px solid rgba(37, 99, 235, 0.15); 
  border-radius: var(--radius-sm); 
  padding: 20px; 
  margin: 24px 0; 
  line-height: 1.6;
  font-size: 0.98rem;
}
.confirmacion table { 
  margin: 24px auto; 
  text-align: left; 
}
.form-seguimiento { 
  display: flex; 
  gap: 12px; 
  margin: 24px 0; 
  flex-wrap: wrap; 
}
.form-seguimiento input { 
  padding: 12px 16px; 
  border: 1px solid var(--border); 
  border-radius: var(--radius-sm); 
  flex: 1; 
  min-width: 220px; 
  font-family: inherit;
  background: #ffffff;
}
.form-seguimiento input:focus {
  outline: none;
  border-color: var(--primary);
}
.seguimiento-resultado { 
  background: #ffffff; 
  border: 1px solid var(--border); 
  border-radius: var(--radius-md); 
  padding: 32px; 
  box-shadow: var(--shadow-sm);
}
.linea-tiempo { 
  display: flex; 
  justify-content: space-between; 
  margin-top: 36px; 
  position: relative;
}
.linea-tiempo::before {
  content: '';
  position: absolute;
  top: 17px;
  left: 5%;
  right: 5%;
  height: 2px;
  background: var(--border);
  z-index: 1;
}
.paso { 
  text-align: center; 
  flex: 1; 
  position: relative; 
  color: var(--texto-mutado); 
  z-index: 2;
}
.paso .punto { 
  display: inline-flex; 
  width: 36px; 
  height: 36px; 
  border-radius: 50%; 
  background: #ffffff; 
  border: 2px solid var(--border);
  color: var(--texto-mutado);
  align-items: center; 
  justify-content: center; 
  font-weight: 700; 
  margin-bottom: 8px; 
  transition: var(--transition);
}
.paso.hecho { 
  color: var(--exito); 
  font-weight: 600;
}
.paso.hecho .punto { 
  background: var(--exito); 
  color: #ffffff; 
  border-color: var(--exito);
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.2);
}
.paso small { 
  display: block; 
  font-size: 0.8rem; 
}

/* ---- Auth / Cuenta ---- */
.form-auth { 
  max-width: 440px; 
  margin: 40px auto; 
  background: #ffffff; 
  border: 1px solid var(--border); 
  border-radius: var(--radius-md); 
  padding: 36px; 
  box-shadow: var(--shadow-sm);
}
.form-auth h1 { 
  margin-bottom: 20px; 
  font-size: 1.85rem;
  text-align: center;
}
.form-auth p { 
  margin-top: 18px; 
  text-align: center; 
  color: var(--texto-mutado);
}
.cuenta-layout { 
  display: grid; 
  grid-template-columns: 300px 1fr; 
  gap: 32px; 
  align-items: start; 
}
.panel { 
  background: #ffffff; 
  border: 1px solid var(--border); 
  border-radius: var(--radius-md); 
  padding: 24px; 
  box-shadow: var(--shadow-sm);
}
.panel h3 { 
  margin-bottom: 16px; 
  font-size: 1.2rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}
.tabla-datos { 
  width: 100%; 
  border-collapse: collapse; 
  font-size: 0.92rem; 
}
.tabla-datos th, .tabla-datos td { 
  padding: 12px 10px; 
  text-align: left; 
  border-bottom: 1px solid var(--border); 
}
.tabla-datos th {
  color: var(--texto-mutado);
  font-weight: 600;
}
.estado { 
  font-size: 0.72rem; 
  font-weight: 700; 
  padding: 4px 12px; 
  border-radius: var(--radius-pill); 
  white-space: nowrap; 
  text-transform: uppercase;
  letter-spacing: 0.03em;
  display: inline-block;
}
.estado-pendiente { background: #fef9c3; color: #854d0e; }
.estado-pagado { background: #dbeafe; color: #1e40af; }
.estado-preparando { background: #e0e7ff; color: #3730a3; }
.estado-enviado { background: #cffafe; color: #155e75; }
.estado-entregado { background: #dcfce7; color: #166534; }
.estado-cancelado { background: #fee2e2; color: #991b1b; }

/* ---- Alertas ---- */
.alerta { 
  padding: 14px 20px; 
  border-radius: var(--radius-sm); 
  margin: 16px 0; 
  font-weight: 600; 
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 10px;
}
.alerta-exito { 
  background: #dcfce7; 
  color: #15803d; 
  border: 1px solid #bbf7d0;
}
.alerta-error { 
  background: #fee2e2; 
  color: #b91c1c; 
  border: 1px solid #fca5a5;
}

