/* ==========================================================================
   NOVASTORE - SISTEMA DE DISEÑO MODERNO & ESTILOS GLOBALES
   ========================================================================== */

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

:root {
  /* Paleta de Colores Curada */
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --primary-gradient: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  
  --whatsapp-green: #25d366;
  --whatsapp-hover: #20ba59;
  --whatsapp-gradient: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  
  --accent: #f59e0b;
  --danger: #ef4444;
  --success: #10b981;
  
  /* Superficies y Fondos */
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --border-subtle: #e2e8f0;
  --border-focus: #93c5fd;
  
  /* Textos */
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-inverse: #ffffff;
  
  /* Sombras Modernas */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.03);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-glow: 0 0 20px rgba(37, 99, 235, 0.25);
  --shadow-wa: 0 8px 20px rgba(37, 211, 102, 0.35);
  
  /* Tipografía */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  /* Radios & Transiciones */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset y Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

button, input, select, textarea {
  font: inherit;
  border: none;
  outline: none;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* ==========================================================================
   NAVBAR & HEADER
   ========================================================================== */
.header-top-bar {
  background: #0f172a;
  color: #cbd5e1;
  font-size: 0.8rem;
  padding: 0.45rem 0;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.header-top-bar span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}
.header-top-bar .highlight {
  color: var(--accent);
  font-weight: 700;
}

.main-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.85rem 0;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
}
.brand-logo img {
  height: 42px;
  width: auto;
}

/* Buscador en el header */
.header-search {
  flex: 1;
  max-width: 480px;
  position: relative;
}
.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.search-input-wrap svg {
  position: absolute;
  left: 1rem;
  width: 18px;
  height: 18px;
  color: var(--text-light);
  pointer-events: none;
}
.search-input {
  width: 100%;
  padding: 0.7rem 1rem 0.7rem 2.75rem;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  transition: var(--transition);
}
.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

/* Botones de acción del header */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-header-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}
.btn-header-action:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.cart-counter-badge {
  background: var(--primary-gradient);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  min-width: 22px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(37, 99, 235, 0.4);
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cart-badge-bounce {
  transform: scale(1.35);
}

/* ==========================================================================
   HERO BANNER
   ========================================================================== */
.hero-section {
  padding: 2rem 0 1.5rem;
}
.hero-card {
  background: linear-gradient(135deg, #090d16 0%, #1e1b4b 60%, #172554 100%);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.hero-card::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.3) 0%, rgba(37, 99, 235, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero-content {
  max-width: 580px;
  position: relative;
  z-index: 2;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #38bdf8;
}
.hero-title {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -1px;
}
.hero-title span {
  background: linear-gradient(135deg, #38bdf8 0%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-desc {
  color: #cbd5e1;
  font-size: 1.05rem;
  margin-bottom: 1.75rem;
  max-width: 500px;
}
.hero-buttons {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--primary-gradient);
  color: #ffffff;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: var(--shadow-glow);
  transition: var(--transition);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
}

.btn-wa-hero {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--whatsapp-gradient);
  color: #ffffff;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: var(--shadow-wa);
  transition: var(--transition);
}
.btn-wa-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.45);
}

/* Ticker de beneficios */
.features-ticker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 1.75rem;
}
.feature-item {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  padding: 1.15rem 1.4rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.feature-item:hover {
  border-color: var(--primary-focus);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.feature-icon svg {
  width: 22px;
  height: 22px;
}
.feature-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-main);
  margin-bottom: 0.15rem;
}
.feature-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   CATEGORÍAS Y FILTROS
   ========================================================================== */
.catalog-section {
  padding: 2.5rem 0 4rem;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.section-title {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
}
.section-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 0.2rem;
}

.categories-nav {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  margin-bottom: 2rem;
  scrollbar-width: thin;
}
.categories-nav::-webkit-scrollbar {
  height: 4px;
}
.categories-nav::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: var(--radius-full);
}

.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}
.cat-pill:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}
.cat-pill.active {
  background: var(--text-main);
  border-color: var(--text-main);
  color: #ffffff;
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   GRID DE PRODUCTOS & CARDS
   ========================================================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.75rem;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  box-shadow: var(--shadow-sm);
}
.product-card:hover {
  transform: translateY(-5px);
  border-color: #cbd5e1;
  box-shadow: var(--shadow-xl);
}

.product-img-wrapper {
  position: relative;
  background: #0f172a;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-card:hover .product-img-wrapper img {
  transform: scale(1.06);
}

.product-badges {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  z-index: 2;
}
.badge-discount {
  background: var(--danger);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
}
.badge-featured {
  background: var(--primary-gradient);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.quick-view-btn {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}
.product-card:hover .quick-view-btn {
  opacity: 1;
  transform: translateY(0);
}
.quick-view-btn:hover {
  background: #ffffff;
  color: var(--primary);
  transform: scale(1.1);
}

.product-info {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-category {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-light);
  margin-bottom: 0.35rem;
}
.product-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.7rem;
}
.product-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
}
.product-pricing {
  display: flex;
  flex-direction: column;
}
.price-current {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
}
.price-old {
  font-size: 0.82rem;
  color: var(--text-light);
  text-decoration: line-through;
  margin-top: -0.2rem;
}

.btn-add-cart {
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(37, 99, 235, 0.2);
  padding: 0.55rem 1rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: var(--transition);
}
.btn-add-cart:hover {
  background: var(--primary);
  color: #ffffff;
  transform: scale(1.04);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Estado sin resultados */
.empty-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 1rem;
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-subtle);
}
.empty-results svg {
  width: 64px;
  height: 64px;
  color: var(--text-light);
  margin-bottom: 1rem;
}
.empty-results h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   OFF-CANVAS CART DRAWER (CARRITO LATERAL FLOTANTE)
   ========================================================================== */
.cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.cart-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  z-index: 999;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.cart-drawer.open {
  transform: translateX(0);
}

.cart-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cart-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.btn-close-drawer {
  background: var(--bg-body);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
}
.btn-close-drawer:hover {
  background: var(--border-subtle);
  color: var(--text-main);
}

/* Barra de progreso para envío gratis */
.free-shipping-progress {
  padding: 0.75rem 1.5rem;
  background: #f1f5f9;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.82rem;
}
.progress-bar-wrap {
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: 0.4rem;
}
.progress-bar-fill {
  height: 100%;
  background: var(--success);
  width: 0%;
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}

/* Contenido del carrito */
.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  padding: 2rem 0;
}
.cart-empty-state svg {
  width: 80px;
  height: 80px;
  color: #cbd5e1;
  margin-bottom: 1.25rem;
}
.cart-empty-state h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.cart-empty-state p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.cart-item {
  display: flex;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  align-items: center;
}
.cart-item-img {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-sm);
  background: #0f172a;
  object-fit: cover;
  flex-shrink: 0;
}
.cart-item-details {
  flex: 1;
}
.cart-item-title {
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.3;
  margin-bottom: 0.25rem;
}
.cart-item-price {
  font-weight: 800;
  color: var(--primary);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}
.cart-qty-controller {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: #f8fafc;
}
.qty-btn {
  background: transparent;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: bold;
  color: var(--text-muted);
  transition: var(--transition);
}
.qty-btn:hover {
  color: var(--primary);
  background: #e2e8f0;
}
.qty-value {
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0 0.5rem;
  min-width: 24px;
  text-align: center;
}

.btn-remove-item {
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 6px;
  transition: var(--transition);
}
.btn-remove-item:hover {
  color: var(--danger);
  background: #fee2e2;
}

/* Footer del carrito */
.cart-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border-subtle);
  background: #fafafa;
}
.cart-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.cart-summary-row.total {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-main);
  padding-top: 0.6rem;
  border-top: 1px dashed var(--border-subtle);
  margin-top: 0.6rem;
  margin-bottom: 1.2rem;
}

.btn-checkout {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: var(--whatsapp-gradient);
  color: #ffffff;
  padding: 0.95rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: var(--shadow-wa);
  transition: var(--transition);
}
.btn-checkout:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.45);
}

/* ==========================================================================
   MODAL DE CHECKOUT & FORMULARIO WHATSAPP
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(6px);
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  background: #ffffff;
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  border-radius: var(--radius-lg);
  overflow: scroll;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-backdrop.open .modal-dialog {
  transform: scale(1);
}

.modal-header {
  padding: 1.25rem 1.75rem;
  background: #0f172a;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.btn-close-modal {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}
.btn-close-modal:hover {
  background: rgba(255, 255, 255, 0.3);
}

.modal-body {
  padding: 1.75rem;
  overflow-y: auto;
}

.checkout-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.form-group.col-span-2 {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}
.form-label .req {
  color: var(--danger);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  background: #ffffff;
  transition: var(--transition);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.form-textarea {
  resize: vertical;
  min-height: 70px;
}

/* Radio buttons estilizados de entrega */
.delivery-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.delivery-radio-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0.85rem;
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}
.delivery-radio-card input {
  position: absolute;
  opacity: 0;
}
.delivery-radio-card.active {
  border-color: var(--primary);
  background: var(--primary-light);
}
.delivery-radio-card .title {
  font-weight: 700;
  font-size: 0.9rem;
}
.delivery-radio-card .sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Resumen rápido de compra dentro del modal */
.modal-order-summary {
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-top: 1.25rem;
}
.modal-order-summary h5 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.modal-summary-items {
  max-height: 120px;
  overflow-y: auto;
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.modal-footer {
  padding: 1.25rem 1.75rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
}

/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  pointer-events: none;
}

.toast-pill {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: #0f172a;
  color: #ffffff;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-xl);
  font-size: 0.9rem;
  font-weight: 600;
  animation: toastIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.toast-pill.success {
  border-left: 4px solid var(--success);
}
.toast-pill.warning {
  border-left: 4px solid var(--accent);
}
.toast-pill.error {
  border-left: 4px solid var(--danger);
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ==========================================================================
   MODAL VISTA RÁPIDA DE PRODUCTO
   ========================================================================== */
.quick-view-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  align-items: center;
}
.quick-view-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #0f172a;
  border-radius: var(--radius-md);
  object-fit: cover;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
  margin-top: auto;
  background: #090d16;
  color: #94a3b8;
  padding: 4rem 0 2rem;
  border-top: 1px solid #1e293b;
}

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

.footer-col h4 {
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.9rem;
}
.footer-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid #1e293b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Floating WhatsApp Button */
.btn-floating-wa {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  width: 60px;
  height: 60px;
  background: var(--whatsapp-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: var(--shadow-wa);
  z-index: 900;
  cursor: pointer;
  transition: var(--transition);
  animation: pulseWa 2.5s infinite;
}
.btn-floating-wa:hover {
  transform: scale(1.1);
}
.btn-floating-wa svg {
  width: 32px;
  height: 32px;
}

@keyframes pulseWa {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* ==========================================================================
   RESPONSIVE DESIGN (MÓVIL & TABLET)
   ========================================================================== */
@media (max-width: 992px) {
  .hero-card {
    flex-direction: column;
    text-align: center;
    padding: 2.5rem 1.5rem;
  }
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-buttons {
    justify-content: center;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .header-search {
    display: none;
  }
  .hero-title {
    font-size: 2rem;
  }
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
  }
  .product-info {
    padding: 1rem;
  }
  .checkout-form-grid, .quick-view-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .delivery-options {
    grid-template-columns: 1fr;
  }
}

/* Filtros del catálogo */
.catalog-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 1rem;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
}
.catalog-filter { min-width: 0; }
.catalog-filter label { display: block; margin-bottom: .45rem; font-size: .85rem; font-weight: 600; }
.catalog-filter select, .catalog-filter input {
  width: 100%; min-height: 44px; padding: .65rem .75rem;
  border: 1px solid var(--border-subtle); border-radius: 8px;
  background: #fff; color: var(--text-main); font: inherit;
}
.catalog-filter select:focus-visible, .catalog-filter input:focus-visible {
  outline: 2px solid var(--primary); outline-offset: 2px;
}
.catalog-filter input[aria-invalid="true"] { border-color: #b91c1c; }
.filter-error { color: #b91c1c; margin-top: .75rem; }
.filter-results-count { color: var(--text-muted); margin: 1rem 0; font-size: .9rem; }
@media (max-width: 900px) {
  .catalog-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-filters > button { justify-self: start; }
}
@media (max-width: 480px) {
  .catalog-filters { grid-template-columns: minmax(0, 1fr); padding: 1rem; }
}
