/* ==========================================================================
   Tienda Mundo del Cotillón: Divertida, Moderna y Corporativa
   Colores del logo oficial: Naranja #e8512f, Amarillo #ffe600, Rosa #ea66a6,
   Violeta #736bb0, Verde #93c132.
   Estructura institucional limpia, profesional y accesible.
   ========================================================================== */

:root {
  --brand: #e8512f;
  --brand-hover: #c93b1a;
  --sun: #ffe600;
  --sun-light: #fffadb;
  --pink: #ea66a6;
  --violet: #736bb0;
  --green: #93c132;
  --blue: #3a86ff;

  --ink: #0f172a;
  --ink-secondary: #334155;
  --muted: #64748b;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --bg: #f8fafc;
  --card: #ffffff;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 10px 28px rgba(15, 23, 42, 0.12);

  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip:focus { position: fixed; top: 10px; left: 10px; z-index: 1000; background: #fff; padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 700; box-shadow: var(--shadow-lg); }

:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }

h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: .94rem;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: all .15s ease;
  white-space: nowrap;
}
.btn:hover { background: var(--border-light); border-color: #cbd5e1; }
.btn.primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 4px 12px rgba(232, 81, 47, 0.25);
}
.btn.primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.btn.small { min-height: 36px; padding: 0 14px; font-size: .84rem; }
.btn.large { min-height: 50px; padding: 0 28px; font-size: 1.02rem; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.note {
  padding: 12px 18px;
  border-radius: var(--radius);
  font-weight: 700;
  margin: 16px 0;
  font-size: .94rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.note.ok { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.note.err { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.note.warn { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }

/* Utilities */
.p-16 { padding: 16px; }
.p-20 { padding: 20px; }
.p-24 { padding: 24px; }
.p-28 { padding: 28px; }
.p-32 { padding: 32px; }
.p-40 { padding: 40px; }
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mt-28 { margin-top: 28px; }
.mt-32 { margin-top: 32px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.text-danger { color: #dc2626; }
.text-brand { color: var(--brand); }
.font-bold { font-weight: 700; }
.border-top { border-top: 1px solid var(--border); }
.mr-2 { margin-right: 8px; }
.mr-3 { margin-right: 12px; }
.inline-svg { display: inline-block; vertical-align: middle; flex-shrink: 0; }
.empty-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #94a3b8;
  margin-bottom: 12px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

/* Topbar */
.top-nav-bar {
  background: #0f172a;
  color: #e2e8f0;
  font-size: .82rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.top-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  gap: 16px;
}
.institutional-links { display: flex; gap: 18px; }
.institutional-links a {
  color: #cbd5e1;
  transition: color .15s;
  padding: 4px 0;
}
.institutional-links a:hover, .institutional-links a.active { color: #fff; }
.customer-top-links { display: flex; align-items: center; gap: 14px; }
.currency-picker { display:flex; align-items:center; margin:0; }
.currency-picker select { min-width:68px; padding:5px 8px; border:1px solid #d7dce4; border-radius:7px; background:#fff; color:#243044; font:inherit; font-size:.82rem; }
.price-hint { display:block; color:#64748b; font-size:.78rem; line-height:1.35; margin-top:3px; }
.user-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #cbd5e1;
  transition: color .15s;
}
.user-link:hover { color: #fff; }
.user-link.active-link { color: var(--sun); font-weight: 700; }
.logout-form-inline { display: inline-block; margin: 0; }
.logout-btn-link {
  background: transparent;
  border: 0;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px 6px;
  font-size: .8rem;
  font-weight: 600;
}
.logout-btn-link:hover { color: #ef4444; }

/* Main Head */
.site-head {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}
.head-row {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.btn-mobile-menu {
  display: none;
  background: #f1f5f9;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 42px;
  height: 42px;
  cursor: pointer;
  font-size: 1.25rem;
  align-items: center;
  justify-content: center;
}
.btn-mobile-menu:hover { background: #e2e8f0; }

.brand-col .logo img { width: 116px; height: auto; }

.search-col { flex: 1; max-width: 680px; }
.search {
  display: flex;
  background: #f1f5f9;
  border: 2px solid transparent;
  border-radius: var(--radius-full);
  transition: border-color .15s, background .15s;
}
.search:focus-within {
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(232, 81, 47, 0.12);
}
.search input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 10px 20px;
  font-size: .95rem;
  min-width: 0;
  outline: none;
  color: var(--ink);
}
.search input::placeholder { color: #94a3b8; }
.search button {
  border: 0;
  background: var(--brand);
  color: #fff;
  width: 46px;
  margin: 3px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .15s;
}
.search button:hover { background: var(--brand-hover); }

/* Cart Box in Header */
.cart-col { margin-left: auto; }
.header-cart-box { display: flex; align-items: center; gap: 10px; }
.cart-pill-link {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--sun-light);
  border: 1px solid #fde047;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  transition: transform .15s, background .15s;
}
.cart-pill-link:hover { transform: scale(1.05); background: #fef08a; }
.cart-badge-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius-full);
  font-size: .75rem;
  font-weight: 800;
  min-width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  padding: 0 5px;
  box-shadow: 0 2px 5px rgba(232, 81, 47, 0.4);
}
.cart-info-labels { display: flex; flex-direction: column; line-height: 1.2; }
.cart-summary-text { font-size: .82rem; font-weight: 700; color: var(--muted); }
.cart-action-link { font-size: .84rem; font-weight: 800; color: var(--brand); letter-spacing: .02em; }
.cart-action-link:hover { text-decoration: underline; }

/* Categories Bar & Mega Menu */
.cats-bar {
  background: #ffffff;
  border-top: 1px solid var(--border);
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.cats-container { position: relative; }
.main-cats-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.main-cats-list::-webkit-scrollbar { display: none; }
.cat-item { position: relative; flex: none; }
.cat-main-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 10px 10px;
  font-size: .81rem;
  font-weight: 700;
  color: var(--ink-secondary);
  border-bottom: 2px solid transparent;
  transition: all .15s ease;
  white-space: nowrap;
}
.cat-item:hover .cat-main-link, .cat-item.active .cat-main-link {
  color: var(--brand);
  border-bottom-color: var(--brand);
  background: #fff9f6;
}
.cat-arrow { font-size: .65rem; opacity: .6; transition: transform .15s; }
.cat-item:hover .cat-arrow { transform: rotate(180deg); }

/* Mega Dropdown */
.mega-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 620px;
  max-width: 90vw;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 24px;
  z-index: 100;
  display: none;
  max-height: 480px;
  overflow-y: auto;
}
.cat-item:hover .mega-dropdown { display: block; }
.mega-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}
.mega-col { display: flex; flex-direction: column; gap: 6px; }
.mega-sub-title {
  font-size: .85rem;
  font-weight: 800;
  color: var(--brand);
  border-bottom: 1.5px solid var(--sun);
  padding-bottom: 4px;
  margin-bottom: 4px;
}
.mega-sub-title:hover { color: var(--brand-hover); }
.mega-items-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.mega-items-list a {
  font-size: .78rem;
  font-weight: 600;
  color: var(--ink-secondary);
  transition: color .15s;
}
.mega-items-list a:hover { color: var(--brand); text-decoration: underline; }

/* Mobile Drawer */
.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.mobile-drawer-backdrop.active { opacity: 1; visibility: visible; }

.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(340px, 86vw);
  background: #ffffff;
  z-index: 210;
  box-shadow: var(--shadow-lg);
  transform: translateX(-100%);
  transition: transform .25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}
.mobile-drawer.active { transform: translateX(0); }
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #0f172a;
  color: #fff;
}
.drawer-title { font-weight: 800; font-size: .94rem; }
.btn-close-drawer {
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 4px 8px;
}
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.drawer-menu-list { list-style: none; margin: 0; padding: 0; }
.drawer-menu-item { border-bottom: 1px solid var(--border-light); }
.drawer-link {
  display: block;
  padding: 12px 0;
  font-weight: 800;
  font-size: .92rem;
  color: var(--ink);
}
.drawer-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  font-weight: 800;
  font-size: .92rem;
  cursor: pointer;
  list-style: none;
}
.drawer-summary::-webkit-details-marker { display: none; }
.drawer-sub-panel { padding: 8px 0 14px 14px; }
.drawer-cat-root a { font-size: .84rem; font-weight: 700; color: var(--brand); margin-bottom: 8px; display: inline-block; }
.drawer-subgroup { margin-bottom: 12px; }
.drawer-subgroup-title { font-size: .82rem; font-weight: 800; color: var(--ink); display: block; margin-bottom: 4px; }
.drawer-subitems { list-style: none; padding-left: 10px; margin: 0; }
.drawer-subitems a { font-size: .78rem; color: var(--muted); padding: 3px 0; display: block; }
.drawer-institutional { margin-top: 24px; padding-top: 16px; border-top: 2px dashed var(--border); }
.drawer-group-title { font-size: .82rem; font-weight: 800; color: var(--muted); text-transform: uppercase; margin-bottom: 8px; }
.drawer-institutional ul { list-style: none; margin: 0; padding: 0; }
.drawer-institutional a { display: block; padding: 8px 0; font-size: .88rem; font-weight: 700; color: var(--ink-secondary); }

/* Breadcrumbs bar */
.crumbs-bar { background: #f1f5f9; border-bottom: 1px solid var(--border); padding: 10px 0; }
.crumbs { font-size: .82rem; font-weight: 700; color: var(--muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--ink-secondary); }
.crumbs a:hover { color: var(--brand); }

/* ==========================================================================
   Home Components: Slider, Trust, Sections
   ========================================================================== */

.home-slider-section { padding-top: 16px; padding-bottom: 10px; }
.slider-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
  border: 1px solid var(--border);
}
.slider-viewport { position: relative; min-height: 420px; }
.slide-item {
  display: none;
  position: relative;
  width: 100%;
  min-height: 420px;
  overflow: hidden;
}
.slide-item.active {
  display: block;
  animation: heroSlideFade .35s ease forwards;
}
@keyframes heroSlideFade {
  from { opacity: 0; transform: scale(0.995); }
  to { opacity: 1; transform: scale(1); }
}

/* Hero Backdrops & Festive Ambient Lighting */
.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}
.hero-backdrop-1 {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 45%, #2e1065 100%);
}
.hero-backdrop-2 {
  background: linear-gradient(135deg, #180d38 0%, #311b5e 50%, #172554 100%);
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero-glow-1 {
  top: -100px;
  left: 8%;
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, rgba(232, 81, 47, 0.4) 0%, transparent 70%);
  filter: blur(50px);
}
.hero-glow-2 {
  bottom: -100px;
  right: 25%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(255, 230, 0, 0.22) 0%, transparent 70%);
  filter: blur(60px);
}
.hero-glow-3 {
  top: -80px;
  right: 10%;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(115, 107, 176, 0.45) 0%, transparent 70%);
  filter: blur(50px);
}
.hero-glow-4 {
  bottom: -70px;
  left: 15%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(234, 102, 166, 0.35) 0%, transparent 70%);
  filter: blur(50px);
}
.hero-festive-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Hero Content Grid */
.hero-content-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
  padding: 44px 52px;
  position: relative;
  z-index: 2;
  min-height: 420px;
}
.hero-text-col {
  color: #ffffff;
}
.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffe600;
  font-size: .8rem;
  font-weight: 750;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
  backdrop-filter: blur(8px);
}
.hero-main-title {
  font-size: clamp(1.8rem, 3.1vw, 2.6rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.hero-lead {
  font-size: 1.02rem;
  color: #e2e8f0;
  line-height: 1.5;
  margin: 0 0 22px;
  max-width: 520px;
}
.hero-actions-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.hero-cta-btn {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 4px 18px rgba(232, 81, 47, 0.45);
}
.hero-cta-btn:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
}
.hero-cta-secondary {
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  backdrop-filter: blur(8px);
}
.hero-cta-secondary:hover {
  background: #ffffff;
  color: var(--ink);
  border-color: #ffffff;
}
.hero-features-strip {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.h-feat-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  font-weight: 700;
  color: #cbd5e1;
}
.text-accent { color: #ffe600; }

/* Hero Showcase Card */
.hero-showcase-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  padding: 22px;
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}
.showcase-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.showcase-tag {
  font-size: .75rem;
  font-weight: 800;
  color: #ffe600;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.showcase-link {
  font-size: .8rem;
  font-weight: 700;
  color: #ffffff;
  opacity: .85;
}
.showcase-link:hover { opacity: 1; text-decoration: underline; }
.showcase-categories-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.sc-cat-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.96);
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.7);
  transition: transform .15s ease, box-shadow .15s ease;
  color: var(--ink);
}
.sc-cat-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
}
.sc-cat-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.sc-cat-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.sc-cat-name {
  font-size: .82rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ink);
}
.sc-cat-count {
  font-size: .72rem;
  color: var(--muted);
  font-weight: 600;
}
.sc-cat-arrow {
  margin-left: auto;
  color: #94a3b8;
  flex-shrink: 0;
}

/* Spotlight Card (Slide 2) */
.hero-spotlight-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  padding: 24px;
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  color: #fff;
}
.spotlight-tag-badge {
  display: inline-block;
  background: #ea66a6;
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
}
.spotlight-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0 0 8px;
  color: #fff;
}
.spotlight-desc {
  font-size: .88rem;
  color: #e2e8f0;
  line-height: 1.45;
  margin: 0 0 16px;
}
.spotlight-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
  background: rgba(0,0,0,0.22);
  padding: 12px;
  border-radius: var(--radius-sm);
}
.s-stat strong {
  display: block;
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffe600;
}
.s-stat span {
  font-size: .74rem;
  color: #cbd5e1;
}

/* Slider Controls */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  backdrop-filter: blur(6px);
  transition: background .15s, transform .15s;
}
.slider-arrow:hover {
  background: #ffffff;
  color: var(--ink);
  transform: translateY(-50%) scale(1.08);
}
.slider-prev { left: 14px; }
.slider-next { right: 14px; }
.slider-indicators {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 8px;
}
.slider-indicators .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.slider-indicators .dot.active {
  background: #ffe600;
  transform: scale(1.25);
}

/* Trust Bar */
.trust-bar-section { padding: 14px 0 20px; }
.trust-items-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  background: #ffffff;
  padding: 16px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.trust-item { display: flex; align-items: center; gap: 10px; }
.trust-icon { font-size: 1.4rem; line-height: 1; flex-shrink: 0; }
.trust-ico-wrap {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  flex-shrink: 0;
}
.trust-text { font-size: .84rem; font-weight: 700; color: var(--ink-secondary); line-height: 1.25; }

/* Sections */
.section-home { padding: 32px 0; }
.section-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 10px;
}
.section-heading {
  font-size: clamp(1.3rem, 2.3vw, 1.7rem);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.01em;
}
.heading-accent-bar {
  display: inline-block;
  width: 4px;
  height: 22px;
  border-radius: 2px;
  flex-shrink: 0;
}
.heading-ico { font-size: 1.25rem; }
.heading-more-link { font-size: .88rem; font-weight: 800; color: var(--brand); }
.heading-more-link:hover { text-decoration: underline; }

/* Product Grid & Cards */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 18px;
}
.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}
.product-thumb-link { display: block; }
.product-photo-holder {
  aspect-ratio: 1 / 1;
  background: radial-gradient(circle at 50% 35%, #ffffff 0%, #f1f5f9 100%);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-light);
}
.product-img { width: 100%; height: 100%; object-fit: cover; }
.product-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #94a3b8;
  width: 100%;
  height: 100%;
  padding: 16px;
  text-align: center;
}
.placeholder-badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  transition: transform .2s ease, border-color .2s ease, color .2s ease;
}
.product-card:hover .placeholder-badge {
  transform: scale(1.08);
  border-color: var(--brand);
  color: var(--brand);
}
.placeholder-icon-svg {
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-placeholder .placeholder-label {
  font-size: .76rem;
  font-weight: 700;
  color: #64748b;
  letter-spacing: .02em;
}
.product-placeholder.mini .placeholder-badge { width: 34px; height: 34px; }
.product-placeholder.mini .placeholder-icon-svg svg { width: 18px; height: 18px; }
.product-placeholder.large .placeholder-badge { width: 72px; height: 72px; }
.product-placeholder.large .placeholder-icon-svg svg { width: 38px; height: 38px; }
.family-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--violet);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: var(--radius-full);
}
.thumb-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.25);
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity .15s ease;
}
.product-card:hover .thumb-hover-overlay { opacity: 1; }
.zoom-icon {
  background: #ffffff;
  color: var(--ink);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  font-weight: 800;
  box-shadow: var(--shadow);
}

.product-card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.product-code {
  font-family: ui-monospace, Menlo, monospace;
  font-size: .75rem;
  font-weight: 700;
  color: #94a3b8;
}
.product-title { font-size: .95rem; font-weight: 800; margin: 0; line-height: 1.3; }
.product-title-link:hover { color: var(--brand); }
.product-subtitle { font-size: .82rem; color: var(--muted); margin: 0; }
.product-price-row { margin-top: auto; padding-top: 8px; }
.product-price {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
  font-feature-settings: 'tnum';
}
.price-from { font-family: var(--font-body); font-size: .8rem; color: var(--muted); font-weight: 700; }
.product-price-ask { font-size: .92rem; font-weight: 700; color: var(--muted); margin: 0; }
.product-card-actions { margin-top: 10px; }

/* Categories Grid in Home */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
}
.cat-card {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.cat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}
.cat-card-accent-bar {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 5px;
  background: var(--c);
}
.cat-card-title { font-size: 1.15rem; margin: 0 0 4px; font-weight: 700; }
.cat-card-desc { font-size: .84rem; color: var(--muted); margin: 0 0 12px; line-height: 1.4; }
.cat-card-count { font-size: .8rem; font-weight: 800; color: var(--brand); margin-top: auto; }
.cat-card-others {
  border-style: dashed;
  background: #fafbfc;
}
.cat-card-others:hover {
  background: #ffffff;
  border-style: solid;
}

/* News Grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}
.news-card { overflow: hidden; }
.news-media img { width: 100%; height: 210px; object-fit: cover; }
.news-title { font-size: 1.2rem; margin-bottom: 6px; color: var(--ink); }
.news-intro { font-size: .9rem; color: var(--ink-secondary); line-height: 1.45; }

/* Steps Grid */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.step-card { position: relative; }
.step-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--sun);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}
.step-title { font-size: 1.05rem; margin-bottom: 6px; }
.step-text { font-size: .88rem; color: var(--muted); line-height: 1.4; }

/* Wholesale Banner */
.wholesale-banner {
  background: linear-gradient(135deg, var(--violet) 0%, #4338ca 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 34px 40px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  box-shadow: var(--shadow-md);
}
.wholesale-title { font-size: clamp(1.4rem, 2.5vw, 1.9rem); color: #fff; margin-bottom: 6px; }
.wholesale-desc { font-size: .98rem; opacity: .95; max-width: 42em; margin: 0; }
.wholesale-action { display: flex; gap: 10px; flex-wrap: wrap; }

/* ==========================================================================
   Catalog Page Layout
   ========================================================================== */

.catalog-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  padding: 24px 0 50px;
  align-items: start;
}
.catalog-sidebar .sidebar-heading {
  font-size: .95rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1.5px solid var(--border);
  padding-bottom: 8px;
}
.sidebar-cats-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.sidebar-cat-item { border-radius: var(--radius-sm); }
.sidebar-cat-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  font-weight: 700;
  font-size: .88rem;
  color: var(--ink-secondary);
  border-radius: var(--radius-sm);
  transition: all .15s;
}
.sidebar-cat-link .bullet { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.sidebar-cat-link .cat-label { flex: 1; }
.sidebar-cat-link .count-pill {
  font-size: .74rem;
  font-weight: 700;
  background: var(--border-light);
  color: var(--muted);
  padding: 2px 7px;
  border-radius: var(--radius-full);
  min-width: 24px;
  text-align: center;
  transition: all .15s ease;
}
.sidebar-cat-link:hover, .sidebar-cat-item.active > .sidebar-cat-link {
  background: #f1f5f9;
  color: var(--brand);
}
.sidebar-cat-item.active .count-pill,
.sidebar-cat-link:hover .count-pill {
  background: #ffedd5;
  color: #c2410c;
}
.sidebar-sub-list { list-style: none; padding-left: 24px; margin: 4px 0 8px; display: flex; flex-direction: column; gap: 4px; }
.sidebar-sub-link { font-size: .8rem; font-weight: 600; color: var(--muted); }
.sidebar-sub-link:hover { color: var(--brand); text-decoration: underline; }

.catalog-header-card { display: flex; flex-direction: column; }
.catalog-title { font-size: clamp(1.5rem, 2.5vw, 2.1rem); margin: 0; }
.catalog-desc { font-size: .94rem; color: var(--muted); margin-top: 4px; }
.catalog-meta-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.results-count { font-size: .86rem; font-weight: 700; color: var(--muted); }
.price-list-pill {
  background: var(--sun-light);
  border: 1px solid #fde047;
  color: #713f12;
  font-weight: 800;
  font-size: .78rem;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.pager-nav { display: flex; justify-content: center; align-items: center; gap: 12px; }
.pager-info { font-size: .88rem; font-weight: 700; color: var(--muted); }

/* ==========================================================================
   Product Detail & Family
   ========================================================================== */

.detail-layout { padding: 24px 0 50px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; align-items: start; }
.detail-title { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0; }
.code-stock-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.detail-code { font-family: ui-monospace, Menlo, monospace; font-size: .88rem; color: var(--ink-secondary); }
.stock-badge {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  font-size: .78rem;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: var(--radius-full);
}
.presentation-badge, .barcode-badge {
  background: #f1f5f9;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: var(--radius-full);
}
.detail-price {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
  font-feature-settings: 'tnum';
}
.avail-notice {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius);
  padding: 10px 14px;
  font-weight: 700;
  font-size: .88rem;
  color: #92400e;
}

.qty-and-buy-row { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.qty-control-wrapper { display: flex; flex-direction: column; gap: 4px; }
.qty-label { font-size: .84rem; font-weight: 800; color: var(--muted); }
.qty-input-group {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
  background: #fff;
}
.btn-qty {
  width: 40px;
  height: 44px;
  border: 0;
  background: #f1f5f9;
  font-size: 1.2rem;
  font-weight: 800;
  cursor: pointer;
  transition: background .15s;
}
.btn-qty:hover { background: #e2e8f0; }
.qty-field {
  width: 60px;
  height: 44px;
  border: 0;
  text-align: center;
  font-weight: 800;
  font-size: 1.05rem;
  outline: none;
  -moz-appearance: textfield;
}
.qty-field::-webkit-outer-spin-button, .qty-field::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-input-group.inline .btn-qty { width: 32px; height: 34px; font-size: 1rem; }
.qty-input-group.inline .qty-field { width: 44px; height: 34px; font-size: .92rem; }

/* Variants Table for Family */
.variants-table-wrap { overflow-x: auto; }
.variants-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.variants-table th { text-align: left; padding: 10px 12px; background: #f8fafc; border-bottom: 2px solid var(--border); font-weight: 800; color: var(--muted); }
.variants-table td { padding: 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.variants-table .price-cell { font-weight: 800; font-family: var(--font-display); font-size: 1.15rem; font-feature-settings: 'tnum'; }
.family-buy-summary-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
  padding: 16px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  gap: 16px;
  flex-wrap: wrap;
}
.summary-text { font-weight: 800; font-size: 1rem; }

/* ==========================================================================
   Cart Page
   ========================================================================== */

.page-body { padding: 24px 0 50px; }
.cart-header-row { display: flex; justify-content: space-between; align-items: center; }
.page-title {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.empty-cart-card { max-width: 640px; margin: 20px auto; }
.empty-cart-rules { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: .95rem; font-weight: 700; color: var(--ink-secondary); }

.cart-item-row {
  display: grid;
  grid-template-columns: 70px 1fr auto auto auto auto;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item-thumb img { width: 70px; height: 70px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.cart-item-name { font-size: 1rem; font-weight: 800; margin: 0 0 2px; }
.cart-item-code { font-family: ui-monospace, Menlo, monospace; font-size: .78rem; color: #94a3b8; margin: 0; }
.cart-item-meta { font-size: .8rem; color: var(--muted); }
.cart-item-unit-price { font-size: .88rem; color: var(--muted); }
.cart-item-subtotal { font-family: var(--font-display); font-size: 1.2rem; font-weight: 800; font-feature-settings: 'tnum'; min-width: 100px; text-align: right; }
.btn-delete { background: transparent; border: 0; cursor: pointer; font-size: 1.25rem; opacity: .6; transition: opacity .15s; }
.btn-delete:hover { opacity: 1; }

.cart-totals-card {
  max-width: 480px;
  margin-left: auto;
  background: #ffffff;
}
.precio-producto-carros { margin: 0; display: flex; justify-content: space-between; align-items: baseline; }
.subtotal-row { font-size: 1.1rem; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.total-row { font-size: 1.6rem; font-weight: 800; color: var(--ink); font-feature-settings: 'tnum'; border-top: 1.5px solid var(--border); padding-top: 10px; }
.cart-min-notice { font-size: .86rem; font-weight: 700; color: #b91c1c; background: #fef2f2; padding: 6px 12px; border-radius: var(--radius-sm); }
.cart-bottom-actions { display: flex; justify-content: space-between; gap: 12px; }

/* ==========================================================================
   Checkout Page
   ========================================================================== */

.checkout-form-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 28px;
  align-items: start;
}
.legales-notice {
  font-size: .92rem;
  font-weight: 700;
  color: #854d0e;
  background: #fef9c3;
  padding: 10px 16px;
  border-radius: var(--radius);
  border: 1px solid #fef08a;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.step-card-header { display: flex; align-items: center; gap: 12px; }
.step-number-pill {
  background: var(--violet);
  color: #fff;
  font-weight: 800;
  font-size: .78rem;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}
.step-heading { font-size: 1.25rem; margin: 0; }
.delivery-options-list, .payment-options-list { display: flex; flex-direction: column; gap: 10px; }
.delivery-option-item, .payment-option-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.delivery-option-item:hover, .payment-option-item:hover { border-color: var(--brand); background: #fffaf8; }
.delivery-option-item input, .payment-option-item input { margin-top: 3px; }
.delivery-option-item .opt-label, .payment-option-item .opt-label { display: flex; flex-direction: column; }
.delivery-option-item small, .payment-option-item small { color: var(--muted); font-size: .82rem; }
.confirmation-promise-box {
  background: #f8fafc;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  font-size: .9rem;
  line-height: 1.5;
  color: var(--ink-secondary);
}

.sticky-summary { position: sticky; top: 120px; }
.checkout-items-list { max-height: 320px; overflow-y: auto; padding-right: 4px; display: flex; flex-direction: column; gap: 10px; }
.checkout-item-line { display: flex; justify-content: space-between; font-size: .88rem; border-bottom: 1px solid var(--border-light); padding-bottom: 8px; }
.checkout-total-box .total-row { font-size: 1.4rem; }

/* ==========================================================================
   Forms & Auth
   ========================================================================== */

.form-group label { display: block; font-weight: 700; font-size: .88rem; margin-bottom: 6px; color: var(--ink); }
.form-control {
  width: 100%;
  min-height: 44px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: .95rem;
  background: #ffffff;
  transition: border-color .15s, box-shadow .15s;
}
.form-control:focus {
  border-color: var(--brand);
  outline: none;
  box-shadow: 0 0 0 3px rgba(232, 81, 47, 0.12);
}
textarea.form-control { min-height: 80px; resize: vertical; }

.auth-page-wrapper { max-width: 500px; margin: 30px auto; }
.titulo-in-box {
  display: inline-block;
  font-size: .82rem;
  font-weight: 800;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: .03em;
}
.auth-section-title { font-size: 1.4rem; margin: 0; display: flex; align-items: center; gap: 6px; }
.aux-link { font-size: .86rem; font-weight: 700; color: var(--muted); }
.aux-link:hover { color: var(--brand); text-decoration: underline; }

.register-container { max-width: 860px; margin: 20px auto; }
.register-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.menuTabs .labelTabActivo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  font-size: .94rem;
  padding: 8px 18px;
  border-radius: var(--radius-full);
}
.titu-section {
  font-size: 1.15rem;
  border-bottom: 1.5px solid var(--border);
  padding-bottom: 6px;
  margin-bottom: 14px;
}
.custom-check-label { display: flex; align-items: flex-start; gap: 10px; font-size: .86rem; line-height: 1.4; cursor: pointer; }
.custom-check-label input { margin-top: 2px; }

/* ==========================================================================
   Institutional Pages (About, Location, FAQ, Contact)
   ========================================================================== */

.about-grid, .location-grid, .contact-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 28px;
  align-items: start;
}
.lead-text { font-size: 1.15rem; font-weight: 700; line-height: 1.55; color: var(--ink); }
.body-text { font-size: 1rem; color: var(--ink-secondary); line-height: 1.6; }
.gallery-title { font-size: 1.15rem; margin-bottom: 12px; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
}
.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: transform .15s ease;
}
.gallery-item img:hover { transform: scale(1.05); }

/* FAQ Accordion */
.faq-container { max-width: 820px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.faq-item:last-child { border-bottom: 0; }
.faq-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}
.faq-summary::-webkit-details-marker { display: none; }
.faq-icon { font-size: .85rem; color: var(--brand); transition: transform .2s ease; }
.faq-item[open] .faq-icon { transform: rotate(90deg); }
.faq-answer {
  padding: 14px 0 6px 24px;
  font-size: .96rem;
  color: var(--ink-secondary);
  line-height: 1.6;
}
.faq-steps { margin: 10px 0; padding-left: 20px; }
.faq-steps li { margin-bottom: 4px; }
.faq-closing { font-weight: 800; color: var(--brand); margin-top: 10px; }

/* Contact */
.section-sub { font-size: 1rem; margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-foot {
  background: #0f172a;
  color: #cbd5e1;
  margin-top: 40px;
  padding: 48px 0 20px;
  border-top: 4px solid var(--sun);
}
.foot-logo-section {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid #1e293b;
  margin-bottom: 32px;
}
.foot-tagline { font-size: .92rem; color: #94a3b8; max-width: 52em; margin: 0; }
.foot-grid-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.foot-col-head .foot-title {
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.hrFooter { border: 0; height: 2px; background: var(--brand); width: 40px; margin: 0 0 16px; }
.foot-links-list, .foot-social-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.foot-links-list a, .foot-social-links a {
  color: #94a3b8;
  font-size: .88rem;
  font-weight: 600;
  transition: color .15s;
}
.foot-links-list a:hover, .foot-social-links a:hover { color: #fff; text-decoration: underline; }
.foot-contact-details { font-size: .88rem; color: #94a3b8; display: flex; flex-direction: column; gap: 10px; }
.foot-contact-details a { color: #cbd5e1; }
.foot-contact-details a:hover { color: #fff; }
.foot-bottom-bar {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid #1e293b;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
  color: #64748b;
  flex-wrap: wrap;
  gap: 12px;
}
.desarrollador { color: #94a3b8; font-weight: 600; }

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

@media (max-width: 1024px) {
  .trust-items-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .checkout-form-grid { grid-template-columns: 1fr; }
  .sticky-summary { position: static; }
  .about-grid, .location-grid, .contact-grid { grid-template-columns: 1fr; }
  .foot-grid-columns { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .catalog-layout { grid-template-columns: 1fr; }
  .catalog-sidebar { display: none; } /* On tablet/mobile, categories accessed via top drawer */
  .detail-grid { grid-template-columns: 1fr; }
  .wholesale-banner { grid-template-columns: 1fr; }
  .hero-content-grid {
    grid-template-columns: 1fr;
    padding: 32px 24px;
    gap: 20px;
    min-height: auto;
  }
  .hero-showcase-col { display: none; }
  .slider-arrow { display: none; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 14px; }
  .top-nav-bar { display: none; } /* Institutional & client links live inside mobile drawer */
  .btn-mobile-menu { display: inline-flex; }
  .cats-bar { display: none; } /* Main navbar hidden on mobile in favor of drawer */
  .head-row { flex-wrap: wrap; gap: 10px; }
  .brand-col .logo img { width: 90px; }
  .search-col { order: 3; flex-basis: 100%; max-width: 100%; }
  .cart-col { margin-left: auto; }
  .cart-info-labels { display: none; }
  .grid-cards { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .trust-items-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .steps-grid { grid-template-columns: 1fr; }
  .foot-grid-columns { grid-template-columns: 1fr; }
  .register-grid { grid-template-columns: 1fr; }
  .cart-item-row { grid-template-columns: 50px 1fr auto; gap: 10px; }
  .cart-item-subtotal { grid-column: 2; text-align: left; }
  .cart-item-remove { grid-column: 3; }
  .cart-bottom-actions { flex-direction: column; }
  .cart-bottom-actions .btn { width: 100%; }
  .hide-mobile { display: none !important; }

  .hero-content-grid {
    padding: 26px 18px;
    gap: 14px;
    min-height: auto;
  }
  .hero-badge-pill {
    font-size: .74rem;
    padding: 4px 10px;
    white-space: normal;
    text-align: left;
    line-height: 1.3;
  }
  .hero-main-title {
    font-size: 1.22rem;
    line-height: 1.25;
    margin-bottom: 10px;
    word-break: normal;
  }
  .hero-lead { font-size: .88rem; margin-bottom: 16px; line-height: 1.45; }
  .hero-actions-row { gap: 10px; margin-bottom: 16px; }
  .hero-actions-row .btn { width: 100%; min-height: 44px; font-size: .92rem; }
  .hero-features-strip { display: none; }
}

/* Customer account: compact, readable dashboard with responsive two-column cards. */
.account-hero { padding: 30px 0 26px; background: linear-gradient(115deg, #fff 0%, #fff9f6 100%); border-bottom: 1px solid var(--border); }
.account-hero .wrap { max-width: 1240px; }
.account-hero h1 { margin: 3px 0 4px; color: var(--ink); font-size: clamp(1.65rem, 3vw, 2.25rem); line-height: 1.2; letter-spacing: -.035em; }
.account-hero p { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.account-eyebrow { display: block; color: var(--brand); font-size: .72rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.account-layout { max-width: 1240px; padding: 24px 20px 56px; display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(270px, .85fr); align-items: start; gap: 20px; }
.account-card { min-width: 0; padding: 22px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.account-card h2 { margin: 2px 0 0; color: var(--ink); font-size: 1.17rem; line-height: 1.3; letter-spacing: -.02em; }
.account-card-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 15px; margin-bottom: 14px; border-bottom: 1px solid var(--border-light); }
.account-orders { grid-column: 1; }
.account-commercial { grid-column: 2; grid-row: 1 / span 2; }
.account-table-wrap { width: 100%; overflow-x: auto; }
.account-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.account-table th { padding: 10px 12px; background: #f8fafc; color: var(--muted); font-size: .76rem; font-weight: 700; text-align: left; white-space: nowrap; }
.account-table td { padding: 13px 12px; border-bottom: 1px solid var(--border-light); vertical-align: top; }
.account-table tr:last-child td { border-bottom: 0; }
.account-table td a { color: var(--ink); }
.account-table td a:hover { color: var(--brand); }
.account-table small { display: block; margin-top: 3px; color: var(--muted); font-size: .79rem; }
.account-number { text-align: right !important; white-space: nowrap; font-variant-numeric: tabular-nums; }
.account-commercial p { line-height: 1.55; }
.account-identity { display: grid; gap: 2px; margin: 0 0 14px; overflow-wrap: anywhere; }
.account-identity strong { font-size: 1rem; }
.account-identity span { color: var(--muted); font-size: .88rem; }
.account-notice { display: block; margin: 12px 0; padding: 12px 14px; line-height: 1.5; font-weight: 600; overflow-wrap: anywhere; }
.account-form { display: grid; gap: 13px; }
.account-profile-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.account-form label { display: grid; gap: 6px; min-width: 0; color: var(--ink-secondary); font-size: .84rem; font-weight: 700; }
.account-form input:not([type="checkbox"]), .account-form textarea, .account-form select { display: block; width: 100%; min-width: 0; min-height: 44px; padding: 9px 12px; border: 1px solid #cbd5e1; border-radius: var(--radius-sm); background: #fff; color: var(--ink); font: inherit; font-size: .92rem; transition: border-color .15s, box-shadow .15s; }
.account-form textarea { min-height: 84px; resize: vertical; }
.account-form input:focus, .account-form textarea:focus, .account-form select:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(232,81,47,.13); }
.account-form input:disabled { background: #f8fafc; color: var(--muted); }
.account-full-field { grid-column: 1 / -1; }
.account-form-actions { grid-column: 1 / -1; display: flex; justify-content: flex-start; padding-top: 2px; }
.account-check { display: flex !important; grid-template-columns: auto 1fr; align-items: center; justify-content: start; }
.account-check input { width: 17px; height: 17px; accent-color: var(--brand); }
.account-hint { display: block; margin-top: -6px; color: var(--muted); font-size: .8rem; line-height: 1.5; }
.account-logout { padding-top: 16px; margin-top: 18px; border-top: 1px solid var(--border-light); }
.account-empty { margin: 4px 0; color: var(--muted); }
.account-empty a { color: var(--brand); font-weight: 700; }
.account-address { padding: 14px 0; border-bottom: 1px solid var(--border-light); }
.account-address-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.account-address p { margin: 6px 0 10px; color: var(--ink-secondary); font-size: .9rem; overflow-wrap: anywhere; }
.account-address p small { color: var(--muted); }
.account-badge { display: inline-flex; padding: 3px 9px; border-radius: var(--radius-full); background: #fff4ed; color: #a83c20; font-size: .7rem; font-weight: 800; }
.account-address-edit, .account-add-address { border-bottom: 1px solid var(--border-light); }
.account-address-edit summary, .account-add-address summary { padding: 13px 2px; color: var(--ink-secondary); font-size: .88rem; font-weight: 700; cursor: pointer; }
.account-address-edit[open] summary, .account-add-address[open] summary { color: var(--brand); }
.account-address-edit .account-form, .account-add-address .account-form { padding: 4px 0 17px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.account-add-address { margin-top: 4px; border-bottom: 0; }

@media (max-width: 900px) {
  .account-layout { grid-template-columns: minmax(0, 1fr); padding: 18px 14px 40px; gap: 14px; }
  .account-orders, .account-commercial { grid-column: auto; grid-row: auto; }
  .account-card { padding: 18px; border-radius: 14px; }
  .account-hero { padding: 22px 0 18px; }
  .account-table { min-width: 520px; }
}
@media (max-width: 480px) {
  .account-profile-form, .account-address-edit .account-form, .account-add-address .account-form { grid-template-columns: minmax(0, 1fr); }
  .account-full-field, .account-form-actions { grid-column: auto; }
  .account-card { padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
