/* ============================================================================
   Microway S.A. — Tema sobre Bootstrap 5
   Aplica el Manual de Identidad Corporativa:
   - Paleta: azul, morado, naranja y blanco
   - Tipografía: Barlow Semi Condensed (300 light, 500 medium, 600/700 bold)
   - Estética: tecnológica, moderna, geométrica modular
   ============================================================================ */

/* --- 1. Variables de marca + override de Bootstrap ----------------------- */
:root {
  /* Paleta oficial equilibrada: blanco dominante, azul corporativo y acentos de marca */
  --mw-blue:           #123A56;
  --mw-blue-rgb:       18, 58, 86;
  --mw-blue-dark:      #082A40;
  --mw-blue-light:     #6F879A;
  --mw-blue-50:        #F2F7FA;
  --mw-blue-100:       #DDE9F1;

  --mw-magenta:        #7F3B68;
  --mw-magenta-rgb:    127, 59, 104;
  --mw-magenta-dark:   #5F294E;
  --mw-magenta-light:  #A8658F;
  --mw-magenta-50:     #FBF7FA;
  --mw-magenta-100:    #F2E5EE;

  --mw-yellow:         #F28C28;
  --mw-yellow-rgb:     242, 140, 40;
  --mw-yellow-dark:    #C96C16;
  --mw-yellow-light:   #F6AA5B;
  --mw-yellow-50:      #FFF7EF;

  --mw-black:          #111827;
  --mw-white:          #FFFFFF;
  --mw-ink:            #142033;
  --mw-muted:          #66758A;
  --mw-surface-soft:   #FAF8F6;
  --mw-border:         #D8E4EC;

  /* Override Bootstrap: brand */
  --bs-primary:        var(--mw-blue);
  --bs-primary-rgb:    var(--mw-blue-rgb);
  --bs-warning:        var(--mw-yellow);
  --bs-warning-rgb:    var(--mw-yellow-rgb);

  /* Override Bootstrap: tipografía */
  --bs-font-sans-serif: 'Barlow Semi Condensed', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --bs-body-font-family: var(--bs-font-sans-serif);
  --bs-body-font-weight: 300;
  --bs-body-color:      var(--mw-ink);
  --bs-body-bg:         var(--mw-white);

  /* Override Bootstrap: focus */
  --bs-link-color:        var(--mw-blue);
  --bs-link-hover-color:  var(--mw-blue-dark);
}

/* --- 2. Tipografía global --- */
body {
  font-family: var(--bs-body-font-family);
  font-weight: 300;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--mw-ink);
}

.fw-mw-light    { font-weight: 300 !important; }
.fw-mw-regular  { font-weight: 400 !important; }
.fw-mw-medium   { font-weight: 500 !important; }
.fw-mw-semibold { font-weight: 600 !important; }
.fw-mw-bold     { font-weight: 700 !important; }

/* --- 3. Override botones Bootstrap --- */
.btn {
  font-weight: 600;
  letter-spacing: 0;
  border-radius: 1rem;
  border-width: 2px;
  box-shadow: none;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(var(--mw-blue-rgb), .12);
}
.btn:active {
  transform: translateY(0);
  box-shadow: none;
}
.btn-primary {
  --bs-btn-color: var(--mw-blue);
  --bs-btn-bg: var(--mw-white);
  --bs-btn-border-color: #AEBFD1;
  --bs-btn-hover-color: var(--mw-blue-dark);
  --bs-btn-hover-bg: var(--mw-blue-50);
  --bs-btn-hover-border-color: var(--mw-blue);
  --bs-btn-active-color: var(--mw-blue-dark);
  --bs-btn-active-bg: var(--mw-blue-100);
  --bs-btn-active-border-color: var(--mw-blue-light);
  --bs-btn-disabled-color: var(--mw-blue-light);
  --bs-btn-disabled-bg: var(--mw-blue-50);
  --bs-btn-disabled-border-color: var(--mw-blue-100);
  background-image: none;
  box-shadow: none;
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background-image: none;
  box-shadow: 0 10px 20px rgba(var(--mw-blue-rgb), .10);
}
.btn-outline-primary {
  --bs-btn-color: var(--mw-blue);
  --bs-btn-bg: var(--mw-white);
  --bs-btn-border-color: #AEBFD1;
  --bs-btn-hover-color: var(--mw-blue-dark);
  --bs-btn-hover-bg: var(--mw-blue-50);
  --bs-btn-hover-border-color: var(--mw-blue);
  --bs-btn-active-color: var(--mw-blue-dark);
  --bs-btn-active-bg: var(--mw-blue-100);
  --bs-btn-active-border-color: var(--mw-blue-light);
}
.btn-warning {
  --bs-btn-bg: var(--mw-white);
  --bs-btn-border-color: #E3B780;
  --bs-btn-color: var(--mw-yellow-dark);
  --bs-btn-hover-bg: var(--mw-yellow-50);
  --bs-btn-hover-border-color: var(--mw-yellow);
  --bs-btn-hover-color: var(--mw-yellow-dark);
  --bs-btn-active-bg: var(--mw-yellow);
  --bs-btn-active-border-color: var(--mw-yellow);
  --bs-btn-active-color: var(--mw-black);
}
.btn-outline-light {
  --bs-btn-color: var(--mw-blue);
  --bs-btn-bg: var(--mw-white);
  --bs-btn-border-color: #AEBFD1;
  --bs-btn-hover-color: var(--mw-blue-dark);
  --bs-btn-hover-bg: var(--mw-blue-50);
  --bs-btn-hover-border-color: var(--mw-blue);
  --bs-btn-active-color: var(--mw-blue-dark);
  --bs-btn-active-bg: var(--mw-blue-100);
  --bs-btn-active-border-color: var(--mw-blue-light);
}
.btn-lg {
  padding-inline: 1.65rem;
}

/* --- 4. Topbar (info de contacto sobre el header) --- */
.mw-topbar {
  background: var(--mw-surface-soft);
  color: var(--mw-muted);
  font-size: .85rem;
  padding: .4rem 0;
  border-bottom: 1px solid var(--mw-border);
}
.mw-topbar a { color: var(--mw-blue); text-decoration: none; font-weight: 500; }
.mw-topbar a:hover { color: var(--mw-yellow-dark); text-decoration: underline; }

/* --- 5. Header / Navbar --- */
.navbar-brand img {
  height: 64px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
}
@media (max-width: 575.98px) {
  .navbar-brand img { height: 50px; max-width: 180px; }
}
.navbar.mw-navbar {
  background: var(--mw-white);
  border-bottom: 1px solid var(--mw-border);
  box-shadow: 0 8px 24px rgba(23,18,25,.05);
}
.mw-navbar-bottom {
  background: var(--mw-white);
  font-size: .9rem;
  border-bottom: 1px solid var(--mw-border);
}
.mw-navbar-bottom .nav-link {
  color: var(--mw-blue);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: .85rem 1.1rem !important;
  transition: all .15s ease;
}
.mw-navbar-bottom .nav-link:hover,
.mw-navbar-bottom .nav-link:focus,
.mw-navbar-bottom .nav-link.active {
  color: var(--mw-blue-dark);
  background: linear-gradient(180deg, var(--mw-blue-50), var(--mw-white));
  box-shadow: inset 0 -3px 0 var(--mw-blue);
}

/* Search bar (estilo Catálogo Pro: protagonista) */
.mw-search {
  flex: 1;
  max-width: 600px;
  position: relative;
}
.mw-search .form-control {
  border-radius: 999px;
  padding: .75rem 1.25rem .75rem 3rem;
  background: var(--mw-surface-soft);
  border: 2px solid var(--mw-border);
  font-size: .95rem;
  height: auto;
}
.mw-search .form-control:focus {
  background: var(--mw-white);
  border-color: var(--mw-blue);
  box-shadow: 0 0 0 .2rem rgba(var(--mw-blue-rgb), .12);
}
.mw-search__icon {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--mw-blue);
  font-size: 1.05rem;
  pointer-events: none;
  z-index: 2;
}
.mw-search .btn {
  position: absolute;
  right: .3rem;
  top: 50%;
  transform: translateY(-50%);
  border-radius: .85rem;
  padding: .45rem 1.4rem;
  font-weight: 600;
  font-size: .88rem;
  height: auto;
  z-index: 2;
}
.btn-mw-solid {
  --bs-btn-color: var(--mw-blue);
  --bs-btn-bg: var(--mw-white);
  --bs-btn-border-color: #AEBFD1;
  --bs-btn-hover-color: var(--mw-blue-dark);
  --bs-btn-hover-bg: var(--mw-blue-50);
  --bs-btn-hover-border-color: var(--mw-blue);
  --bs-btn-active-color: var(--mw-blue-dark);
  --bs-btn-active-bg: var(--mw-blue-100);
  --bs-btn-active-border-color: var(--mw-blue-light);
  background-image: none;
  box-shadow: none;
}
.btn-mw-solid:hover,
.btn-mw-solid:focus-visible {
  background-image: none;
  box-shadow: 0 10px 20px rgba(var(--mw-blue-rgb), .10);
}
@media (max-width: 575.98px) {
  .mw-search { width: 100%; order: 99; }
  .mw-search .btn { padding: .4rem 1rem; }
}

/* Carrito badge */
.mw-cart-link { position: relative; }
.mw-cart-link .badge {
  position: absolute;
  top: -.4rem;
  right: -.4rem;
  font-size: .65rem;
}

/* --- 6. Hero Carousel --- */
.mw-hero {
  background:
    radial-gradient(circle at 86% 10%, rgba(var(--mw-blue-rgb), .14), transparent 32%),
    radial-gradient(circle at 8% 90%, rgba(var(--mw-blue-rgb), .10), transparent 28%),
    linear-gradient(135deg, var(--mw-white) 0%, var(--mw-blue-50) 58%, #F8FBFD 100%);
  color: var(--mw-ink);
  position: relative;
  overflow: hidden;
}
.mw-hero::before {
  content: '';
  position: absolute;
  top: -30%; right: -10%;
  width: 500px; height: 500px;
  background: var(--mw-blue-light);
  opacity: .12;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}
.mw-hero::after {
  content: '';
  position: absolute;
  bottom: -40%; left: -10%;
  width: 400px; height: 400px;
  background: var(--mw-blue-light);
  opacity: .10;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.mw-hero .carousel-item {
  min-height: 380px;
  display: flex;
  align-items: center;
  padding: 4rem 0;
}
.mw-hero h1 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  color: var(--mw-ink);
  font-weight: 600;
  margin-bottom: 1rem;
}
.mw-hero p { color: var(--mw-muted); font-size: 1.125rem; opacity: 1; }
.mw-hero .carousel-indicators { margin-bottom: 1.25rem; }
.mw-hero .carousel-indicators [data-bs-target] {
  background-color: var(--mw-blue);
  width: 40px;
  height: 4px;
}
.mw-hero .btn-outline-light {
  --bs-btn-color: var(--mw-blue);
  --bs-btn-bg: var(--mw-white);
  --bs-btn-border-color: #AEBFD1;
  --bs-btn-hover-bg: var(--mw-blue-50);
  --bs-btn-hover-border-color: var(--mw-blue);
  --bs-btn-hover-color: var(--mw-blue-dark);
}

/* Flechas: pegadas a los bordes externos del viewport, fuera del area de texto */
.mw-hero .carousel-control-prev,
.mw-hero .carousel-control-next {
  width: 56px;
  opacity: 0.6;
  transition: opacity .2s ease;
}
.mw-hero .carousel-control-prev:hover,
.mw-hero .carousel-control-next:hover { opacity: 1; }
.mw-hero .carousel-control-prev { left: 0; }
.mw-hero .carousel-control-next { right: 0; }
.mw-hero .carousel-control-prev-icon,
.mw-hero .carousel-control-next-icon {
  width: 28px;
  height: 28px;
  background-color: rgba(var(--mw-blue-rgb), .16);
  border-radius: 50%;
  background-size: 50% 50%;
}
/* Ocultar flechas en mobile (uso swipe + indicadores) */
@media (max-width: 767.98px) {
  .mw-hero .carousel-control-prev,
  .mw-hero .carousel-control-next { display: none; }
}

/* --- 7. Sección destacada con fondo --- */
.mw-section {
  padding: 4rem 0;
}
.mw-section--alt {
  background: var(--mw-surface-soft);
}
.mw-section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}
.mw-section-title h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: .75rem;
}
.mw-section-title p {
  color: var(--mw-muted);
  font-size: 1.0625rem;
  max-width: 600px;
  margin-inline: auto;
}
.mw-section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--mw-yellow);
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* --- 8. Card de producto (mejorada con badge, favoritos, qty selector) --- */
.mw-product-card {
  background: var(--mw-white);
  border: 1px solid var(--mw-border);
  border-radius: .75rem;
  overflow: hidden;
  transition: all .2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}
.mw-product-card:hover {
  border-color: rgba(var(--mw-yellow-rgb), .7);
  box-shadow: 0 14px 30px -12px rgba(var(--mw-magenta-rgb), .22);
  transform: translateY(-3px);
}

/* Badge "Nuevo" / "Stock" / "-X%" en esquina superior izq */
.mw-product-card__badge {
  position: absolute;
  top: .65rem; left: .65rem;
  background: var(--mw-blue);
  color: var(--mw-white);
  font-size: .7rem;
  font-weight: 700;
  padding: .2rem .55rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: .05em;
  z-index: 2;
  box-shadow: 0 2px 4px rgba(0,0,0,.1);
}
.mw-product-card__badge--new     { background: var(--mw-blue); color: var(--mw-white); }
.mw-product-card__badge--sale    { background: var(--mw-magenta); color: var(--mw-white); }
.mw-product-card__badge--stock   { background: #10b981; color: var(--mw-white); }
.mw-product-card__badge--lowstock{ background: #f59e0b; color: var(--mw-white); }

/* Botón favorito (corazón) */
.mw-product-card__fav {
  position: absolute;
  top: .55rem; right: .55rem;
  background: var(--mw-white);
  border: 1px solid var(--mw-border);
  border-radius: 50%;
  width: 34px; height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a1a1aa;
  cursor: pointer;
  z-index: 2;
  transition: all .15s ease;
  font-size: .95rem;
}
.mw-product-card__fav:hover,
.mw-product-card__fav.is-active {
  color: var(--mw-magenta);
  border-color: var(--mw-magenta);
  background: var(--mw-magenta-50);
}
.mw-product-card__fav.is-active i.bi-heart-fill { display: inline; }
.mw-product-card__fav i.bi-heart-fill { display: none; }
.mw-product-card__fav.is-active i.bi-heart { display: none; }

.mw-product-card__image {
  aspect-ratio: 1;
  background: var(--mw-surface-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--mw-border);
}
.mw-product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1.25rem;
  transition: transform .25s ease;
}
.mw-product-card:hover .mw-product-card__image img { transform: scale(1.06); }
.mw-product-card__body {
  padding: 1rem 1.1rem 1.1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.mw-product-card__cat {
  font-size: .68rem;
  color: var(--mw-blue);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 600;
  margin-bottom: .35rem;
}
.mw-product-card__name {
  font-size: .92rem;
  font-weight: 400;
  color: var(--mw-ink);
  line-height: 1.35;
  margin-bottom: .25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5em;
}
.mw-product-card__name a { color: inherit; text-decoration: none; }
.mw-product-card__name a:hover { color: var(--mw-magenta); }
.mw-product-card__price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--mw-blue);
  margin: .35rem 0 .65rem;
  line-height: 1.1;
}

/* Selector cantidad inline (− 1 +) */
.mw-qty-selector {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--mw-border);
  border-radius: .5rem;
  overflow: hidden;
  margin-bottom: .55rem;
  background: var(--mw-white);
}
.mw-qty-selector button {
  width: 28px;
  height: 30px;
  background: transparent;
  border: 0;
  color: var(--mw-magenta);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background .12s;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mw-qty-selector button:hover { background: var(--mw-magenta-50); }
.mw-qty-selector input {
  width: 36px;
  border: 0;
  text-align: center;
  font-size: .85rem;
  font-weight: 500;
  padding: 0;
  background: transparent;
  -moz-appearance: textfield;
  appearance: textfield;
}
.mw-qty-selector input::-webkit-outer-spin-button,
.mw-qty-selector input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.mw-qty-selector input:focus { outline: none; }

.mw-product-card__cta { margin-top: auto; }
.mw-product-card__cta .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  font-size: .82rem;
  padding: .45rem .75rem;
}

/* --- 8b. Chips de categorías rápidas (debajo del navbar) --- */
.mw-chips-bar {
  background: var(--mw-white);
  border-bottom: 1px solid var(--mw-border);
  padding: .65rem 0;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #d4d4d8 transparent;
}
.mw-chips-bar::-webkit-scrollbar { height: 4px; }
.mw-chips-bar::-webkit-scrollbar-track { background: transparent; }
.mw-chips-bar::-webkit-scrollbar-thumb { background: #d4d4d8; border-radius: 2px; }
.mw-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .35rem 1rem;
  background: var(--mw-surface-soft);
  border-radius: 50px;
  font-size: .85rem;
  color: #3f3f46;
  text-decoration: none;
  margin-right: .4rem;
  transition: all .15s ease;
  font-weight: 500;
  border: 1px solid transparent;
}
.mw-chip:hover {
  background: var(--mw-blue-50);
  color: var(--mw-blue);
  border-color: var(--mw-blue-100);
  text-decoration: none;
}
.mw-chip.is-active {
  background: var(--mw-white);
  color: var(--mw-blue);
  border-color: var(--mw-blue);
  box-shadow: inset 0 0 0 1px var(--mw-blue);
}
.mw-chip.is-active:hover {
  background: var(--mw-blue-50);
  color: var(--mw-blue-dark);
}

/* --- 8c. Banners promocionales (estilo Catálogo Pro) --- */
.mw-banner-strip {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 768px) {
  .mw-banner-strip { grid-template-columns: 1fr; }
}
.mw-banner-main {
  background:
    radial-gradient(circle at 92% 10%, rgba(var(--mw-blue-rgb), .16), transparent 34%),
    radial-gradient(circle at 0% 100%, rgba(var(--mw-magenta-rgb), .06), transparent 30%),
    var(--mw-white);
  color: var(--mw-ink);
  border: 1px solid var(--mw-border);
  padding: 2rem 2.25rem;
  border-radius: .75rem;
  position: relative;
  overflow: hidden;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.mw-banner-main::after {
  content: '';
  position: absolute;
  top: -40%; right: -10%;
  width: 280px; height: 280px;
  background: var(--mw-blue-light);
  opacity: .14;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}
.mw-banner-main__eyebrow {
  color: var(--mw-blue);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  font-weight: 600;
  margin-bottom: .35rem;
}
.mw-banner-main__title {
  color: var(--mw-ink);
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: .5rem;
  line-height: 1.2;
}
.mw-banner-main__sub {
  font-size: .95rem;
  opacity: .9;
  margin-bottom: .85rem;
}
.mw-banner-main .btn {
  align-self: flex-start;
}

.mw-banner-side {
  background: linear-gradient(135deg, var(--mw-blue-50), var(--mw-white));
  color: var(--mw-ink);
  border: 1px solid var(--mw-border);
  padding: 1.5rem;
  border-radius: .75rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.mw-banner-side__icon {
  position: absolute;
  top: 1rem; right: 1rem;
  color: var(--mw-blue);
  font-size: 2.25rem;
  opacity: .55;
}
.mw-banner-side__label {
  color: var(--mw-muted);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  font-weight: 500;
}
.mw-banner-side__big {
  color: var(--mw-blue);
  font-size: 1.5rem;
  font-weight: 700;
  margin: .25rem 0;
  line-height: 1;
}
.mw-banner-side__sub {
  font-size: .82rem;
  color: var(--mw-muted);
  opacity: 1;
}

/* --- 9. Sidebar de categorías --- */
.mw-sidebar-card {
  background: var(--mw-white);
  border: 1px solid var(--mw-border);
  border-radius: .75rem;
  overflow: hidden;
}
.mw-sidebar-card__header {
  background: var(--mw-surface-soft);
  color: var(--mw-blue);
  border-bottom: 2px solid var(--mw-blue);
  padding: .85rem 1.1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: .9rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.mw-sidebar-card__header i {
  color: var(--mw-magenta);
}
.mw-categorias { list-style: none; padding: 0; margin: 0; max-height: 480px; overflow-y: auto; }
.mw-categorias li { border-bottom: 1px solid #f4f4f5; }
.mw-categorias li:last-child { border-bottom: 0; }
.mw-categorias a {
  display: block;
  padding: .65rem 1.1rem;
  color: #3f3f46;
  font-size: .92rem;
  text-decoration: none;
  transition: all .15s ease;
  border-left: 3px solid transparent;
}
.mw-categorias a:hover {
  background: var(--mw-blue-50);
  color: var(--mw-blue);
  border-left-color: var(--mw-blue);
  padding-left: 1.4rem;
}
.mw-categorias a.is-active {
  background: var(--mw-blue-50);
  color: var(--mw-blue);
  border-left-color: var(--mw-blue);
  font-weight: 500;
}

/* Scrollbar custom */
.mw-categorias::-webkit-scrollbar { width: 6px; }
.mw-categorias::-webkit-scrollbar-track { background: #fafafa; }
.mw-categorias::-webkit-scrollbar-thumb { background: #d4d4d8; border-radius: 3px; }
.mw-categorias::-webkit-scrollbar-thumb:hover { background: var(--mw-magenta-light); }

/* --- 10. Page header (breadcrumb + título) --- */
.mw-page-header {
  border-bottom: 3px solid var(--mw-blue);
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}
.mw-page-header h1 {
  font-size: 1.75rem;
  margin-bottom: .25rem;
}
.mw-page-header .breadcrumb {
  margin: 0;
  font-size: .85rem;
}
.mw-page-header .breadcrumb-item a { color: #71717a; }
.mw-page-header .breadcrumb-item.active { color: var(--mw-blue); }

/* --- 11. Footer --- */
.mw-footer {
  background: #1D171F;
  color: #C9C1C8;
  padding: 3.5rem 0 1.25rem;
  margin-top: 4rem;
}
.mw-footer h5 {
  color: var(--mw-blue-100);
  font-size: .875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 1rem;
}
.mw-footer a { color: #d4d4d8; text-decoration: none; transition: color .15s; }
.mw-footer a:hover { color: var(--mw-yellow-light); }
.mw-footer ul { list-style: none; padding: 0; margin: 0; }
.mw-footer li { padding: .25rem 0; }
.mw-footer__brand { color: var(--mw-white); font-weight: 600; font-size: 1.125rem; margin-bottom: .5rem; }
.mw-footer__bottom {
  border-top: 1px solid #27272a;
  padding-top: 1.25rem;
  margin-top: 2rem;
  text-align: center;
  font-size: .8rem;
  color: #71717a;
}

/* --- 12. Forms refinados --- */
.form-control, .form-select {
  border-radius: .5rem;
  padding: .55rem .9rem;
  font-weight: 300;
}
.form-control:focus, .form-select:focus {
  border-color: var(--mw-blue);
  box-shadow: 0 0 0 .2rem rgba(var(--mw-yellow-rgb), .18);
}
.form-label { font-weight: 500; font-size: .9rem; color: #3f3f46; margin-bottom: .35rem; }

/* --- 13. Alertas (toques de marca) --- */
.alert { border-radius: .5rem; border-left: 4px solid; }

/* --- 14. Tablas --- */
.mw-table-card {
  background: var(--mw-white);
  border: 1px solid var(--mw-border);
  border-radius: .75rem;
  overflow: hidden;
}
.mw-table-card .table { margin-bottom: 0; }
.mw-table-card thead {
  background: #fafafa;
  border-bottom: 2px solid var(--mw-blue);
}
.mw-table-card th {
  font-weight: 600;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #52525b;
}

/* --- 15. Badges con estilo Microway --- */
.badge.mw-badge-pending  { background: #fef3c7; color: #92400e; }
.badge.mw-badge-success  { background: #d1fae5; color: #065f46; }
.badge.mw-badge-danger   { background: #fee2e2; color: #991b1b; }
.badge.mw-badge-magenta  { background: var(--mw-magenta-100); color: var(--mw-magenta-dark); }

/* --- 16. Animaciones suaves --- */
@media (prefers-reduced-motion: no-preference) {
  .mw-fade-up {
    animation: mwFadeUp .6s ease-out backwards;
  }
}
@keyframes mwFadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* --- 17. Card de categoría (estilo limpio, ícono específico) --- */
.mw-cat-card {
  background: var(--mw-white);
  border: 1px solid #e4e4e7;
  border-radius: .75rem;
  padding: 1.75rem 1rem;
  text-align: center;
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
  transition: all .18s ease;
}
.mw-cat-card:hover {
  border-color: var(--mw-magenta);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(var(--mw-magenta-rgb), .08);
  text-decoration: none;
  color: inherit;
}
.mw-cat-card__icon {
  font-size: 2.4rem;
  color: #3f3f46;          /* gris oscuro neutro, no magenta */
  margin-bottom: .85rem;
  display: block;
  transition: color .18s;
  line-height: 1;
}
.mw-cat-card:hover .mw-cat-card__icon {
  color: var(--mw-magenta);
}
.mw-cat-card__name {
  font-weight: 600;
  font-size: 1rem;
  color: #18181b;
  margin-bottom: .25rem;
  line-height: 1.3;
}
.mw-cat-card__count {
  color: #71717a;
  font-size: .82rem;
}


/* --- 18. Print-friendly --- */
@media print {
  .mw-topbar, .mw-navbar-bottom, .mw-footer, .mw-sidebar-card { display: none; }
}
