/*
 * Nexora — woocommerce.css  ·  v1.9.3
 * Pantallas de tienda calcadas de los mockups de MexiApps:
 *   shop.html · pagina_producto.html · cart.html · checkout.html · theankyou.html
 *
 * Referencia móvil 390 px. Cada medida está traducida 1:1 desde las clases
 * Tailwind del mockup (px-5 = 20px, mt-8 = 32px, rounded-[22px] = 22px…).
 * La paleta (--nxt-*) la define tienda.css, que se encola antes que este archivo.
 */

/* ══════════════════════════════════════════════════
   BASE
══════════════════════════════════════════════════ */
body.nx-woo-app {
  background: var(--nxt-page-bg, #F8FAFC);
  color: var(--nxt-ink, #0F172A);
}
body.nx-woo-app .nx-woo { padding-top: 0; padding-bottom: 8px; }

/* WooCommerce imprime siempre el contenedor de avisos aunque esté vacío, y su
   hoja de estilos le pone margen: eso dejaba una franja en blanco bajo la
   cabecera fija. Lo mismo con el primer bloque del contenido. */
body.nx-woo-app .woocommerce-notices-wrapper:empty { display: none; margin: 0; }
body.nx-woo-app .nx-woo > *:first-child { margin-top: 0; }
body.nx-woo-app .site-main,
body.nx-woo-app .content-area,
body.nx-woo-app #primary { margin-top: 0; padding-top: 0; }

/* Secciones: px-5 y separación por defecto mt-8 (32px) */
.nx-woo-sec { padding: 0 20px; margin-top: 32px; }
.nx-woo-sec--first { margin-top: 24px; }        /* pt-6 del mockup */
.nx-woo-sec--bleed { padding: 0; }
.nx-woo-h2 { font-size: 16px; font-weight: 700; letter-spacing: -.025em; color: var(--nxt-ink); margin-bottom: 16px; }
.nx-woo-sec-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.nx-woo-sec-head .nx-woo-h2 { margin-bottom: 0; }
.nx-woo-page-title { font-size: 24px; font-weight: 700; line-height: 1.25; letter-spacing: -.025em; color: var(--nxt-ink); }
.nx-woo-page-sub { font-size: 14px; color: var(--nxt-sub); margin-top: 4px; }

.nx-woo-card {
  background: #fff;
  border: 1px solid var(--nxt-hairline, #F3F4F6);
  border-radius: 22px;
  box-shadow: var(--nxt-shadow-premium, 0 10px 40px -15px rgba(37,99,235,.1));
}
.nx-woo-card-title { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--nxt-ink); }
.nx-ico { flex-shrink: 0; }

/* ── Botones ── */
.nx-woo-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 20px; border-radius: 16px; border: 1px solid transparent;
  font-size: 14px; font-weight: 600; font-family: inherit; line-height: 1.2;
  cursor: pointer; text-align: center; transition: background .2s, border-color .2s, color .2s, transform .12s;
}
.nx-woo-btn:active { transform: scale(.97); }
.nx-woo-btn--primary { background: var(--nxt-primary, #2563EB); color: #fff; box-shadow: 0 10px 15px -3px rgba(191,219,254,.9), 0 4px 6px -4px rgba(191,219,254,.9); }
.nx-woo-btn--primary:hover { background: var(--nxt-primary-h, #1D4ED8); color: #fff; }
.nx-woo-btn--outline { background: #fff; color: var(--nxt-primary); border-color: var(--nxt-primary); }
.nx-woo-btn--outline:hover { background: var(--nxt-blue-50, #EFF6FF); }
.nx-woo-btn--soft { background: var(--nxt-page-bg, #F8FAFC); color: var(--nxt-ink); border-color: #E5E7EB; font-size: 12px; }
.nx-woo-btn--soft:hover { background: #F1F5F9; }
.nx-woo-btn--white { background: #fff; color: var(--nxt-primary); }
.nx-woo-btn--ghost { background: rgba(255,255,255,.15); color: #fff; border-color: rgba(255,255,255,.3); backdrop-filter: blur(12px); }
.nx-woo-btn--disabled { background: #E2E8F0; color: #94A3B8; cursor: not-allowed; }
.nx-woo-btn--block { width: 100%; }
.nx-woo-btn--sm { padding: 9px 12px; border-radius: 10px; font-size: 12px; gap: 6px; }

/* ── Campos ── */
.nx-woo-input,
body.nx-woo-app .input-text,
body.nx-woo-app input[type="text"],
body.nx-woo-app input[type="email"],
body.nx-woo-app input[type="tel"],
body.nx-woo-app input[type="password"],
body.nx-woo-app input[type="search"],
body.nx-woo-app textarea,
body.nx-woo-app select {
  width: 100%; background: var(--nxt-page-bg, #F8FAFC);
  border: 1.5px solid #E2E8F0; border-radius: 12px;
  padding: 14px 16px; font-family: inherit; font-size: 14px; color: var(--nxt-ink);
  outline: none; transition: border-color .2s, box-shadow .2s;
}
body.nx-woo-app select { appearance: none; -webkit-appearance: none; padding-right: 34px; background-image: none; }
.nx-woo-input:focus,
body.nx-woo-app .input-text:focus,
body.nx-woo-app input:focus,
body.nx-woo-app textarea:focus,
body.nx-woo-app select:focus { border-color: var(--nxt-primary); box-shadow: 0 0 0 4px rgba(37,99,235,.1); }
body.nx-woo-app ::placeholder { color: #94A3B8; }

/* ══════════════════════════════════════════════════
   CABECERA CONTEXTUAL (h-[78px] del mockup)
══════════════════════════════════════════════════ */
.nx-woo-topbar { display: none; }

body.nx-woo-app .nx-woo-topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
  height: 78px; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: rgba(255,255,255,.8);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--nxt-hairline, #F3F4F6);
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
}
.nx-woo-iconbtn {
  position: relative; flex-shrink: 0;
  width: 48px; height: 48px; border-radius: 16px;
  background: #fff; border: 1px solid #E5E7EB; box-shadow: 0 1px 2px rgba(0,0,0,.05);
  display: flex; align-items: center; justify-content: center;
  color: var(--nxt-ink); cursor: pointer; padding: 0;
}
.nx-woo-iconbtn:hover { background: #F9FAFB; }
.nx-woo-iconbtn--danger:hover { background: #FEF2F2; border-color: #FECACA; color: #EF4444; }
.nx-woo-iconbtn--plain { background: none; border: none; box-shadow: none; color: var(--nxt-primary); cursor: default; }
.nx-woo-badge-count {
  position: absolute; top: 6px; right: 6px; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px; background: var(--nxt-primary); color: #fff;
  font-size: 9px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.nx-woo-topbar-title { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.nx-woo-topbar-name { font-size: 17px; font-weight: 700; letter-spacing: -.025em; line-height: 1; color: var(--nxt-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
.nx-woo-topbar-sub { font-size: 11px; color: var(--nxt-sub); margin-top: 4px; }
.nx-woo-topbar-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.nx-woo-topbar-brand { display: flex; align-items: center; gap: 10px; margin: 0 auto; }
.nx-woo-topbar-brand-name { font-size: 17px; font-weight: 700; letter-spacing: -.025em; color: var(--nxt-ink); }

/* En móvil la topbar sustituye al nav del sitio */
@media (max-width: 768px) {
  body.nx-woo-app .nx-nav { display: none !important; }
  body.nx-woo-app { padding-top: 78px !important; }
}
@media (max-width: 768px) {
  body.nx-woo-app.admin-bar .nx-woo-topbar { top: 46px; }
  body.nx-woo-app.admin-bar { padding-top: calc(78px + 46px) !important; }
}
/* En escritorio manda el nav normal del sitio */
@media (min-width: 769px) {
  body.nx-woo-app .nx-woo-topbar { display: none; }
}

/* ══════════════════════════════════════════════════
   BARRA DE ACCIÓN FIJA
══════════════════════════════════════════════════ */
.nx-woo-bottombar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9998;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--nxt-hairline, #F3F4F6);
  box-shadow: 0 -10px 30px -10px rgba(0,0,0,.1);
}
.nx-woo-bottombar-total { display: flex; flex-direction: column; flex-shrink: 0; }
.nx-woo-bottombar-label { font-size: 10px; font-weight: 500; color: var(--nxt-sub); }
.nx-woo-bottombar-amount { font-size: 20px; font-weight: 700; color: var(--nxt-ink); line-height: 1.2; }
.nx-woo-bottombar-amount del { display: none; }
.nx-woo-bottombar-amount ins { text-decoration: none; }
.nx-woo-bottombar-cta { flex: 1; padding: 14px 16px; }
.nx-woo-bottombar--single .nx-woo-bottombar-cta { flex: 1 1 100%; }
/* Espacio para que la barra fija no tape el final del contenido.
   Va con !important porque main.css/tienda.css también tocan el padding del body. */
body.nx-has-bottombar { padding-bottom: calc(96px + env(safe-area-inset-bottom)) !important; }
body.nx-has-bottombar .nx-footer,
body.nx-has-bottombar .site-footer { margin-bottom: 0; }

/* Si el carrito/pago los pinta un bloque de WooCommerce, el diseño del tema no
   se aplica: al menos evitamos que la barra fija duplique el botón nativo. */
body.nx-woo-blocks .nx-woo-bottombar-cta { display: none; }
body.nx-woo-blocks .nx-woo-bottombar { justify-content: flex-start; }
.nx-woo-archive-desc { font-size: 14px; line-height: 1.7; color: var(--nxt-sub); }
.nx-woo-archive-desc p { margin-bottom: 10px; }

/* ══════════════════════════════════════════════════
   CATÁLOGO (shop.html)
══════════════════════════════════════════════════ */
.nx-woo-banner {
  position: relative; overflow: hidden;
  height: 140px; padding: 24px; border-radius: 24px;
  display: flex; flex-direction: column; justify-content: center;
  background: linear-gradient(135deg, var(--nxt-primary, #2563EB), var(--nxt-secondary, #3B82F6));
  color: #fff; box-shadow: var(--nxt-shadow-premium);
}
.nx-woo-banner-blob { position: absolute; border-radius: 999px; }
.nx-woo-banner-blob--1 { width: 128px; height: 128px; background: rgba(255,255,255,.1); top: -40px; right: -40px; }
.nx-woo-banner-blob--2 { width: 96px; height: 96px; background: rgba(96,165,250,.2); bottom: -32px; left: -32px; }
.nx-woo-banner-body { position: relative; z-index: 1; }
.nx-woo-banner-title { font-size: 20px; font-weight: 700; letter-spacing: -.025em; margin-bottom: 4px; color: #fff; }
.nx-woo-banner-sub { font-size: 14px; color: rgba(255,255,255,.8); }

.nx-woo-search { position: relative; }
.nx-woo-search-ico { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--nxt-sub); display: flex; }
.nx-woo-search input[type="search"] {
  background: #fff; border: 1px solid #E5E7EB; border-radius: 16px;
  padding: 14px 16px 14px 44px; font-size: 14px;
}

.nx-woo-chips { display: flex; gap: 8px; overflow-x: auto; padding: 0 20px 8px; scrollbar-width: none; -ms-overflow-style: none; }
.nx-woo-chips::-webkit-scrollbar { display: none; }
.nx-woo-chip {
  flex-shrink: 0; padding: 8px 16px; border-radius: 999px;
  background: #fff; border: 1px solid #E5E7EB;
  font-size: 12px; font-weight: 600; color: var(--nxt-sub); white-space: nowrap;
}
.nx-woo-chip:hover { background: #F9FAFB; }
.nx-woo-chip.is-active { background: var(--nxt-primary); border-color: var(--nxt-primary); color: #fff; }

.nx-woo-toolbar { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }
.nx-woo-count { font-size: 12px; font-weight: 500; color: var(--nxt-sub); }
.nx-woo-count .woocommerce-result-count { margin: 0; font-size: 12px; color: var(--nxt-sub); }
.nx-woo-orderby { position: relative; }
.nx-woo-orderby form { margin: 0; }
.nx-woo-orderby select {
  width: auto; background: #fff; border: 1px solid #E5E7EB; border-radius: 12px;
  padding: 8px 30px 8px 12px; font-size: 12px; font-weight: 600; color: var(--nxt-ink);
}
.nx-woo-orderby::after {
  content: ''; position: absolute; right: 12px; top: 50%; width: 7px; height: 7px;
  border-right: 1.5px solid var(--nxt-sub); border-bottom: 1.5px solid var(--nxt-sub);
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}

/* Grilla de productos: 2 columnas, gap 16 */
body.nx-woo-app ul.products {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
  list-style: none; margin: 0; padding: 0;
}
body.nx-woo-app ul.products::before,
body.nx-woo-app ul.products::after { content: none; }

.nx-woo-pcard {
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--nxt-hairline, #F3F4F6); border-radius: 18px;
  box-shadow: var(--nxt-shadow-premium);
  transition: box-shadow .3s ease;
  display: flex; flex-direction: column;
  width: auto !important; margin: 0 !important; float: none !important;
}
.nx-woo-pcard:hover { box-shadow: var(--nxt-shadow-float); }
.nx-woo-pcard-media { position: relative; display: block; height: 110px; }
.nx-woo-pcard-media .nx-product-img-placeholder { height: 110px; }
.nx-woo-pcard-sale {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  background: #EF4444; color: #fff; font-size: 9px; font-weight: 700;
  padding: 2px 8px; border-radius: 999px;
}
.nx-woo-pcard-body { padding: 12px; display: flex; flex-direction: column; flex: 1; }
.nx-woo-pcard-badge {
  display: inline-block; align-self: flex-start;
  background: var(--nxt-blue-50, #EFF6FF); color: var(--nxt-primary);
  font-size: 8px; font-weight: 600; padding: 2px 6px; border-radius: 999px; margin-bottom: 6px;
}
.nx-woo-pcard-title { font-size: 14px; font-weight: 700; line-height: 1.25; color: var(--nxt-ink); margin-bottom: 4px; }
.nx-woo-pcard-title a { color: inherit; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nx-woo-pcard-rating { display: flex; align-items: center; gap: 4px; margin-bottom: 8px; }
.nx-woo-pcard-rating-num { font-size: 10px; font-weight: 700; color: var(--nxt-ink); }
.nx-woo-pcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.nx-woo-pcard-price { font-size: 14px; font-weight: 700; color: var(--nxt-ink); }
.nx-woo-pcard-price del { display: block; font-size: 10px; font-weight: 500; color: var(--nxt-sub); }
.nx-woo-pcard-price ins { text-decoration: none; }
.nx-woo-pcard-add {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 8px;
  background: var(--nxt-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.nx-woo-pcard-add:hover { background: var(--nxt-primary-h); color: #fff; }
.nx-woo-pcard-add.loading { opacity: .55; }
.nx-woo-pcard-add.added::after { content: '✓'; font-size: 12px; }
/* Modo catálogo: el botón abre la cotización, así que no muestra el ✓ del carrito */
.nx-woo-pcard-add--quote.added::after { content: none; }

/* ══════════════════════════════════════════════════
   AIRE SUPERIOR DEL CATÁLOGO
   La regla `.nx-woo > *:first-child { margin-top: 0 }` (necesaria para que
   WooCommerce no deje una franja bajo la cabecera fija) también anulaba el
   margen del banner: quedaba pegado al header. Se devuelve el aire como
   padding del contenedor, y solo en el catálogo — la ficha de producto SÍ
   quiere su imagen a sangre pegada arriba.
══════════════════════════════════════════════════ */
body.nx-woo-app.nx-woo-view-shop .nx-woo { padding-top: 22px; }
@media (min-width: 769px) {
  body.nx-woo-app.nx-woo-view-shop .nx-woo { padding-top: 32px; }
}
.nx-woo-pcard .added_to_cart { display: none; }

.nx-woo-stars { display: inline-flex; letter-spacing: .5px; font-size: 12px; line-height: 1; }
.nx-woo-stars--sm { font-size: 10px; }
.nx-woo-stars-fill { color: #FBBF24; }
.nx-woo-stars-empty { color: #E2E8F0; }

.nx-woo-sec--loadmore { margin-top: 32px; }
.nx-woo-loadmore { width: 100%; }

.nx-woo-sec--nl { margin-top: 40px; }
.nx-woo-nl { padding: 24px; text-align: center; }
.nx-woo-nl-title { font-size: 18px; font-weight: 700; color: var(--nxt-ink); margin-bottom: 8px; }
.nx-woo-nl-sub { font-size: 14px; color: var(--nxt-sub); margin-bottom: 16px; }
.nx-woo-nl-form { display: flex; gap: 6px; background: var(--nxt-page-bg); border: 1px solid #E5E7EB; border-radius: 12px; padding: 6px; }
.nx-woo-nl-form input { flex: 1; min-width: 0; background: transparent; border: none; padding: 8px 12px; font-size: 14px; }
.nx-woo-nl-form input:focus { box-shadow: none; }
.nx-woo-nl-form .nx-woo-btn { padding: 8px 16px; border-radius: 8px; font-size: 14px; }

.nx-woo-empty { padding: 32px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.nx-woo-empty-ico { width: 56px; height: 56px; border-radius: 18px; background: var(--nxt-blue-50); color: var(--nxt-primary); display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.nx-woo-empty-title { font-size: 18px; font-weight: 700; color: var(--nxt-ink); }
.nx-woo-empty-sub { font-size: 14px; color: var(--nxt-sub); margin-bottom: 8px; }

/* ══════════════════════════════════════════════════
   FICHA DE PRODUCTO (pagina_producto.html)
══════════════════════════════════════════════════ */
/* La caja toma la proporción real de la imagen (--nx-hero-ratio, puesta en la
   plantilla), así no quedan franjas de fondo arriba y abajo. */
.nx-woo-hero {
  position: relative; overflow: hidden;
  aspect-ratio: var(--nx-hero-ratio, 1.6);
  max-height: 72vh;
  background: var(--nxt-page-bg, #F8FAFC);
}
.nx-woo-hero-track {
  display: flex; height: 100%; overflow-x: auto;
  scroll-snap-type: x mandatory; scrollbar-width: none; -ms-overflow-style: none;
}
.nx-woo-hero-track::-webkit-scrollbar { display: none; }
.nx-woo-hero-slide { flex: 0 0 100%; scroll-snap-align: start; display: flex; align-items: center; justify-content: center; }
.nx-woo-hero-slide img { width: 100%; height: 100%; object-fit: contain; display: block; }
.nx-woo-hero-fallback {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--nxt-primary), var(--nxt-secondary));
}
.nx-woo-hero-dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.nx-woo-hero-dots span { width: 6px; height: 6px; border-radius: 999px; background: rgba(15,23,42,.18); transition: width .2s, background .2s; }
.nx-woo-hero-dots span.is-active { width: 24px; background: var(--nxt-primary); }

/* Fondo de la galería (Personalizar → 🛍️ Tienda) */
body.nx-pdp-bg-white .nx-woo-hero { background: #fff; }
body.nx-pdp-bg-gradient .nx-woo-hero {
  aspect-ratio: auto; height: 360px;
  background: linear-gradient(135deg, var(--nxt-primary), var(--nxt-secondary));
}
body.nx-pdp-bg-gradient .nx-woo-hero-slide { padding: 24px; }
body.nx-pdp-bg-gradient .nx-woo-hero-slide img {
  width: auto; height: auto; max-width: 100%; max-height: 100%;
  border-radius: 16px; box-shadow: 0 25px 50px -12px rgba(0,0,0,.25);
}
body.nx-pdp-bg-gradient .nx-woo-hero-dots span { background: rgba(255,255,255,.4); }
body.nx-pdp-bg-gradient .nx-woo-hero-dots span.is-active { background: #fff; }

.nx-woo-tags { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.nx-woo-tag {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--nxt-blue-50); color: var(--nxt-primary);
  font-size: 10px; font-weight: 600; padding: 4px 10px; border-radius: 999px;
}
.nx-woo-tag--hot { background: #FFF7ED; color: #F97316; }
.nx-woo-title { font-size: 24px; font-weight: 700; line-height: 1.25; letter-spacing: -.025em; color: var(--nxt-ink); margin-bottom: 8px; }
.nx-woo-excerpt { font-size: 14px; line-height: 1.625; color: var(--nxt-sub); margin-bottom: 16px; }
.nx-woo-excerpt p { margin-bottom: 8px; }
.nx-woo-metarow { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--nxt-hairline); }
.nx-woo-metarow-rating { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.nx-woo-metarow-rating strong { font-weight: 700; color: var(--nxt-ink); }
.nx-woo-metarow-sub { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--nxt-sub); }
.nx-woo-metarow-dot { width: 4px; height: 4px; border-radius: 999px; background: #D1D5DB; }

/* Fila del desarrollador: logo + nombre a la izquierda, badges de
   disponibilidad pegados a la DERECHA, en la misma línea.
   El bloque del nombre puede encogerse (min-width:0) para que el badge quepa
   siempre; si el nombre es muy largo se recorta con puntos suspensivos en vez
   de empujar el badge a una segunda línea. */
.nx-woo-seller { display: flex; align-items: center; gap: 12px; }
.nx-woo-seller-body { min-width: 0; flex: 0 1 auto; }
.nx-woo-seller-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nx-woo-badges {
  display: flex; align-items: center; gap: 8px;
  margin-left: auto; flex-shrink: 0;
}
.nx-woo-badge-store {
  display: inline-flex; align-items: center;
  border-radius: 8px; overflow: hidden; line-height: 0;
  transition: transform .15s, opacity .15s;
}
.nx-woo-badge-store img { height: 40px; width: auto; display: block; }
a.nx-woo-badge-store:hover { transform: translateY(-1px); opacity: .88; }
/* Con 2 o 3 badges ya no caben en una línea de móvil: ahí sí se apilan. */
.nx-woo-badges:has(> :nth-child(2)) { flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 380px) {
  .nx-woo-badge-store img { height: 34px; }
}
.nx-woo-seller-avatar {
  width: 48px; height: 48px; border-radius: 16px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--nxt-secondary), var(--nxt-primary));
  color: #fff; font-size: 16px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 6px -1px rgba(191,219,254,.9);
}
.nx-woo-seller-body { display: flex; flex-direction: column; gap: 2px; }
.nx-woo-seller-label { font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--nxt-sub); }
.nx-woo-seller-name { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 700; color: var(--nxt-ink); }
.nx-woo-seller-name .nx-ico { color: var(--nxt-primary); }
.nx-woo-seller-name a { color: inherit; text-decoration: none; }
.nx-woo-seller-name a:hover { color: var(--nxt-primary); text-decoration: underline; }
/* Logo real del desarrollador (sustituye a las iniciales) */
/* Con logo real: sin degradado ni sombra azul, para que no compita con la
   marca. El logo se muestra completo (contain), nunca deformado ni recortado. */
.nx-woo-seller-avatar--img {
  background: #fff;
  border: 1px solid var(--nxt-hairline, #F3F4F6);
  padding: 3px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(15,23,42,.08);
}
.nx-woo-seller-avatar--img img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}

/* ══════════════════════════════════════════════════
   MODO CATÁLOGO
   Un solo botón de cotización + descripción completa.
══════════════════════════════════════════════════ */
.nx-woo-buybox.is-catalog form.cart,
.nx-woo-buybox.is-catalog .quantity,
.nx-woo-buybox.is-catalog .single_add_to_cart_button,
.nx-woo-buybox.is-catalog .stock { display: none !important; }
.nx-woo-btn--quote {
  gap: 9px;
  font-size: 16px;
  font-weight: 700;
  padding: 17px 20px;
}
.nx-woo-sec--desc .nx-woo-desc {
  font-size: 15px;
  line-height: 1.75;
  color: var(--nxt-ink, #0F172A);
}
.nx-woo-sec--desc .nx-woo-desc > *:first-child { margin-top: 0; }
.nx-woo-sec--desc .nx-woo-desc > *:last-child  { margin-bottom: 0; }
.nx-woo-sec--desc .nx-woo-desc p { margin: 0 0 14px; }
.nx-woo-sec--desc .nx-woo-desc h2,
.nx-woo-sec--desc .nx-woo-desc h3,
.nx-woo-sec--desc .nx-woo-desc h4 {
  margin: 24px 0 10px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--nxt-ink, #0F172A);
}
.nx-woo-sec--desc .nx-woo-desc h2 { font-size: 20px; }
.nx-woo-sec--desc .nx-woo-desc h3 { font-size: 17px; }
.nx-woo-sec--desc .nx-woo-desc h4 { font-size: 15.5px; }
.nx-woo-sec--desc .nx-woo-desc ul,
.nx-woo-sec--desc .nx-woo-desc ol { margin: 0 0 16px; padding-left: 20px; }
.nx-woo-sec--desc .nx-woo-desc li { margin-bottom: 7px; }
.nx-woo-sec--desc .nx-woo-desc img {
  max-width: 100%; height: auto;
  border-radius: 14px; margin: 8px 0 16px;
}
.nx-woo-sec--desc .nx-woo-desc a { color: var(--nxt-primary, #2563EB); }
.nx-woo-sec--desc .nx-woo-desc table { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.nx-woo-sec--desc .nx-woo-desc th,
.nx-woo-sec--desc .nx-woo-desc td {
  border: 1px solid var(--nxt-border, #E2E8F0);
  padding: 9px 11px; font-size: 14px; text-align: left;
}
/* Sin barra fija abajo: el contenido no necesita el hueco reservado */
body.nx-catalog-mode.single-product .nx-woo-single { padding-bottom: 24px; }


.nx-woo-sec--buybox { margin-top: 8px; }
.nx-woo-buybox {
  background: linear-gradient(135deg, #EFF6FF, #ECFEFF);
  border: 1px solid #DBEAFE; border-radius: 24px; padding: 24px;
  box-shadow: var(--nxt-shadow-premium);
}
.nx-woo-buybox-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; font-size: 30px; font-weight: 700; letter-spacing: -.025em; color: var(--nxt-primary); }
.nx-woo-buybox-price del { font-size: 14px; font-weight: 500; color: var(--nxt-sub); }
.nx-woo-buybox-price ins { text-decoration: none; }
.nx-woo-buybox-off { margin-left: auto; background: #EF4444; color: #fff; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 999px; align-self: center; }
.nx-woo-buybox-note { font-size: 10px; color: var(--nxt-sub); margin-top: 4px; margin-bottom: 20px; }
.nx-woo-buybox-actions { display: flex; flex-direction: column; gap: 12px; }
.nx-woo-buybox-actions .nx-woo-btn { padding: 15px 20px; }
.nx-woo-trust {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 20px;
  margin-top: 20px; padding-top: 20px; border-top: 1px solid #DBEAFE;
  font-size: 10px; font-weight: 500; color: var(--nxt-sub);
}
.nx-woo-trust span { display: inline-flex; align-items: center; gap: 4px; }
.nx-woo-trust .nx-ico { color: #22C55E; }

/* Formulario nativo de añadir al carrito, con el look del mockup */
.nx-woo-buybox form.cart { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.nx-woo-buybox.nx-hide-qty form.cart .quantity { display: none; }
.nx-woo-buybox form.cart .quantity { display: inline-flex; align-items: center; align-self: flex-start; background: #fff; border: 1px solid #E2E8F0; border-radius: 999px; padding: 4px; }
.nx-woo-buybox form.cart .quantity input.qty { width: 56px; border: none; background: transparent; text-align: center; font-size: 14px; font-weight: 600; padding: 6px 0; }
.nx-woo-buybox form.cart button.button,
.nx-woo-buybox form.cart .single_add_to_cart_button {
  width: 100%; background: #fff; color: var(--nxt-primary);
  border: 1px solid var(--nxt-primary); border-radius: 16px;
  padding: 15px 20px; font-size: 14px; font-weight: 600; font-family: inherit; cursor: pointer;
  transition: background .2s;
}
.nx-woo-buybox form.cart button.button:hover { background: var(--nxt-blue-50); }
.nx-woo-buybox .woocommerce-variation-price { margin-bottom: 8px; }
.nx-woo-buybox table.variations { width: 100%; margin-bottom: 8px; }
.nx-woo-buybox table.variations td { padding: 4px 0; display: block; }
.nx-woo-buybox .stock { font-size: 12px; color: var(--nxt-sub); margin: 0; }

/* Pestañas (Descripción / Características) */
.nx-woo-sec--tabs .woocommerce-tabs { margin: 0; }
.nx-woo-sec--tabs ul.tabs {
  display: flex; gap: 20px; list-style: none; margin: 0 0 20px; padding: 0;
  border-bottom: 1px solid #E5E7EB;
}
.nx-woo-sec--tabs ul.tabs::before { content: none; }
.nx-woo-sec--tabs ul.tabs li { margin: 0; padding: 0; background: none; border: none; border-radius: 0; }
.nx-woo-sec--tabs ul.tabs li::before,
.nx-woo-sec--tabs ul.tabs li::after { content: none; }
.nx-woo-sec--tabs ul.tabs li a {
  display: block; padding: 0 2px 12px; font-size: 14px; font-weight: 600;
  color: var(--nxt-sub); border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.nx-woo-sec--tabs ul.tabs li.active a { color: var(--nxt-primary); border-bottom-color: var(--nxt-primary); }
.nx-woo-sec--tabs .woocommerce-Tabs-panel { font-size: 14px; line-height: 1.7; color: var(--nxt-sub); }
.nx-woo-sec--tabs .woocommerce-Tabs-panel h2 { display: none; }
.nx-woo-sec--tabs .woocommerce-Tabs-panel p { margin-bottom: 12px; }
.nx-woo-sec--tabs table.shop_attributes { width: 100%; border-collapse: collapse; font-size: 13px; }
.nx-woo-sec--tabs table.shop_attributes th,
.nx-woo-sec--tabs table.shop_attributes td { padding: 10px 0; border-bottom: 1px solid var(--nxt-hairline); text-align: left; }
.nx-woo-sec--tabs table.shop_attributes th { color: var(--nxt-ink); font-weight: 600; width: 40%; }

/* Capturas */
.nx-woo-shots-sec .nx-woo-h2 { padding: 0 20px; }
.nx-woo-shots { display: flex; gap: 12px; overflow-x: auto; padding: 0 20px 8px; scrollbar-width: none; -ms-overflow-style: none; scroll-snap-type: x mandatory; }
.nx-woo-shots::-webkit-scrollbar { display: none; }
.nx-woo-shot {
  flex-shrink: 0; width: 160px; height: 280px; padding: 8px; scroll-snap-align: start;
  background: #fff; border: 1px solid var(--nxt-hairline); border-radius: 18px;
  box-shadow: var(--nxt-shadow-premium); overflow: hidden;
}
.nx-woo-shot img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }

/* Reseñas */
.nx-woo-ratingbox { display: flex; align-items: center; gap: 20px; padding: 20px; margin-bottom: 16px; }
.nx-woo-ratingbox-score { text-align: center; flex-shrink: 0; }
.nx-woo-ratingbox-num { display: block; font-size: 36px; font-weight: 700; letter-spacing: -.025em; color: var(--nxt-ink); line-height: 1.1; }
.nx-woo-ratingbox-count { display: block; font-size: 10px; color: var(--nxt-sub); margin-top: 4px; }
.nx-woo-ratingbox-bars { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.nx-woo-ratingbox-row { display: flex; align-items: center; gap: 8px; font-size: 10px; color: var(--nxt-sub); }
.nx-woo-ratingbox-star { width: 8px; flex-shrink: 0; }
.nx-woo-ratingbox-track { flex: 1; height: 6px; border-radius: 999px; background: #F3F4F6; overflow: hidden; }
.nx-woo-ratingbox-fill { display: block; height: 100%; border-radius: 999px; background: var(--nxt-primary); }
.nx-woo-ratingbox-fill--4 { background: var(--nxt-accent, #60A5FA); }
.nx-woo-ratingbox-fill--3 { background: #FACC15; }
.nx-woo-ratingbox-fill--2 { background: #FB923C; }
.nx-woo-ratingbox-fill--1 { background: #EF4444; }

body.nx-woo-app #reviews #comments > h2 { display: none; }
body.nx-woo-app .commentlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
body.nx-woo-app .commentlist li.review,
body.nx-woo-app .commentlist li.comment {
  background: #fff; border: 1px solid var(--nxt-hairline); border-radius: 22px;
  padding: 20px; box-shadow: var(--nxt-shadow-premium); margin: 0;
}
body.nx-woo-app .commentlist .comment_container { display: flex; gap: 12px; align-items: flex-start; }
body.nx-woo-app .commentlist img.avatar { position: static; width: 36px; height: 36px; border-radius: 999px; border: none; padding: 0; margin: 0; float: none; }
body.nx-woo-app .commentlist .comment-text { margin: 0; border: none; padding: 0; flex: 1; }
body.nx-woo-app .commentlist .comment-text .star-rating { float: right; font-size: 11px; }
body.nx-woo-app .commentlist .meta { font-size: 13px; color: var(--nxt-ink); margin-bottom: 6px; }
body.nx-woo-app .commentlist .meta time { display: block; font-size: 10px; color: var(--nxt-sub); font-weight: 400; }
body.nx-woo-app .commentlist .description { font-size: 12px; line-height: 1.7; color: var(--nxt-sub); }
body.nx-woo-app #review_form_wrapper { margin-top: 16px; background: #fff; border: 1px solid var(--nxt-hairline); border-radius: 22px; padding: 20px; box-shadow: var(--nxt-shadow-premium); }
body.nx-woo-app #review_form_wrapper .comment-reply-title { font-size: 14px; font-weight: 700; color: var(--nxt-ink); }
body.nx-woo-app #review_form_wrapper .comment-form-rating label,
body.nx-woo-app #review_form_wrapper .comment-form-comment label,
body.nx-woo-app #review_form_wrapper .comment-form-author label,
body.nx-woo-app #review_form_wrapper .comment-form-email label { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--nxt-sub); display: block; margin: 12px 0 6px; }
body.nx-woo-app #review_form_wrapper .submit { background: var(--nxt-primary); color: #fff; border: none; border-radius: 16px; padding: 14px 20px; font-size: 14px; font-weight: 600; font-family: inherit; cursor: pointer; margin-top: 12px; }

/* Relacionados */
.nx-woo-related-wrap .related > h2,
.nx-woo-related-wrap .up-sells > h2 { font-size: 16px; font-weight: 700; letter-spacing: -.025em; color: var(--nxt-ink); padding: 0 20px; margin: 32px 0 16px; }
.nx-woo-related-wrap .related ul.products,
.nx-woo-related-wrap .up-sells ul.products {
  display: flex; grid-template-columns: none; gap: 16px;
  overflow-x: auto; padding: 0 20px 8px; scroll-snap-type: x mandatory;
  scrollbar-width: none; -ms-overflow-style: none;
}
.nx-woo-related-wrap ul.products::-webkit-scrollbar { display: none; }
.nx-woo-related-wrap ul.products > li.product { flex: 0 0 200px; width: 200px !important; scroll-snap-align: start; }

/* ══════════════════════════════════════════════════
   CARRITO (cart.html)
══════════════════════════════════════════════════ */
.nx-woo-items { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.nx-woo-item { display: flex; gap: 16px; padding: 16px; }
.nx-woo-item-media { flex-shrink: 0; width: 80px; height: 80px; border-radius: 16px; overflow: hidden; }
.nx-woo-item-media a { display: block; height: 100%; }
.nx-woo-item-media .nx-product-img-placeholder { width: 80px; height: 80px; border-radius: 16px; }
.nx-woo-item-body { flex: 1; min-width: 0; }
.nx-woo-item-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.nx-woo-item-headings { min-width: 0; }
.nx-woo-item-badge { display: inline-block; background: var(--nxt-blue-50); color: var(--nxt-primary); font-size: 9px; font-weight: 600; padding: 2px 6px; border-radius: 999px; margin-bottom: 4px; }
.nx-woo-item-title { font-size: 14px; font-weight: 700; color: var(--nxt-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nx-woo-item-title a { color: inherit; }
.nx-woo-item-meta { font-size: 10px; color: var(--nxt-sub); }
.nx-woo-item-meta p { margin: 0; }
.nx-woo-item-meta dl.variation { margin: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.nx-woo-item-meta dl.variation dt,
.nx-woo-item-meta dl.variation dd { margin: 0; font-size: 10px; }
.nx-woo-item-remove { flex-shrink: 0; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; font-size: 20px; line-height: 1; color: var(--nxt-sub); border-radius: 8px; }
.nx-woo-item-remove:hover { color: #EF4444; background: #FEF2F2; }
.nx-woo-item-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; margin-top: 12px; }
.nx-woo-item-prices { text-align: right; }
.nx-woo-item-subtotal { display: block; font-size: 14px; font-weight: 700; color: var(--nxt-ink); }
.nx-woo-item-was { display: block; font-size: 10px; color: var(--nxt-sub); text-decoration: line-through; }

.nx-woo-qty { display: inline-flex; align-items: center; gap: 4px; border: 1px solid #E5E7EB; border-radius: 999px; padding: 4px; background: #fff; }
.nx-woo-qty-btn { width: 24px; height: 24px; border: none; background: none; color: var(--nxt-sub); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; border-radius: 999px; }
.nx-woo-qty-btn:hover { color: var(--nxt-primary); background: var(--nxt-blue-50); }
.nx-woo-qty .quantity { display: inline-flex; margin: 0; }
.nx-woo-qty input.qty {
  width: 32px; padding: 0; border: none; background: transparent; text-align: center;
  font-size: 12px; font-weight: 600; color: var(--nxt-ink); -moz-appearance: textfield;
}
.nx-woo-qty input.qty:focus { box-shadow: none; }
.nx-woo-qty input.qty::-webkit-outer-spin-button,
.nx-woo-qty input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.nx-woo-qty .screen-reader-text { position: absolute; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }
.nx-woo-qty--fixed { padding: 6px 14px; font-size: 12px; font-weight: 600; color: var(--nxt-sub); }

.nx-woo-coupon { padding: 16px; }
.nx-woo-coupon-row { display: flex; gap: 8px; margin-top: 12px; }
.nx-woo-coupon-row input { flex: 1; min-width: 0; padding: 11px 16px; text-transform: uppercase; }
.nx-woo-coupon-row .nx-woo-btn { padding: 11px 20px; border-radius: 12px; }
.nx-woo-cart-actions { padding: 0 20px; }
.nx-woo-update-cart {
  display: none; width: 100%; margin-top: 12px; padding: 12px;
  background: none; border: 1px dashed #CBD5E1; border-radius: 12px;
  color: var(--nxt-sub); font-family: inherit; font-size: 12px; font-weight: 600; cursor: pointer;
}
.nx-woo-cartform.nx-is-dirty .nx-woo-update-cart { display: block; }

.nx-woo-totals { padding: 20px; }
.nx-woo-totals-rows { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; font-size: 14px; }
.nx-woo-totals-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--nxt-sub); }
.nx-woo-totals-val { font-weight: 500; color: var(--nxt-ink); }
.nx-woo-totals-row--discount,
.nx-woo-totals-row--discount .nx-woo-totals-val { color: #22C55E; }
.nx-woo-totals-row--discount a { color: inherit; font-size: 11px; }
.nx-woo-totals-row--grand { border-top: 1px solid var(--nxt-hairline); padding-top: 12px; align-items: flex-start; }
.nx-woo-totals-label { font-weight: 700; color: var(--nxt-ink); }
.nx-woo-totals-grand { font-size: 20px; font-weight: 700; color: var(--nxt-ink); text-align: right; }
.nx-woo-totals-shipping ul { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.nx-woo-proceed { margin-top: 16px; }
.nx-woo-proceed .checkout-button,
body.nx-woo-app .wc-proceed-to-checkout a.checkout-button {
  display: flex; align-items: center; justify-content: center;
  width: 100%; background: var(--nxt-primary); color: #fff;
  border-radius: 16px; padding: 14px 20px; font-size: 14px; font-weight: 600;
  box-shadow: 0 10px 15px -3px rgba(191,219,254,.9);
}
.nx-woo-sec--payicons { margin-top: 24px; }
.nx-woo-payicons { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; opacity: .6; font-size: 11px; font-weight: 600; color: var(--nxt-sub); }
.nx-woo-payicons-safe { display: inline-flex; align-items: center; gap: 4px; color: var(--nxt-primary); }

/* ══════════════════════════════════════════════════
   CHECKOUT (checkout.html)
══════════════════════════════════════════════════ */
.nx-woo-steps { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; }
.nx-woo-step { display: flex; flex-direction: column; align-items: center; gap: 6px; flex-shrink: 0; }
.nx-woo-step-dot {
  width: 32px; height: 32px; border-radius: 999px;
  background: #E5E7EB; color: var(--nxt-sub);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}
.nx-woo-step.is-done .nx-woo-step-dot,
.nx-woo-step.is-current .nx-woo-step-dot { background: var(--nxt-primary); color: #fff; box-shadow: 0 4px 6px -1px rgba(191,219,254,.9); }
.nx-woo-step-label { font-size: 10px; font-weight: 600; color: var(--nxt-sub); }
.nx-woo-step.is-done .nx-woo-step-label,
.nx-woo-step.is-current .nx-woo-step-label { color: var(--nxt-primary); }
.nx-woo-step-line { flex: 1; height: 2px; background: #E5E7EB; margin: 0 8px; margin-bottom: 22px; list-style: none; }
.nx-woo-step-line.is-done { background: var(--nxt-primary); }

.nx-woo-summary { overflow: hidden; }
.nx-woo-summary-head {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 20px; background: none; border: none; font-family: inherit; cursor: pointer; text-align: left;
}
.nx-woo-summary-heading { display: flex; flex-direction: column; gap: 2px; }
.nx-woo-summary-sub { font-size: 12px; color: var(--nxt-sub); }
.nx-woo-summary-right { display: flex; align-items: center; gap: 12px; }
.nx-woo-summary-total { font-size: 18px; font-weight: 700; color: var(--nxt-ink); }
.nx-woo-accordion-ico { color: var(--nxt-sub); display: flex; transition: transform .3s ease; }
.nx-woo-summary.is-open .nx-woo-accordion-ico { transform: rotate(180deg); }
.nx-woo-summary-body { max-height: 0; overflow: hidden; transition: max-height .3s ease-out; border-top: 1px solid transparent; }
.nx-woo-summary.is-open .nx-woo-summary-body { max-height: 1200px; border-top-color: var(--nxt-hairline); }

body.nx-woo-app .woocommerce-checkout-review-order-table { width: 100%; border-collapse: collapse; font-size: 13px; }
body.nx-woo-app .woocommerce-checkout-review-order-table thead { display: none; }
body.nx-woo-app .woocommerce-checkout-review-order-table th,
body.nx-woo-app .woocommerce-checkout-review-order-table td { padding: 10px 20px; text-align: left; border: none; }
body.nx-woo-app .woocommerce-checkout-review-order-table tbody tr td { color: var(--nxt-ink); }
body.nx-woo-app .woocommerce-checkout-review-order-table td.product-total,
body.nx-woo-app .woocommerce-checkout-review-order-table td:last-child { text-align: right; font-weight: 600; }
body.nx-woo-app .woocommerce-checkout-review-order-table tfoot tr { border-top: 1px solid var(--nxt-hairline); }
body.nx-woo-app .woocommerce-checkout-review-order-table tfoot th { color: var(--nxt-sub); font-weight: 500; }
body.nx-woo-app .woocommerce-checkout-review-order-table tfoot .order-total th,
body.nx-woo-app .woocommerce-checkout-review-order-table tfoot .order-total td { font-size: 16px; font-weight: 700; color: var(--nxt-ink); }
body.nx-woo-app .woocommerce-checkout-review-order-table .product-name { font-weight: 600; }
body.nx-woo-app .woocommerce-checkout-review-order-table .product-quantity { color: var(--nxt-sub); font-weight: 400; }

.nx-woo-fields { padding: 20px; }
.nx-woo-fields .col-1,
.nx-woo-fields .col-2 { width: 100%; float: none; }
body.nx-woo-app .woocommerce-billing-fields h3,
body.nx-woo-app .woocommerce-shipping-fields h3,
body.nx-woo-app .woocommerce-additional-fields h3 { font-size: 14px; font-weight: 700; color: var(--nxt-ink); margin-bottom: 12px; }
body.nx-woo-app .form-row { display: flex; flex-direction: column; margin: 0 0 14px; padding: 0; }
body.nx-woo-app .form-row label {
  font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em;
  color: var(--nxt-sub); margin-bottom: 6px;
}
body.nx-woo-app .form-row label .required { color: #EF4444; text-decoration: none; }
body.nx-woo-app .form-row-first,
body.nx-woo-app .form-row-last { width: 100%; float: none; }
body.nx-woo-app .select2-container--default .select2-selection--single {
  height: auto; background: var(--nxt-page-bg); border: 1.5px solid #E2E8F0; border-radius: 12px; padding: 9px 6px;
}
body.nx-woo-app .select2-container--default .select2-selection--single .select2-selection__rendered { color: var(--nxt-ink); font-size: 14px; }
body.nx-woo-app .woocommerce-form__label-for-checkbox { flex-direction: row; align-items: center; gap: 10px; text-transform: none; letter-spacing: 0; font-size: 12px; color: var(--nxt-sub); font-weight: 400; }
body.nx-woo-app .woocommerce-form__input-checkbox { width: 20px; height: 20px; accent-color: var(--nxt-primary); margin: 0; }

.nx-woo-payment { padding: 20px; }
body.nx-woo-app .woocommerce-checkout-payment { background: none !important; border-radius: 0; }
body.nx-woo-app ul.wc_payment_methods { list-style: none; margin: 0 0 16px; padding: 0; border: none; display: flex; flex-direction: column; gap: 10px; }
body.nx-woo-app ul.wc_payment_methods li {
  border: 1px solid #E5E7EB; border-radius: 14px; padding: 14px; margin: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  transition: border-color .2s, background .2s;
}
body.nx-woo-app ul.wc_payment_methods li input[type="radio"] { accent-color: var(--nxt-primary); width: 18px; height: 18px; margin: 0; }
body.nx-woo-app ul.wc_payment_methods li label { font-size: 14px; font-weight: 600; color: var(--nxt-ink); margin: 0; display: inline-flex; align-items: center; gap: 8px; }
body.nx-woo-app ul.wc_payment_methods li.wc_payment_method > input:checked + label { color: var(--nxt-primary); }
body.nx-woo-app .payment_box {
  flex: 1 1 100%; background: var(--nxt-page-bg); border-radius: 12px; padding: 14px;
  font-size: 12px; line-height: 1.6; color: var(--nxt-sub); margin: 4px 0 0;
}
body.nx-woo-app .payment_box::before { content: none; }
body.nx-woo-app .woocommerce-terms-and-conditions-wrapper { font-size: 12px; color: var(--nxt-sub); margin-bottom: 12px; }
body.nx-woo-app #place_order {
  width: 100%; background: var(--nxt-primary); color: #fff; border: none; border-radius: 16px;
  padding: 15px 20px; font-size: 14px; font-weight: 600; font-family: inherit; cursor: pointer;
  box-shadow: 0 10px 15px -3px rgba(191,219,254,.9);
}
body.nx-woo-app #place_order:hover { background: var(--nxt-primary-h); }

.nx-woo-sec--seals { margin-top: 32px; }
.nx-woo-seals { display: flex; align-items: center; justify-content: center; gap: 20px; }
.nx-woo-seal { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--nxt-sub); }
.nx-woo-seal .nx-ico { color: var(--nxt-primary); }
.nx-woo-seal em { font-style: normal; font-size: 9px; font-weight: 500; }
.nx-woo-seal-sep { width: 1px; height: 32px; background: #E5E7EB; }

/* ══════════════════════════════════════════════════
   GRACIAS (theankyou.html)
══════════════════════════════════════════════════ */
.nx-woo-success { display: flex; flex-direction: column; align-items: center; text-align: center; margin-top: 48px; }
.nx-woo-check { position: relative; width: 96px; height: 96px; display: flex; align-items: center; justify-content: center; margin-bottom: 24px; }
.nx-woo-check-ring { position: absolute; inset: 0; border-radius: 999px; background: rgba(16,185,129,.2); animation: nx-woo-pulse 1.5s cubic-bezier(.215,.61,.355,1) infinite; }
.nx-woo-check-halo { position: absolute; width: 80px; height: 80px; border-radius: 999px; background: rgba(16,185,129,.1); }
.nx-woo-check-core {
  position: relative; z-index: 1; width: 64px; height: 64px; border-radius: 999px;
  background: linear-gradient(135deg, #10B981, #34D399);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 15px -3px rgba(167,243,208,.9);
}
.nx-woo-check-circle { stroke-dasharray: 166; stroke-dashoffset: 166; stroke-width: 2; stroke: #fff; fill: none; animation: nx-woo-stroke .6s cubic-bezier(.65,0,.45,1) forwards; }
.nx-woo-check-mark { stroke-dasharray: 48; stroke-dashoffset: 48; stroke-width: 3; stroke: #fff; fill: none; stroke-linecap: round; animation: nx-woo-stroke .3s cubic-bezier(.65,0,.45,1) .6s forwards; }
@keyframes nx-woo-stroke { 100% { stroke-dashoffset: 0; } }
@keyframes nx-woo-pulse { 0% { transform: scale(.8); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .nx-woo-check-ring { animation: none; }
  .nx-woo-check-circle, .nx-woo-check-mark { animation: none; stroke-dashoffset: 0; }
}
.nx-woo-success-eyebrow {
  background: #ECFDF5; color: #10B981; font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em; padding: 4px 12px; border-radius: 999px; margin-bottom: 12px;
}
.nx-woo-success-title { font-size: 24px; font-weight: 700; line-height: 1.25; letter-spacing: -.025em; color: var(--nxt-ink); margin-bottom: 12px; }
.nx-woo-success-sub { font-size: 14px; line-height: 1.625; color: var(--nxt-sub); max-width: 320px; }
.nx-woo-success-sub strong { color: var(--nxt-ink); font-weight: 600; }

.nx-woo-order { padding: 20px; }
.nx-woo-order-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px dashed var(--nxt-hairline); }
.nx-woo-order-label { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; font-weight: 500; color: var(--nxt-sub); }
.nx-woo-order-number { display: block; font-size: 14px; font-weight: 700; color: var(--nxt-ink); margin-top: 4px; }
.nx-woo-order-status { background: var(--nxt-blue-50); color: var(--nxt-primary); font-size: 10px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.nx-woo-order-rows { display: flex; flex-direction: column; gap: 12px; padding: 16px 0; font-size: 14px; }
.nx-woo-order-row { display: flex; justify-content: space-between; gap: 12px; color: var(--nxt-sub); }
.nx-woo-order-val { font-weight: 500; color: var(--nxt-ink); text-align: right; }
.nx-woo-order-val--strong { font-weight: 700; }

.nx-woo-access { display: flex; flex-direction: column; gap: 12px; }
.nx-woo-access-item { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: 18px; }
.nx-woo-access-avatar {
  flex-shrink: 0; width: 56px; height: 56px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 14px; font-weight: 700;
  box-shadow: 0 4px 6px -1px rgba(219,234,254,.9);
}
.nx-woo-access-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.nx-woo-access-name { font-size: 14px; font-weight: 700; color: var(--nxt-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nx-woo-access-meta { font-size: 10px; color: var(--nxt-sub); }

.nx-woo-support { position: relative; overflow: hidden; border-radius: 22px; padding: 24px; color: #fff; background: linear-gradient(135deg, var(--nxt-primary), var(--nxt-secondary)); }
.nx-woo-support-blob { position: absolute; top: -40px; right: -40px; width: 128px; height: 128px; border-radius: 999px; background: rgba(255,255,255,.1); }
.nx-woo-support-body { position: relative; z-index: 1; }
.nx-woo-support-title { font-size: 18px; font-weight: 700; margin: 12px 0 4px; color: #fff; }
.nx-woo-support-sub { font-size: 12px; line-height: 1.625; color: #DBEAFE; margin-bottom: 16px; }
.nx-woo-support-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ══════════════════════════════════════════════════
   AVISOS DE WOOCOMMERCE
══════════════════════════════════════════════════ */
body.nx-woo-app .woocommerce-message,
body.nx-woo-app .woocommerce-info,
body.nx-woo-app .woocommerce-error {
  list-style: none; margin: 0 20px 16px; padding: 14px 16px;
  border: 1px solid var(--nxt-hairline); border-left: 3px solid var(--nxt-primary);
  border-radius: 14px; background: #fff; box-shadow: var(--nxt-shadow-premium);
  font-size: 13px; color: var(--nxt-ink);
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
}
body.nx-woo-app .woocommerce-message::before,
body.nx-woo-app .woocommerce-info::before,
body.nx-woo-app .woocommerce-error::before { content: none; }
body.nx-woo-app .woocommerce-error { border-left-color: #EF4444; }
body.nx-woo-app .woocommerce-message .button,
body.nx-woo-app .woocommerce-info .button {
  margin-left: auto; background: var(--nxt-primary); color: #fff;
  border-radius: 10px; padding: 8px 14px; font-size: 12px; font-weight: 600;
}

/* ══════════════════════════════════════════════════
   ESCRITORIO
══════════════════════════════════════════════════ */
@media (min-width: 769px) {
  .nx-woo-sec { max-width: 1200px; margin-left: auto; margin-right: auto; padding: 0 40px; }
  .nx-woo-sec--bleed { padding: 0 20px; max-width: 1240px; }
  .nx-woo-banner { height: 200px; padding: 40px; }
  .nx-woo-banner-title { font-size: 28px; }
  body.nx-woo-app ul.products { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .nx-woo-pcard-media,
  .nx-woo-pcard-media .nx-product-img-placeholder { height: 150px; }
  body.nx-pdp-bg-gradient .nx-woo-hero { height: 460px; }
  .nx-woo-hero { max-height: 560px; }
  .nx-woo-title { font-size: 32px; }
  .nx-woo-page-title { font-size: 30px; }
  .nx-woo-fields .col-1,
  .nx-woo-fields .col-2 { width: 100%; }
  body.nx-woo-app .form-row-first,
  body.nx-woo-app .form-row-last { width: 48%; float: left; }
  body.nx-woo-app .form-row-last { float: right; }
  body.nx-woo-app .form-row::after { content: ''; display: table; clear: both; }
  .nx-woo-bottombar { padding-left: 40px; padding-right: 40px; }
  .nx-woo-bottombar-cta { flex: 0 0 auto; min-width: 260px; }
  .nx-woo-related-wrap ul.products > li.product { flex: 0 0 240px; width: 240px !important; }
}

/* ══════════════════════════════════════════════════
   HOJA DE COMPARTIR (respaldo de navigator.share)
   Se usa cuando el navegador no expone el menú nativo del sistema:
   contexto no seguro (HTTP), navegadores de escritorio o WebView de apps.
══════════════════════════════════════════════════ */
.nx-share-sheet { position: fixed; inset: 0; z-index: 10050; }
.nx-share-backdrop {
  position: absolute; inset: 0;
  background: rgba(15,23,42,.55);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .25s ease;
}
.nx-share-sheet.is-open .nx-share-backdrop { opacity: 1; }
.nx-share-panel {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: #fff;
  border-radius: 24px 24px 0 0;
  padding: 18px 20px calc(20px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -10px 40px rgba(15,23,42,.22);
  transform: translateY(100%);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
  max-width: 520px; margin: 0 auto;
}
.nx-share-sheet.is-open .nx-share-panel { transform: translateY(0); }
body.nx-share-lock { overflow: hidden; }

.nx-share-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.nx-share-title { font-size: 16px; font-weight: 700; color: var(--nxt-ink, #0F172A); }
.nx-share-x {
  width: 34px; height: 34px; border-radius: 11px;
  background: var(--nxt-page-bg, #F8FAFC); border: 1px solid #E5E7EB;
  display: flex; align-items: center; justify-content: center;
  color: var(--nxt-sub, #64748B); cursor: pointer; padding: 0;
}
.nx-share-x:hover { background: #F1F5F9; }

.nx-share-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 6px;
  margin-bottom: 16px;
}
.nx-share-item {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 10px 4px; border-radius: 14px;
  text-decoration: none; transition: background .16s;
}
.nx-share-item:hover { background: var(--nxt-page-bg, #F8FAFC); }
.nx-share-ico {
  width: 48px; height: 48px; border-radius: 16px;
  background: #fff; border: 1px solid #E5E7EB;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
}
.nx-share-ico svg { width: 23px; height: 23px; }
.nx-share-label { font-size: 11.5px; font-weight: 600; color: var(--nxt-sub, #64748B); }

.nx-share-copy {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 16px; border-radius: 14px;
  background: var(--nxt-page-bg, #F8FAFC); border: 1px solid #E5E7EB;
  cursor: pointer; font-family: inherit; text-align: left;
  transition: background .16s, border-color .16s;
}
.nx-share-copy:hover { background: #F1F5F9; }
.nx-share-copy.is-copied { background: #ECFDF5; border-color: #A7F3D0; }
.nx-share-copy-url {
  font-size: 12.5px; color: var(--nxt-sub, #64748B);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
.nx-share-copy-cta { font-size: 13px; font-weight: 700; color: var(--nxt-primary, #2563EB); flex-shrink: 0; }
.nx-share-copy.is-copied .nx-share-copy-cta { color: #059669; }

@media (prefers-reduced-motion: reduce) {
  .nx-share-panel, .nx-share-backdrop { transition: none; }
}
