:root {
  --cux-primary: #111827;
  --cux-accent: #f59e0b;
  --cux-success: #16803a;
  --cux-border: #e5e7eb;
  --cux-muted: #667085;
  --cux-bg: #f7f8fa;
  --cux-radius: 18px;
  --cux-shadow: 0 18px 50px rgba(17, 24, 39, .10);
}

.cux-hero,
.cux-access-grid,
.cux-trust-bar,
.cux-products-section,
.cux-shipping-progress,
.cux-whatsapp-button {
  box-sizing: border-box;
}

.cux-hero {
  position: relative;
  overflow: visible;
  padding: clamp(38px, 6vw, 82px);
  border-radius: 28px;
  background:
    radial-gradient(circle at 90% 12%, color-mix(in srgb, var(--cux-accent) 28%, transparent), transparent 28%),
    linear-gradient(135deg, var(--cux-primary), color-mix(in srgb, var(--cux-primary) 84%, #ffffff));
  color: #fff;
  box-shadow: var(--cux-shadow);
}

.cux-hero__content {
  width: min(880px, 100%);
}

.cux-eyebrow {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 7px 11px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.cux-hero h1 {
  max-width: 780px;
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(34px, 5.4vw, 66px);
  line-height: .98;
  letter-spacing: -.045em;
}

.cux-hero > .cux-hero__content > p {
  max-width: 720px;
  margin: 0 0 26px;
  color: rgba(255,255,255,.82);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.55;
}

.cux-product-search {
  position: relative;
  z-index: 15;
  max-width: 840px;
}

.cux-search-box {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(0,0,0,.18);
}

.cux-search-box svg {
  width: 22px;
  height: 22px;
  margin-left: 8px;
  fill: none;
  stroke: #667085;
  stroke-width: 2;
  stroke-linecap: round;
}

.cux-search-box input[type="search"] {
  width: 100%;
  min-width: 0;
  height: 50px;
  padding: 0;
  border: 0 !important;
  outline: 0 !important;
  background: transparent;
  box-shadow: none !important;
  color: #101828;
  font-size: 16px;
}

.cux-search-box button,
.cux-product-card__button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 12px;
  background: var(--cux-accent) !important;
  color: #111827 !important;
  font-weight: 800;
  text-decoration: none !important;
  transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
}

.cux-search-box button:hover,
.cux-product-card__button:hover {
  transform: translateY(-1px);
  filter: brightness(.97);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--cux-accent) 28%, transparent);
}

.cux-search-results {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  overflow: hidden;
  max-height: min(510px, 72vh);
  overflow-y: auto;
  border: 1px solid var(--cux-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(17,24,39,.22);
  color: #101828;
}

.cux-search-status {
  padding: 20px;
  color: var(--cux-muted);
  text-align: center;
}

.cux-search-result {
  display: grid;
  grid-template-columns: 64px minmax(0,1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid #eef0f3;
  color: #101828 !important;
  text-decoration: none !important;
}

.cux-search-result:last-child { border-bottom: 0; }
.cux-search-result:hover,
.cux-search-result.is-active { background: #f8fafc; }
.cux-search-result img { width: 64px; height: 64px; object-fit: contain; border-radius: 10px; background: #f7f8fa; }
.cux-search-result__meta { min-width: 0; }
.cux-search-result__meta strong { display: block; overflow: hidden; color: #101828; text-overflow: ellipsis; white-space: nowrap; }
.cux-search-result__meta small { display: block; margin-top: 3px; color: var(--cux-muted); }
.cux-search-result__aside { text-align: right; }
.cux-search-result__aside .price { display: block; font-weight: 800; }
.cux-search-result__stock { color: var(--cux-success); font-size: 12px; font-weight: 700; }
.cux-search-result__stock.is-out { color: #b42318; }

.cux-hero__microcopy {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 16px;
  color: rgba(255,255,255,.75);
  font-size: 13px;
}

.cux-access-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.cux-access-card {
  display: grid;
  grid-template-columns: 52px minmax(0,1fr) auto;
  gap: 13px;
  align-items: center;
  min-height: 112px;
  padding: 18px;
  border: 1px solid var(--cux-border);
  border-radius: var(--cux-radius);
  background: #fff;
  color: #101828 !important;
  text-decoration: none !important;
  box-shadow: 0 8px 24px rgba(17,24,39,.045);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.cux-access-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--cux-accent) 65%, #fff);
  box-shadow: var(--cux-shadow);
}

.cux-access-card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  background: color-mix(in srgb, var(--cux-accent) 18%, #fff);
}

.cux-access-card__icon svg,
.cux-trust-item__icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--cux-primary);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cux-access-card__body strong,
.cux-access-card__body small { display: block; }
.cux-access-card__body strong { margin-bottom: 4px; font-size: 15px; line-height: 1.25; }
.cux-access-card__body small { color: var(--cux-muted); font-size: 12px; line-height: 1.35; }
.cux-access-card__arrow { font-size: 22px; }

.cux-trust-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--cux-border);
  border-radius: var(--cux-radius);
  background: var(--cux-border);
}

.cux-trust-item {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 92px;
  padding: 16px 18px;
  background: #fff;
}

.cux-trust-item__icon {
  display: grid;
  flex: 0 0 42px;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #f4f6f8;
}
.cux-trust-item strong,
.cux-trust-item small { display: block; }
.cux-trust-item strong { color: #101828; font-size: 14px; }
.cux-trust-item small { margin-top: 2px; color: var(--cux-muted); font-size: 12px; }

.cux-section-title {
  margin: 0 0 20px;
  color: #101828;
  font-size: clamp(26px, 3vw, 40px);
  letter-spacing: -.035em;
}

.cux-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 18px;
}

.cux-product-card {
  display: flex;
  overflow: hidden;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--cux-border);
  border-radius: var(--cux-radius);
  background: #fff;
  box-shadow: 0 8px 28px rgba(17,24,39,.055);
  transition: transform .2s ease, box-shadow .2s ease;
}
.cux-product-card:hover { transform: translateY(-4px); box-shadow: var(--cux-shadow); }
.cux-product-card__media { position: relative; display: grid; aspect-ratio: 1 / .82; place-items: center; padding: 22px; background: #f8fafc; }
.cux-product-card__media img { width: 100%; height: 100%; object-fit: contain; transition: transform .25s ease; }
.cux-product-card:hover .cux-product-card__media img { transform: scale(1.035); }
.cux-stock-badge { position: absolute; z-index: 1; top: 12px; left: 12px; padding: 6px 9px; border-radius: 999px; background: #dcfae6; color: #067647; font-size: 11px; font-weight: 800; }
.cux-stock-badge.is-out-of-stock { background: #fee4e2; color: #b42318; }
.cux-product-card__body { display: flex; flex: 1; flex-direction: column; padding: 18px; }
.cux-product-card__sku { margin-bottom: 6px; color: var(--cux-muted); font-size: 11px; font-weight: 750; letter-spacing: .03em; text-transform: uppercase; }
.cux-product-card h3 { margin: 0 0 12px; font-size: 16px; line-height: 1.35; }
.cux-product-card h3 a { color: #101828 !important; text-decoration: none !important; }
.cux-product-card__price { margin-top: auto; margin-bottom: 15px; color: #101828; font-size: 18px; font-weight: 850; }
.cux-product-card__price del { color: #98a2b3; font-size: 13px; font-weight: 500; }
.cux-product-card__price ins { text-decoration: none; }
.cux-product-card__button { width: 100%; font-size: 13px; }

.cux-shipping-progress {
  margin: 12px 0;
  padding: 13px 14px;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  background: #f9fafb;
}
.cux-shipping-progress__message { margin-bottom: 8px; color: #344054; font-size: 13px; font-weight: 700; }
.cux-shipping-progress__track { overflow: hidden; height: 7px; border-radius: 999px; background: #e4e7ec; }
.cux-shipping-progress__track span { display: block; height: 100%; border-radius: inherit; background: var(--cux-accent); transition: width .35s ease; }
.cux-shipping-progress.is-complete { border-color: #abefc6; background: #ecfdf3; }
.cux-shipping-progress.is-complete .cux-shipping-progress__message { color: #067647; }
.cux-shipping-progress.is-complete .cux-shipping-progress__track span { background: var(--cux-success); }

.cux-whatsapp-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid #1f9d55;
  border-radius: 12px;
  background: #fff;
  color: #117a3c !important;
  font-weight: 800;
  text-align: center;
  text-decoration: none !important;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.cux-whatsapp-button:hover { transform: translateY(-1px); background: #ecfdf3; color: #05603a !important; }
.cux-whatsapp-button--product { width: 100%; margin-top: 10px; }

/* Checkout clásico */
.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row select,
.woocommerce-checkout .form-row textarea {
  min-height: 48px;
  border: 1px solid #d0d5dd;
  border-radius: 10px;
  box-shadow: none;
}
.woocommerce-checkout .form-row textarea { min-height: 96px; padding-top: 12px; }
.woocommerce-checkout #place_order { min-height: 54px; border-radius: 12px; font-weight: 850; }

@media (max-width: 1024px) {
  .cux-access-grid,
  .cux-trust-bar,
  .cux-product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 640px) {
  .cux-hero { padding: 30px 18px; border-radius: 20px; }
  .cux-hero h1 { font-size: 37px; }
  .cux-search-box { grid-template-columns: 22px minmax(0,1fr); padding: 9px 11px; }
  .cux-search-box button { grid-column: 1 / -1; width: 100%; }
  .cux-search-result { grid-template-columns: 52px minmax(0,1fr); }
  .cux-search-result img { width: 52px; height: 52px; }
  .cux-search-result__aside { grid-column: 2; text-align: left; }
  .cux-hero__microcopy { display: grid; }
  .cux-access-grid,
  .cux-trust-bar,
  .cux-product-grid { grid-template-columns: 1fr; }
  .cux-trust-bar { gap: 0; background: #fff; }
  .cux-trust-item { min-height: 76px; border-bottom: 1px solid var(--cux-border); }
  .cux-trust-item:last-child { border-bottom: 0; }
  .cux-product-card__media { aspect-ratio: 1 / .72; }
}

/* Barra global debajo del encabezado del tema */
.cux-global-trust {
  position: relative;
  z-index: 30;
  width: 100%;
  padding: 0;
  background: #fff;
  box-shadow: 0 1px 0 rgba(17,24,39,.08);
}

.cux-global-trust .cux-trust-bar {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.cux-global-trust .cux-trust-item {
  min-height: 62px;
  padding: 10px 16px;
  border-right: 1px solid var(--cux-border);
}

.cux-global-trust .cux-trust-item:last-child {
  border-right: 0;
}

.cux-global-trust .cux-trust-item__icon {
  flex-basis: 34px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.cux-global-trust .cux-trust-item__icon svg {
  width: 18px;
  height: 18px;
}

.cux-global-trust .cux-trust-item strong {
  font-size: 13px;
}

.cux-global-trust .cux-trust-item small {
  font-size: 11px;
}

@media (max-width: 767px) {
  .cux-global-trust {
    overflow: hidden;
  }

  .cux-global-trust .cux-trust-bar {
    display: flex;
    width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .cux-global-trust .cux-trust-bar::-webkit-scrollbar {
    display: none;
  }

  .cux-global-trust .cux-trust-item {
    flex: 0 0 72%;
    min-height: 58px;
    padding: 8px 14px;
    border-right: 1px solid var(--cux-border);
    border-bottom: 0;
    scroll-snap-align: start;
  }
}


/* Versión 0.2.2: grabadoras, cotización y carrito vacío */
.cux-machine-actions { display: grid; gap: 10px; margin-top: 10px; }
.cux-demo-button,
.cux-primary-button,
.cux-secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 12px;
  font-weight: 800;
  text-align: center;
  text-decoration: none !important;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.cux-demo-button,
.cux-primary-button { border: 1px solid #ed1c24; background: #ed1c24; color: #fff !important; }
.cux-demo-button:hover,
.cux-primary-button:hover { transform: translateY(-1px); background: #cf171e; color: #fff !important; box-shadow: 0 10px 24px rgba(237,28,36,.18); }
.cux-secondary-button { border: 1px solid #d0d5dd; background: #fff; color: #101828 !important; }
.cux-secondary-button:hover { transform: translateY(-1px); border-color: #98a2b3; color: #101828 !important; }
.cux-primary-button--full { width: 100%; border: 0; cursor: pointer; }
.cux-eyebrow--light { border-color: #e4e7ec; background: #f7f8fa; color: #344054; }

.cux-laser-archive .widget-area,
.cux-laser-archive .sidebar,
.cux-laser-archive #secondary { display: none !important; }
.cux-laser-archive .content-area,
.cux-laser-archive #primary { width: 100% !important; max-width: none !important; }
.cux-laser-archive-intro { margin: 0 0 28px; padding: clamp(24px,4vw,42px); border: 1px solid #e4e7ec; border-radius: 22px; background: linear-gradient(135deg,#fff,#f7f8fa); }
.cux-laser-archive-intro h2 { margin: 10px 0 10px; font-size: clamp(28px,4vw,46px); letter-spacing: -.035em; }
.cux-laser-archive-intro p { max-width: 760px; margin: 0; color: #667085; font-size: 17px; line-height: 1.6; }

.cux-laser-comparison { margin: 52px 0 20px; padding: clamp(24px,4vw,42px); border: 1px solid #e4e7ec; border-radius: 24px; background: #fff; box-shadow: 0 18px 50px rgba(17,24,39,.07); }
.cux-laser-comparison__heading h2 { margin: 10px 0 8px; font-size: clamp(28px,4vw,44px); letter-spacing: -.035em; }
.cux-laser-comparison__heading p { margin: 0 0 24px; color: #667085; }
.cux-comparison-table { overflow: hidden; border: 1px solid #e4e7ec; border-radius: 16px; }
.cux-comparison-row { display: grid; grid-template-columns: 1.05fr 1fr 1fr; }
.cux-comparison-row > div { min-width: 0; padding: 15px 16px; border-right: 1px solid #e4e7ec; border-bottom: 1px solid #e4e7ec; }
.cux-comparison-row > div:last-child { border-right: 0; }
.cux-comparison-row:last-child > div { border-bottom: 0; }
.cux-comparison-row--head { background: #f7f8fa; font-weight: 850; }
.cux-comparison-row--head a { color: #101828 !important; text-decoration: none !important; }
.cux-comparison-row [role="rowheader"] { color: #344054; font-weight: 750; }
.cux-comparison-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.cux-comparison-note { margin: 16px 0 0; color: #667085; font-size: 12px; line-height: 1.5; }
.cux-admin-note { padding: 12px 14px; border-left: 4px solid #f59e0b; background: #fffaeb; }

.cux-quote-wrap { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: clamp(28px,5vw,72px); align-items: start; max-width: 1180px; margin: 0 auto; padding: clamp(28px,5vw,64px) 18px; }
.cux-quote-intro { position: sticky; top: 110px; }
.cux-quote-intro h2 { margin: 12px 0; font-size: clamp(32px,4.5vw,52px); line-height: 1.03; letter-spacing: -.045em; }
.cux-quote-intro > p { color: #667085; font-size: 17px; line-height: 1.65; }
.cux-quote-intro ul { margin: 24px 0 0; padding-left: 20px; }
.cux-quote-intro li { margin-bottom: 10px; }
.cux-quote-card { padding: clamp(22px,4vw,36px); border: 1px solid #e4e7ec; border-radius: 22px; background: #fff; box-shadow: 0 18px 50px rgba(17,24,39,.08); }
.cux-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.cux-field { margin: 0; }
.cux-field--full { grid-column: 1 / -1; }
.cux-field label { display: block; margin-bottom: 7px; color: #344054; font-size: 13px; font-weight: 750; }
.cux-field input,
.cux-field select,
.cux-field textarea { width: 100%; min-height: 50px; padding: 11px 13px; border: 1px solid #d0d5dd; border-radius: 10px; background: #fff; box-shadow: none; }
.cux-field textarea { min-height: 112px; resize: vertical; }
.cux-field input:focus,
.cux-field select:focus,
.cux-field textarea:focus { outline: 2px solid rgba(237,28,36,.14); border-color: #ed1c24; }
.cux-consent { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0; color: #667085; font-size: 12px; line-height: 1.5; }
.cux-consent input { flex: 0 0 auto; margin-top: 3px; }
.cux-form-notice { margin-bottom: 18px; padding: 13px 15px; border-radius: 10px; font-weight: 700; }
.cux-form-notice.is-success { border: 1px solid #abefc6; background: #ecfdf3; color: #067647; }
.cux-form-notice.is-error { border: 1px solid #fecdca; background: #fef3f2; color: #b42318; }
.cux-honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.cux-empty-cart { display: grid; gap: 28px; margin-top: 30px; }
.cux-empty-cart__heading { text-align: center; }
.cux-empty-cart__heading h2 { margin: 0 0 8px; font-size: clamp(26px,4vw,42px); }
.cux-empty-cart__heading p { margin: 0; color: #667085; }
.cux-empty-cart .cux-hero { padding: clamp(24px,4vw,42px); }
.cux-empty-cart .cux-hero h1 { font-size: clamp(28px,4vw,44px); }

@media (max-width: 767px) {
  .cux-comparison-row { grid-template-columns: 1fr; }
  .cux-comparison-row > div { border-right: 0; }
  .cux-comparison-row > div:first-child { background: #f7f8fa; font-weight: 850; }
  .cux-comparison-row--head > div:first-child { display: none; }
  .cux-comparison-actions { display: grid; }
  .cux-quote-wrap { grid-template-columns: 1fr; }
  .cux-quote-intro { position: static; }
  .cux-form-grid { grid-template-columns: 1fr; }
  .cux-field--full { grid-column: auto; }
}
