/* ==========================================================================
   BMACOW Industrial Theme Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens
   -------------------------------------------------------------------------- */
:root {
  --color-gold: #e5aa24;
  --ux-ink: #20272b;
  --ux-muted: #56616a;
  --ux-paper: #f6f5f1;
  --ux-line: #d9dee1;
  --ux-radius: 8px;
}

/* --------------------------------------------------------------------------
   2. Header & Navigation
   -------------------------------------------------------------------------- */
/* The outer header owns the initial scrim; only the inner surface becomes glass. */
#siteHeader.c-header-video {
  position: fixed;
  top: 12px !important;
  left: 0;
  right: 0;
  width: auto !important;
  margin: 0 clamp(12px, 3vw, 40px);
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  isolation: isolate;
  z-index: 1000;
}

#siteHeader::before {
  content: "";
  position: absolute;
  top: -12px;
  bottom: -64px;
  left: calc(-1 * clamp(12px, 3vw, 40px));
  right: calc(-1 * clamp(12px, 3vw, 40px));
  background: linear-gradient(180deg, rgba(8, 12, 16, .84), rgba(8, 12, 16, .46) 52%, transparent);
  pointer-events: none;
  z-index: -1;
  opacity: 1;
  transition: opacity 240ms ease;
}

#siteHeader .c-header-video__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px !important;
  border: 1px solid transparent !important;
  border-radius: 16px !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transition: background-color 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

#siteHeader.is-scrolled::before { opacity: 0; }

#siteHeader.is-scrolled .c-header-video__inner {
  background: #24292e !important;
  border-color: rgba(255, 255, 255, .22) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .13), 0 8px 28px rgba(0, 0, 0, .16) !important;
}

@supports ((backdrop-filter: blur(20px)) or (-webkit-backdrop-filter: blur(20px))) {
  #siteHeader.is-scrolled .c-header-video__inner {
    background: linear-gradient(135deg, rgba(255, 255, 255, .07), transparent 55%), rgba(22, 27, 32, .68) !important;
    backdrop-filter: blur(20px) saturate(115%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(115%) !important;
  }
}

#siteHeader .custom-logo {
  max-width: 100px;
  height: auto;
}

#siteHeader .ux-desktop-nav a {
  color: #ffffff;
}

.ux-icon-button,
.ux-menu-button,
.ux-header-quote {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  clip-path: none !important;
  filter: none !important;
  color: #ffffff !important;
  min-width: 44px;
  min-height: 44px;
  padding: 8px;
}

.ux-icon-button::before,
.ux-icon-button::after,
.ux-menu-button::before,
.ux-menu-button::after,
.ux-header-quote::before,
.ux-header-quote::after {
  display: none !important;
  content: none !important;
}

#siteHeader .c-header-video__actions,
.ux-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* --------------------------------------------------------------------------
   3. Buttons & Interactive Elements
   -------------------------------------------------------------------------- */
.ux-button,
.btn-solid-gold,
.ux-mobile-bar button {
  background: var(--color-gold);
  color: var(--ux-ink);
  border-radius: 6px;
  clip-path: none;
  box-shadow: none;
  min-width: 44px;
  min-height: 44px;
}

.ux-button--secondary {
  background: transparent;
  color: var(--ux-ink);
  border: 1px solid var(--ux-line);
}

.btn-outline-white,
.ux-hero-video-toggle {
  background: transparent;
  color: #ffffff;
  border: 1px solid var(--ux-line);
}

.ux-button:focus-visible,
.btn-solid-gold:focus-visible,
.btn-outline-white:focus-visible,
.ux-hero-video-toggle:focus-visible,
.ux-icon-button:focus-visible,
.ux-menu-button:focus-visible,
.ux-header-quote:focus-visible,
.ux-mobile-bar button:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  .ux-button,
  .btn-solid-gold,
  .ux-button--secondary,
  .btn-outline-white,
  .ux-hero-video-toggle,
  .ux-icon-button,
  .ux-menu-button,
  .ux-header-quote {
    transition: opacity 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease;
  }

  .ux-button:hover,
  .btn-solid-gold:hover {
    opacity: 0.92;
  }

  .btn-outline-white:hover,
  .ux-hero-video-toggle:hover {
    border-color: #ffffff;
  }
}

.ux-button:disabled,
.btn-solid-gold:disabled,
[disabled] {
  transform: none !important;
  transition: none !important;
  opacity: 0.6;
  cursor: not-allowed;
}

/* --------------------------------------------------------------------------
   4. Surfaces, Cards & Dialogs
   -------------------------------------------------------------------------- */
.ux-product-card,
.ux-doc-card {
  background: #ffffff;
  border-radius: var(--ux-radius);
  border: 1px solid var(--ux-line);
  box-shadow: none;
}

.ux-help,
.ux-product-help,
.ux-document-teaser {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--ux-line);
  border-radius: 0;
  padding: 24px 0;
}

.ux-filters {
  background: transparent;
  border: 0;
  border-radius: 0;
}

.ux-technical-table th {
  background: #edf0f2;
  color: var(--ux-muted);
  border-color: var(--ux-line);
}

.ux-product-meta,
.ux-sku {
  color: var(--ux-muted);
}

.ux-dialog {
  background: var(--ux-paper);
  border-radius: var(--ux-radius);
  border: 1px solid var(--ux-line);
  color: var(--ux-ink);
}

.ux-dialog-close {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   5. Brands, Patterns & Footer Blueprint
   -------------------------------------------------------------------------- */
.ux-brands,
.ux-contact {
  background: var(--ux-ink);
  color: #ffffff;
}

.ux-brands {
  position: relative;
}

.ux-brands::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(circle 3px at 24px 24px, #ffffff 100%, transparent 0),
    radial-gradient(circle 3px at calc(100% - 24px) 24px, #ffffff 100%, transparent 0),
    radial-gradient(circle 3px at 24px calc(100% - 24px), #ffffff 100%, transparent 0),
    radial-gradient(circle 3px at calc(100% - 24px) calc(100% - 24px), #ffffff 100%, transparent 0),
    linear-gradient(90deg, rgba(255, 255, 255, 0.4) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.4) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 48px 48px, 48px 48px;
}

.ux-brands > * {
  position: relative;
  z-index: 1;
}

.ux-brand-grid a {
  border: 0;
  border-radius: 0;
}

.footer-blueprint {
  opacity: 0.06;
  animation: none !important;
  transition: none !important;
}

/* --------------------------------------------------------------------------
   6. Responsive & Accessibility
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  #siteHeader::before { top: -8px; left: -10px; right: -10px; }
  #siteHeader.c-header-video {
    top: 8px !important;
    margin: 0 10px;
  }

  #siteHeader .c-header-video__inner {
    padding: 10px 12px !important;
  }

  #siteHeader .custom-logo {
    max-width: 82px;
  }
}

@media (max-width: 800px) {
  .ux-desktop-nav {
    display: none;
  }
}

@media (max-width: 600px) {
  #siteHeader .ux-header-quote {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ux-category:hover, .ux-button:hover { transform: none; }
}

/* Technical finish: approved marked variant. Decorative, not a circuit diagram. */
.ux-category {
  position: relative;
  isolation: isolate;
  border: 0;
  border-radius: 0;
  background: #78878f;
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
  box-shadow: none;
}
.ux-category::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  background: #fff;
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
}
.ux-category::after {
  content: "";
  position: absolute;
  left: 26px;
  top: 0;
  width: 38px;
  height: 3px;
  background: #bb8719;
}
.ux-category:focus-visible { outline: none; background: #9a6700; }
.ux-category:focus-visible::before { inset: 3px; }
.ux-help--technical {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: block;
  padding: 38px 40px;
  background: var(--ux-ink);
  color: #fff;
  border-top: 2px solid #bb8719;
}
.ux-help--technical > div { max-width: 650px; padding-right: 35px; }
.ux-help--technical .ux-kicker { color: var(--color-gold); }
.ux-help--technical h3 { font-size: clamp(24px, 3vw, 30px); line-height: 1.2; letter-spacing: -.03em; }
.ux-help--technical p { max-width: 560px; color: #e0e4e7; margin-bottom: 24px; }
.ux-help--technical .ux-button {
  background: var(--color-gold);
  color: #181d20;
  border: 1px solid #a77412;
  border-radius: 4px;
  box-shadow: inset 0 1px 0 #ffffff66, inset 0 -2px 0 #492c0066;
}
.ux-help-art {
  position: absolute;
  width: 310px;
  height: 240px;
  right: 25px;
  top: 16px;
  color: #dfb865;
  opacity: .3;
  pointer-events: none;
  z-index: -1;
}
.ux-doc-heading { position: relative; isolation: isolate; overflow: hidden; }
.ux-doc-heading::before {
  content: "";
  position: absolute;
  inset: 0 0 0 46%;
  z-index: -1;
  opacity: .25;
  pointer-events: none;
  background-image: linear-gradient(#46565f 1px, transparent 1px), linear-gradient(90deg, #46565f 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000);
  mask-image: linear-gradient(90deg, transparent, #000);
}
.ux-doc-heading::after { content: "+"; position: absolute; right: 20px; top: 22px; color: #bb8719; font: 22px monospace; pointer-events: none; }
@media (hover: hover) and (pointer: fine) {
  .ux-category:hover { background: #a87918; transform: none; }
  .ux-help--technical .ux-button:hover { background: #edb534; opacity: 1; }
}
@media (max-width: 600px) {
  .ux-help--technical { padding: 28px 22px; }
  .ux-help--technical > div { padding-right: 0; }
  .ux-help--technical p { font-size: 14px; }
  .ux-help--technical .ux-button { width: 100%; font-size: 13px; padding: 12px; }
  .ux-help-art { width: 160px; height: 135px; top: auto; bottom: 0; right: -30px; opacity: .18; }
  .ux-doc-heading::before { left: 66%; background-size: 28px 28px; opacity: .16; }
}

/* Sectores: contenido editorial, sin llamadas comerciales repetidas. */
.ux-sector-grid--editorial { gap: 32px; }
.ux-sector-grid--editorial article { padding: 24px 0 12px; }
.ux-sector-index { display: inline-block; font: 12px monospace; color: #826012; border-top: 3px solid #bb8719; padding-top: 12px; min-width: 32px; }
.ux-sector-grid--editorial h3 { font-size: 21px; line-height: 1.3; letter-spacing: -.02em; }
.ux-sector-grid--editorial p { font-size: 15px; line-height: 1.75; }
.ux-sector-catalog { margin-top: 12px; }

/* Footer continuo: sin tarjeta flotante ni vidrio, con contraste neutral. */
.footer-outer-wrapper { background: #30373d; padding: 0; }
.ux-footer-flat.site-footer-glass {
  max-width: none;
  margin: 0;
  padding: 48px 0 24px;
  border: 0 !important;
  border-radius: 0;
  background: #30373d !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.ux-footer-lead { display: flex; align-items: center; justify-content: space-between; gap: 36px; padding-bottom: 32px; margin-bottom: 36px; border-bottom: 1px solid #ffffff30; }
.ux-footer-lead > div { max-width: 690px; }
.ux-footer-lead h2 { font-family: var(--font-display); font-size: clamp(23px, 2.6vw, 32px); line-height: 1.25; letter-spacing: -.03em; margin: 12px 0; color: #fff; }
.ux-footer-lead p:not(.ux-kicker) { color: #dce1e5; line-height: 1.65; font-size: 14px; margin: 0; }
.ux-footer-lead .ux-kicker { color: var(--color-gold); }
.ux-footer-lead .ux-button { flex-shrink: 0; }
.ux-footer-flat .footer-desc, .ux-footer-flat .footer-links a, .ux-footer-flat .ux-footer-address { color: #dce1e5; }
.ux-footer-flat .footer-bottom { color: #c6cdd3; margin-top: 28px; }
.ux-footer-flat .footer-grid { position: relative; }
.ux-footer-flat .footer-grid::after { content: ""; position: absolute; right: 0; bottom: 0; width: 96px; height: 96px; border: 1px solid #ffffff12; border-radius: 50%; box-shadow: inset 0 0 0 18px #ffffff04; pointer-events: none; }
@media (max-width: 900px) {
  .ux-footer-lead { flex-direction: column; align-items: flex-start; gap: 20px; }
}
@media (max-width: 600px) {
  .ux-sector-grid--editorial { grid-template-columns: 1fr; gap: 8px; }
  .ux-sector-grid--editorial article { padding: 20px 0; border-bottom: 1px solid var(--ux-line); }
  .ux-sector-grid--editorial h3 { margin: 12px 0; }
  .ux-footer-flat.site-footer-glass { padding-top: 32px; }
  .ux-footer-lead .ux-button { width: 100%; }
}

/* Marcas reales de WooCommerce: cinta horizontal operable sin JavaScript. */
.ux-brand-ribbon { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: #aab4bb #20272b; padding: 12px 4px 20px; text-align: center; }
.ux-brand-item { flex: 0 0 180px; min-height: 112px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 12px; padding: 16px; color: #20272b; background: #fff; text-decoration: none; scroll-snap-align: start; border-bottom: 3px solid transparent; }
.ux-brand-item img { max-width: 145px; width: auto; height: 48px; object-fit: contain; }
.ux-brand-item img[hidden] { display: none; }
.ux-brand-item span { font-size: 13px; font-weight: 700; }
.ux-brand-item:hover { border-color: var(--color-gold); }
.ux-brand-controls:not([hidden]) { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 8px; }
.ux-brand-controls button { min-width: 44px; min-height: 44px; border: 1px solid #ffffff70; background: transparent; color: white; font-size: 22px; cursor: pointer; }
.ux-brand-controls button:disabled { opacity: .35; cursor: default; }
@media (max-width: 600px) { .ux-brand-item { flex-basis: 150px; } .ux-brand-item img { max-width: 120px; } }

/* Movimiento continuo sin flechas ni barra visible; desplazamiento táctil conservado. */
.ux-brand-controls { display: none !important; }
.ux-brand-ribbon.is-continuous { scroll-snap-type: none; scrollbar-width: none; scroll-behavior: auto; }
.ux-brand-ribbon.is-continuous::-webkit-scrollbar { display: none; }
/* El logo identifica la marca; el texto sigue disponible para lectores de pantalla. */
.ux-brand-item:has(img:not([hidden])) span { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }