:root {
  --cream: #FFFBF5;
  --white: #FFFFFF;
  --ink: #181614;
  --gray: #8A8478;
  --line: #ECE6DA;
  --red: #E0212B;
  --yellow: #FFC229;
  --stripe: linear-gradient(90deg, var(--ink) 0 33.33%, var(--red) 33.33% 66.66%, var(--yellow) 66.66% 100%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { min-height: 100vh; background: var(--cream); color: var(--ink); font-family: 'Inter', sans-serif; -webkit-font-smoothing: antialiased; }

.display { font-family: 'Archivo Black', sans-serif; text-transform: uppercase; letter-spacing: -0.03em; }
.stripe { height: 5px; width: 100%; background: var(--stripe); }

/* ==========================================
   HEADER
   ========================================== */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { max-width: 1240px; margin: 0 auto; padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { font-size: 26px; text-decoration: none; color: var(--ink); }
.logo .dot-j { color: var(--red); }

.search-wrap { flex: 1; max-width: 450px; }
.search-wrap input { width: 100%; padding: 12px 20px; border-radius: 8px; border: 2px solid var(--ink); background: var(--cream); font-weight: 600; transition: all 0.2s; }
.search-wrap input:focus { background: var(--white); outline: none; border-color: var(--red); }

.icon-btn { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--ink); background: var(--white); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s; }
.icon-btn:hover { border-color: var(--red); }
.icon-btn svg { width: 20px; height: 20px; }
.cart-count { position: absolute; top: -5px; right: -5px; background: var(--red); color: var(--white); font-size: 11px; font-weight: 700; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; animation: pulse 0.3s ease-out; }

@keyframes pulse { 0% { transform: scale(1.2); } 100% { transform: scale(1); } }

/* ==========================================
   BANNER EN LOOP
   ========================================== */
.ship-banner { background: var(--ink); color: var(--white); padding: 12px 0; font-size: 13px; font-weight: 600; overflow: hidden; white-space: nowrap; width: 100%; }
.ship-banner strong { color: var(--yellow); }

.ticker-wrap { display: inline-block; }
.ticker-item { display: inline-block; animation: marquee-infinite 45s linear infinite; letter-spacing: 0.5px; text-transform: uppercase; }

@keyframes marquee-infinite {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

/* ==========================================
   BREADCRUMB
   ========================================== */
.breadcrumb { background: var(--white); border-bottom: 1px solid var(--line); padding: 12px 0; }
.breadcrumb-inner { max-width: 1240px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 8px; font-size: 13px; }
.breadcrumb-item { color: var(--gray); text-decoration: none; transition: color 0.2s; }
.breadcrumb-item:hover { color: var(--ink); }
.breadcrumb-item.active { color: var(--ink); font-weight: 600; }
.breadcrumb-sep { color: var(--line); }

/* ==========================================
   LAYOUT PRINCIPAL
   ========================================== */
.home-hero { padding: 48px 24px 24px; }
.hero-inner { max-width: 1192px; min-height: 440px; margin: 0 auto; padding: 56px; border: 2px solid var(--ink); border-radius: 18px; background: var(--white); display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 48px; overflow: hidden; box-shadow: 10px 10px 0 var(--ink); }
.hero-kicker { display: inline-block; margin-bottom: 18px; padding: 7px 12px; border-radius: 999px; background: var(--yellow); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.hero-copy h1, .hero-copy h2 { max-width: 750px; font-size: clamp(38px, 5.4vw, 72px); line-height: .96; }
.hero-copy p { max-width: 620px; margin-top: 22px; color: var(--gray); font-size: 17px; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-btn { padding: 14px 22px; border: 2px solid var(--ink); border-radius: 8px; color: var(--ink); font-weight: 800; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.hero-btn:hover { transform: translateY(-3px); box-shadow: 4px 4px 0 var(--ink); }
.hero-btn-primary { background: var(--red); color: var(--white); }
.hero-btn-secondary { background: var(--white); }
.hero-art { position: relative; min-height: 310px; }
.hero-shape { position: absolute; border: 2px solid var(--ink); }
.hero-shape-red { inset: 20px 10px 30px 40px; background: var(--red); border-radius: 46% 54% 38% 62%; transform: rotate(-8deg); }
.hero-shape-yellow { width: 160px; height: 160px; right: -35px; bottom: -20px; background: var(--yellow); border-radius: 50%; }
.hero-mark { position: absolute; inset: 0; display: grid; place-items: center; color: var(--white); font-size: 92px; transform: rotate(-8deg); text-shadow: 5px 5px 0 var(--ink); }
.hero-sticker { position: absolute; z-index: 2; top: 0; right: 5px; width: 82px; height: 82px; border: 2px solid var(--ink); border-radius: 50%; background: var(--yellow); display: grid; place-items: center; font-weight: 900; transform: rotate(12deg); }
.home-benefits { max-width: 1192px; margin: 24px auto 10px; padding: 0 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.benefit { padding: 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); display: flex; flex-direction: column; gap: 5px; }
.benefit strong { font-size: 14px; text-transform: uppercase; }
.benefit span { color: var(--gray); font-size: 13px; }
.home-section { max-width: 1192px; margin: 72px auto 0; padding: 0 24px; }
.home-section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 28px; }
.home-section-head h2 { margin-top: 6px; font-size: clamp(26px, 4vw, 42px); }
.section-eyebrow { color: var(--red); font-size: 12px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.section-link { color: var(--ink); font-size: 14px; font-weight: 800; text-decoration: none; border-bottom: 2px solid var(--red); padding-bottom: 4px; white-space: nowrap; }
.category-showcase { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.category-tile { position: relative; min-height: 190px; padding: 26px; border: 2px solid var(--ink); border-radius: 14px; color: var(--ink); text-decoration: none; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.category-tile:hover { transform: translateY(-5px); box-shadow: 6px 6px 0 var(--ink); }
.category-tile-1 { background: var(--yellow); }
.category-tile-2 { background: var(--white); }
.category-tile-3 { background: #ffd9dc; }
.category-number { position: absolute; top: 18px; right: 22px; font: 800 38px/1 'Archivo Black', sans-serif; opacity: .18; }
.category-tile strong { max-width: 80%; font: 26px/1.05 'Archivo Black', sans-serif; text-transform: uppercase; }
.category-tile > span:last-child { margin-top: 15px; font-size: 13px; font-weight: 800; }
.featured-showcase { margin-bottom: 30px; }
.home-product-grid { grid-template-columns: repeat(4, 1fr); }
.catalog-page .home-hero, .catalog-page .home-benefits { display: none; }
.catalog-page .breadcrumb { margin-bottom: 28px; }
.main-wrapper { display: flex; max-width: 1240px; margin: 0 auto; gap: 24px; padding: 0 24px; }
.filter-sidebar { width: 220px; flex-shrink: 0; }
.content-wrapper { flex: 1; }

.filter-title { font-size: 16px; font-weight: 700; margin-bottom: 20px; }
.filter-group { margin-bottom: 20px; border-bottom: 1px solid var(--line); padding-bottom: 15px; }
.filter-group:last-child { border-bottom: none; }

.filter-header { width: 100%; background: none; border: none; padding: 8px 0; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-weight: 600; font-size: 14px; transition: color 0.2s; }
.filter-header:hover { color: var(--red); }
.toggle-icon { width: 16px; height: 16px; transition: transform 0.2s; }
.filter-header.collapsed .toggle-icon { transform: rotate(-90deg); }

.filter-content { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; max-height: 500px; overflow: hidden; transition: max-height 0.3s ease-out; }
.filter-content.collapsed { max-height: 0; }

.filter-option { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; }
.filter-option input { cursor: pointer; }

.btn-clear-filters { width: 100%; padding: 10px; background: var(--cream); border: 2px solid var(--ink); border-radius: 6px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.btn-clear-filters:hover { background: var(--ink); color: var(--white); }

.filter-toggle { display: none; width: 100%; padding: 12px; background: var(--ink); color: var(--white); border: none; border-radius: 6px; font-weight: 600; cursor: pointer; margin-bottom: 20px; align-items: center; justify-content: center; gap: 8px; }
.filter-toggle svg { width: 18px; height: 18px; }

/* ==========================================
   CATEGORÍAS
   ========================================== */
.cat-nav { margin: 30px 0 15px 0; }
.cat-pills { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 5px; }
.cat-pill { padding: 10px 20px; border-radius: 6px; border: 2px solid var(--ink); background: var(--white); color: inherit; font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap; transition: all 0.2s; display: inline-flex; align-items: center; justify-content: center; }
.cat-pill.active { background: var(--ink); color: var(--white); }
.cat-pill:hover { border-color: var(--red); }

/* ==========================================
   CATÁLOGO - GRID ÚNICO SIN REPETICIÓN
   ========================================== */
.catalog { }
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 25px; border-bottom: 3px solid var(--ink); padding-bottom: 8px; }
.section-head h2 { font-size: 24px; }
.section-count { font-size: 13px; color: var(--gray); }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 25px; }
.product-card { background: var(--white); border: 2px solid var(--ink); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1); position: relative; }
.product-card:hover { transform: translateY(-6px); box-shadow: 0 12px 24px rgba(24,22,20,0.12); border-color: var(--red); }

.product-media { position: relative; aspect-ratio: 1/1; background: var(--cream); overflow: hidden; }
.product-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.35s ease-in-out; }
.product-media img.img-2 { opacity: 0; }
.product-card:hover .product-media img.img-1 { opacity: 0; }
.product-card:hover .product-media img.img-2 { opacity: 1; }

.quick-view-btn { position: absolute; inset: 0; background: rgba(24,22,20,0.7); color: var(--white); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; opacity: 0; transition: opacity 0.3s; z-index: 10; }
.product-card:hover .quick-view-btn { opacity: 1; }
.quick-view-btn svg { width: 18px; height: 18px; }

.badge { position: absolute; top: 10px; left: 10px; background: var(--red); color: var(--white); font-size: 11px; font-weight: 800; padding: 4px 8px; border-radius: 4px; z-index: 5; text-transform: uppercase; }
.badge.badge-yellow { background: var(--yellow); color: var(--ink); left: auto; right: 10px; }

.product-body { padding: 16px; display: flex; flex-direction: column; flex: 1; gap: 8px; }
.product-cat { font-size: 11px; font-weight: 700; color: var(--gray); text-transform: uppercase; }
.product-name { font-size: 16px; font-weight: 700; line-height: 1.2; min-height: 38px; }
.product-price-row { display: flex; align-items: baseline; gap: 8px; }
.price { font-size: 20px; font-weight: 800; color: var(--red); }
.price-old { font-size: 14px; color: var(--gray); text-decoration: line-through; }

.product-stock { font-size: 12px; font-weight: 600; }
.stock-available { color: #22c55e; }
.stock-unavailable { color: var(--red); }
.stock-consult { color: #a56f00; }
.cart-item-availability { margin-top: 3px; color: #a56f00; font-size: 10px; font-weight: 700; }

.btn-add { width: 100%; background: var(--ink); color: var(--white); padding: 12px; border-radius: 6px; border: none; font-weight: 700; font-size: 14px; cursor: pointer; transition: all 0.2s; }
.btn-add:hover:not(:disabled) { background: var(--red); transform: translateY(-2px); }
.btn-add:active:not(:disabled) { transform: translateY(0); }
.btn-add:disabled { opacity: 0.5; cursor: not-allowed; }

.no-results { display: none; text-align: center; padding: 40px; font-weight: 700; color: var(--gray); }
.no-results.show { display: block; }

/* ==========================================
   MODAL DE VISTA RÁPIDA
   ========================================== */
.modal-overlay { position: fixed; inset: 0; background: rgba(24,22,20,0.6); display: none; align-items: center; justify-content: center; z-index: 300; animation: fadeIn 0.2s ease-out; }
.modal-overlay.open { display: flex; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-content { background: var(--white); border-radius: 12px; max-width: 600px; width: 90%; max-height: 90vh; overflow-y: auto; position: relative; animation: slideUp 0.3s ease-out; }

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

.modal-close { position: absolute; top: 16px; right: 16px; background: none; border: none; font-size: 24px; cursor: pointer; z-index: 10; }

.modal-body { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 24px; }
.modal-image { aspect-ratio: 1/1; background: var(--cream); border-radius: 8px; overflow: hidden; }
.modal-image img { width: 100%; height: 100%; object-fit: cover; }

.modal-info { display: flex; flex-direction: column; gap: 12px; }
.modal-category { font-size: 11px; font-weight: 700; color: var(--gray); text-transform: uppercase; }
.modal-name { font-size: 20px; font-weight: 700; }
.modal-price { display: flex; align-items: baseline; gap: 8px; }
.modal-stock { font-size: 13px; font-weight: 600; }

.modal-quantity { display: flex; align-items: center; gap: 12px; }
.qty-controls { display: flex; align-items: center; gap: 8px; border: 2px solid var(--ink); border-radius: 6px; padding: 4px; }
.qty-btn { width: 32px; height: 32px; background: none; border: none; font-weight: 700; cursor: pointer; transition: all 0.2s; }
.qty-btn:hover { background: var(--cream); }
#qtyInput { width: 50px; border: none; text-align: center; font-weight: 600; }

.modal-add-btn { margin-top: auto; }

/* ==========================================
   CARRITO LATERAL
   ========================================== */
.floating-cart {
  position: fixed;
  right: max(22px, env(safe-area-inset-right));
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 190;
  width: 66px;
  height: 66px;
  border: 2px solid var(--yellow);
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 13px 32px rgba(0,0,0,.28), 0 0 0 6px rgba(255,194,41,.12);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.floating-cart:hover { background: var(--red); transform: translateY(-4px) scale(1.03); box-shadow: 0 18px 38px rgba(0,0,0,.32), 0 0 0 7px rgba(224,33,43,.14); }
.floating-cart:focus-visible { outline: 4px solid rgba(224,33,43,.3); outline-offset: 4px; }
.floating-cart svg { width: 28px; height: 28px; }
.floating-cart-count {
  position: absolute;
  top: -6px;
  right: -4px;
  min-width: 25px;
  height: 25px;
  padding: 0 6px;
  border: 2px solid var(--white);
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  align-items: center;
  justify-content: center;
}
.floating-cart.has-items { animation: floatingCartEntrance .45s cubic-bezier(.2,.9,.3,1.35); }
.floating-cart-label {
  position: absolute;
  right: calc(100% + 12px);
  padding: 8px 11px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(8px);
  transition: opacity .2s ease, transform .2s ease;
}
.floating-cart:hover .floating-cart-label { opacity: 1; transform: translateX(0); }
@keyframes floatingCartEntrance { 0% { transform: scale(.82); } 55% { transform: scale(1.12); } 100% { transform: scale(1); } }

.overlay { position: fixed; inset: 0; background: rgba(24,22,20,0.5); opacity: 0; pointer-events: none; transition: opacity 0.25s; z-index: 200; }
.overlay.open { opacity: 1; pointer-events: auto; }

.cart-drawer { position: fixed; top: 0; right: 0; height: 100%; width: 100%; max-width: 400px; background: var(--white); z-index: 201; transform: translateX(100%); transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); display: flex; flex-direction: column; box-shadow: -4px 0 12px rgba(24,22,20,0.1); }
.cart-drawer.open { transform: translateX(0); }

.cart-head { padding: 20px; border-bottom: 2px solid var(--ink); display: flex; align-items: center; justify-content: space-between; }
.cart-close { background: none; border: none; font-size: 20px; font-weight: 700; cursor: pointer; transition: color 0.2s; }
.cart-close:hover { color: var(--red); }

.cart-items { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 15px; }
.cart-item { display: flex; gap: 12px; align-items: flex-start; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.cart-item img { width: 60px; height: 60px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 600; font-size: 14px; }
.cart-item-price { color: var(--red); font-weight: 700; }
.cart-item-qty { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.qty-btn { width: 24px; height: 24px; border: 1px solid var(--ink); background: var(--white); font-weight: 700; cursor: pointer; border-radius: 4px; transition: all 0.2s; }
.qty-btn:hover { background: var(--cream); }
.remove-item { background: none; border: none; color: var(--gray); text-decoration: underline; font-size: 12px; cursor: pointer; transition: color 0.2s; }
.remove-item:hover { color: var(--red); }

.cart-footer { padding: 20px; border-top: 2px solid var(--ink); background: var(--cream); }
.cart-summary { display: flex; flex-direction: column; gap: 8px; margin-bottom: 15px; font-size: 13px; }
.summary-row { display: flex; justify-content: space-between; }
.summary-row.total { font-size: 16px; font-weight: 800; border-top: 1px solid var(--line); padding-top: 8px; }

.checkout-btn { width: 100%; background: #25D366; color: var(--white); border: none; padding: 14px; font-weight: 700; border-radius: 6px; font-size: 16px; cursor: pointer; transition: all 0.2s; }
.checkout-btn:hover { background: #1fad50; transform: translateY(-2px); }
.checkout-btn:active { transform: translateY(0); }

/* ==========================================
   FOOTER
   ========================================== */
.site-footer { position: relative; background: var(--ink); color: var(--white); padding: 52px 24px 22px; margin-top: 72px; border-top: 5px solid var(--red); }
.site-footer::before { content: ''; position: absolute; top: -5px; left: 0; width: 100%; height: 5px; background: var(--stripe); }
.footer-content { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; margin-bottom: 30px; }
.footer-section { }
.footer-title { color: var(--yellow); font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 12px; }
.footer-section p { font-size: 13px; line-height: 1.6; color: rgba(255,255,255,0.8); }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-link { color: rgba(255,255,255,0.8); text-decoration: none; font-size: 13px; transition: color 0.2s; }
.footer-link:hover { color: var(--yellow); }
.footer-section:first-child p { max-width: 34ch; }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 12px; color: rgba(255,255,255,0.6); max-width: 1240px; margin: 0 auto; }

/* ==========================================
   RESPONSIVE
   ========================================== */
.desktop-only { display: block; }
.mobile-only { display: none; }

@media (max-width: 768px) {
  .home-hero { padding: 24px 16px 16px; }
  .hero-inner { min-height: auto; padding: 36px 28px; grid-template-columns: 1fr; box-shadow: 6px 6px 0 var(--ink); }
  .hero-art { display: none; }
  .home-benefits { padding: 0 16px; grid-template-columns: 1fr; }
  .home-section { margin-top: 48px; padding: 0 16px; }
  .category-showcase { grid-template-columns: 1fr 1fr; }
  .home-product-grid { grid-template-columns: repeat(2, 1fr); }
  .main-wrapper { flex-direction: column; gap: 0; }
  .filter-sidebar { display: none; width: 100%; }
  .filter-sidebar.open { display: block; }
  .mobile-only { display: block; }
  .desktop-only { display: none; }
  
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
  .product-name { font-size: 14px; min-height: auto; }
  .price { font-size: 16px; }
  .cat-nav { margin: 15px auto; }
  
  .cart-drawer { max-width: 100%; }
  .modal-body { grid-template-columns: 1fr; }
  
  .header-inner { padding: 12px 16px; gap: 12px; }
  .search-wrap { max-width: none; }
  .search-wrap input { font-size: 14px; }
}

@media (max-width: 600px) {
  .home-section-head { align-items: flex-start; flex-direction: column; gap: 12px; }
  .category-showcase { grid-template-columns: 1fr; }
  .category-tile { min-height: 150px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .section-head { flex-direction: column; gap: 8px; }
  .section-head h2 { font-size: 18px; }
  
  .breadcrumb-inner { font-size: 12px; }
  .cat-pills { gap: 8px; }
  .cat-pill { padding: 8px 16px; font-size: 13px; }
  .site-footer { margin-top: 48px; padding: 40px 20px 20px; }
  .footer-content { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .footer-section:first-child, .footer-section:last-child { grid-column: 1 / -1; }
}

@media (max-width: 420px) {
  .footer-content { grid-template-columns: 1fr; }
  .footer-section:first-child, .footer-section:last-child { grid-column: auto; }
}

/* ==========================================
   JEL SHOP — REDISEÑO PREMIUM
   ========================================== */
:root {
  --cream: #f7f7fb;
  --white: #ffffff;
  --ink: #171326;
  --gray: #726d80;
  --line: #e9e6ef;
  --red: #6d28d9;
  --yellow: #ffcb45;
  --purple-dark: #241044;
  --purple: #6d28d9;
  --purple-soft: #eee7ff;
  --stripe: linear-gradient(90deg, #241044, #6d28d9 48%, #b28cff);
}

body { background: var(--cream); }
.site-header { background: rgba(255,255,255,.96); border: 0; box-shadow: 0 5px 28px rgba(36,16,68,.08); backdrop-filter: blur(14px); }
.header-inner { max-width: 1320px; padding: 15px 28px; }
.logo { color: var(--purple-dark); font-size: 28px; }
.logo .dot-j { color: var(--purple); }
.search-wrap { max-width: 600px; }
.search-wrap input { padding: 14px 22px 14px 46px; border: 1px solid var(--line); border-radius: 999px; background: #f4f2f8; box-shadow: none; }
.search-wrap { position: relative; }
.search-wrap::before { content: '⌕'; position: absolute; z-index: 1; left: 18px; top: 50%; transform: translateY(-54%); color: var(--purple); font-size: 24px; }
.search-wrap input:focus { border-color: var(--purple); box-shadow: 0 0 0 4px rgba(109,40,217,.1); }
.icon-btn { border: 0; background: var(--purple-dark); color: white; box-shadow: 0 7px 18px rgba(36,16,68,.2); }
.icon-btn:hover { background: var(--purple); }
.cart-count { background: var(--yellow); color: var(--ink); }
.stripe { height: 3px; }
.primary-nav { border-top: 1px solid var(--line); background: white; }
.primary-nav-inner { max-width: 1320px; margin: 0 auto; padding: 0 28px; display: flex; align-items: center; gap: 30px; overflow-x: auto; scrollbar-width: none; }
.primary-nav-inner a { position: relative; padding: 13px 0; color: #4b4655; font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.primary-nav-inner a:hover, .primary-nav-inner a.active { color: var(--purple); }
.primary-nav-inner a.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--purple); }
.ship-banner { padding: 9px 0; background: var(--purple-dark); font-size: 11px; }
.ship-banner strong { color: var(--yellow); }

.home-hero { padding: 32px 28px 12px; }
.hero-inner { max-width: 1320px; min-height: 500px; padding: 64px 68px; border: 0; border-radius: 28px; color: white; background: radial-gradient(circle at 80% 30%, #8b5cf6 0, transparent 30%), linear-gradient(118deg, #241044 0%, #4c1d95 48%, #7337d7 100%); box-shadow: 0 24px 70px rgba(55,25,95,.24); }
.hero-kicker { padding: 8px 14px; background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(8px); }
.hero-copy { position: relative; z-index: 2; }
.hero-copy h1, .hero-copy h2 { font-family: 'Inter', sans-serif; font-weight: 800; letter-spacing: -.055em; text-transform: none; font-size: clamp(44px, 5.2vw, 76px); line-height: .98; }
.hero-copy p { color: rgba(255,255,255,.77); font-size: 18px; }
.hero-btn { border: 0; border-radius: 999px; padding: 15px 24px; }
.hero-btn:hover { box-shadow: 0 10px 24px rgba(0,0,0,.2); }
.hero-btn-primary { background: var(--yellow); color: var(--purple-dark); }
.hero-btn-secondary { background: rgba(255,255,255,.12); color: white; border: 1px solid rgba(255,255,255,.25); }
.hero-art { min-height: 360px; display: grid; place-items: center; }
.hero-product-glow { position: absolute; width: 330px; height: 330px; border-radius: 50%; background: rgba(255,255,255,.13); box-shadow: 0 0 80px rgba(255,255,255,.18); }
.hero-product-image { position: relative; z-index: 1; max-width: 92%; max-height: 350px; object-fit: contain; filter: drop-shadow(0 28px 30px rgba(0,0,0,.3)); transform: rotate(-4deg); transition: transform .35s; }
.hero-inner:hover .hero-product-image { transform: rotate(0) translateY(-8px); }
.hero-sticker { z-index: 3; top: 14px; right: 10px; border: 0; background: var(--yellow); color: var(--purple-dark); box-shadow: 0 12px 25px rgba(0,0,0,.2); }

.home-benefits { max-width: 1320px; margin-top: 18px; gap: 14px; }
.benefit { min-height: 94px; padding: 22px 24px; border: 0; border-radius: 18px; box-shadow: 0 8px 30px rgba(36,16,68,.06); }
.benefit strong { color: var(--purple-dark); }
.promo-grid { max-width: 1320px; margin: 26px auto 0; padding: 0 24px; display: grid; grid-template-columns: 1.3fr .7fr; gap: 18px; }
.promo-card { min-height: 220px; padding: 35px; border-radius: 24px; color: white; text-decoration: none; display: flex; flex-direction: column; justify-content: flex-end; box-shadow: 0 14px 40px rgba(36,16,68,.13); transition: transform .25s; }
.promo-card:hover { transform: translateY(-6px); }
.promo-card-main { background: radial-gradient(circle at 80% 20%, #f7c7ff 0, transparent 24%), linear-gradient(120deg, #7134dc, #b469dc); }
.promo-card-secondary { background: radial-gradient(circle at 80% 10%, #7656a7 0, transparent 30%), var(--purple-dark); }
.promo-card span { margin-bottom: 9px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; opacity: .78; }
.promo-card strong { max-width: 500px; font-size: clamp(26px, 3vw, 42px); line-height: 1; letter-spacing: -.04em; }
.promo-card small { margin-top: 22px; font-size: 13px; font-weight: 800; }

.home-section { max-width: 1320px; }
.section-eyebrow { color: var(--purple); }
.section-link { border-color: var(--purple); }
.category-showcase { gap: 18px; }
.category-tile { min-height: 210px; border: 0; border-radius: 22px; box-shadow: 0 10px 32px rgba(36,16,68,.08); }
.category-tile:hover { box-shadow: 0 18px 40px rgba(36,16,68,.16); }
.category-tile-1 { background: linear-gradient(145deg, #eee7ff, #dac8ff); }
.category-tile-2 { background: linear-gradient(145deg, #fff, #f0edf7); }
.category-tile-3 { background: linear-gradient(145deg, #ffe5f5, #f4c9e7); }
.category-tile strong { color: var(--purple-dark); font-family: 'Inter', sans-serif; font-weight: 800; letter-spacing: -.03em; text-transform: none; }

.product-grid { gap: 20px; }
.product-card { border: 0; border-radius: 20px; box-shadow: 0 8px 30px rgba(36,16,68,.08); }
.product-card:hover { transform: translateY(-7px); border-color: transparent; box-shadow: 0 18px 45px rgba(36,16,68,.16); }
.product-media { background: #f4f2f8; }
.badge { top: 14px; left: 14px; border: 0; border-radius: 999px; background: var(--purple); padding: 7px 11px; }
.badge-yellow { background: var(--yellow); color: var(--purple-dark); }
.product-body { padding: 18px; }
.product-cat { color: var(--purple); }
.product-name { font-weight: 700; }
.price { color: var(--purple-dark); }
.btn-add { border: 0; border-radius: 999px; background: var(--purple-dark); }
.btn-add:hover { background: var(--purple); }
.cat-pill { border: 1px solid var(--line); border-radius: 999px; }
.cat-pill.active { background: var(--purple); border-color: var(--purple); }
.filter-sidebar { padding: 22px; border-radius: 18px; background: white; box-shadow: 0 8px 30px rgba(36,16,68,.06); }
.section-head { border-bottom-color: var(--purple-dark); }

.site-footer { background: var(--purple-dark); border-top: 0; padding-top: 64px; }
.site-footer::before { background: linear-gradient(90deg, var(--yellow), #b28cff, #ff82bf); }
.footer-title { color: white; }
.footer-link:hover { color: var(--yellow); }

@media (max-width: 900px) {
  .primary-nav-inner { padding: 0 18px; gap: 22px; }
  .hero-inner { padding: 48px 40px; grid-template-columns: 1fr .7fr; }
  .home-product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .header-inner { padding: 12px 16px; }
  .logo { font-size: 22px; }
  .home-hero { padding: 20px 16px 8px; }
  .hero-inner { padding: 42px 28px; border-radius: 22px; }
  .promo-grid { padding: 0 16px; grid-template-columns: 1fr; }
  .promo-card { min-height: 180px; }
}

@media (max-width: 520px) {
  .search-wrap input { padding-left: 18px; }
  .search-wrap::before { display: none; }
  .hero-copy h1, .hero-copy h2 { font-size: 40px; }
  .hero-copy p { font-size: 15px; }
  .hero-actions { flex-direction: column; }
  .hero-btn { text-align: center; }
}

/* ==========================================
   IDENTIDAD JEL — NEGRO, ROJO Y DORADO
   ========================================== */
:root {
  --cream: #f7f5f0;
  --ink: #151515;
  --gray: #746f67;
  --line: #e9e3d8;
  --red: #c8102e;
  --yellow: #d6a928;
  --purple-dark: #111111;
  --purple: #c8102e;
  --purple-soft: #fff4d6;
  --stripe: linear-gradient(90deg, #111 0 42%, #c8102e 42% 72%, #d6a928 72% 100%);
}

.site-header { box-shadow: 0 5px 28px rgba(0,0,0,.09); }
.logo { color: #111; }
.search-wrap input { background: #f4f1eb; }
.search-wrap input:focus { box-shadow: 0 0 0 4px rgba(200,16,46,.1); }
.icon-btn { background: #111; box-shadow: 0 7px 18px rgba(0,0,0,.2); }
.icon-btn:hover { background: var(--red); }
.primary-nav-inner a:hover, .primary-nav-inner a.active { color: var(--red); }
.primary-nav-inner a.active::after { background: var(--red); }
.ship-banner { background: #111; }

.hero-inner {
  background:
    radial-gradient(circle at 82% 26%, rgba(214,169,40,.32) 0, transparent 27%),
    linear-gradient(118deg, #080808 0%, #191919 50%, #8f0b22 100%);
  box-shadow: 0 24px 70px rgba(0,0,0,.25);
}
.hero-btn-primary { background: var(--yellow); color: #111; }
.hero-product-glow { background: rgba(214,169,40,.17); box-shadow: 0 0 90px rgba(214,169,40,.22); }
.hero-sticker { background: var(--yellow); color: #111; }

.promo-card-main {
  background:
    radial-gradient(circle at 82% 18%, rgba(255,220,115,.45) 0, transparent 25%),
    linear-gradient(120deg, #a50d28, #df2947);
}
.promo-card-secondary {
  background:
    radial-gradient(circle at 80% 10%, rgba(214,169,40,.28) 0, transparent 31%),
    #111;
}

.category-tile-1 { background: linear-gradient(145deg, #fff3c9, #e5bd4f); }
.category-tile-2 { background: linear-gradient(145deg, #fff, #eeeae2); }
.category-tile-3 { background: linear-gradient(145deg, #ffe3e7, #efb3bd); }
.category-tile strong { color: #181818; }
.category-number { color: #8f0b22; }

.product-card, .benefit, .filter-sidebar, .category-tile { box-shadow: 0 8px 30px rgba(0,0,0,.07); }
.category-tile:hover { box-shadow: 0 18px 40px rgba(0,0,0,.15); }
.promo-card { box-shadow: 0 14px 40px rgba(0,0,0,.15); }
.product-card:hover { box-shadow: 0 18px 45px rgba(0,0,0,.15); }
.product-media { background: #f3f0e9; }
.badge, .cat-pill.active { background: var(--red); border-color: var(--red); }
.badge-yellow { background: var(--yellow); color: #111; }
.product-cat, .section-eyebrow { color: var(--red); }
.price { color: #111; }
.btn-add { background: #111; }
.btn-add:hover { background: var(--red); }
.section-link { border-color: var(--red); }
.section-head { border-bottom-color: #111; }
.site-footer { background: #101010; }
.site-footer::before { background: linear-gradient(90deg, #c8102e, #d6a928, #c8102e); }

/* ==========================================
   PORTADA TIPO GRAN TIENDA
   ========================================== */
.utility-bar { background: #fff; border-bottom: 1px solid var(--line); }
.utility-inner { max-width: 1320px; min-height: 44px; margin: 0 auto; padding: 0 28px; display: flex; justify-content: space-between; align-items: center; gap: 20px; color: #5d574d; font-size: 13px; }
.exchange, .utility-links { display: flex; align-items: center; gap: 20px; }
.exchange strong { color: var(--red); }
.utility-links a { color: #5d574d; text-decoration: none; }
.utility-links a:hover { color: var(--red); }
.utility-country { margin-left: auto; color: #5d574d; font-size: 13px; }
.header-icon { text-decoration: none; font-size: 25px; }
.mega-menu-btn { flex: 0 0 56px; width: 56px; height: 48px; margin: 6px 14px 6px 0; border: 0; border-radius: 14px; background: linear-gradient(145deg, #111, #333); color: var(--yellow); font-size: 24px; cursor: pointer; box-shadow: 0 7px 16px rgba(0,0,0,.18); }
.primary-nav { position: relative; }
.primary-nav-inner { justify-content: space-between; }
.mega-menu { position: absolute; z-index: 150; top: calc(100% + 5px); left: 50%; width: min(1220px, calc(100% - 40px)); padding: 30px 34px; border-radius: 0 0 24px 24px; background: rgba(20,20,20,.96); box-shadow: 0 24px 55px rgba(0,0,0,.28); transform: translate(-50%, -12px); opacity: 0; visibility: hidden; transition: .22s ease; backdrop-filter: blur(18px); }
.mega-menu.open { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
.mega-menu-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 28px; }
.mega-menu-grid a { padding: 13px 10px; border-radius: 10px; color: white; font-weight: 600; text-decoration: none; }
.mega-menu-grid a:hover { background: rgba(200,16,46,.85); color: white; }
.mega-menu-grid a span { display: inline-block; width: 25px; color: var(--yellow); }

.home-categories, .featured-showcase { display: none; }
.market-showcase { max-width: 1320px; margin: 74px auto 0; padding: 0 24px; }
.showcase-tabs { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.showcase-tab { min-height: 48px; padding: 0 24px; border: 1px solid var(--line); border-radius: 14px; background: white; color: #3d3a35; font: 700 14px 'Inter', sans-serif; text-decoration: none; display: inline-flex; align-items: center; cursor: pointer; }
.showcase-tab.active { border-color: #111; background: #111; color: var(--yellow); box-shadow: 0 8px 18px rgba(0,0,0,.18); }
.showcase-tabs > a:last-child { margin-left: auto; color: var(--red); font-weight: 700; }
.showcase-layout { display: grid; grid-template-columns: minmax(300px, 1.05fr) 2.2fr; gap: 14px; }
.showcase-ad { position: relative; min-height: 390px; padding: 38px; border-radius: 18px; color: white; text-decoration: none; display: flex; flex-direction: column; overflow: hidden; }
.showcase-layout:has(.showcase-product:nth-child(5)) .showcase-ad { min-height: 720px; }
.showcase-ad-red { background: radial-gradient(circle at 55% 55%, #e43854 0, transparent 28%), linear-gradient(155deg, #111 0 34%, #760d1f 100%); }
.showcase-ad-gold { background: radial-gradient(circle at 50% 55%, #f1c85b 0, transparent 25%), linear-gradient(155deg, #0d0d0d, #7b5811); }
.showcase-ad > span { position: relative; z-index: 2; color: var(--yellow); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.showcase-ad > strong { position: relative; z-index: 2; max-width: 460px; margin-top: 12px; font-size: clamp(32px, 3.6vw, 54px); line-height: .98; letter-spacing: -.05em; }
.showcase-ad img { position: absolute; z-index: 1; left: 8%; right: 8%; bottom: 80px; width: 84%; height: 54%; object-fit: contain; filter: drop-shadow(0 28px 28px rgba(0,0,0,.4)); }
.showcase-ad small { position: relative; z-index: 2; margin-top: auto; font-weight: 800; }
.showcase-products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(340px, auto); align-content: start; gap: 14px; }
.showcase-product { min-width: 0; min-height: 340px; height: auto; padding: 16px; border: 1px solid #dedad2; border-radius: 18px; background: white; box-shadow: 0 2px 5px rgba(0,0,0,.07); display: flex; flex-direction: column; align-self: start; }
.showcase-product:hover { transform: translateY(-4px); }
.showcase-brand { min-height: 20px; color: var(--red); font-size: 11px; font-weight: 800; text-align: right; text-transform: uppercase; }
.showcase-image { height: 190px; display: grid; place-items: center; }
.showcase-image img { max-width: 100%; max-height: 176px; object-fit: contain; }
.showcase-product > small { color: #8b877f; font-size: 11px; }
.showcase-product h3 { min-height: 55px; margin-top: 5px; font-size: 14px; font-weight: 600; line-height: 1.3; overflow: hidden; }
.showcase-price { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); color: var(--red); font-size: 20px; font-weight: 800; }
.tax-note { margin-top: 4px; color: #9a958c; font-size: 11px; }
.showcase-add { margin-top: 10px; padding: 10px; font-size: 12px; opacity: 0; transform: translateY(5px); }
.showcase-product:hover .showcase-add { opacity: 1; transform: translateY(0); }
.brand-showcase { padding-top: 70px; border-top: 8px solid #111; }
.brand-products { grid-template-columns: repeat(4, 1fr); }
.showcase-wide-ad { grid-column: span 2; min-height: 300px; padding: 30px; border-radius: 18px; background: linear-gradient(120deg, #d8a826, #fff1bd); color: #111; text-decoration: none; display: flex; flex-direction: column; justify-content: flex-end; }
.showcase-wide-ad strong { max-width: 350px; font-size: 30px; line-height: 1; }
.showcase-wide-ad span { margin-top: 14px; font-weight: 800; }

.newsletter-panel { max-width: 1320px; min-height: 360px; margin: 90px auto 0; padding: 48px 55px; border-radius: 24px; color: white; background: radial-gradient(circle at 30% 120%, #c8102e, transparent 45%), linear-gradient(120deg, #050505, #2b2b2b); display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 70px; overflow: hidden; }
.newsletter-copy { display: flex; flex-direction: column; }
.newsletter-copy span, .newsletter-copy p { font-size: 16px; font-weight: 700; }
.newsletter-copy strong { max-width: 520px; margin: 8px 0; font-size: clamp(42px, 5vw, 70px); line-height: .9; letter-spacing: -.055em; }
.newsletter-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.newsletter-form label, .newsletter-form > input { grid-column: 1 / -1; }
.newsletter-form input { width: 100%; min-height: 52px; padding: 0 18px; border: 0; border-radius: 10px; font: inherit; }
.newsletter-form > div { display: flex; background: white; border-radius: 10px; overflow: hidden; }
.phone-prefix { padding: 17px 14px; color: #111; font-weight: 700; border-right: 1px solid var(--line); }
.newsletter-form button { border: 0; border-radius: 10px; background: var(--yellow); color: #111; font-weight: 800; cursor: pointer; }
.site-footer { margin-top: 48px; }

@media (max-width: 1050px) {
  .showcase-layout { grid-template-columns: 280px 1fr; }
  .showcase-products { grid-template-columns: repeat(3, 1fr); }
  .mega-menu-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .utility-links { display: none; }
  .utility-inner { justify-content: center; overflow-x: auto; }
  .header-icon { display: none; }
  .mega-menu-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase-tabs { overflow-x: auto; padding-bottom: 5px; }
  .showcase-tab { flex: 0 0 auto; }
  .showcase-layout { grid-template-columns: 1fr; }
  .showcase-ad { min-height: 420px; }
  .showcase-products { grid-template-columns: repeat(2, 1fr); }
  .newsletter-panel { margin: 60px 16px 0; padding: 38px 26px; grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 480px) {
  .exchange { gap: 12px; font-size: 11px; }
  .mega-menu { width: calc(100% - 20px); padding: 20px 15px; }
  .mega-menu-grid { grid-template-columns: 1fr; }
  .market-showcase { padding: 0 12px; }
  .showcase-tab { padding: 0 16px; font-size: 12px; }
  .showcase-products { gap: 8px; }
  .showcase-product { padding: 10px; }
  .showcase-image { height: 145px; }
  .showcase-image img { max-height: 135px; }
  .showcase-price { font-size: 16px; }
  .newsletter-form { grid-template-columns: 1fr; }
  .newsletter-form > * { grid-column: 1 !important; }
}

/* ==========================================
   PANEL DE ADMINISTRACIÓN DE IMÁGENES
   ========================================== */
.admin-body { min-height: 100vh; background: #f3f0e9; font-family: 'Inter', sans-serif; }
.admin-brand { color: #111; font-size: 25px; font-weight: 900; text-decoration: none; }
.admin-brand span { color: var(--red); }
.admin-login { min-height: 100vh; padding: 30px; display: grid; place-content: center; gap: 24px; }
.admin-login > .admin-brand { text-align: center; }
.admin-card { width: min(440px, calc(100vw - 32px)); padding: 38px; border-radius: 22px; background: white; box-shadow: 0 24px 70px rgba(0,0,0,.12); display: flex; flex-direction: column; gap: 18px; }
.admin-kicker { color: var(--red); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.admin-card h1, .admin-title h1 { font-size: clamp(28px, 4vw, 44px); letter-spacing: -.045em; }
.admin-card p, .admin-title p { color: var(--gray); line-height: 1.6; }
.admin-card label, .admin-product-select { display: flex; flex-direction: column; gap: 8px; font-size: 13px; font-weight: 700; }
.admin-card input, .admin-product-select select { min-height: 52px; padding: 0 16px; border: 1px solid var(--line); border-radius: 10px; font: inherit; }
.admin-card button, .admin-save { min-height: 52px; border: 0; border-radius: 10px; background: #111; color: white; font-weight: 800; cursor: pointer; }
.admin-card button:hover, .admin-save:hover { background: var(--red); }
.admin-header { padding: 18px 32px; background: white; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 5px 25px rgba(0,0,0,.07); }
.admin-header nav { display: flex; gap: 20px; }
.admin-header nav a { color: #333; font-size: 13px; font-weight: 700; text-decoration: none; }
.admin-shell { max-width: 1050px; margin: 0 auto; padding: 60px 24px; }
.admin-title { margin-bottom: 28px; display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.admin-count { padding: 8px 13px; border-radius: 999px; background: #111; color: var(--yellow); font-size: 12px; font-weight: 800; }
.admin-upload-card { padding: 30px; border-radius: 22px; background: white; box-shadow: 0 14px 45px rgba(0,0,0,.08); }
.admin-product-select select { width: 100%; background: white; }
.admin-image-grid { margin: 24px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.admin-dropzone { position: relative; min-height: 330px; padding: 22px; border: 2px dashed #cfc8bb; border-radius: 18px; background: #faf8f4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; cursor: pointer; overflow: hidden; }
.admin-dropzone:hover { border-color: var(--red); }
.admin-dropzone span { color: var(--gray); font-size: 12px; }
.admin-dropzone input { max-width: 230px; margin-top: 12px; }
.admin-dropzone img { display: none; width: 100%; height: 200px; margin-top: 15px; object-fit: contain; }
.admin-dropzone img.show { display: block; }
.admin-save { width: 100%; }
.admin-alert { padding: 14px 16px; border-radius: 10px; font-size: 13px; font-weight: 700; }
.admin-alert.error { background: #ffe3e7; color: #8f0b22; }
.admin-alert.success { margin-bottom: 18px; background: #e5f6e9; color: #176a2e; }

@media (max-width: 650px) {
  .admin-header { padding: 16px; }
  .admin-header nav a:first-child { display: none; }
  .admin-title { align-items: flex-start; flex-direction: column; }
  .admin-upload-card { padding: 18px; }
  .admin-image-grid { grid-template-columns: 1fr; }
}

/* Catálogo unificado con la portada */
.catalog-page .main-wrapper { max-width: 1320px; gap: 20px; padding: 0 24px 70px; align-items: flex-start; }
.catalog-page .filter-sidebar { width: 230px; position: sticky; top: 185px; }
.catalog-page .content-wrapper { min-width: 0; }
.catalog-page .cat-nav { margin-top: 0; }
.catalog-page .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: start; }
.catalog-page .product-card { min-width: 0; height: auto; align-self: start; }
.catalog-page .product-media { aspect-ratio: 1 / .9; }
.catalog-page .product-body { min-height: 205px; }
.catalog-page .breadcrumb { margin-bottom: 28px; background: transparent; }

.admin-shell-wide { max-width: 1320px; }
.admin-workspace { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr); align-items: start; gap: 22px; }
.admin-product-form { min-width: 0; }
.admin-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.admin-form-grid label, .admin-user-form label { display: flex; flex-direction: column; gap: 7px; font-size: 12px; font-weight: 800; }
.admin-form-grid input, .admin-form-grid select, .admin-form-grid textarea, .admin-user-form input, .admin-user-form select { width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 9px; background: white; font: inherit; }
.admin-form-grid textarea { resize: vertical; }
.admin-form-grid .admin-full { grid-column: 1 / -1; }
.admin-form-grid .admin-check, .admin-user-form .admin-check { flex-direction: row; align-items: center; }
.admin-form-grid .admin-check input, .admin-user-form .admin-check input { width: 18px; min-height: 18px; }
.admin-user-form { display: flex; flex-direction: column; gap: 16px; }
.admin-list { max-height: 790px; padding: 22px; border-radius: 22px; background: white; box-shadow: 0 14px 45px rgba(0,0,0,.08); overflow-y: auto; }
.admin-list h2 { margin-bottom: 14px; font-size: 18px; }
.admin-list article { padding: 12px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 58px 1fr auto; align-items: center; gap: 12px; }
.admin-list article > img { width: 58px; height: 58px; border-radius: 10px; background: #f4f1ea; object-fit: contain; }
.admin-list article > div:not(.admin-avatar) { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.admin-list article strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-list article span { color: var(--gray); font-size: 11px; }
.admin-list article b { color: var(--red); font-size: 12px; }
.admin-list article a { color: var(--red); font-size: 12px; font-weight: 800; }
.admin-avatar { width: 48px; height: 48px; border-radius: 50%; background: #111; color: var(--yellow); display: grid; place-items: center; font-weight: 900; }

@media (max-width: 1120px) {
  .catalog-page .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 850px) {
  .catalog-page .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-workspace { grid-template-columns: 1fr; }
}

@media (max-width: 650px) {
  .catalog-page .header-inner { flex-wrap: wrap; }
  .catalog-page .search-wrap { order: 3; flex: 1 0 100%; }
  .catalog-page .product-body { min-height: 190px; padding: 13px; }
  .catalog-page .product-grid { gap: 8px; }
  .admin-form-grid { grid-template-columns: 1fr; }
  .admin-form-grid .admin-full { grid-column: 1; }
}

/* Ajustes finales: cabecera compacta, transiciones y formularios */
.site-header .header-inner { max-width: none; min-height: 104px; padding: 16px max(28px, calc((100% - 1320px) / 2)); background: #111; display: grid; grid-template-columns: 230px minmax(320px, 700px) auto; justify-content: center; }
.site-header .logo { color: white; }
.site-header .search-wrap { width: 100%; max-width: 700px; }
.site-header .search-wrap input { border-color: rgba(255,255,255,.18); background: #292929; color: white; }
.site-header .search-wrap input::placeholder { color: #c8c3ba; }
.site-header .header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.site-header .icon-btn { flex: 0 0 44px; border: 1px solid rgba(255,255,255,.22); background: #242424; box-shadow: none; }
.site-header .icon-btn:hover { background: var(--red); }
.primary-nav-inner { min-height: 58px; }
.ship-banner { padding: 7px 0; }
.showcase-product[hidden] { display: none !important; }

.product-card, .promo-card, .category-tile, .showcase-ad, .newsletter-panel { opacity: 0; transform: translateY(28px); transition: opacity .55s ease var(--reveal-delay, 0ms), transform .55s cubic-bezier(.2,.75,.25,1) var(--reveal-delay, 0ms), box-shadow .25s ease; }
.product-card.is-visible, .promo-card.is-visible, .category-tile.is-visible, .showcase-ad.is-visible, .newsletter-panel.is-visible { opacity: 1; transform: translateY(0); }
.product-card.is-visible:hover { transform: translateY(-7px); }
@media (prefers-reduced-motion: reduce) {
  .product-card, .promo-card, .category-tile, .showcase-ad, .newsletter-panel { opacity: 1; transform: none; transition: none; }
}

.newsletter-message { grid-column: 1 / -1; padding: 11px 14px; border-radius: 9px; font-size: 12px; font-weight: 800; }
.newsletter-message.success { background: #e7f8eb; color: #176a2e; }
.newsletter-message.error { background: #ffe1e6; color: #8f0b22; }

@media (max-width: 900px) {
  .site-header .header-inner { grid-template-columns: 160px 1fr auto; }
}

@media (max-width: 650px) {
  .site-header .header-inner { min-height: auto; padding: 13px 16px; grid-template-columns: 1fr auto; }
  .site-header .search-wrap { grid-column: 1 / -1; order: initial; }
  .site-header .header-actions { grid-column: 2; grid-row: 1; }
  .site-header .logo { grid-column: 1; grid-row: 1; }
}

/* Panel administrativo con navegación lateral */
.admin-sidebar { position: fixed; z-index: 20; inset: 0 auto 0 0; width: 220px; padding: 24px 16px; border-right: 1px solid #e7e1d7; background: white; display: flex; flex-direction: column; }
.admin-sidebar .admin-brand { margin: 0 8px 30px; }
.admin-sidebar nav { display: flex; flex-direction: column; gap: 5px; }
.admin-sidebar nav a { padding: 12px 13px; border-radius: 9px; color: #38342f; font-size: 13px; font-weight: 700; text-decoration: none; }
.admin-sidebar nav a:hover, .admin-sidebar nav a.active { background: #111; color: var(--yellow); }
.admin-session { margin-top: auto; padding: 14px; border-radius: 12px; background: #f5f2eb; display: flex; flex-direction: column; gap: 3px; }
.admin-session span { color: var(--gray); font-size: 11px; }
.admin-body > .admin-shell { max-width: none; min-height: 100vh; margin: 0 0 0 220px; padding: 34px 38px 70px; }
.admin-stat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.admin-stat-grid article { min-height: 105px; padding: 20px; border: 1px solid #e9e2d6; border-radius: 13px; background: white; display: flex; flex-direction: column; justify-content: space-between; }
.admin-stat-grid span { color: var(--gray); font-size: 12px; }
.admin-stat-grid strong { font-size: 28px; }
.admin-stat-grid article small { color: #8e877c; font-size: 10px; line-height: 1.35; }
.admin-metrics-heading { margin: 42px 0 15px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.admin-metrics-heading h2 { margin-top: 4px; font-size: 25px; letter-spacing: -.035em; }
.admin-metrics-heading > small { color: var(--gray); font-size: 11px; }
.admin-metric-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.admin-metric-grid article { min-height: 118px; border-top: 3px solid #111; }
.admin-metric-grid article:nth-child(1), .admin-metric-grid article:nth-child(6) { border-top-color: var(--red); }
.admin-metric-grid article:nth-child(4), .admin-metric-grid article:nth-child(8) { border-top-color: var(--yellow); }
.admin-analytics-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.admin-hours-panel { grid-column: 1 / -1; }
.admin-panel-title { margin-bottom: 16px; display: flex; align-items: flex-end; justify-content: space-between; gap: 15px; }
.admin-panel-title h2 { margin: 3px 0 0; }
.admin-panel-title > small { color: var(--gray); font-size: 10px; }
.admin-hour-chart { height: 190px; padding: 18px 8px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(24, minmax(18px, 1fr)); align-items: end; gap: 5px; overflow-x: auto; }
.admin-hour-bar { height: 150px; min-width: 18px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 7px; }
.admin-hour-bar > span { width: min(18px, 80%); min-height: 3px; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, var(--red), #8f0c22); }
.admin-hour-bar small { color: #8d867a; font-size: 8px; }
.admin-empty-metric { padding: 24px 0; color: var(--gray); font-size: 12px; }
.admin-dashboard-panels { margin-top: 24px; display: grid; grid-template-columns: 2fr 1fr; gap: 18px; }
.admin-panel { padding: 24px; border-radius: 15px; background: white; box-shadow: 0 8px 28px rgba(0,0,0,.06); }
.admin-panel h2 { margin-bottom: 16px; font-size: 17px; }
.admin-table-row { min-height: 44px; padding: 8px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr 90px 50px; align-items: center; gap: 10px; font-size: 12px; }
.admin-table-row b { color: var(--gray); }
.admin-table-row a { color: var(--red); font-weight: 800; }
.admin-quick { margin-bottom: 9px; padding: 13px; border: 1px solid var(--line); border-radius: 9px; color: #222; font-size: 13px; font-weight: 700; text-decoration: none; display: block; }
.admin-quick:hover { border-color: var(--red); color: var(--red); }
.admin-subscriber-table .admin-table-row { grid-template-columns: 1fr 1.4fr 1fr 1fr; }
.admin-table-head { background: #f5f2eb; font-weight: 800; }
.admin-banner-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.admin-banner-grid .admin-dropzone { min-height: 280px; }
.admin-delete-form { margin: -10px 0 18px; display: flex; justify-content: flex-end; }
.admin-delete-form button, .admin-inline-delete button, .admin-danger-list button, .admin-row-actions button { padding: 8px 12px; border: 1px solid #e3a3ae; border-radius: 8px; background: #fff2f4; color: #9d0c25; font-weight: 800; cursor: pointer; }
.admin-delete-form button:hover, .admin-inline-delete button:hover, .admin-danger-list button:hover, .admin-row-actions button:hover { background: var(--red); color: white; }
.admin-subcategory-section { margin-top: 48px; padding-top: 35px; border-top: 1px solid var(--line); }
.admin-danger-list { margin-top: 28px; padding: 22px; border: 1px solid #f0c4cb; border-radius: 15px; background: #fffafb; }
.admin-danger-list h2 { margin-bottom: 13px; font-size: 16px; color: #8f0b22; }
.admin-danger-list form { min-height: 45px; padding: 7px 0; border-bottom: 1px solid #f2dce0; display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.admin-inline-delete { display: inline-flex; }
.admin-row-actions { display: flex; align-items: center; gap: 8px; }
.admin-row-actions form { display: inline-flex; }
.admin-client-edit { max-width: 760px; margin-bottom: 22px; display: grid; grid-template-columns: repeat(3, 1fr); }
.admin-client-edit .admin-save { grid-column: 1 / -1; }
.admin-settings-form { max-width: 760px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.admin-settings-form label { display: flex; flex-direction: column; gap: 8px; font-size: 12px; font-weight: 800; }
.admin-settings-form input { min-height: 50px; padding: 0 15px; border: 1px solid var(--line); border-radius: 9px; font: inherit; }
.admin-settings-form .admin-save { grid-column: 1 / -1; }
.admin-whatsapp-form { max-width: 850px; display: flex; flex-direction: column; gap: 18px; }
.admin-whatsapp-form label { display: flex; flex-direction: column; gap: 8px; font-size: 12px; font-weight: 800; }
.admin-whatsapp-form input, .admin-whatsapp-form textarea { width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; font: inherit; line-height: 1.55; }
.admin-whatsapp-form input { min-height: 52px; }
.admin-whatsapp-form small { color: var(--gray); font-weight: 500; }
.admin-whatsapp-form code { padding: 3px 6px; border-radius: 5px; background: #f1eee7; color: var(--red); }
.admin-hoco-import { margin: 0 0 22px; padding: 22px 24px; border: 1px solid #ead9a7; border-left: 5px solid var(--yellow); border-radius: 15px; background: linear-gradient(135deg,#fffdf7,#fff8dd); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.admin-hoco-import h2 { margin: 4px 0 7px; font-size: 21px; }
.admin-hoco-import p { max-width: 760px; color: #686155; font-size: 12px; line-height: 1.55; }
.admin-hoco-import button { min-height: 48px; padding: 0 20px; border: 0; border-radius: 10px; background: #111; color: #fff; font-weight: 800; white-space: nowrap; cursor: pointer; }
.admin-hoco-import button:hover { background: var(--red); }
.admin-auto-price { padding: 12px 14px; border: 1px solid #ead9a7; border-radius: 10px; background: #fff9e7; display: flex; flex-direction: column; gap: 3px; }
.admin-auto-price span { color: var(--red); font-weight: 800; }
.admin-auto-price small { color: var(--gray); }
.whatsapp-template-help { padding: 16px; border-left: 4px solid #25d366; border-radius: 8px; background: #eefbf2; }
.whatsapp-template-help p { margin-top: 6px; color: #42604b; font-size: 12px; line-height: 1.55; }

@media (max-width: 1150px) {
  .admin-stat-grid { grid-template-columns: repeat(3, 1fr); }
  .admin-metric-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .admin-analytics-grid { grid-template-columns: 1fr 1fr; }
  .admin-banner-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 780px) {
  .admin-sidebar { position: static; width: 100%; padding: 14px; }
  .admin-sidebar .admin-brand { margin-bottom: 12px; }
  .admin-sidebar nav { flex-direction: row; overflow-x: auto; }
  .admin-sidebar nav a { white-space: nowrap; }
  .admin-session { display: none; }
  .admin-body > .admin-shell { margin: 0; padding: 28px 16px 60px; }
  .admin-stat-grid { grid-template-columns: 1fr 1fr; }
  .admin-metric-grid { grid-template-columns: 1fr 1fr; }
  .admin-metrics-heading { align-items: flex-start; flex-direction: column; }
  .admin-analytics-grid, .admin-dashboard-panels, .admin-banner-grid { grid-template-columns: 1fr; }
  .admin-hours-panel { grid-column: 1; }
  .admin-settings-form { grid-template-columns: 1fr; }
  .admin-settings-form .admin-save { grid-column: 1; }
  .admin-hoco-import { align-items: flex-start; flex-direction: column; }
  .admin-hoco-import form, .admin-hoco-import button { width: 100%; }
}

/* Corrección móvil de catálogo, categorías y vista rápida */
html, body { max-width: 100%; overflow-x: hidden; }
body.modal-open { overflow: hidden; }
.subcategory-strip { width: min(1320px, calc(100% - 40px)); margin: 18px auto 2px; padding: 4px; display: flex; gap: 7px; overflow-x: auto; scrollbar-width: thin; }
.subcategory-strip a { flex: 0 0 auto; min-height: 40px; padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: #25221e; font-size: 11px; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 7px; }
.subcategory-strip a:hover, .subcategory-strip a.active { border-color: #111; background: #111; color: #fff; }
.subcategory-strip small { min-width: 20px; padding: 2px 5px; border-radius: 999px; background: #eee9df; color: #6c655b; font-size: 9px; text-align: center; }
.subcategory-strip a.active small { background: var(--yellow); color: #111; }

@media (max-width: 768px) {
  .subcategory-strip { width: 100%; margin: 12px 0 0; padding: 4px 12px 8px; }
  .catalog-page .main-wrapper { width: 100%; padding: 0 12px 50px; }
  .catalog-page .content-wrapper { width: 100%; min-width: 0; }
  .catalog-page .cat-nav { width: 100%; margin: 12px 0 18px; }
  .catalog-page .cat-pills { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; overflow: visible; }
  .catalog-page .cat-pill { width: 100%; min-width: 0; padding: 9px 8px; overflow: hidden; text-overflow: ellipsis; }
  .catalog-page .filter-sidebar.open { width: 100%; position: static; margin-bottom: 15px; }

  .modal-overlay { width: 100vw; height: 100dvh; padding: 12px; align-items: center; overflow: hidden; }
  .modal-content { width: 100%; max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); margin: 0; border-radius: 16px; overflow-x: hidden; overflow-y: auto; }
  .modal-body { width: 100%; min-width: 0; padding: 14px; padding-top: 48px; display: flex; flex-direction: column; gap: 16px; }
  .modal-body > * { width: 100%; min-width: 0; }
  .modal-image { width: 100%; height: auto; max-height: 42dvh; aspect-ratio: 4 / 3; }
  .modal-image img { width: 100%; height: 100%; object-fit: contain; }
  .modal-info { padding: 0 2px 4px; }
  .modal-name { font-size: 19px; overflow-wrap: anywhere; }
  .modal-price { flex-wrap: wrap; }
  .modal-quantity { flex-wrap: wrap; justify-content: space-between; }
  .modal-add-btn { width: 100%; margin-top: 4px; }
  .modal-close { position: fixed; top: max(20px, env(safe-area-inset-top)); right: 22px; width: 36px; height: 36px; border-radius: 50%; background: #111; color: white; display: grid; place-items: center; }
}

@media (max-width: 420px) {
  .catalog-page .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-page .product-name { font-size: 13px; }
  .catalog-page .price { font-size: 15px; }
  .catalog-page .price-old { font-size: 10px; }
  .catalog-page .btn-add { padding: 10px 7px; font-size: 11px; }
  .floating-cart { right: max(14px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom)); width: 58px; height: 58px; }
  .floating-cart svg { width: 24px; height: 24px; }
  .floating-cart-label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .floating-cart, .floating-cart.has-items { animation: none; transition: none; }
}

/* SEO y ficha individual de producto */
.product-name a { color: inherit; text-decoration: none; }
.product-name a:hover { color: var(--red); }
.showcase-product h3 a { color: inherit; text-decoration: none; }
.showcase-product h3 a:hover { color: var(--red); }
.product-media > a { width: 100%; height: 100%; color: inherit; display: block; }
.not-found { min-height: 70vh; padding: 80px 20px; text-align: center; display: grid; place-content: center; gap: 18px; }
.product-detail-wrap { width: min(1320px, calc(100% - 40px)); margin: 34px auto 80px; }
.product-detail-card { width: 100%; padding: 32px; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: 0 18px 55px rgba(0,0,0,.08); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr); gap: 48px; opacity: 1; transform: none; }
.product-detail-gallery { min-width: 0; }
.product-detail-main-image { width: 100%; min-height: 520px; padding: 28px; border-radius: 18px; background: #f7f5f0; display: grid; place-items: center; overflow: hidden; }
.product-detail-main-image img { width: 100%; height: 100%; max-height: 570px; object-fit: contain; }
.product-detail-thumbs { margin-top: 14px; display: flex; gap: 12px; }
.detail-thumb { width: 82px; height: 82px; padding: 6px; border: 2px solid transparent; border-radius: 12px; background: #f7f5f0; cursor: pointer; overflow: hidden; }
.detail-thumb.active { border-color: var(--red); }
.detail-thumb img { width: 100%; height: 100%; object-fit: contain; }
.product-detail-info { padding: 20px 10px; align-self: center; }
.product-detail-info h1 { margin: 10px 0 8px; font-family: 'Archivo Black', sans-serif; font-size: clamp(30px, 4vw, 54px); line-height: 1.05; letter-spacing: -.04em; }
.product-code { color: var(--gray); font-size: 13px; }
.product-detail-price { margin: 30px 0 10px; }
.product-detail-price .price { font-size: clamp(28px, 3vw, 42px); }
.product-description { margin: 28px 0; padding-top: 24px; border-top: 1px solid var(--line); }
.product-description h2 { margin-bottom: 10px; font-size: 16px; }
.product-description p { color: #4a4a4a; line-height: 1.7; }
.product-detail-add, .detail-whatsapp { width: 100%; min-height: 54px; border-radius: 12px; font-weight: 800; text-align: center; display: grid; place-items: center; }
.detail-whatsapp { margin-top: 10px; border: 1px solid #111; color: #111; text-decoration: none; }
.detail-whatsapp:hover { background: #111; color: #fff; }
.detail-trust { margin-top: 22px; padding: 18px; border-radius: 12px; background: #f7f5f0; display: grid; gap: 8px; list-style: none; font-size: 13px; font-weight: 700; }
.detail-trust li::before { content: '✓'; margin-right: 8px; color: var(--red); }
.related-products { margin-top: 70px; }
.related-products .section-head a { color: var(--red); font-weight: 800; }
.related-products .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.product-recommendations { margin-top: 76px; display: grid; gap: 62px; }
.recommendation-section { min-width: 0; }
.recommendation-head { margin-bottom: 18px; padding-bottom: 14px; border-bottom: 2px solid #111; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.recommendation-head > div:first-child > span { color: var(--red); font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.recommendation-head h2 { margin-top: 5px; font-size: clamp(27px, 3vw, 39px); line-height: 1.02; letter-spacing: -.045em; }
.recommendation-head .product-rail-actions a { margin-right: 6px; color: #111; font-size: 13px; font-weight: 800; text-underline-offset: 4px; }
.recommendation-rail { min-width: 0; padding: 3px 2px 10px; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; overscroll-behavior-inline: contain; cursor: grab; user-select: none; }
.recommendation-rail::-webkit-scrollbar { display: none; }
.recommendation-rail.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.recommendation-rail.is-dragging * { pointer-events: none; }
.recommendation-rail .product-card { flex: 0 0 226px; min-height: 392px; border: 1px solid #e7e1d8; box-shadow: none; scroll-snap-align: start; }
.recommendation-rail .product-card:hover, .recommendation-rail .product-card.is-visible:hover { border-color: #d5cdc0; box-shadow: none; transform: translateY(-3px); }
.recommendation-rail .product-media { aspect-ratio: 1 / .88; }
.recommendation-rail .product-media img { object-fit: contain; padding: 10px; }
.recommendation-rail .product-body { padding: 14px; gap: 7px; }
.recommendation-rail .product-name { min-height: 35px; font-size: 14px; }
.recommendation-rail .product-price-row { min-width: 0; flex-wrap: nowrap; gap: 7px; }
.recommendation-rail .price { flex: 0 0 auto; font-size: 17px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.recommendation-rail .price-old { min-width: 0; font-size: 11px; font-weight: 500; white-space: nowrap; }
.recommendation-rail .product-stock { margin-top: auto; }
.recommendation-rail .btn-add { min-height: 40px; font-size: 11px; }

@media (max-width: 900px) {
  .product-detail-card { grid-template-columns: 1fr; gap: 16px; }
  .product-detail-main-image { min-height: 390px; }
  .related-products .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-recommendations { margin-top: 58px; gap: 48px; }
  .recommendation-rail .product-card { flex-basis: 210px; }
}

@media (max-width: 560px) {
  .product-detail-wrap { width: calc(100% - 24px); margin-top: 18px; }
  .product-detail-card { padding: 14px; border-radius: 16px; }
  .product-detail-main-image { min-height: 300px; padding: 14px; }
  .product-detail-info { padding: 14px 4px; }
  .product-detail-info h1 { font-size: 28px; }
  .related-products { margin-top: 45px; }
  .related-products .section-head { align-items: flex-start; flex-direction: column; gap: 8px; }
  .product-recommendations { margin-top: 44px; gap: 40px; }
  .recommendation-head { align-items: flex-end; gap: 10px; }
  .recommendation-head h2 { font-size: 25px; }
  .recommendation-head .product-rail-actions a { margin: 0; }
  .recommendation-head .rail-arrow { display: none; }
  .recommendation-rail { margin-right: -12px; }
  .recommendation-rail .product-card { flex-basis: 184px; min-height: 356px; border-radius: 14px; }
  .recommendation-rail .product-media { aspect-ratio: 1 / .92; }
  .recommendation-rail .product-body { padding: 11px; }
  .recommendation-rail .price { font-size: 15px; }
  .recommendation-rail .price-old { font-size: 10px; }
}

/* Portada simplificada: categorías y productos visibles de inmediato */
.home-page .utility-inner { min-height: 36px; }
.home-page .header-inner { padding-top: 11px; padding-bottom: 11px; }
.home-page .mega-menu-btn { height: 42px; margin-top: 4px; margin-bottom: 4px; }
.home-page .primary-nav-inner a { padding-top: 11px; padding-bottom: 11px; }
.home-page .home-hero { padding: 18px 24px 0; }
.home-page .hero-inner { min-height: 380px; padding: 42px 52px; border-radius: 22px; }
.home-page .hero-copy h1 { font-size: clamp(38px, 4.3vw, 62px); }
.home-page .hero-copy p { margin-top: 16px; font-size: 16px; }
.home-page .hero-actions { margin-top: 22px; }
.home-page .hero-art { min-height: 270px; }
.home-page .hero-product-image { max-height: 270px; }
.home-page .hero-product-glow { width: 255px; height: 255px; }

.compact-category-nav { width: min(1320px, calc(100% - 48px)); margin: 12px auto 0; padding: 14px 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 7px 22px rgba(0,0,0,.06); display: flex; align-items: center; gap: 18px; }
.compact-category-nav > span { flex: 0 0 auto; color: var(--red); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.compact-category-nav > div { min-width: 0; display: flex; align-items: center; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.compact-category-nav > div::-webkit-scrollbar { display: none; }
.compact-category-nav a { flex: 0 0 auto; padding: 9px 14px; border-radius: 999px; background: #f4f1eb; color: #222; font-size: 12px; font-weight: 700; text-decoration: none; transition: .2s ease; }
.compact-category-nav a:hover { background: #111; color: #fff; }
.compact-category-nav a.all-categories { background: var(--red); color: #fff; }

.home-products-first { margin-top: 32px; }
.home-products-first .home-section-head { margin-bottom: 16px; }
.product-rail-actions { display: flex; align-items: center; gap: 8px; }
.rail-arrow { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: #111; font-size: 18px; font-weight: 800; cursor: pointer; transition: .2s ease; }
.rail-arrow:hover { border-color: var(--red); background: var(--red); color: #fff; }
.home-products-layout { display: grid; grid-template-columns: 310px minmax(0, 1fr); gap: 14px; }
.home-product-promo { position: relative; min-height: 430px; padding: 28px; border-radius: 20px; background: radial-gradient(circle at 55% 62%, rgba(224,33,43,.55), transparent 28%), linear-gradient(155deg, #080808, #750d20); color: #fff; text-decoration: none; display: flex; flex-direction: column; overflow: hidden; }
.home-product-promo > span { position: relative; z-index: 2; color: var(--yellow); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.home-product-promo > strong { position: relative; z-index: 2; max-width: 270px; margin-top: 9px; font-size: 30px; line-height: 1; letter-spacing: -.04em; }
.home-product-promo img { position: absolute; z-index: 1; left: 7%; bottom: 50px; width: 86%; height: 56%; object-fit: contain; filter: drop-shadow(0 20px 24px rgba(0,0,0,.45)); }
.home-product-promo small { position: relative; z-index: 2; margin-top: auto; font-weight: 800; }
.home-product-rail { min-width: 0; padding: 2px; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; overscroll-behavior-inline: contain; cursor: grab; user-select: none; }
.home-product-rail::-webkit-scrollbar { display: none; }
.home-product-rail.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.home-product-rail.is-dragging * { pointer-events: none; }
.home-product-rail .product-card { flex: 0 0 228px; min-height: 430px; border: 1px solid #e8e2d8; box-shadow: none; scroll-snap-align: start; }
.home-product-rail .product-card:hover, .home-product-rail .product-card.is-visible:hover { border-color: #d8d0c3; box-shadow: none; transform: translateY(-3px); }
.home-product-rail .product-media { aspect-ratio: 1 / .92; }
.home-product-rail .product-media img { object-fit: contain; padding: 10px; }
.home-product-rail .product-name { font-size: 14px; }
.home-product-rail .product-price-row, .home-catalog-grid .product-price-row { min-width: 0; flex-wrap: nowrap; gap: 7px; }
.home-product-rail .price, .home-catalog-grid .price { flex: 0 0 auto; font-size: 17px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.home-product-rail .price-old, .home-catalog-grid .price-old { min-width: 0; font-size: 12px; font-weight: 500; white-space: nowrap; }
.home-catalog-section { width: min(1320px, calc(100% - 48px)); margin: 48px auto 0; }
.home-catalog-section .home-section-head { margin-bottom: 16px; }
.home-catalog-section .home-section-head h2 { margin-top: 4px; font-size: clamp(28px, 3vw, 40px); letter-spacing: -.045em; }
.home-catalog-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 13px; align-items: start; }
.home-catalog-grid .product-card { min-width: 0; min-height: 390px; border-radius: 16px; }
.home-catalog-grid .product-media { aspect-ratio: 1 / .88; }
.home-catalog-grid .product-media img { object-fit: contain; padding: 9px; }
.home-catalog-grid .product-body { padding: 14px; }
.home-catalog-grid .product-name { font-size: 14px; line-height: 1.3; }
.home-catalog-grid .price { font-size: 18px; }
.home-catalog-grid .product-stock { margin-top: 4px; font-size: 11px; }
.home-catalog-grid .btn-add { min-height: 40px; font-size: 11px; }
.home-catalog-more { padding-top: 22px; text-align: center; }
.home-catalog-more a { display: inline-flex; min-height: 46px; padding: 0 24px; border: 2px solid #111; border-radius: 999px; color: #111; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; text-decoration: none; transition: .2s ease; }
.home-catalog-more a:hover { background: #111; color: #fff; }
.home-reasons { width: min(1320px, calc(100% - 48px)); margin: 42px auto 0; }
.home-reasons-head { margin-bottom: 15px; }
.home-reasons-head h2 { margin-top: 5px; font-size: clamp(25px, 3vw, 38px); letter-spacing: -.045em; }
.home-reasons .home-benefits { width: 100%; max-width: none; margin: 0; padding: 0; gap: 10px; }
.home-benefits .benefit { min-height: 76px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 13px; box-shadow: none; flex-direction: row; align-items: center; gap: 12px; }
.home-benefits .benefit > div { display: flex; flex-direction: column; gap: 4px; }
.home-benefits .benefit strong { color: #111; font-size: 12px; }
.home-benefits .benefit span { font-size: 12px; }
.home-benefits .benefit-icon { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%; background: #111; color: #fff; display: grid; place-items: center; font-size: 17px; font-weight: 900; }
.home-benefits .benefit:first-child .benefit-icon { background: var(--red); }
.home-benefits .benefit:nth-child(2) .benefit-icon { background: var(--yellow); color: #111; }
.newsletter-panel { margin-top: 58px; }

/* Favoritos guardados en este dispositivo */
.favorites-open { position: relative; }
.favorite-count { position: absolute; top: -6px; right: -5px; min-width: 20px; height: 20px; padding: 0 5px; border: 2px solid #111; border-radius: 999px; background: var(--yellow); color: #111; display: grid; place-items: center; font-size: 10px; font-weight: 900; line-height: 1; }
.favorite-count[hidden] { display: none; }
.favorite-toggle { position: absolute; z-index: 8; top: 11px; right: 11px; width: 36px; height: 36px; border: 1px solid rgba(0,0,0,.1); border-radius: 50%; background: rgba(255,255,255,.94); color: #111; display: grid; place-items: center; font-size: 21px; line-height: 1; cursor: pointer; box-shadow: 0 5px 16px rgba(0,0,0,.12); transition: transform .2s ease, color .2s ease, background .2s ease; }
.favorite-toggle:hover { transform: scale(1.08); color: var(--red); }
.favorite-toggle.active { border-color: var(--red); background: var(--red); color: #fff; }
.product-card .badge.badge-yellow { left: 12px; right: auto; }
.product-card .badge + .badge.badge-yellow { top: 51px; }
.favorites-overlay { position: fixed; z-index: 1190; inset: 0; background: rgba(0,0,0,.52); opacity: 0; visibility: hidden; transition: .25s ease; }
.favorites-overlay.open { opacity: 1; visibility: visible; }
.favorites-drawer { position: fixed; z-index: 1200; top: 0; right: 0; width: min(430px, 100%); height: 100dvh; padding: 24px; background: #f8f5ef; box-shadow: -18px 0 45px rgba(0,0,0,.2); transform: translateX(105%); transition: transform .32s cubic-bezier(.2,.75,.25,1); display: flex; flex-direction: column; }
.favorites-drawer.open { transform: translateX(0); }
.favorites-head { padding-bottom: 18px; border-bottom: 2px solid #111; display: flex; align-items: center; justify-content: space-between; }
.favorites-head > div > span { color: var(--red); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.favorites-head h2 { margin-top: 2px; font-size: 30px; }
.favorites-head button { width: 38px; height: 38px; border: 0; border-radius: 50%; background: #111; color: #fff; cursor: pointer; }
.favorites-list { min-height: 0; padding: 16px 2px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.favorite-item { padding: 10px; border: 1px solid var(--line); border-radius: 13px; background: #fff; display: grid; grid-template-columns: 72px minmax(0,1fr) 30px; align-items: center; gap: 12px; }
.favorite-item img { width: 72px; height: 72px; border-radius: 9px; object-fit: contain; background: #f5f3ef; }
.favorite-item > div { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.favorite-item > div a { color: #111; font-size: 13px; font-weight: 800; text-decoration: none; }
.favorite-item > div strong { color: var(--red); font-size: 13px; }
.favorite-remove { width: 28px; height: 28px; border: 0; border-radius: 50%; background: #eee9df; cursor: pointer; }
.favorites-empty { margin: auto 0; padding: 40px 22px; text-align: center; }
.favorites-empty > span { display: block; color: var(--red); font-size: 54px; line-height: 1; }
.favorites-empty strong { display: block; margin-top: 10px; font-size: 17px; }
.favorites-empty p { margin-top: 7px; color: var(--gray); font-size: 13px; line-height: 1.5; }
.favorites-catalog-link { margin-top: auto; padding: 15px; border-radius: 11px; background: #111; color: #fff; font-size: 13px; font-weight: 800; text-align: center; text-decoration: none; }
@media (max-width: 768px) { .header-actions .favorites-open { display: grid; } }

@media (max-width: 900px) {
  .home-page .hero-inner { min-height: 330px; padding: 34px; }
  .compact-category-nav { width: calc(100% - 32px); align-items: flex-start; flex-direction: column; gap: 9px; }
  .home-products-layout { grid-template-columns: 230px minmax(0, 1fr); }
  .home-product-promo { min-height: 410px; padding: 21px; }
  .home-product-promo > strong { font-size: 24px; }
  .home-product-rail .product-card { flex-basis: 210px; min-height: 410px; }
  .home-catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .home-page .utility-bar { display: none; }
  .home-page .home-hero { padding: 10px 12px 0; }
  .home-page .hero-inner { min-height: 280px; padding: 28px 22px; grid-template-columns: 1fr; }
  .home-page .hero-copy h1 { font-size: 34px; }
  .home-page .hero-copy p { font-size: 14px; line-height: 1.5; }
  .home-page .hero-art { display: none; }
  .compact-category-nav { width: calc(100% - 24px); margin-top: 9px; padding: 12px; }
  .home-products-first { margin-top: 26px; padding: 0 12px; }
  .home-products-first .home-section-head { align-items: center; flex-direction: row; }
  .home-products-first .home-section-head h2 { font-size: 24px; }
  .home-products-first .section-link { display: none; }
  .home-products-layout { grid-template-columns: 1fr; }
  .home-product-promo { min-height: 230px; }
  .home-product-promo img { left: 45%; width: 52%; height: 80%; bottom: 8%; }
  .home-product-promo > strong { max-width: 52%; }
  .home-product-rail { margin-right: -12px; }
  .home-product-rail .product-card { flex-basis: 185px; min-height: 370px; }
  .home-catalog-section { width: calc(100% - 24px); margin-top: 38px; }
  .home-catalog-section .home-section-head { align-items: flex-end; flex-direction: row; }
  .home-catalog-section .home-section-head h2 { font-size: 26px; }
  .home-catalog-section .section-link { display: none; }
  .home-catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .home-catalog-grid .product-card { min-height: 345px; border-radius: 13px; }
  .home-catalog-grid .product-body { padding: 11px; }
  .home-catalog-grid .product-name { font-size: 13px; }
  .home-catalog-grid .price { font-size: 16px; }
  .home-catalog-more { padding-top: 16px; }
  .home-reasons { width: calc(100% - 24px); margin-top: 32px; }
  .home-reasons-head h2 { font-size: 26px; }
  .home-benefits { margin-top: 0; padding: 0; grid-template-columns: 1fr; gap: 8px; }
  .home-benefits .benefit { min-height: 58px; }
  .product-rail-actions .rail-arrow { display: none; }
  .favorite-toggle { top: 8px; right: 8px; width: 34px; height: 34px; }
  .favorites-drawer { padding: 18px 14px; }
}

/* Dirección elegida A — Atacado compacto */
.home-page .hero-inner { min-height: 355px; }
.compact-category-nav { width: min(1240px, calc(100% - 76px)); margin-top: -2px; padding: 0 14px; border-top: 3px solid var(--red); border-radius: 0 0 18px 18px; position: relative; z-index: 4; }
.compact-category-nav > span { display: none; }
.compact-category-nav > div { width: 100%; gap: 0; justify-content: stretch; overflow-x: auto; }
.compact-category-nav a { min-width: 150px; min-height: 68px; padding: 12px 18px; border-radius: 0; border-right: 1px solid var(--line); background: #fff; display: flex; flex: 1 0 150px; flex-direction: column; justify-content: center; gap: 3px; }
.compact-category-nav a:first-child { border-radius: 0 0 0 14px; }
.compact-category-nav a:last-child { border: 0; border-radius: 0 0 14px 0; }
.compact-category-nav a strong { font-size: 13px; }
.compact-category-nav a small { color: #898278; font-size: 10px; font-weight: 600; }
.compact-category-nav a:hover small, .compact-category-nav a.all-categories small { color: rgba(255,255,255,.72); }
.home-products-first { margin-top: 22px; }
.home-products-first .home-section-head h2 { text-transform: none; letter-spacing: -.045em; }
.home-product-promo { min-height: 405px; }
.home-product-rail .product-card { min-height: 405px; }

@media (max-width: 900px) {
  .home-page .hero-inner { min-height: 325px; }
  .compact-category-nav { width: calc(100% - 48px); padding: 0 8px; flex-direction: row; }
  .compact-category-nav a { min-width: 135px; min-height: 62px; padding: 10px 13px; }
}

@media (max-width: 620px) {
  .home-page .hero-inner { min-height: 270px; }
  .compact-category-nav { width: calc(100% - 24px); margin-top: 0; padding: 0 5px; border-radius: 0 0 14px 14px; }
  .compact-category-nav > div { flex-direction: row; }
  .compact-category-nav a { min-width: 122px; min-height: 56px; padding: 8px 11px; }
  .compact-category-nav a strong { font-size: 11px; }
  .compact-category-nav a small { font-size: 9px; }
  .home-products-first { margin-top: 18px; }
  .home-product-promo { display: none; }
  .home-product-rail .product-card { min-height: 365px; }
}
