:root {
  --nx-blue: #234793;
  --nx-blue-dark: #173574;
  --nx-red: #ef174e;
  --nx-ink: #263544;
  --nx-muted: #6f7c88;
  --nx-line: #e5e9ef;
  --nx-soft: #f5f7fa;
  --nx-white: #ffffff;
  --nx-shadow: 0 14px 34px rgba(25, 44, 68, 0.09);
  --nx-radius: 8px;
  --nx-button-radius: 6px;
  --nx-container: 1650px;

  /* Escala tipografica fluida: 360px -> 1440px */
  --nx-fs-10: clamp(10px, calc(9.667px + 0.0926vw), 11px);
  --nx-fs-11: clamp(10px, calc(9.667px + 0.0926vw), 11px);
  --nx-fs-12: clamp(11px, calc(10.667px + 0.0926vw), 12px);
  --nx-fs-13: clamp(12px, calc(11.667px + 0.0926vw), 13px);
  --nx-fs-14: clamp(13px, calc(12.667px + 0.0926vw), 14px);
  --nx-fs-15: clamp(14px, calc(13.667px + 0.0926vw), 15px);
  --nx-fs-16: clamp(14px, calc(13.333px + 0.1852vw), 16px);
  --nx-fs-17: clamp(15px, calc(14.333px + 0.1852vw), 17px);
  --nx-fs-18: clamp(16px, calc(15.333px + 0.1852vw), 18px);
  --nx-fs-19: clamp(16px, calc(15px + 0.2778vw), 19px);
  --nx-fs-20: clamp(17px, calc(16px + 0.2778vw), 20px);
  --nx-fs-22: clamp(18px, calc(16.667px + 0.3704vw), 22px);
  --nx-fs-24: clamp(20px, calc(18.667px + 0.3704vw), 24px);
  --nx-fs-26: clamp(21px, calc(19.333px + 0.463vw), 26px);
  --nx-fs-28: clamp(22px, calc(20px + 0.5556vw), 28px);
  --nx-fs-29: clamp(23px, calc(21px + 0.5556vw), 29px);
  --nx-fs-30: clamp(24px, calc(22px + 0.5556vw), 30px);
  --nx-fs-32: clamp(24px, calc(21.333px + 0.7407vw), 32px);
  --nx-fs-36: clamp(28px, calc(25.333px + 0.7407vw), 36px);
  --nx-fs-42: clamp(30px, calc(26px + 1.1111vw), 42px);

  /* Ritmo vertical fluido para secciones y bloques */
  --nx-space-xs: clamp(8px, calc(6.667px + 0.3704vw), 12px);
  --nx-space-sm: clamp(12px, calc(10px + 0.5556vw), 18px);
  --nx-space-md: clamp(18px, calc(13.333px + 1.2963vw), 32px);
  --nx-space-lg: clamp(24px, calc(20px + 1.1111vw), 36px);
  --nx-section-start: clamp(18px, calc(12px + 1.6667vw), 36px);
  --nx-section-end: clamp(40px, calc(32px + 2.2222vw), 64px);
  --nx-section-end-compact: clamp(36px, calc(31.333px + 1.2963vw), 50px);

  /* Sombras de marca (tokenizadas desde CSS en 2026-07-10) */
  --nx-shadow-red:        0 4px 12px rgba(239, 23, 78, 0.35);
  --nx-shadow-red-hover:  0 6px 18px rgba(239, 23, 78, 0.5);
  --nx-shadow-dark:       0 14px 40px rgba(15, 23, 42, 0.25);
  --nx-focus-ring:        0 0 0 3px rgba(35, 71, 147, 0.18);

  /* WhatsApp — color principal de la marca WA */
  --nx-whatsapp:        #25d366;
  --nx-whatsapp-hover:  #1ebe5b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--nx-white);
  color: var(--nx-ink);
  font-family: "Open Sans", Arial, sans-serif;
  font-size: var(--nx-fs-15);
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input {
  font: inherit;
}

.container {
  width: min(var(--nx-container), calc(100% - 32px));
  margin-inline: auto;
}

.screen-reader-text,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  z-index: 1000;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip: auto;
  background: var(--nx-blue);
  color: var(--nx-white);
}

.top-strip {
  background: #f2f4f7;
  color: #56606b;
  font-size: var(--nx-fs-12);
}

.top-strip__inner {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.top-strip nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.top-strip__menu {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.top-strip nav > a,
.top-strip__menu > li {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.top-strip nav > a + a,
.top-strip__menu > li + li {
  margin-left: 14px;
  padding-left: 14px;
}

.top-strip nav > a + a::before,
.top-strip__menu > li + li::before {
  content: "";
  position: absolute;
  left: 0;
  width: 1px;
  height: 12px;
  background: #d7dde4;
}

.top-strip a,
.top-strip__static {
  display: inline-flex;
  align-items: center;
  color: #56606b;
}

.top-strip__link-inner {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.top-strip__link-inner i {
  width: 13px;
  color: #51606f;
  font-size: var(--nx-fs-12);
  text-align: center;
}

.top-strip a:hover,
.top-strip a:focus-visible {
  color: var(--nx-blue);
}

.top-strip a:hover i,
.top-strip a:focus-visible i {
  color: var(--nx-blue);
}

.masthead {
  min-height: 116px;
  display: grid;
  grid-template-columns: 240px minmax(260px, 1fr) auto;
  gap: 38px;
  align-items: center;
}

.brand img {
  width: 230px;
}

.product-search {
  display: grid;
  grid-template-columns: 1fr 54px;
  height: 42px;
  border: 1px solid var(--nx-blue);
  border-radius: 3px;
  background: var(--nx-white);
  position: relative;
}

.product-search__row {
  display: grid;
  grid-template-columns: 1fr 54px;
  height: 100%;
  border-radius: 3px;
  overflow: hidden;
  /* La row ocupa las 2 columnas del form (1fr + 54px). Sin esto, el form
   * la coloca solo en la columna 1 y queda la columna 2 vacia = un
   * hueco blanco a la derecha del boton. */
  grid-column: 1 / -1;
}

.product-search input {
  min-width: 0;
  border: 0;
  padding: 0 18px;
  color: var(--nx-ink);
  outline: 0;
  background: var(--nx-white);
}

.product-search input::placeholder {
  color: #b6a9c5;
  font-style: italic;
}

.product-search button {
  border: 0;
  background: var(--nx-blue);
  color: var(--nx-white);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  /* El boton se extiende 1px fuera del row a la derecha para cubrir el
   * border-right del form. Sin esto queda una linea blanca de 1px entre
   * el boton y el borde azul. */
  margin-right: -1px;
  transition: background 0.15s ease;
}

.product-search button:hover,
.product-search button:focus {
  background: var(--nx-blue-dark);
  outline: none;
}

.product-search button i {
  font-size: var(--nx-fs-16);
  line-height: 1;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #4e5b69;
}

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--nx-soft);
  color: var(--nx-ink);
  font-size: var(--nx-fs-17);
  line-height: 1;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease;
}

.icon-link:hover,
.icon-link:focus-visible {
  background: var(--nx-blue);
  color: var(--nx-white);
  outline: none;
}

.icon-link i {
  font-style: normal;
}

.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--nx-ink);
  font-size: var(--nx-fs-14);
  font-weight: 600;
  text-decoration: none;
  transition: color 160ms ease;
  font-family: inherit;
}

.cart-link:hover,
.cart-link:focus-visible {
  color: var(--nx-blue);
  outline: none;
}

.cart-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--nx-blue);
  color: var(--nx-white);
  font-size: var(--nx-fs-17);
  line-height: 1;
  transition: background 160ms ease;
}

.cart-link:hover .cart-icon,
.cart-link:focus-visible .cart-icon {
  background: var(--nx-blue-dark);
}

.cart-icon i {
  font-style: normal;
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: var(--nx-red);
  color: var(--nx-white);
  font-size: var(--nx-fs-11);
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 0 0 2px var(--nx-white);
}

.menu-toggle {
  display: none;
}

.store-nav__inner {
  background: var(--nx-blue);
  border-radius: var(--nx-radius);
}

.primary-menu {
  display: flex;
  align-items: center;
  gap: 0;
  min-height: 52px;
  margin: 0;
  padding: 0 22px;
  list-style: none;
}

.primary-menu a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0 16px;
  color: var(--nx-white);
  font-family: "Roboto", Arial, sans-serif;
  font-size: var(--nx-fs-14);
  font-weight: 900;
}

.primary-menu a:hover,
.primary-menu a:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  outline: 0;
}

.hero-shell {
  padding: var(--nx-section-start) 0 var(--nx-section-end);
}

.hero-shell__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: var(--nx-space-md);
}

.hero-stage {
  min-height: 330px;
  display: flex;
  align-items: center;
  border-radius: var(--nx-radius);
  background:
    linear-gradient(90deg, rgba(35, 71, 147, 0.92), rgba(35, 71, 147, 0.18)),
    url("../img/promo-gaming.webp") right center / contain no-repeat,
    var(--nx-soft);
  overflow: hidden;
}

.hero-copy {
  max-width: 520px;
  padding: 48px;
  color: var(--nx-white);
}

.hero-copy span {
  display: block;
  margin-bottom: 8px;
  font-family: "Roboto", Arial, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0 0 14px;
  font-family: "Roboto", Arial, sans-serif;
  font-size: var(--nx-fs-42);
  line-height: 1.05;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 430px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.9);
}

.button-primary {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 20px;
  border-radius: var(--nx-button-radius);
  background: var(--nx-red);
  color: var(--nx-white);
  font-weight: 800;
}

.promo-stack {
  display: grid;
  gap: var(--nx-space-sm);
  grid-template-rows: 1fr 1fr;
}

.promo-card {
  position: relative;
  padding: 24px 140px 24px 32px;
  border: 1px solid rgba(35, 71, 147, 0.06);
  border-radius: var(--nx-radius);
  background: var(--nx-white);
  box-shadow: var(--nx-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.promo-card span {
  display: block;
  margin-bottom: 14px;
  color: #3a4958;
  font-size: var(--nx-fs-17);
  line-height: 1.35;
  text-transform: uppercase;
}

.promo-card strong {
  color: #3e4a56;
  font-family: "Roboto", Arial, sans-serif;
  font-size: var(--nx-fs-13);
  font-weight: 900;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.promo-card img {
  position: absolute;
  right: 8px;
  bottom: 0;
  width: 132px;
  transition: transform 220ms ease;
}

.promo-card:hover,
.promo-card:focus-visible {
  border-color: rgba(35, 71, 147, 0.24);
  box-shadow: 0 18px 38px rgba(25, 44, 68, 0.14);
  transform: translateY(-3px);
  outline: none;
}

.promo-card:hover strong,
.promo-card:focus-visible strong {
  color: var(--nx-red);
}

.promo-card:hover img,
.promo-card:focus-visible img {
  transform: translateX(-4px) scale(1.04);
}

.promo-card:active {
  transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
  .promo-card,
  .promo-card strong,
  .promo-card img {
    transition: none;
  }

  .promo-card:hover,
  .promo-card:focus-visible,
  .promo-card:hover img,
  .promo-card:focus-visible img,
  .promo-card:active {
    transform: none;
  }
}

.catalog-preview {
  padding: var(--nx-space-sm) 0 var(--nx-section-end);
}

.catalog-preview__grid {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: var(--nx-space-md);
  align-items: start;
}

.department-card {
  border-radius: var(--nx-radius);
  background: var(--nx-white);
  box-shadow: var(--nx-shadow);
  padding: 16px 14px;
}

.department-card h2,
.section-heading h2,
.compact-list h2 {
  margin: 0;
  color: #344150;
  font-family: "Roboto", Arial, sans-serif;
  font-size: var(--nx-fs-22);
  font-weight: 900;
}

.department-card h2 {
  padding: 0 0 12px;
  border-bottom: 2px solid var(--nx-blue);
  font-size: var(--nx-fs-18);
}

.department-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.department-card a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 4px;
  border-bottom: 1px solid var(--nx-line);
  color: #617080;
  font-size: var(--nx-fs-14);
}

.department-card a:hover,
.department-card a:focus-visible {
  color: var(--nx-blue);
}

.section-heading {
  margin-bottom: var(--nx-space-sm);
  border-bottom: 1px solid var(--nx-line);
}

.section-heading h2 {
  display: inline-block;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--nx-blue);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--nx-space-sm);
}

.product-card {
  min-width: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-button-radius);
  background: var(--nx-white);
  padding: 18px 18px 16px;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.product-card:hover {
  z-index: 1;
  box-shadow: 0 10px 24px rgba(32, 48, 68, 0.09);
  transform: translateY(-1px);
}

.product-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--nx-red);
  color: var(--nx-white);
  font-family: "Roboto", Arial, sans-serif;
  font-size: var(--nx-fs-10);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(237, 23, 79, 0.25);
}

.product-card__link {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: inherit;
}

.product-card h3 {
  margin: 0;
  color: var(--nx-blue);
  font-family: "Roboto", Arial, sans-serif;
  font-size: var(--nx-fs-15);
  font-weight: 900;
  line-height: 1.28;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.product-card--sale h3 {
  padding-left: 0;
}

.product-card__media {
  display: grid;
  width: 100%;
  height: 138px;
  place-items: center;
  padding: 10px;
  border-radius: 3px;
  background: #f6f8f9;
}

.product-card__media img {
  width: 100%;
  height: 100%;
  max-height: 118px;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 0.18s ease;
}

.product-card:hover .product-card__media img {
  transform: scale(1.025);
}

.product-card__bottom {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  margin-top: 14px;
}

.product-card__actions {
  display: flex;
  min-width: 0;
  align-items: stretch;
  gap: 8px;
}

.product-card__whatsapp {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  height: 40px;
  padding: 0 10px;
  border-radius: var(--nx-button-radius);
  background: var(--nx-whatsapp);
  color: var(--nx-white);
  font-family: "Roboto", Arial, sans-serif;
  font-size: var(--nx-fs-12);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.25);
  transition: background 0.18s ease, transform 0.18s ease;
}

.product-card__whatsapp i {
  font-size: var(--nx-fs-15);
  line-height: 1;
  flex: 0 0 auto;
}

.product-card__whatsapp span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card__whatsapp:hover,
.product-card__whatsapp:focus-visible {
  background: var(--nx-whatsapp-hover);
  color: var(--nx-white);
  transform: translateY(-1px);
}

.price {
  min-width: 0;
  display: grid;
  gap: 2px;
  color: var(--nx-blue);
  font-family: "Roboto", Arial, sans-serif;
  font-size: var(--nx-fs-19);
  font-weight: 900;
  line-height: 1.1;
}

.price del {
  color: #8b929a;
  font-size: var(--nx-fs-13);
  font-weight: 800;
  line-height: 1;
}

.price ins {
  color: var(--nx-red);
  text-decoration: none;
  line-height: 1;
}

.add-cart {
  flex: 0 0 40px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: var(--nx-button-radius);
  background: var(--nx-red);
  color: var(--nx-white);
  font-size: var(--nx-fs-15);
  line-height: 1;
  box-shadow: 0 7px 14px rgba(237, 23, 79, 0.2);
  transition: background 0.18s ease, transform 0.18s ease;
}

.add-cart i {
  font-size: var(--nx-fs-15);
  line-height: 1;
}

.add-cart:hover,
.add-cart:focus-visible {
  background: #d01040;
  color: var(--nx-white);
  transform: translateY(-1px);
}

.product-lists {
  padding: var(--nx-space-xs) 0 var(--nx-section-end-compact);
}

.product-lists__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--nx-space-lg);
}

.mini-product {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  grid-template-areas:
    "image title"
    "image price";
  gap: var(--nx-space-xs) var(--nx-space-sm);
  align-items: start;
  min-height: 104px;
  padding: var(--nx-space-sm) 0;
  border-bottom: 1px solid rgba(229, 233, 239, 0.78);
}

.mini-product img {
  grid-area: image;
  width: 82px;
  height: 82px;
  padding: 10px;
  border-radius: 4px;
  background: #f6f8f9;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.mini-product > span {
  grid-area: title;
  min-width: 0;
  display: block;
  color: var(--nx-blue);
  font-family: "Roboto", Arial, sans-serif;
  font-size: var(--nx-fs-14);
  font-weight: 900;
  line-height: 1.25;
}

.mini-product strong {
  grid-area: price;
  min-width: 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 3px 8px;
  color: var(--nx-red);
  font-size: var(--nx-fs-15);
  line-height: 1.15;
}

.mini-product strong del,
.mini-product strong ins,
.mini-product strong .amount {
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
}

.mini-product strong del {
  color: #8b929a;
  font-size: var(--nx-fs-13);
  font-weight: 800;
}

.mini-product strong ins {
  color: var(--nx-red);
  font-size: var(--nx-fs-15);
  font-weight: 900;
  text-decoration: none;
}

.mini-product:last-child {
  border-bottom: 0;
}

.site-footer {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(35, 71, 147, 0.07) 0%, rgba(255, 255, 255, 0) 42%),
    var(--nx-white);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(260px, 1.15fr) minmax(190px, 0.7fr) minmax(220px, 0.85fr) minmax(180px, 0.7fr);
  gap: var(--nx-space-lg);
  padding: var(--nx-section-end-compact) 0 var(--nx-space-lg);
  border-top: 1px solid rgba(35, 71, 147, 0.1);
  align-items: start;
}

.footer-brand-section,
.footer-links,
.footer-contact-section,
.footer-social {
  min-width: 0;
}

.footer-brand__logo {
  display: inline-block;
  margin-bottom: 16px;
}

.footer-brand__logo img {
  display: block;
  width: 220px;
  height: auto;
}

.footer-brand__tagline {
  margin: 0 0 18px;
  color: #4f5e6d;
  line-height: 1.65;
  font-size: var(--nx-fs-14);
}

.footer-address {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 22px;
  color: #4f5e6d;
  font-size: var(--nx-fs-14);
  font-weight: 700;
  line-height: 1.5;
}

.footer-address i {
  flex: 0 0 18px;
  margin-top: 3px;
  color: var(--nx-blue);
  font-size: var(--nx-fs-16);
}

.footer-address--text {
  margin: 0 0 22px;
}

.footer-badges {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-badge {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  column-gap: 10px;
  align-items: center;
  color: #4f5e6d;
  font-size: var(--nx-fs-13);
  font-weight: 700;
  line-height: 1.35;
}

.footer-badge i {
  grid-column: 1;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: var(--nx-blue);
  background: none;
  font-size: var(--nx-fs-14);
}

.footer-badge span {
  grid-column: 2;
  min-width: 0;
}

.footer-contact-section h2,
.footer-links h2,
.footer-social h2 {
  margin: 0 0 16px;
  color: #344150;
  font-family: "Roboto", Arial, sans-serif;
  font-size: var(--nx-fs-14);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-contact__items {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px 0;
  margin-bottom: 16px;
}

.footer-contact__item {
  min-width: 0;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  column-gap: 12px;
  align-items: start;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  color: var(--nx-ink);
  text-decoration: none;
  transition: color 0.16s ease;
}

.footer-contact__item:hover,
.footer-contact__item:focus-visible {
  color: var(--nx-blue);
  outline: none;
}

.footer-contact__item i {
  grid-column: 1;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  margin-top: 2px;
  color: var(--nx-blue);
  background: none;
  font-size: var(--nx-fs-16);
}

.footer-contact__label {
  grid-column: 2;
  display: block;
  color: var(--nx-muted);
  font-size: var(--nx-fs-11);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
}

.footer-contact__value {
  grid-column: 2;
  display: block;
  margin-top: 2px;
  min-width: 0;
  color: var(--nx-ink);
  font-size: var(--nx-fs-14);
  font-weight: 800;
  line-height: 1.35;
  word-break: break-word;
}

.footer-whatsapp-cta {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  column-gap: 12px;
  align-items: center;
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: var(--nx-button-radius);
  background: var(--nx-whatsapp);
  color: var(--nx-white);
  text-decoration: none;
  transition: background-color 0.16s ease, transform 0.16s ease;
}

.footer-whatsapp-cta:hover,
.footer-whatsapp-cta:focus-visible {
  background: var(--nx-whatsapp-hover);
  color: var(--nx-white);
  transform: translateY(-1px);
  outline: none;
}

.footer-whatsapp-cta i {
  grid-column: 1;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  font-size: var(--nx-fs-18);
}

.footer-whatsapp-cta__label {
  grid-column: 2;
  display: block;
  font-size: var(--nx-fs-14);
  font-weight: 900;
  line-height: 1.2;
}

.footer-whatsapp-cta__note {
  grid-column: 2;
  display: block;
  margin-top: 2px;
  font-size: var(--nx-fs-12);
  font-weight: 600;
  opacity: 0.92;
  line-height: 1.2;
}

.footer-quote-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  color: var(--nx-blue);
  font-size: var(--nx-fs-13);
  font-weight: 800;
  text-decoration: none;
  transition: color 0.16s ease, transform 0.16s ease;
}

.footer-quote-link:hover,
.footer-quote-link:focus-visible {
  color: var(--nx-blue-dark);
  transform: translateX(2px);
  outline: none;
}

.footer-quote-link i:first-child {
  font-size: var(--nx-fs-14);
}

.footer-quote-link i:last-child {
  font-size: var(--nx-fs-11);
  margin-left: 2px;
}

.footer-links ul,
.footer-departments-menu {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-departments-menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  color: #4f5e6d;
  font-size: var(--nx-fs-14);
  font-weight: 700;
  transition: color 0.16s ease, transform 0.16s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--nx-blue);
  transform: translateX(2px);
  outline: none;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 7px 12px 7px 10px;
  border-radius: var(--nx-button-radius);
  color: var(--nx-ink);
  background: var(--nx-white);
  font-size: var(--nx-fs-13);
  font-weight: 800;
  box-shadow: 0 6px 14px rgba(25, 44, 68, 0.05);
  text-decoration: none;
  transition: transform 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.social-links a:hover,
.social-links a:focus-visible {
  color: var(--nx-blue);
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(25, 44, 68, 0.08);
  outline: none;
}

.footer-payments {
  background: rgba(35, 71, 147, 0.04);
  border-top: 1px solid rgba(35, 71, 147, 0.08);
  border-bottom: 1px solid rgba(35, 71, 147, 0.08);
}

.footer-payments__inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--nx-space-sm);
  padding: var(--nx-space-sm) 0;
}

.footer-payments__label {
  color: var(--nx-muted);
  font-size: var(--nx-fs-12);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-payments__list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--nx-space-xs) var(--nx-space-sm);
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-payment {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--nx-white);
  color: var(--nx-ink);
  box-shadow: 0 4px 10px rgba(25, 44, 68, 0.06);
  font-size: var(--nx-fs-22);
  line-height: 1;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.footer-payment:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(25, 44, 68, 0.1);
}

.footer-bottom {
  background: #e8edf4;
  color: #4f5e6d;
  font-size: var(--nx-fs-13);
}

.footer-bottom__inner {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--nx-space-xs) var(--nx-space-sm);
  padding: var(--nx-space-sm) 0;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom__links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 16px;
}

.footer-bottom__links a {
  font-weight: 800;
  color: var(--nx-ink);
  text-decoration: none;
  transition: color 0.16s ease;
}

.footer-bottom__links a:hover,
.footer-bottom__links a:focus-visible {
  color: var(--nx-blue);
  outline: none;
}

.footer-bottom__signature {
  margin: 0;
  color: var(--nx-muted);
  font-size: var(--nx-fs-12);
  font-weight: 600;
}

.footer-bottom__signature a {
  color: var(--nx-ink);
  font-weight: 800;
  text-decoration: none;
  transition: color 0.16s ease;
}

.footer-bottom__signature a:hover,
.footer-bottom__signature a:focus-visible {
  color: var(--nx-blue);
  outline: none;
}

.whatsapp-float,
.scroll-top {
  position: fixed;
  right: 22px;
  z-index: 50;
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--nx-white);
  box-shadow: 0 12px 28px rgba(29, 45, 68, 0.22);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.scroll-top {
  bottom: 100px;
  background: #aab2bb;
  cursor: pointer;
  font-size: var(--nx-fs-18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 200ms ease, transform 200ms ease, visibility 0s linear 200ms, background 160ms ease, box-shadow 160ms ease;
}

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition: opacity 200ms ease, transform 200ms ease, visibility 0s linear 0s, background 160ms ease, box-shadow 160ms ease;
}

.scroll-top:hover,
.scroll-top:focus-visible {
  background: #8a929c;
  transform: scale(1.06);
  outline: none;
}

@media (prefers-reduced-motion: reduce) {
  .scroll-top { transition: none; }
}

.whatsapp-float {
  bottom: 28px;
  background: var(--nx-whatsapp);
  font-size: var(--nx-fs-28);
  text-decoration: none;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  background: var(--nx-whatsapp-hover);
  transform: scale(1.06);
  box-shadow: 0 16px 32px rgba(29, 45, 68, 0.28);
  outline: none;
}

/* Pulse ring to draw attention to the WhatsApp bubble. */
.whatsapp-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--nx-whatsapp);
  opacity: 0.55;
  z-index: -1;
  animation: nx-whatsapp-pulse 2.4s ease-out infinite;
  pointer-events: none;
}

@keyframes nx-whatsapp-pulse {
  0%   { transform: scale(1);   opacity: 0.55; }
  70%  { transform: scale(1.7); opacity: 0;   }
  100% { transform: scale(1.7); opacity: 0;   }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float::before,
  .whatsapp-float { animation: none; transition: none; }
}

@media (max-width: 480px) {
  .whatsapp-float,
  .scroll-top {
    right: 14px;
    width: 52px;
    height: 52px;
    font-size: var(--nx-fs-24);
  }
  .whatsapp-float { bottom: 24px; }
}

/* ============================================================
 * Cotizaciones — modal that appears directly on the cart page
 * ============================================================ */

.cotizar-panel {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  overflow-y: auto;
  background: rgba(15, 23, 42, 0.55);
}

.cotizar-panel:target {
  display: block;
}

.cotizar-panel__sheet {
  background: var(--nx-white);
  max-width: 880px;
  margin: 32px auto;
  border-radius: var(--nx-radius);
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.35);
  overflow: hidden;
}

.cotizar-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 20px;
  background: #f8f9fa;
  border-bottom: 1px solid var(--nx-line);
  position: sticky;
  top: 0;
  z-index: 2;
}

.cotizar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  font-weight: 700;
  font-size: var(--nx-fs-12);
  letter-spacing: 0.6px;
  border-radius: var(--nx-button-radius);
  text-decoration: none;
  cursor: pointer;
  border: 0;
  transition: background 160ms ease, color 160ms ease;
}

.cotizar-btn--primary {
  background: var(--nx-blue);
  color: var(--nx-white);
}

.cotizar-btn--primary:hover,
.cotizar-btn--primary:focus-visible {
  background: var(--nx-blue-dark);
  outline: none;
}

.cotizar-btn--ghost {
  background: transparent;
  color: var(--nx-ink);
  border: 1px solid var(--nx-line);
}

.cotizar-btn--ghost:hover,
.cotizar-btn--ghost:focus-visible {
  background: var(--nx-soft);
  outline: none;
}

.cotizar-doc {
  padding: 32px 36px;
  font-family: 'Tahoma', Geneva, sans-serif;
  font-size: var(--nx-fs-11);
  line-height: 1.55;
  color: #000;
}

/* Top row: logo on the left, "COTIZACIÓN" + meta on the right */
.cotizar-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
}

.cotizar-brand {
  flex: 0 0 auto;
}

.cotizar-logo {
  max-height: 55px;
  width: auto;
  display: block;
}

.cotizar-meta-top {
  text-align: right;
  margin-left: auto;
}

.cotizar-title {
  font-size: var(--nx-fs-18);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 0 0 8px 0;
}

/* Company info: full-width row BELOW the logo */
.cotizar-empresa {
  margin-bottom: 18px;
  font-size: var(--nx-fs-11);
}

.cotizar-empresa__name {
  display: block;
  font-size: var(--nx-fs-13);
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.cotizar-empresa p {
  margin: 0;
}

/* Client info: simple block below company */
.cotizar-cliente {
  font-size: var(--nx-fs-11);
  margin-bottom: 20px;
}

.cotizar-cliente > div {
  display: block;
}

.cotizar-label {
  font-weight: 700;
}

.cotizar-meta-table {
  border-collapse: collapse;
  font-size: var(--nx-fs-11);
  margin-left: auto;
}

.cotizar-meta-table th {
  text-align: left;
  font-weight: 700;
  width: 100px;
  padding: 0 0 4px 0;
  vertical-align: top;
}

.cotizar-meta-table td {
  padding: 0 0 4px 0;
  vertical-align: top;
}

.cotizar-items {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
}

.cotizar-items th {
  font-weight: 700;
  font-size: var(--nx-fs-11);
  text-transform: uppercase;
  padding: 0 4px 12px 4px;
  text-align: right;
  border-bottom: 1px solid #e3e8ee;
}

.cotizar-items td {
  font-size: var(--nx-fs-11);
  padding: 10px 4px;
  vertical-align: top;
  border-bottom: 1px solid #f1f3f6;
}

.cotizar-items th.cot-col-codigo,
.cotizar-items th.cot-col-desc {
  text-align: left;
}

.cot-col-codigo { width: 12%; }
.cot-col-desc   { width: 40%; }
.cot-col-cant   { width: 8%;  text-align: right; }
.cot-col-precio,
.cot-col-itbis,
.cot-col-total  { width: 13.33%; text-align: right; }

.cotizar-desc {
  display: inline-block;
  margin-top: 4px;
  color: #333;
  font-size: var(--nx-fs-10);
  line-height: 1.4;
}

.cotizar-totales {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

.cotizar-totales table {
  width: 38%;
  border-collapse: collapse;
  font-size: var(--nx-fs-11);
}

.cotizar-totales th {
  text-align: left;
  font-weight: 700;
  padding: 5px 4px;
}

.cotizar-totales td {
  text-align: right;
  padding: 5px 4px;
}

.cotizar-total-row th,
.cotizar-total-row td {
  font-weight: 700;
  border-top: 1px solid #000;
  padding-top: 10px;
}

@media (max-width: 720px) {
  .cotizar-panel__sheet { margin: 12px; }
  .cotizar-doc { padding: 18px; }
  .cotizar-top { flex-direction: column; gap: 16px; }
  .cotizar-meta-top { text-align: left; margin-left: 0; }
  .cotizar-meta-table { margin-left: 0; }
  .cotizar-totales table { width: 100%; }
}

@media print {
  .site-header,
  .site-footer,
  .newsletter,
  .top-strip,
  .woocommerce-notices-wrapper,
  .woocommerce-cart-form,
  .cart_totals,
  .wc-proceed-to-checkout,
  .button-cotizar,
  .header-actions,
  .whatsapp-float,
  .scroll-top,
  .skip-link,
  body > *:not(.cotizar-panel) {
    display: none !important;
  }

  .cotizar-panel {
    display: block !important;
    position: static !important;
    background: #fff !important;
    overflow: visible !important;
  }

  .cotizar-panel__sheet {
    box-shadow: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
  }

  .cotizar-actions {
    display: none !important;
  }
}

.content-page,
.shop-page {
  padding: 56px 0;
}

.content-page h1,
.shop-page h1,
.woocommerce-products-header__title {
  font-family: "Roboto", Arial, sans-serif;
  color: #344150;
}

.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin: 24px 0;
  padding: 0;
}

.woocommerce ul.products li.product {
  width: auto;
  margin: 0;
  padding: 16px;
  border-right: 1px solid var(--nx-line);
  border-bottom: 1px solid var(--nx-line);
  list-style: none;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  color: var(--nx-blue);
  font-family: "Roboto", Arial, sans-serif;
  font-size: var(--nx-fs-14);
  font-weight: 900;
}

.woocommerce .button,
.woocommerce a.button,
.woocommerce button.button {
  border-radius: var(--nx-button-radius);
  background: var(--nx-red);
  color: var(--nx-white);
  font-weight: 800;
}

.shop-archive-page {
  padding: 16px 0 70px;
}

.shop-archive-breadcrumb {
  margin-bottom: 22px;
}

.shop-archive-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.shop-archive-header h1 {
  margin: 0;
  color: #344150;
  font-family: "Roboto", Arial, sans-serif;
  font-size: var(--nx-fs-30);
  line-height: 1.2;
  font-weight: 900;
}

.shop-archive-description {
  max-width: 780px;
  margin-top: 10px;
  color: #6d7782;
  line-height: 1.6;
}

.shop-archive-description p {
  margin: 0;
}

.shop-archive-layout {
  display: grid;
  grid-template-columns: 255px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.shop-archive-sidebar {
  min-width: 0;
}

.shop-archive-content {
  min-width: 0;
}

.shop-archive-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--nx-line);
}

.shop-result-count,
.shop-result-count p {
  margin: 0;
  color: #596674;
  font-size: var(--nx-fs-14);
}

.shop-ordering form,
.shop-ordering .woocommerce-ordering {
  margin: 0;
}

.shop-ordering select {
  width: 100%;
  height: 42px;
  padding: 0 40px 0 14px;
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-button-radius);
  background: var(--nx-white);
  color: #4f5e6d;
  font: inherit;
}

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

.shop-product-grid .product-card {
  padding: 20px 18px 18px;
}

.shop-product-grid .product-card__media {
  height: 156px;
}

.shop-product-grid .product-card__media img {
  max-height: 136px;
}

.shop-product-grid .product-card h3 {
  font-size: var(--nx-fs-15);
  -webkit-line-clamp: 4;
}

.shop-product-grid .price {
  font-size: var(--nx-fs-18);
}

.shop-product-grid .add-cart {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
}

.shop-archive-page .woocommerce-pagination {
  margin-top: 34px;
}

.shop-archive-page .woocommerce-pagination ul {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  list-style: none;
}

.shop-archive-page .woocommerce-pagination li {
  border: 0;
}

.shop-archive-page .woocommerce-pagination a,
.shop-archive-page .woocommerce-pagination span {
  display: grid;
  min-width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-button-radius);
  color: var(--nx-blue);
  font-weight: 800;
}

.shop-archive-page .woocommerce-pagination .current {
  background: var(--nx-blue);
  color: var(--nx-white);
  border-color: var(--nx-blue);
}

.shop-empty-state {
  padding: 34px;
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-radius);
  color: #596674;
}

.single-product-page {
  padding: 18px 0 0;
}

.product-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  color: #6d7782;
  font-size: var(--nx-fs-13);
}

.product-breadcrumb a {
  color: #607080;
}

.breadcrumb-separator {
  color: #9aa4af;
}

.single-product-layout {
  display: grid;
  grid-template-columns: 255px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.single-product-content {
  min-width: 0;
}

.product-sidebar {
  display: grid;
  gap: 30px;
}

.sidebar-category-box {
  border: 1px solid var(--nx-line);
  border-radius: 5px;
  background: var(--nx-white);
  overflow: hidden;
}

.sidebar-category-box a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--nx-line);
  color: #687482;
  font-size: var(--nx-fs-13);
}

.sidebar-category-box a:last-child {
  border-bottom: 0;
}

.sidebar-current-cat strong {
  color: #596575;
}

.sidebar-current-cat small {
  color: #8c96a2;
  font-weight: 700;
}

.latest-products-widget .section-heading h2 {
  font-size: var(--nx-fs-19);
}

.sidebar-product {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 15px 0;
}

.sidebar-product img {
  width: 68px;
  height: 68px;
  object-fit: contain;
}

.sidebar-product span {
  color: #647180;
  font-size: var(--nx-fs-13);
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
}

.sidebar-product strong {
  grid-column: 2;
  color: #4e5967;
  font-size: var(--nx-fs-13);
  font-weight: 900;
}

.text-balance {
  text-wrap: balance;
}

.text-pretty {
  text-wrap: pretty;
}

.hero-copy h1,
.hero-copy p,
.promo-card span,
.department-card h2,
.section-heading h2,
.compact-list h2,
.product-card h3,
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.content-page h1,
.shop-page h1,
.woocommerce-products-header__title,
.shop-archive-header h1,
.product-summary-panel h1,
.cart-collaterals h2,
.cart-summary h2,
.cart-summary .cart_totals h2,
.checkout-fields-col h3,
.checkout-fields-col .woocommerce-billing-fields h3,
.checkout-fields-col .woocommerce-shipping-fields h3,
.checkout-fields-col .woocommerce-additional-fields h3,
.checkout-heading__title,
.checkout-summary__title,
.thankyou-hero__title,
.thankyou-section__title,
.thankyou-item__name,
.contact-panel h1,
.search-header h1,
.search-suggest__name,
.mini-cart__name,
.cart-item__name,
.nx-myaccount__title,
.nx-myaccount__content h2,
.nx-myaccount__content h3,
.nx-myaccount-dashboard__head h2,
.nx-login-column__head h2,
.nx-login-page__title,
.nx-slide__title {
  text-wrap: balance;
}

.shop-archive-description,
.product-short-description,
.contact-panel__intro p,
.search-empty p,
.nx-login-column__head p,
.nx-slide__desc {
  text-wrap: pretty;
}

.single-product-main {
  display: grid;
  grid-template-columns: minmax(300px, 43%) minmax(360px, 1fr);
  gap: 50px;
  align-items: center;
  min-height: 500px;
}

/* Galeria de producto */
.product-gallery {
  position: relative;
  display: grid;
  grid-template-columns: 88px 1fr;
  grid-template-areas: "thumbs main";
  gap: 14px;
  align-items: start;
}

.product-gallery.no-thumbnails {
  grid-template-columns: 1fr;
  grid-template-areas: "main";
}

.product-gallery__main {
  grid-area: main;
  position: relative;
  margin: 0;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #fff;
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-radius);
  overflow: hidden;
}

.product-gallery__slide {
  display: none;
  width: 100%;
  height: 100%;
  position: relative;
}

.product-gallery__slide.is-active {
  display: grid;
  place-items: center;
}

.product-gallery__zoom {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  cursor: zoom-in;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}

.product-gallery__image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.product-gallery__zoom:hover .product-gallery__image {
  transform: scale(1.08);
}

.product-gallery__soldout {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 3;
  padding: 6px 14px;
  background: var(--nx-red);
  color: var(--nx-white);
  font-family: "Roboto", Arial, sans-serif;
  font-size: var(--nx-fs-12);
  font-weight: 900;
  letter-spacing: 0.06em;
  border-radius: var(--nx-button-radius);
  box-shadow: var(--nx-shadow-red);
}

.product-gallery__thumbs {
  grid-area: thumbs;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 520px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(35, 71, 147, 0.25) transparent;
}

.product-gallery__thumbs::-webkit-scrollbar {
  width: 6px;
}

.product-gallery__thumbs::-webkit-scrollbar-thumb {
  background: rgba(35, 71, 147, 0.25);
  border-radius: 3px;
}

.product-gallery__thumb-item {
  position: relative;
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--nx-line);
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.product-gallery__thumb-item:hover {
  border-color: var(--nx-blue);
}

.product-gallery__thumb-item.is-active {
  border-color: var(--nx-blue);
  box-shadow: 0 0 0 2px rgba(35, 71, 147, 0.18);
}

.product-gallery__thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-summary-panel {
  align-self: center;
}

.product-summary-panel h1 {
  max-width: min(100%, 760px);
  margin: 4px 0 12px;
  color: #3b4652;
  font-family: "Roboto", Arial, sans-serif;
  font-size: var(--nx-fs-26);
  font-weight: 900;
  line-height: 1.18;
  text-transform: uppercase;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
}

.product-meta-line {
  display: grid;
  gap: 4px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--nx-line);
  color: #4f5d6d;
  font-size: var(--nx-fs-13);
}

.product-short-description {
  padding: 18px 0 12px;
  color: #8a929b;
  font-size: var(--nx-fs-13);
}

.single-price {
  margin: 6px 0 10px;
  color: var(--nx-blue);
  font-family: "Roboto", Arial, sans-serif;
  font-size: var(--nx-fs-22);
  font-weight: 900;
}

.single-price del {
  color: #9aa4af;
  font-size: var(--nx-fs-15);
}

.single-price ins {
  color: var(--nx-red);
  text-decoration: none;
}

.single-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  width: 100%;
}

.whatsapp-order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 170px;
  width: 170px;
  height: 44px;
  min-height: 44px;
  border-radius: var(--nx-button-radius);
  background: var(--nx-whatsapp);
  color: var(--nx-white);
  font-family: "Roboto", Arial, sans-serif;
  font-size: var(--nx-fs-14);
  font-weight: 900;
  text-transform: uppercase;
  transition: background 0.2s ease;
  order: 2;
}

.whatsapp-order:hover {
  background: #128c7e;
  color: var(--nx-white);
}

.nx-single-cart {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  flex: 1;
  max-width: 320px;
  order: 1;
}

.nx-single-cart .quantity {
  margin: 0;
}

.nx-single-cart .qty {
  width: 70px;
  height: 44px;
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-button-radius);
  text-align: center;
  padding: 0;
  color: #5f6b78;
  outline: 0;
}

.nx-single-cart .single_add_to_cart_button,
.default-product-cart .single_add_to_cart_button {
  flex: 1;
  height: 44px;
  min-height: 44px;
  margin-left: 0;
  padding: 0 16px;
  border: 0;
  border-radius: var(--nx-button-radius);
  background: var(--nx-red);
  color: var(--nx-white);
  font-family: "Roboto", Arial, sans-serif;
  font-size: var(--nx-fs-13);
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.woocommerce .nx-single-cart .single_add_to_cart_button,
.woocommerce .default-product-cart .single_add_to_cart_button {
  background: var(--nx-red);
  color: var(--nx-white);
}

.woocommerce .nx-single-cart .single_add_to_cart_button:hover,
.woocommerce .default-product-cart .single_add_to_cart_button:hover {
  background: #d01040;
}

.single-description-section {
  width: 100%;
  max-width: none;
  margin: clamp(34px, 4vw, 58px) 0 56px;
}

.single-description-section .section-heading {
  margin-bottom: 0;
  text-align: left;
}

.description-box {
  min-height: 144px;
  padding: 26px clamp(18px, 2.4vw, 34px) 0;
  color: #5b6672;
  font-size: var(--nx-fs-14);
}

.description-box :first-child {
  margin-top: 0;
}

.description-box :last-child {
  margin-bottom: 0;
}

.related-products-section {
  margin: 0 0 64px;
}

.related-product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.single-product-lists {
  padding-top: 0;
}

@media (max-width: 1024px) {
  .masthead {
    grid-template-columns: 190px minmax(260px, 1fr) auto;
    gap: 22px;
  }

  .brand img {
    width: 185px;
  }

  .hero-shell__grid {
    grid-template-columns: 1fr;
  }

  .promo-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-preview__grid {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: var(--nx-space-md);
  }

  .product-grid,
  .woocommerce ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .shop-archive-layout {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: var(--nx-space-md);
  }

  .shop-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-lists__grid {
    grid-template-columns: 1fr;
  }

  .footer-main {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: var(--nx-space-md);
  }

  .footer-brand-section,
  .footer-contact-section {
    grid-column: span 2;
  }

  .single-product-layout {
    grid-template-columns: 1fr;
  }

  .product-sidebar {
    order: 2;
  }

  .single-product-main {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .single-description-section,
  .related-products-section {
    margin-left: 0;
  }

  .related-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .top-strip {
    display: none;
  }

  .masthead {
    min-height: auto;
    grid-template-columns: 44px 1fr auto;
    gap: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .menu-toggle {
    display: grid;
    width: 40px;
    height: 40px;
    align-content: center;
    gap: 5px;
    border: 0;
    background: transparent;
    padding: 0;
  }

  .menu-toggle span:not(.screen-reader-text) {
    display: block;
    width: 22px;
    height: 2px;
    margin-inline: auto;
    background: var(--nx-ink);
  }

  .brand img {
    width: 122px;
  }

  .product-search {
    grid-column: 1 / -1;
    grid-row: 2;
    height: 42px;
  }

  .header-actions {
    gap: 8px;
  }

  .icon-link {
    display: none;
  }

  .cart-link {
    gap: 0;
  }

  .cart-link strong {
    display: none;
  }

  .store-nav {
    display: none;
  }

  .store-nav.is-open {
    display: block;
  }

  .store-nav__inner {
    width: 100%;
    border-radius: 0;
  }

  .primary-menu {
    display: grid;
    min-height: 0;
    padding: 10px 16px;
  }

  .primary-menu a {
    min-height: 42px;
  }

  .hero-shell {
    padding: var(--nx-space-xs) 0 var(--nx-space-lg);
  }

  .hero-stage:not(:has(.nx-slider)) {
    display: none;
  }

  .promo-stack {
    grid-template-columns: 1fr;
    gap: var(--nx-space-sm);
  }

  .promo-card {
    min-height: 118px;
    padding: 22px 132px 18px 26px;
  }

  .promo-card span {
    font-size: var(--nx-fs-15);
  }

  .catalog-preview {
    padding-top: var(--nx-space-xs);
  }

  .catalog-preview__grid {
    grid-template-columns: 1fr;
  }

  .department-card {
    order: 2;
  }

  .shop-archive-page {
    padding: 10px 0 44px;
  }

  .shop-archive-header {
    margin-bottom: 18px;
  }

  .shop-archive-header h1 {
    font-size: var(--nx-fs-24);
  }

  .shop-archive-layout {
    grid-template-columns: 1fr;
  }

  .shop-archive-sidebar {
    order: 2;
  }

  .shop-archive-toolbar {
    grid-template-columns: 1fr;
    gap: var(--nx-space-sm);
  }

  .shop-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--nx-space-sm);
  }

  .shop-product-grid .product-card {
    padding: 12px 10px 14px;
  }

  .shop-product-grid .product-card__media {
    height: 126px;
  }

  .shop-product-grid .product-card__media img {
    max-height: 124px;
  }

  .product-grid,
  .woocommerce ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--nx-space-sm);
  }

  .product-card {
    padding: 12px 10px 16px;
  }

  .product-card h3 {
    font-size: var(--nx-fs-12);
  }

  .product-card__media {
    height: 126px;
  }

  .price {
    font-size: var(--nx-fs-16);
  }

  .price del {
    font-size: var(--nx-fs-12);
  }

  .add-cart {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    background: var(--nx-red);
    box-shadow: 0 6px 14px rgba(237, 23, 79, 0.35);
  }

  .product-card__whatsapp {
    height: 40px;
    padding: 0 12px;
    font-size: var(--nx-fs-12);
    gap: 6px;
  }

  .product-card__whatsapp i {
    font-size: var(--nx-fs-15);
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: var(--nx-space-lg);
    padding: var(--nx-section-end-compact) 0;
  }

  .footer-contact__items,
  .footer-links ul,
  .footer-departments-menu {
    grid-template-columns: 1fr;
  }

  .footer-payments__inner {
    flex-direction: column;
    gap: var(--nx-space-xs);
  }

  .footer-bottom__inner {
    min-height: 72px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: var(--nx-space-xs);
  }

  .single-product-page {
    padding-top: 10px;
  }

  .product-breadcrumb {
    overflow-x: auto;
    flex-wrap: nowrap;
    white-space: nowrap;
  }

  .single-product-main {
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: start;
  }

  .product-gallery {
    grid-template-columns: 1fr;
    grid-template-areas:
      "main"
      "thumbs";
    gap: 12px;
  }

  .product-gallery__main {
    aspect-ratio: 1 / 1;
    min-height: 0;
  }

  .product-gallery__thumbs {
    flex-direction: row;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
  }

  .product-gallery__thumb-item {
    flex: 0 0 auto;
    width: 72px;
    height: 72px;
    scroll-snap-align: start;
  }

  .product-summary-panel h1 {
    font-size: var(--nx-fs-20);
    max-width: none;
  }

  .single-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .whatsapp-order {
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
  }

  .nx-single-cart {
    width: 100%;
    max-width: 100%;
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 12px;
  }

  .nx-single-cart .qty,
  .nx-single-cart .single_add_to_cart_button {
    width: 100%;
  }

  .single-description-section {
    margin-top: 36px;
  }

  .description-box {
    padding: 22px 18px;
  }

  .related-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sidebar-product {
    grid-template-columns: 76px minmax(0, 1fr);
  }
}

/* ==========================================================================
   WOOCOMMERCE PAGES (CART, MY ACCOUNT & GLOBAL WC)
   ========================================================================== */

/* Notificaciones y avisos globales */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-notice {
  padding: 14px 20px;
  margin-bottom: 28px;
  border-radius: var(--nx-radius);
  background: var(--nx-soft);
  border-left: 4px solid var(--nx-blue);
  color: var(--nx-ink);
  font-size: var(--nx-fs-14);
  list-style: none;
}
.woocommerce-error {
  border-left-color: var(--nx-red);
}
.woocommerce-message {
  border-left-color: #2ec4b6;
}

/* Títulos centrados */
.page-title-centered {
  text-align: center;
  margin-top: 14px;
  margin-bottom: 32px;
  font-family: "Roboto", Arial, sans-serif;
  font-weight: 900;
  font-size: var(--nx-fs-32);
  color: var(--nx-ink);
}

/* Inputs y Formularios de WooCommerce */
.woocommerce form .form-row {
  margin-bottom: 16px;
  display: block;
}
.woocommerce form .form-row label {
  display: block;
  margin-bottom: 6px;
  font-size: var(--nx-fs-14);
  font-weight: 600;
  color: var(--nx-ink);
}
.woocommerce form input[type="text"],
.woocommerce form input[type="email"],
.woocommerce form input[type="tel"],
.woocommerce form input[type="password"],
.woocommerce form select,
.woocommerce form textarea {
  width: 100%;
  height: 42px;
  padding: 0 16px;
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-radius);
  background: var(--nx-white);
  color: var(--nx-ink);
  transition: border-color 0.2s ease;
}
.woocommerce form input:focus,
.woocommerce form select:focus,
.woocommerce form textarea:focus {
  border-color: var(--nx-blue);
  outline: none;
}
.woocommerce form textarea {
  height: auto;
  padding-top: 12px;
}

/* Botones nativos de WooCommerce */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 24px;
  border: 0;
  border-radius: var(--nx-button-radius);
  background: var(--nx-blue);
  color: var(--nx-white);
  font-family: "Roboto", Arial, sans-serif;
  font-weight: 900;
  font-size: var(--nx-fs-14);
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  background: var(--nx-blue-dark);
}

/* Botón destacado rojo (Checkout y Acciones principales) */
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
  background: var(--nx-red);
}
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
  background: #d01040;
}

/* --------------------------------------------------------------------------
   MI CUENTA (WOOCOMMERCE MY ACCOUNT)
   -------------------------------------------------------------------------- */

/* El wrapper .nx-myaccount es un bloque simple. El grid de 2 columnas vive
 * en .nx-myaccount__layout (header del saludo + sidebar + content). Antes
 * este selector era un grid 270px/1fr, lo que metía el H1 "Hola, [name]"
 * en la columna 1 y el resto del layout en la columna 2 — visualmente el
 * saludo quedaba como una columna rara a la izquierda. El comentario
 * original esta conservado abajo en git history si hace falta volver a el. */

/* Navegación vertical (los estilos de card — bg, border, shadow — los provee
 * el wrapper .nx-myaccount__nav, no los duplicamos aca para evitar doble
 * borde). Solo dejamos los resets de lista, los items y los iconos. */
.woocommerce-MyAccount-navigation {
  /* sin bg/border/radius/shadow: lo provee .nx-myaccount__nav */
}
.woocommerce-MyAccount-navigation ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.woocommerce-MyAccount-navigation-link {
  border-bottom: 1px solid var(--nx-line);
}
.woocommerce-MyAccount-navigation-link:last-child {
  border-bottom: 0;
}
.woocommerce-MyAccount-navigation-link a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  color: var(--nx-ink);
  font-weight: 600;
  font-size: var(--nx-fs-14);
  transition: background 0.2s ease, color 0.2s ease;
}
.woocommerce-MyAccount-navigation-link a:hover {
  background: var(--nx-soft);
  color: var(--nx-blue);
}
.woocommerce-MyAccount-navigation-link.is-active a {
  background: var(--nx-soft);
  color: var(--nx-blue);
  font-weight: 700;
}

/* Iconos de la navegación */
.woocommerce-MyAccount-navigation-link a::after {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: var(--nx-fs-15);
  color: var(--nx-muted);
  transition: color 0.2s ease;
}
.woocommerce-MyAccount-navigation-link a:hover::after,
.woocommerce-MyAccount-navigation-link.is-active a::after {
  color: var(--nx-blue);
}
.woocommerce-MyAccount-navigation-link--dashboard a::after { content: "\f3fd"; }
.woocommerce-MyAccount-navigation-link--orders a::after { content: "\f291"; }
.woocommerce-MyAccount-navigation-link--downloads a::after { content: "\f1c6"; }
.woocommerce-MyAccount-navigation-link--edit-address a::after { content: "\f015"; }
.woocommerce-MyAccount-navigation-link--edit-account a::after { content: "\f007"; }
.woocommerce-MyAccount-navigation-link--customer-logout a::after { content: "\f2f5"; }

/* Contenido de la cuenta (el card de fondo lo provee .nx-myaccount__content). */
.woocommerce-MyAccount-content {
  /* sin bg/border/radius/shadow/padding: lo provee .nx-myaccount__content */
}
.woocommerce-MyAccount-content p {
  margin-top: 0;
  margin-bottom: 18px;
}

/* Lista de productos recomendados abajo */
.product-lists--my-account {
  margin-top: 52px;
  padding-top: 36px;
  border-top: 1px solid var(--nx-line);
}

/* --------------------------------------------------------------------------
   CARRITO DE COMPRAS (WOOCOMMERCE CART)
   -------------------------------------------------------------------------- */

@media (min-width: 992px) {
  .woocommerce-cart .woocommerce {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 32px;
    align-items: start;
    margin-bottom: 48px;
  }
}

/* Formulario del Carrito */
.woocommerce-cart-form {
  background: var(--nx-white);
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-radius);
  box-shadow: var(--nx-shadow);
  padding: 24px;
}

/* Tabla del Carrito */
.shop_table.cart {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
}
.shop_table.cart th {
  text-align: left;
  padding: 12px 16px;
  font-family: "Roboto", Arial, sans-serif;
  font-weight: 900;
  font-size: var(--nx-fs-13);
  text-transform: uppercase;
  color: var(--nx-ink);
  background: var(--nx-soft);
  border-bottom: 2px solid var(--nx-line);
}
.shop_table.cart td {
  padding: 16px;
  border-bottom: 1px solid var(--nx-line);
  vertical-align: middle;
}
.shop_table.cart .product-remove {
  width: 42px;
}
.shop_table.cart .product-remove a {
  font-size: var(--nx-fs-20);
  color: var(--nx-muted);
  transition: color 0.2s ease;
}
.shop_table.cart .product-remove a:hover {
  color: var(--nx-red);
}
.shop_table.cart .product-thumbnail img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 4px;
  background: var(--nx-soft);
}
.shop_table.cart .product-name a {
  font-weight: 700;
  color: var(--nx-blue);
}
.shop_table.cart .product-name a:hover {
  color: var(--nx-blue-dark);
}
.shop_table.cart .product-quantity input.qty {
  width: 60px;
  height: 36px;
  text-align: center;
  padding: 0;
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-button-radius);
}

/* Acciones inferiores de la tabla */
.shop_table.cart td.actions {
  padding: 20px 16px;
}
.shop_table.cart .coupon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.shop_table.cart .coupon input[type="text"] {
  height: 40px;
  width: 180px;
  padding: 0 14px;
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-button-radius);
  background: var(--nx-white);
  color: var(--nx-ink);
  outline: none;
}
.shop_table.cart .coupon input[type="text"]:focus {
  border-color: var(--nx-blue);
}

/* Buttons across the cart actions / coupon row */
.shop_table.cart .coupon button,
.shop_table.cart .coupon button.button,
.shop_table.cart td.actions button,
.shop_table.cart td.actions button.button,
.shop_table.cart td.actions input[type="submit"] {
  height: 40px;
  padding: 0 22px;
  border-radius: var(--nx-button-radius);
  background: var(--nx-blue);
  color: var(--nx-white);
  font-weight: 700;
  font-size: var(--nx-fs-13);
  letter-spacing: 0.4px;
  border: 0;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

.shop_table.cart .coupon button:hover,
.shop_table.cart td.actions button:hover,
.shop_table.cart td.actions input[type="submit"]:hover {
  background: var(--nx-blue-dark);
}

/* "Actualizar carrito" specifically — outline button to differentiate from primary CTAs */
.shop_table.cart td.actions button[name="update_cart"],
.shop_table.cart td.actions input[name="update_cart"] {
  background: transparent;
  color: var(--nx-blue);
  border: 1px solid var(--nx-blue);
}

.shop_table.cart td.actions button[name="update_cart"]:hover,
.shop_table.cart td.actions input[name="update_cart"]:hover {
  background: var(--nx-blue);
  color: var(--nx-white);
}

/* Make sure quantity spinner is clean */
.cart-page .quantity .qty {
  width: 64px;
  height: 40px;
  padding: 0 8px;
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-button-radius);
  background: var(--nx-white);
  color: var(--nx-ink);
  font-weight: 600;
  text-align: center;
}

.cart-page .quantity {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cart-page .quantity .qty:focus {
  outline: 2px solid var(--nx-blue);
  outline-offset: 1px;
}

/* Totales del Carrito */
.cart-collaterals {
  background: var(--nx-white);
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-radius);
  box-shadow: var(--nx-shadow);
  padding: 24px;
}
.cart-collaterals h2 {
  margin-top: 0;
  margin-bottom: 16px;
  font-family: "Roboto", Arial, sans-serif;
  font-weight: 900;
  font-size: var(--nx-fs-18);
  color: var(--nx-ink);
  border-bottom: 2px solid var(--nx-blue);
  padding-bottom: 8px;
}
.cart-collaterals .shop_table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}
.cart-collaterals .shop_table th,
.cart-collaterals .shop_table td {
  padding: 12px 0;
  border-bottom: 1px solid var(--nx-line);
  text-align: left;
}
.cart-collaterals .shop_table th {
  font-weight: 600;
  color: var(--nx-muted);
}
.cart-collaterals .shop_table td {
  text-align: right;
  font-weight: 700;
}
.cart-collaterals .order-total td {
  font-size: var(--nx-fs-18);
  color: var(--nx-blue);
}
/* Sit the "Finalizar compra" link and the COTIZAR button side by side. */
.wc-proceed-to-checkout {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 0 0 0;
  margin-top: 16px;
}

.wc-proceed-to-checkout > a,
.wc-proceed-to-checkout > .button,
.wc-proceed-to-checkout .button-cotizar {
  flex: 1 1 200px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 24px;
  margin: 0;
  border-radius: var(--nx-button-radius);
  background: var(--nx-red);
  color: var(--nx-white);
  font-weight: 900;
  font-size: var(--nx-fs-14);
  text-align: center;
  text-decoration: none;
  letter-spacing: 0.5px;
  border: 0;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

.wc-proceed-to-checkout > a:hover,
.wc-proceed-to-checkout .button-cotizar:hover {
  background: #d4153e;
  color: var(--nx-white);
}

.wc-proceed-to-checkout .button-cotizar {
  background: var(--nx-blue);
}

.wc-proceed-to-checkout .button-cotizar:hover {
  background: var(--nx-blue-dark);
}

@media (max-width: 600px) {
  .wc-proceed-to-checkout {
    flex-direction: column;
  }
  .wc-proceed-to-checkout > a,
  .wc-proceed-to-checkout .button-cotizar {
    flex: 1 1 100%;
  }
}

/* ============================================================
 * NEW CART LAYOUT — stepper + list + dark-blue summary card
 * ============================================================ */

/* ── Stepper ─────────────────────────────────────────────────── */
.nx-stepper {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 0 0 28px 0;
  padding: 18px 22px;
  background: var(--nx-soft);
  border-radius: var(--nx-radius);
}

.nx-stepper__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  font-size: var(--nx-fs-13);
  color: var(--nx-muted);
  font-weight: 600;
}

.nx-stepper__step + .nx-stepper__step::before {
  content: "";
  position: absolute;
  left: -50%;
  top: 14px;
  width: 100%;
  border-top: 2px dashed var(--nx-line);
  z-index: 0;
}

.nx-stepper__bubble {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--nx-white);
  border: 2px solid var(--nx-line);
  color: var(--nx-muted);
  font-weight: 800;
  font-size: var(--nx-fs-13);
  margin-bottom: 6px;
}

.nx-stepper__step.is-active .nx-stepper__bubble {
  background: var(--nx-blue);
  border-color: var(--nx-blue);
  color: var(--nx-white);
}

.nx-stepper__step.is-complete .nx-stepper__bubble {
  background: var(--nx-whatsapp);
  border-color: var(--nx-whatsapp);
  color: var(--nx-white);
}

.nx-stepper__step.is-complete .nx-stepper__label {
  color: #1f9e57;
  font-weight: 700;
}

.nx-stepper__step.is-complete + .nx-stepper__step::before {
  background: var(--nx-whatsapp);
}

.nx-stepper__step.is-active .nx-stepper__label {
  color: var(--nx-blue);
}

.nx-stepper__label {
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-size: var(--nx-fs-11);
}

/* ── Cart shell ─────────────────────────────────────────────── */
.nx-cart-shell {
  background: var(--nx-white);
  border-radius: var(--nx-radius);
  padding: 28px 32px;
}

.cart-page .cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 380px);
  gap: 36px;
  align-items: start;
}

.cart-page .cart-items-col,
.cart-page .cart-totals-col {
  min-width: 0;
}

@media (max-width: 960px) {
  .cart-page .cart-layout {
    grid-template-columns: 1fr;
  }
  .nx-cart-shell {
    padding: 18px;
  }
}

/* ── Items list (NOT a table) ────────────────────────────────── */
.cart-items-list {
  display: flex;
  flex-direction: column;
}

.cart-item {
  display: grid;
  grid-template-columns: 90px 1fr 130px 32px 110px;
  align-items: center;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--nx-line);
}

.cart-item:first-child {
  padding-top: 0;
}

.cart-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.cart-item__image img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  background: var(--nx-soft);
  border-radius: var(--nx-radius);
  display: block;
}

.cart-item__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.cart-item__name {
  font-weight: 700;
  color: var(--nx-ink);
  font-size: var(--nx-fs-14);
  line-height: 1.4;
  text-decoration: none;
}

.cart-item__name:hover {
  color: var(--nx-blue);
}

.cart-item__price-mobile {
  display: none;
  font-size: var(--nx-fs-13);
  color: var(--nx-blue);
  font-weight: 700;
}

.cart-item__qty {
  display: flex;
  justify-content: center;
}

.cart-item__qty .quantity {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-button-radius);
  background: var(--nx-white);
  height: 38px;
  padding: 0 4px;
}

.cart-item__qty .quantity .qty {
  width: 50px;
  height: 32px;
  text-align: center;
  border: 0;
  background: transparent;
  color: var(--nx-ink);
  font-weight: 700;
}

.cart-item__qty .quantity .qty:focus {
  outline: none;
}

.cart-item__qty input[type="number"]::-webkit-outer-spin-button,
.cart-item__qty input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cart-item__remove a {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--nx-soft);
  color: var(--nx-muted);
  text-decoration: none;
  font-size: var(--nx-fs-16);
  transition: background 160ms ease, color 160ms ease;
}

.cart-item__remove a:hover {
  background: var(--nx-red);
  color: var(--nx-white);
}

.cart-item__remove .remove {
  display: none;
}

.cart-item__total {
  text-align: right;
  font-weight: 800;
  color: var(--nx-blue);
  font-size: var(--nx-fs-15);
}

/* Footer of the items column: coupon + update button */
.cart-list-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--nx-line);
}

.cart-list-footer .coupon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 320px;
}

.cart-list-footer .coupon label {
  font-size: var(--nx-fs-13);
  font-weight: 700;
  color: var(--nx-ink);
}

.cart-list-footer .coupon input[type="text"] {
  flex: 1;
  min-width: 160px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-button-radius);
  background: var(--nx-white);
  color: var(--nx-ink);
  outline: none;
  font-size: var(--nx-fs-13);
}

.cart-list-footer .coupon input[type="text"]:focus {
  border-color: var(--nx-blue);
}

.cart-list-footer .coupon button,
.cart-list-footer button[name="update_cart"] {
  height: 40px;
  padding: 0 22px;
  border-radius: var(--nx-button-radius);
  background: var(--nx-blue);
  color: var(--nx-white);
  font-weight: 700;
  font-size: var(--nx-fs-13);
  letter-spacing: 0.4px;
  border: 0;
  cursor: pointer;
  transition: background 160ms ease;
}

.cart-list-footer .coupon button:hover {
  background: var(--nx-blue-dark);
}

.cart-list-footer button[name="update_cart"] {
  background: transparent;
  color: var(--nx-blue);
  border: 1px solid var(--nx-blue);
}

.cart-list-footer button[name="update_cart"]:hover {
  background: var(--nx-blue);
  color: var(--nx-white);
}

/* ── Summary card (dark blue) ─────────────────────────────────── */
.cart-summary {
  background: var(--nx-blue);
  color: var(--nx-white);
  border-radius: var(--nx-radius);
  padding: 28px 28px 26px;
  box-shadow: var(--nx-shadow-dark);
  position: sticky;
  top: 24px;
}

.cart-summary .shop_table {
  width: 100%;
  border-collapse: collapse;
  background: transparent !important;
  color: var(--nx-white) !important;
  margin: 0 0 18px;
}

.cart-summary .shop_table th,
.cart-summary .shop_table td {
  background: transparent !important;
  color: var(--nx-white) !important;
  padding: 8px 0;
  border: 0;
  font-weight: 500;
}

.cart-summary .shop_table th {
  text-align: left;
  font-weight: 500;
  font-size: var(--nx-fs-13);
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.cart-summary .shop_table td {
  text-align: right;
  font-weight: 700;
  font-size: var(--nx-fs-14);
}

.cart-summary .shop_table .order-total {
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.cart-summary .shop_table .order-total th,
.cart-summary .shop_table .order-total td {
  font-size: var(--nx-fs-18);
  font-weight: 900;
  padding-top: 14px;
  padding-bottom: 14px;
  text-transform: none;
  letter-spacing: 0;
  opacity: 1;
}

.cart-summary h2,
.cart-summary .cart_totals h2 {
  margin: 0 0 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--nx-white);
  font-family: "Roboto", Arial, sans-serif;
  font-size: var(--nx-fs-18);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Coupon inside the dark summary card */
.cart-summary .coupon {
  margin: 4px 0 14px;
  display: block;
}

.cart-summary .coupon label {
  display: block;
  font-size: var(--nx-fs-13);
  margin-bottom: 6px;
  font-weight: 600;
  opacity: 0.9;
  color: var(--nx-white);
}

.cart-summary .coupon input[type="text"] {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border-radius: var(--nx-button-radius);
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
  color: var(--nx-white);
  outline: none;
  font-size: var(--nx-fs-13);
}

.cart-summary .coupon input[type="text"]::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.cart-summary .coupon input[type="text"]:focus {
  border-color: var(--nx-white);
  background: rgba(255, 255, 255, 0.18);
}

.cart-summary .coupon button {
  width: 100%;
  margin-top: 8px;
  height: 42px;
  padding: 0 16px;
  border-radius: var(--nx-button-radius);
  background: rgba(255, 255, 255, 0.15);
  color: var(--nx-white);
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background 160ms ease;
}

.cart-summary .coupon button:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Action buttons inside dark summary card — YELLOW Proceed + transparent COTIZAR */
.cart-summary .wc-proceed-to-checkout {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
}

.cart-summary .wc-proceed-to-checkout > a,
.cart-summary .wc-proceed-to-checkout .button-cotizar {
  flex: 1 1 auto;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 14px 20px;
  margin: 0;
  border-radius: var(--nx-button-radius);
  font-weight: 900;
  font-size: var(--nx-fs-14);
  text-align: center;
  text-decoration: none;
  letter-spacing: 0.6px;
  border: 0;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.cart-summary .wc-proceed-to-checkout > a {
  background: var(--nx-red);
  color: var(--nx-white);
  box-shadow: var(--nx-shadow-red);
}

.cart-summary .wc-proceed-to-checkout > a:hover {
  background: #d4153e;
  transform: translateY(-1px);
  box-shadow: var(--nx-shadow-red-hover);
}

.cart-summary .wc-proceed-to-checkout .button-cotizar {
  background: var(--nx-white);
  color: var(--nx-blue);
  border: 0;
  font-weight: 900;
}

.cart-summary .wc-proceed-to-checkout .button-cotizar:hover {
  background: var(--nx-soft);
  transform: translateY(-1px);
}

/* ── Help line ───────────────────────────────────────────────── */
.cart-help {
  text-align: center;
  margin: 24px 0 0;
  font-size: var(--nx-fs-13);
  color: var(--nx-muted);
}

.cart-help a {
  color: var(--nx-blue);
  text-decoration: underline;
  font-weight: 600;
}

/* ── Mobile fallback ─────────────────────────────────────────── */
@media (max-width: 720px) {
  .cart-item {
    grid-template-columns: 70px 1fr;
    grid-template-areas:
      "image body"
      "qty    qty"
      "total  remove";
    row-gap: 8px;
  }
  .cart-item__image {
    grid-area: image;
  }
  .cart-item__image img {
    width: 70px;
    height: 70px;
  }
  .cart-item__body {
    grid-area: body;
  }
  .cart-item__price-mobile {
    display: block;
  }
  .cart-item__qty {
    grid-area: qty;
    justify-content: flex-start;
  }
  .cart-item__total {
    grid-area: total;
    text-align: left;
  }
  .cart-item__remove {
    grid-area: remove;
    justify-self: end;
  }
}

/* ── Stepper mobile ─────────────────────────────────────────── */
@media (max-width: 600px) {
  .nx-stepper {
    grid-template-columns: repeat(3, 1fr);
    padding: 12px;
  }
  .nx-stepper__label {
    font-size: var(--nx-fs-10);
  }
  .nx-stepper__step + .nx-stepper__step::before {
    top: 11px;
  }
  .nx-stepper__bubble {
    width: 24px;
    height: 24px;
    font-size: var(--nx-fs-11);
  }
}

/* ── Summary dark card mobile ───────────────────────────────── */
@media (max-width: 960px) {
  .cart-summary {
    position: static;
  }
}

/* Ajustes responsivos para el Carrito */
@media (max-width: 768px) {
  .shop_table.cart thead {
    display: none;
  }
  .shop_table.cart tr {
    display: block;
    margin-bottom: 20px;
    border: 1px solid var(--nx-line);
    border-radius: var(--nx-radius);
    padding: 10px;
    background: var(--nx-soft);
  }
  .shop_table.cart td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 0;
    padding: 8px 10px;
    text-align: right;
  }
  .shop_table.cart td::before {
    content: attr(data-title) ": ";
    font-weight: 700;
    float: left;
    text-transform: capitalize;
  }
  .shop_table.cart td.product-remove::before,
  .shop_table.cart td.product-thumbnail::before {
    display: none;
  }
  .shop_table.cart td.product-remove,
  .shop_table.cart td.product-thumbnail {
    justify-content: center;
  }
  .shop_table.cart .product-thumbnail img {
    width: 90px;
    height: 90px;
  }
  .shop_table.cart td.actions {
    display: block;
    text-align: center;
  }
  .shop_table.cart .coupon {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 12px;
  }
  .shop_table.cart .coupon input[type="text"] {
    width: 100%;
  }
  .shop_table.cart td.actions button.button {
    width: 100%;
  }
}

/* ==========================================================================
   PRODUCT SPECS GRID (AUTO FORMAT)
   ========================================================================== */

.product-specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 0 clamp(22px, 3vw, 36px);
  list-style: none;
  padding: 0;
  margin: 0;
}

.product-specs-grid li {
  display: grid;
  grid-template-columns: 28px minmax(112px, 0.42fr) minmax(0, 1fr);
  column-gap: clamp(10px, 1.2vw, 16px);
  align-items: start;
  min-width: 0;
  padding: 13px 0;
  border-bottom: 1px solid var(--nx-line);
  font-size: var(--nx-fs-14);
  color: var(--nx-ink);
  transition: background-color 0.2s ease, border-radius 0.2s ease;
}

.product-specs-grid li:hover {
  background-color: var(--nx-soft);
  border-radius: var(--nx-radius);
}

.spec-emoji {
  display: inline-grid;
  width: 24px;
  min-width: 24px;
  height: 24px;
  place-items: center;
  font-size: var(--nx-fs-18);
  text-align: center;
}

.spec-label {
  min-width: 0;
  font-weight: 700;
  color: var(--nx-ink);
  line-height: 1.45;
}

.spec-separator {
  display: none;
  margin-right: 6px;
  color: var(--nx-muted);
}

.spec-value {
  min-width: 0;
  color: var(--nx-muted);
  line-height: 1.45;
}

@media (max-width: 768px) {
  .product-specs-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .product-specs-grid li {
    grid-template-columns: 28px minmax(0, 1fr);
    grid-template-areas:
      "icon label"
      ". value";
    row-gap: 4px;
    column-gap: 10px;
    padding: 14px 0;
  }

  .spec-emoji {
    grid-area: icon;
  }

  .spec-label {
    grid-area: label;
  }

  .spec-value {
    grid-area: value;
  }
}

/* ============================================================
   CHECKOUT PAGE — mirrors the cart layout (stepper + 2-col)
   ============================================================ */

.checkout-page {
  padding-bottom: 60px;
}

.checkout-heading {
  margin: 6px 0 24px;
}

.checkout-heading__title {
  font-family: "Roboto", Arial, sans-serif;
  font-size: var(--nx-fs-26);
  font-weight: 900;
  color: var(--nx-ink);
  margin: 0 0 4px;
  letter-spacing: 0.2px;
}

.checkout-heading__sub {
  margin: 0;
  font-size: var(--nx-fs-14);
  color: var(--nx-muted);
}

/* ── Checkout shell + 2-column layout ────────────────────── */
.nx-checkout-shell {
  background: var(--nx-white);
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-radius);
  box-shadow: var(--nx-shadow);
  padding: 28px 32px;
}

.checkout-page .checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 380px);
  gap: 36px;
  align-items: start;
}

.checkout-page .checkout-fields-col,
.checkout-page .checkout-summary-col {
  min-width: 0;
}

@media (max-width: 960px) {
  .checkout-page .checkout-layout {
    grid-template-columns: 1fr;
  }
  .nx-checkout-shell {
    padding: 18px;
  }
}

/* ── Customer column — billing / shipping sections ─────────── */
.checkout-fields-col h3,
.checkout-fields-col .woocommerce-billing-fields h3,
.checkout-fields-col .woocommerce-shipping-fields h3,
.checkout-fields-col .woocommerce-additional-fields h3 {
  font-family: "Roboto", Arial, sans-serif;
  font-size: var(--nx-fs-16);
  font-weight: 900;
  color: var(--nx-blue);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--nx-line);
  background: transparent !important;
}

.checkout-fields-col .checkout-extra {
  margin-top: 26px;
}

.checkout-fields-col .checkout-section__title {
  font-family: "Roboto", Arial, sans-serif;
  font-size: var(--nx-fs-16);
  font-weight: 900;
  color: var(--nx-blue);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--nx-line);
}

.checkout-fields-col .woocommerce-billing-fields .form-row,
.checkout-fields-col .woocommerce-shipping-fields .form-row,
.checkout-fields-col .woocommerce-additional-fields .form-row {
  margin: 0 0 14px;
  padding: 0;
  width: 100%;
  display: block;
  float: none;
}

/* WC 10.x: all address fields default to form-row-wide and stack vertically.
 * Force the natural address pairs onto the same row (50/50). */
.checkout-fields-col #billing_first_name_field,
.checkout-fields-col #billing_last_name_field,
.checkout-fields-col #shipping_first_name_field,
.checkout-fields-col #shipping_last_name_field,
.checkout-fields-col #billing_city_field,
.checkout-fields-col #billing_state_field,
.checkout-fields-col #shipping_city_field,
.checkout-fields-col #shipping_state_field,
.checkout-fields-col #billing_postcode_field,
.checkout-fields-col #billing_phone_field,
.checkout-fields-col #shipping_postcode_field {
  display: inline-block;
  vertical-align: top;
  width: calc(50% - 5px);
  clear: none;
  float: none;
}

/* Apply a small gap by giving the LEFT-field of each pair an 8px right margin.
 * Since pairs share the same row, every other field that's part of a pair
 * gets the spacing. */
.checkout-fields-col #billing_first_name_field,
.checkout-fields-col #shipping_first_name_field,
.checkout-fields-col #billing_city_field,
.checkout-fields-col #shipping_city_field,
.checkout-fields-col #billing_postcode_field {
  margin-right: 10px;
}

.checkout-fields-col label,
.checkout-fields-col .woocommerce-checkout label,
.checkout-fields-col .form-row label,
.checkout-fields-col .form-row label.checkbox {
  display: block;
  font-size: var(--nx-fs-12);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--nx-ink);
  margin: 0 0 6px;
  cursor: pointer;
}

.checkout-fields-col .form-row .required {
  color: var(--nx-red);
  font-weight: 900;
  text-decoration: none;
}

.checkout-fields-col input[type="text"],
.checkout-fields-col input[type="email"],
.checkout-fields-col input[type="tel"],
.checkout-fields-col input[type="number"],
.checkout-fields-col input[type="password"],
.checkout-fields-col select,
.checkout-fields-col textarea,
.checkout-fields-col .input-text,
.checkout-fields-col .select2-container .select2-selection {
  width: 100% !important;
  height: 44px;
  padding: 0 14px;
  border-radius: var(--nx-radius);
  border: 1px solid var(--nx-line);
  background: var(--nx-white);
  color: var(--nx-ink);
  font-size: var(--nx-fs-14);
  font-family: inherit;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
}

.checkout-fields-col textarea {
  height: auto;
  min-height: 110px;
  padding: 12px 14px;
  resize: vertical;
}

.checkout-fields-col select {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3e%3cpath fill='%2323458c' d='M6 8 0 0h12z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 10px 7px;
  padding-right: 38px;
}

.checkout-fields-col input[type="text"]:focus,
.checkout-fields-col input[type="email"]:focus,
.checkout-fields-col input[type="tel"]:focus,
.checkout-fields-col input[type="number"]:focus,
.checkout-fields-col input[type="password"]:focus,
.checkout-fields-col select:focus,
.checkout-fields-col textarea:focus,
.checkout-fields-col .input-text:focus {
  border-color: var(--nx-blue);
  box-shadow: var(--nx-focus-ring);
  background: var(--nx-white);
}

.checkout-fields-col .form-row.woocommerce-invalid input,
.checkout-fields-col .form-row.woocommerce-invalid select,
.checkout-fields-col .form-row.woocommerce-invalid .input-text {
  border-color: var(--nx-red);
}

.checkout-fields-col .form-row.woocommerce-validated input,
.checkout-fields-col .form-row.woocommerce-validated select {
  border-color: var(--nx-whatsapp);
}

/* Select2 (country / state) inside the dark shell */
.checkout-fields-col .select2-container .select2-selection--single {
  height: 44px;
  border-radius: var(--nx-radius);
  border-color: var(--nx-line);
  display: flex;
  align-items: center;
  padding-left: 14px;
}

.checkout-fields-col .select2-container .select2-selection__rendered {
  padding-left: 0;
  color: var(--nx-ink);
  line-height: 44px;
}

.checkout-fields-col .select2-container--open .select2-selection {
  border-color: var(--nx-blue);
  box-shadow: var(--nx-focus-ring);
}

.checkout-fields-col .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 44px;
  right: 10px;
}

.checkout-fields-col .woocommerce-shipping-fields #ship-to-different-address {
  font-size: var(--nx-fs-13);
  font-weight: 600;
  color: var(--nx-ink);
}

/* Create account / login blocks */
.checkout-fields-col .woocommerce-checkout-login,
.checkout-fields-col .woocommerce-checkout-coupon {
  background: var(--nx-soft);
  border-radius: var(--nx-radius);
  padding: 12px 14px;
  margin: 0 0 18px;
  font-size: var(--nx-fs-13);
  border: 1px solid var(--nx-line);
}

/* ── Summary column (mirrors .cart-summary) ────────────────── */
.checkout-summary {
  background: var(--nx-blue);
  color: var(--nx-white);
  border-radius: var(--nx-radius);
  padding: 24px 26px 24px;
  box-shadow: var(--nx-shadow-dark);
  position: sticky;
  top: 24px;
}

.checkout-summary__title {
  margin: 0 0 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--nx-white);
  font-family: "Roboto", Arial, sans-serif;
  font-size: var(--nx-fs-18);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (max-width: 960px) {
  .checkout-summary {
    position: static;
  }
}

/* Order review table inside the dark card */
.checkout-summary .shop_table {
  width: 100%;
  border-collapse: collapse;
  background: transparent !important;
  color: var(--nx-white) !important;
  margin: 0 0 18px;
}

.checkout-summary .shop_table th,
.checkout-summary .shop_table td {
  background: transparent !important;
  color: var(--nx-white) !important;
  padding: 8px 0;
  border: 0;
  font-weight: 500;
}

.checkout-summary .shop_table th {
  text-align: left;
  font-weight: 500;
  font-size: var(--nx-fs-12);
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  vertical-align: middle;
}

.checkout-summary .shop_table td {
  text-align: right;
  font-weight: 700;
  font-size: var(--nx-fs-13);
  vertical-align: middle;
}

.checkout-summary .shop_table .product-name {
  font-weight: 600;
  font-size: var(--nx-fs-13);
  text-transform: none;
  letter-spacing: 0;
  opacity: 1;
}

.checkout-summary .shop_table .product-total {
  white-space: nowrap;
}

.checkout-summary .shop_table tfoot tr {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.checkout-summary .shop_table .order-total th,
.checkout-summary .shop_table .order-total td {
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  font-size: var(--nx-fs-17);
  font-weight: 900;
  padding-top: 14px;
  padding-bottom: 14px;
  text-transform: none;
  letter-spacing: 0;
  opacity: 1;
}

/* Payment methods inside the dark card */
.checkout-summary #payment {
  background: transparent !important;
  color: var(--nx-white) !important;
  padding: 0;
  margin: 12px 0 0;
  border: 0;
}

.checkout-summary #payment ul.payment_methods {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--nx-radius);
  overflow: hidden;
}

.checkout-summary #payment ul.payment_methods li {
  background: rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 12px 14px;
  display: block;
}

.checkout-summary #payment ul.payment_methods li:last-child {
  border-bottom: 0;
}

.checkout-summary #payment ul.payment_methods input[type="radio"] {
  accent-color: var(--nx-red);
  margin-right: 8px;
  transform: scale(1.05);
}

.checkout-summary #payment ul.payment_methods label {
  display: inline-block;
  color: var(--nx-white);
  font-weight: 600;
  font-size: var(--nx-fs-13);
  cursor: pointer;
}

.checkout-summary #payment ul.payment_methods .payment_box {
  background: rgba(0, 0, 0, 0.18);
  color: rgba(255, 255, 255, 0.92);
  border-radius: var(--nx-button-radius);
  padding: 10px 12px;
  margin-top: 10px;
  font-size: var(--nx-fs-12);
  line-height: 1.5;
}

.checkout-summary #payment .terms,
.checkout-summary #payment .woocommerce-privacy-policy-text {
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--nx-fs-12);
}

.checkout-summary #payment .terms input[type="checkbox"] {
  accent-color: var(--nx-red);
  margin-right: 6px;
}

.checkout-summary #payment .terms a,
.checkout-summary #payment .woocommerce-privacy-policy-text a {
  color: var(--nx-white);
  text-decoration: underline;
}

/* Place order button — same look as the cart's red "Finalizar" */
.checkout-summary #payment #place_order,
.checkout-summary .button.alt,
.checkout-summary button[type="submit"][name="woocommerce_checkout_place_order"] {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 14px 20px;
  margin: 14px 0 0;
  border-radius: var(--nx-button-radius);
  background: var(--nx-red) !important;
  color: var(--nx-white) !important;
  font-weight: 900;
  font-size: var(--nx-fs-14);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  border: 0;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(239, 23, 78, 0.4);
  text-align: center;
  text-decoration: none;
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.checkout-summary #payment #place_order:hover,
.checkout-summary .button.alt:hover {
  background: #d4153e !important;
  transform: translateY(-1px);
  box-shadow: var(--nx-shadow-red-hover);
}

.checkout-summary #payment #place_order:disabled,
.checkout-summary .button.alt:disabled {
  background: rgba(255, 255, 255, 0.25) !important;
  color: rgba(255, 255, 255, 0.7) !important;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* ============================================================
   THANK-YOU / ORDER-RECEIVED PAGE
   — same visual family as cart and checkout
   ============================================================ */

.thankyou-page {
  padding-bottom: 60px;
}

/* Hero confirmation block */
.thankyou-hero {
  text-align: center;
  margin: 8px 0 28px;
}

.thankyou-hero__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--nx-whatsapp);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--nx-fs-28);
  font-weight: 900;
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.4);
  margin-bottom: 14px;
}

.thankyou-hero__title {
  font-family: "Roboto", Arial, sans-serif;
  font-size: var(--nx-fs-30);
  font-weight: 900;
  color: var(--nx-ink);
  margin: 0 0 6px;
  letter-spacing: 0.2px;
}

.thankyou-hero__sub {
  margin: 0;
  font-size: var(--nx-fs-15);
  color: var(--nx-muted);
}

/* Reuse .nx-checkout-shell box treatment (border + shadow + radius). */
.thankyou-shell {
  margin-top: 0;
}

/* Customer / details column */
.thankyou-section {
  margin: 0 0 26px;
}

.thankyou-section:last-of-type {
  margin-bottom: 0;
}

.thankyou-section__title {
  font-family: "Roboto", Arial, sans-serif;
  font-size: var(--nx-fs-16);
  font-weight: 900;
  color: var(--nx-blue);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--nx-line);
}

.thankyou-meta {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 28px;
}

.thankyou-meta__row {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.thankyou-meta__row dt {
  font-size: var(--nx-fs-11);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--nx-muted);
  margin: 0;
}

.thankyou-meta__row dd {
  font-size: var(--nx-fs-14);
  color: var(--nx-ink);
  margin: 0;
  font-weight: 600;
}

.thankyou-status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: var(--nx-fs-12);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  background: var(--nx-soft);
  color: var(--nx-ink);
}

.thankyou-status--processing,
.thankyou-status--on-hold {
  background: rgba(244, 195, 24, 0.18);
  color: #8a6a00;
}

.thankyou-status--completed {
  background: rgba(37, 211, 102, 0.18);
  color: #1f9e57;
}

.thankyou-status--pending,
.thankyou-status--failed,
.thankyou-status--cancelled,
.thankyou-status--refunded {
  background: rgba(239, 23, 78, 0.12);
  color: var(--nx-red);
}

.thankyou-address {
  font-style: normal;
  font-size: var(--nx-fs-14);
  line-height: 1.6;
  color: var(--nx-ink);
  background: var(--nx-soft);
  border-radius: var(--nx-radius);
  padding: 14px 18px;
  border: 1px solid var(--nx-line);
}

.thankyou-address strong {
  display: block;
  font-size: var(--nx-fs-15);
  margin-bottom: 2px;
}

/* Action buttons */
.thankyou-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.thankyou-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 14px 22px;
  border-radius: var(--nx-button-radius);
  font-weight: 900;
  font-size: var(--nx-fs-14);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

.thankyou-btn--primary {
  background: var(--nx-red);
  color: var(--nx-white);
  box-shadow: var(--nx-shadow-red);
  flex: 1 1 220px;
}

.thankyou-btn--primary:hover {
  background: #d4153e;
  transform: translateY(-1px);
  box-shadow: var(--nx-shadow-red-hover);
}

.thankyou-btn--ghost {
  background: var(--nx-blue);
  color: var(--nx-white);
  flex: 1 1 220px;
}

.thankyou-btn--ghost:hover {
  background: var(--nx-blue-dark);
  transform: translateY(-1px);
}

/* Right summary card — reuse .checkout-summary visual treatment */
.thankyou-summary {
  position: sticky;
  top: 24px;
}

.thankyou-items {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.thankyou-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: var(--nx-fs-13);
  color: var(--nx-white);
}

.thankyou-item:last-child {
  border-bottom: 0;
}

.thankyou-item__name {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.thankyou-item__name strong {
  font-weight: 700;
  font-size: var(--nx-fs-13);
  line-height: 1.4;
  word-break: break-word;
}

.thankyou-item__qty {
  font-size: var(--nx-fs-11);
  opacity: 0.75;
  font-weight: 600;
}

.thankyou-item__price {
  flex: 0 0 auto;
  font-weight: 800;
  font-size: var(--nx-fs-13);
  white-space: nowrap;
}

.thankyou-totals {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 10px;
}

.thankyou-totals__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 0;
  font-size: var(--nx-fs-13);
  color: var(--nx-white);
}

.thankyou-totals__row > span:first-child {
  opacity: 0.85;
}

.thankyou-totals__row > span:last-child {
  font-weight: 700;
}

.thankyou-totals__row--big {
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  margin-top: 6px;
  padding-top: 14px;
  font-size: var(--nx-fs-16);
  font-weight: 900;
  text-transform: none;
  letter-spacing: 0;
  opacity: 1;
}

.thankyou-totals__row--big > span:first-child {
  opacity: 1;
}

.thankyou-empty {
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--nx-fs-13);
  text-align: center;
  padding: 20px 0;
}

@media (max-width: 720px) {
  .thankyou-hero__title {
    font-size: var(--nx-fs-22);
  }
  .thankyou-meta {
    grid-template-columns: 1fr;
  }
  .thankyou-btn {
    flex: 1 1 100%;
  }
}

@media (max-width: 960px) {
  .thankyou-summary {
    position: static;
  }
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */

.contact-page {
  padding: 72px 0 96px;
  background: var(--nx-white);
}

.contact-frame {
  display: grid;
  /* Rail fijo 320px, panel con cap de 680px para que el form no se
   * estire como un rio. Antes fue panel 540 (muy chico) y luego
   * 1032 (demasiado ancho); 680 deja los inputs en ~600px de ancho,
   * que es la zona comoda para un form de contacto con campos de
   * 1 columna y pares (correo/telefono). */
  grid-template-columns: minmax(280px, 320px) minmax(0, 680px);
  justify-content: center;
  align-items: center;
  gap: 56px;
  padding: 0;
  background: var(--nx-white);
}

.contact-rail {
  min-width: 0;
  display: grid;
  gap: 44px;
  padding: 0;
}

.contact-methods {
  display: grid;
  align-content: start;
  gap: 34px;
}

.contact-method {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  color: var(--nx-ink);
  text-decoration: none;
}

.contact-method__icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  background: transparent;
  color: var(--nx-blue);
  font-size: var(--nx-fs-18);
  transition: color 160ms ease, transform 160ms ease;
}

.contact-method strong,
.contact-method b,
.contact-method small {
  display: block;
  min-width: 0;
}

.contact-method strong {
  margin: 0 0 2px;
  color: #17223a;
  font-family: "Roboto", Arial, sans-serif;
  font-size: var(--nx-fs-18);
  font-weight: 900;
  line-height: 1.2;
}

.contact-method small {
  margin-bottom: 9px;
  color: var(--nx-muted);
  font-size: var(--nx-fs-14);
  line-height: 1.35;
}

.contact-method b {
  color: #1c2737;
  font-size: var(--nx-fs-14);
  line-height: 1.45;
  word-break: break-word;
}

.contact-method--hours {
  grid-column: 1 / -1;
}

.contact-hours {
  display: grid;
  gap: 4px;
  margin: 9px 0 0;
}

.contact-hours div {
  display: grid;
  grid-template-columns: minmax(74px, auto) 1fr;
  gap: 12px;
  align-items: baseline;
}

.contact-hours dt,
.contact-hours dd {
  margin: 0;
  font-size: var(--nx-fs-13);
  line-height: 1.35;
}

.contact-hours dt {
  color: #1c2737;
  font-weight: 800;
}

.contact-hours dd {
  color: var(--nx-muted);
}

.contact-method:hover .contact-method__icon,
.contact-method:focus-visible .contact-method__icon {
  color: var(--nx-red);
  transform: translateY(-1px);
}

.contact-method:focus-visible,
.contact-social a:focus-visible,
.contact-form button:focus-visible,
.contact-form__actions a:focus-visible {
  outline: 3px solid rgba(239, 23, 78, 0.28);
  outline-offset: 4px;
}

.contact-method--whatsapp .contact-method__icon {
  color: #1c9f55;
}

.contact-method--whatsapp:hover .contact-method__icon,
.contact-method--whatsapp:focus-visible .contact-method__icon {
  color: var(--nx-whatsapp);
}

.contact-social {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.contact-social a {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  background: transparent;
  color: #4f5d6d;
  font-size: var(--nx-fs-17);
  transition: color 160ms ease, transform 160ms ease;
}

.contact-social a:hover {
  color: var(--nx-blue);
  transform: translateY(-1px);
}

.contact-panel {
  position: relative;
  min-width: 0;
  display: grid;
  align-content: center;
  padding: 34px 42px 36px;
  border-radius: var(--nx-radius);
  overflow: hidden;
  background: var(--nx-blue);
  color: var(--nx-white);
}

.contact-panel__intro,
.contact-form {
  position: relative;
  z-index: 1;
}

.contact-panel__intro {
  max-width: 460px;
  margin-bottom: 18px;
}

.contact-panel__intro span {
  display: inline-flex;
  align-items: center;
  min-height: auto;
  margin-bottom: 12px;
  padding: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  font-size: var(--nx-fs-12);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.contact-panel h1 {
  max-width: 450px;
  margin: 0 0 12px;
  color: var(--nx-white);
  font-family: "Roboto", Arial, sans-serif;
  font-size: var(--nx-fs-29);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: 0;
}

.contact-panel p {
  margin: 0;
}

.contact-panel__intro p {
  max-width: 460px;
  color: rgba(255, 255, 255, 0.86);
  font-size: var(--nx-fs-14);
  line-height: 1.45;
}

.contact-form {
  display: grid;
  gap: 12px;
}

.contact-form__row {
  min-width: 0;
}

.contact-form__split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.contact-form label,
.contact-services legend {
  display: block;
  margin: 0 0 5px;
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--nx-fs-13);
  font-weight: 800;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
  width: 100%;
  border: 0;
  border-bottom: 2px solid rgba(255, 255, 255, 0.58);
  background: transparent;
  color: var(--nx-white);
  font-size: var(--nx-fs-16);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"] {
  height: 30px;
}

.contact-form textarea {
  min-height: 46px;
  padding-top: 4px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--nx-white);
  box-shadow: 0 5px 0 -3px var(--nx-red);
}

.contact-services {
  min-width: 0;
  margin: 2px 0 0;
  padding: 0;
  border: 0;
}

.contact-services legend {
  margin-bottom: 8px;
}

.contact-services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 20px;
}

.contact-services legend {
  grid-column: 1 / -1;
}

.contact-services label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--nx-white);
  font-size: var(--nx-fs-13);
  font-weight: 800;
  cursor: pointer;
}

.contact-services input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  display: grid;
  place-content: center;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin: 0;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 4px;
  background: var(--nx-white);
  accent-color: var(--nx-red);
}

.contact-services input[type="checkbox"]::before {
  content: "";
  width: 10px;
  height: 10px;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0, 43% 62%);
  background: var(--nx-white);
  transform: scale(0);
  transition: transform 120ms ease;
}

.contact-services input[type="checkbox"]:checked {
  border-color: var(--nx-red);
  background: var(--nx-red);
}

.contact-services input[type="checkbox"]:checked::before {
  transform: scale(1);
}

.contact-form__actions {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-top: 6px;
}

.contact-form button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: var(--nx-button-radius);
  background: var(--nx-red);
  color: var(--nx-white);
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 16px 28px rgba(80, 8, 28, 0.24);
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.contact-form button:hover {
  background: #d01040;
  transform: translateY(-1px);
  box-shadow: 0 20px 32px rgba(80, 8, 28, 0.3);
}

.contact-form__actions a {
  color: rgba(255, 255, 255, 0.86);
  font-size: var(--nx-fs-13);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-form__status {
  min-height: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: var(--nx-fs-13);
}

.contact-form__status:empty {
  display: none;
}

@media (max-width: 1024px) {
  .contact-frame {
    grid-template-columns: 1fr;
    justify-content: stretch;
    align-items: start;
    min-height: 0;
    padding: 0;
  }

  .contact-rail {
    grid-template-rows: auto auto auto;
    padding: 4px 4px 0;
    gap: 28px;
  }

  .contact-methods {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .contact-panel {
    padding: 34px;
  }
}

@media (max-width: 720px) {
  .contact-page {
    padding: 42px 0 72px;
  }

  .contact-frame {
    width: min(var(--nx-container), calc(100% - 24px));
    gap: 24px;
  }

  .contact-methods,
  .contact-form__split,
  .contact-services,
  .contact-form__actions {
    grid-template-columns: 1fr;
  }

  .contact-method {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 13px;
  }

  .contact-method__icon,
  .contact-social a {
    width: 28px;
    height: 28px;
  }

  .contact-panel {
    padding: 30px 22px;
  }

  .contact-panel h1 {
    font-size: var(--nx-fs-28);
    line-height: 1.13;
  }

  .contact-panel__intro p {
    font-size: var(--nx-fs-15);
  }
}

/* ============================================================
 * Header search autocomplete
 * ============================================================ */

.product-search {
  position: relative;
}

.search-suggest {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--nx-white);
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-radius);
  box-shadow: var(--nx-shadow);
  max-height: 480px;
  overflow-y: auto;
  padding: 6px 0;
}

.search-suggest[hidden] {
  display: none;
}

.search-suggest__item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 8px 14px;
  color: var(--nx-ink);
  transition: background 0.15s ease;
}

.search-suggest__item:hover,
.search-suggest__item.is-active,
.search-suggest__item:focus {
  background: var(--nx-soft);
  outline: none;
}

.search-suggest__thumb {
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: var(--nx-white);
  border: 1px solid var(--nx-line);
  border-radius: 4px;
}

.search-suggest__thumb--placeholder {
  display: inline-block;
  background: var(--nx-soft);
}

.search-suggest__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.search-suggest__name {
  font-size: var(--nx-fs-14);
  font-weight: 600;
  color: var(--nx-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-suggest__meta {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: var(--nx-fs-12);
  color: var(--nx-muted);
  flex-wrap: wrap;
}

.search-suggest__sku {
  font-size: var(--nx-fs-11);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.search-suggest__price {
  color: var(--nx-blue);
  font-weight: 700;
  font-size: var(--nx-fs-13);
}

.search-suggest__price .amount {
  color: inherit;
}

.select2-hidden-accessible {
  position: absolute !important;
  width: 1px !important;
  min-width: 1px !important;
  max-width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.search-suggest__viewall {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid var(--nx-line);
  font-size: var(--nx-fs-13);
  font-weight: 700;
  color: var(--nx-blue);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: background 0.15s ease;
}

.search-suggest__viewall:hover,
.search-suggest__viewall:focus {
  background: var(--nx-soft);
  outline: none;
}

.search-suggest__loading,
.search-suggest__empty {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 16px;
  font-size: var(--nx-fs-13);
  color: var(--nx-muted);
}

.search-suggest__loading i,
.search-suggest__empty i {
  color: var(--nx-blue);
}

/* ============================================================
 * Mini-cart dropdown
 * ============================================================ */

.mini-cart-wrapper {
  position: relative;
}

.mini-cart[hidden] {
  display: none;
}

.mini-cart {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  width: 360px;
  max-width: calc(100vw - 24px);
  background: var(--nx-white);
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-radius);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.18);
  color: var(--nx-ink);
}

.mini-cart__inner {
  display: flex;
  flex-direction: column;
  max-height: min(520px, 80vh);
}

.mini-cart__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--nx-line);
  font-size: var(--nx-fs-13);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--nx-muted);
  font-weight: 700;
}

.mini-cart__close {
  background: transparent;
  border: 0;
  color: var(--nx-muted);
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  transition: background 0.15s ease, color 0.15s ease;
}

.mini-cart__close:hover,
.mini-cart__close:focus {
  background: var(--nx-soft);
  color: var(--nx-ink);
  outline: none;
}

.mini-cart__list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  flex: 1 1 auto;
}

.mini-cart__item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--nx-line);
}

.mini-cart__item:last-child {
  border-bottom: 0;
}

.mini-cart__image {
  display: block;
  width: 56px;
  height: 56px;
  border: 1px solid var(--nx-line);
  border-radius: 4px;
  overflow: hidden;
  background: var(--nx-white);
}

.mini-cart__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mini-cart__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.mini-cart__name {
  font-size: var(--nx-fs-13);
  font-weight: 600;
  color: var(--nx-ink);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mini-cart__name:hover,
.mini-cart__name:focus {
  color: var(--nx-blue);
  outline: none;
}

.mini-cart__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 2px;
}

.mini-cart__price {
  font-size: var(--nx-fs-13);
  color: var(--nx-blue);
  font-weight: 700;
}

.mini-cart__price .amount {
  color: inherit;
}

.mini-cart__remove {
  background: transparent;
  border: 0;
  color: var(--nx-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: background 0.15s ease, color 0.15s ease;
}

.mini-cart__remove:hover,
.mini-cart__remove:focus {
  color: var(--nx-red);
  background: var(--nx-soft);
  outline: none;
}

.mini-cart__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 32px 18px;
  text-align: center;
  color: var(--nx-muted);
}

.mini-cart__empty i {
  font-size: var(--nx-fs-28);
  color: var(--nx-blue);
}

.mini-cart__empty p {
  margin: 0;
  font-size: var(--nx-fs-14);
}

.mini-cart__footer {
  padding: 14px 16px 16px;
  border-top: 1px solid var(--nx-line);
  background: var(--nx-soft);
}

.mini-cart__subtotal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--nx-fs-14);
  font-weight: 600;
  color: var(--nx-ink);
  margin-bottom: 4px;
}

.mini-cart__subtotal strong {
  color: var(--nx-blue);
  font-size: var(--nx-fs-16);
  font-weight: 800;
}

.mini-cart__subtotal strong .amount {
  color: inherit;
}

.mini-cart__note {
  font-size: var(--nx-fs-12);
  color: var(--nx-muted);
  margin: 0 0 12px;
}

.mini-cart__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mini-cart__actions .button {
  text-align: center;
  font-size: var(--nx-fs-12);
  padding: 10px 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Mobile mini-cart: full-width sheet anchored to the top */
@media (max-width: 600px) {
  .mini-cart {
    position: fixed;
    top: 80px;
    left: 12px;
    right: 12px;
    width: auto;
    max-width: none;
  }
}

/* ============================================================
 * Quantity stepper
 * ============================================================ */

.nx-qty {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-button-radius);
  background: var(--nx-white);
  overflow: hidden;
  height: 40px;
  min-width: 110px;
}

.nx-qty__btn {
  flex: 0 0 32px;
  background: var(--nx-white);
  border: 0;
  color: var(--nx-ink);
  cursor: pointer;
  font-size: var(--nx-fs-12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
  padding: 0;
}

.nx-qty__btn:hover,
.nx-qty__btn:focus {
  background: var(--nx-blue);
  color: var(--nx-white);
  outline: none;
}

.nx-qty__btn:disabled,
.nx-qty__btn[aria-disabled="true"] {
  opacity: 0.4;
  cursor: not-allowed;
}

.nx-qty input[type="number"] {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  border: 0;
  background: var(--nx-white);
  text-align: center;
  font-size: var(--nx-fs-14);
  font-weight: 600;
  color: var(--nx-ink);
  -moz-appearance: textfield;
  appearance: textfield;
  padding: 0;
  height: 100%;
}

.nx-qty input[type="number"]::-webkit-outer-spin-button,
.nx-qty input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.nx-qty input[type="number"]:focus {
  outline: none;
  background: var(--nx-soft);
}

/* ============================================================
 * Search results page (when ?post_type=product)
 * ============================================================ */

.search-header {
  margin: 32px 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--nx-line);
}

.search-header h1 {
  font-size: var(--nx-fs-24);
  margin: 0 0 4px;
  color: var(--nx-ink);
}

.search-header__q {
  color: var(--nx-blue);
}

.search-header__count {
  font-size: var(--nx-fs-13);
  color: var(--nx-muted);
  margin: 0;
}

.search-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 60px 20px;
  text-align: center;
  color: var(--nx-muted);
  background: var(--nx-soft);
  border-radius: var(--nx-radius);
  margin-bottom: 32px;
}

.search-empty i {
  font-size: var(--nx-fs-36);
  color: var(--nx-blue);
}

.search-empty p {
  margin: 0;
  font-size: var(--nx-fs-15);
  max-width: 380px;
}

/* ============================================================
 * My Account (Electro-style 2-col)
 * ============================================================ */

.nx-myaccount {
  margin: 32px 0 48px;
}

.nx-myaccount__heading {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 0 0 24px;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--nx-line);
}

.nx-myaccount__title {
  font-size: var(--nx-fs-22);
  font-weight: 700;
  margin: 0;
  color: var(--nx-ink);
}

.nx-myaccount__sub {
  font-size: var(--nx-fs-13);
  color: var(--nx-muted);
  margin: 0;
}

.nx-myaccount__layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.nx-myaccount__nav {
  background: var(--nx-white);
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-radius);
  padding: 6px 0;
}

.nx-myaccount__nav .woocommerce-MyAccount-navigation,
.nx-myaccount__nav > ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nx-myaccount__nav li {
  display: block;
}

.nx-myaccount__nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  font-size: var(--nx-fs-14);
  color: var(--nx-ink);
  border-left: 3px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.nx-myaccount__nav a:hover,
.nx-myaccount__nav a:focus {
  background: var(--nx-soft);
  color: var(--nx-blue);
  outline: none;
}

.nx-myaccount__nav .is-active a,
.nx-myaccount__nav li.is-active > a {
  background: var(--nx-soft);
  color: var(--nx-blue);
  border-left-color: var(--nx-blue);
  font-weight: 600;
}

.nx-myaccount__content {
  background: var(--nx-white);
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-radius);
  padding: 22px 24px;
}

.nx-myaccount__content h2,
.nx-myaccount__content h3 {
  color: var(--nx-ink);
}

.nx-myaccount__content table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
}

.nx-myaccount__content th,
.nx-myaccount__content td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--nx-line);
  font-size: var(--nx-fs-14);
}

.nx-myaccount__content th {
  font-weight: 700;
  color: var(--nx-muted);
  text-transform: uppercase;
  font-size: var(--nx-fs-12);
  letter-spacing: 0.04em;
}

.nx-myaccount__content a {
  color: var(--nx-blue);
  font-weight: 600;
}

.nx-myaccount__content a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .nx-myaccount__layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .nx-myaccount__content {
    padding: 18px 16px;
  }
}

/* ============================================================
 * My Account dashboard (Electro-style 3 quick-access cards)
 * ============================================================ */

.nx-myaccount-dashboard {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.nx-myaccount-dashboard__head h2 {
  font-size: var(--nx-fs-18);
  font-weight: 700;
  color: var(--nx-ink);
  margin: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--nx-line);
}

.nx-myaccount-dashboard__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.nx-myaccount-dashboard__card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 18px;
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-radius);
  background: var(--nx-white);
  color: var(--nx-ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.nx-myaccount-dashboard__card:hover,
.nx-myaccount-dashboard__card:focus {
  border-color: var(--nx-blue);
  box-shadow: 0 4px 14px rgba(35, 71, 147, 0.08);
  transform: translateY(-1px);
  outline: none;
}

.nx-myaccount-dashboard__card i {
  font-size: var(--nx-fs-22);
  color: var(--nx-blue);
  margin-bottom: 4px;
}

.nx-myaccount-dashboard__card-label {
  font-size: var(--nx-fs-14);
  font-weight: 700;
  color: var(--nx-ink);
}

.nx-myaccount-dashboard__card-meta {
  font-size: var(--nx-fs-12);
  color: var(--nx-muted);
  margin-top: auto;
}

@media (max-width: 768px) {
  .nx-myaccount-dashboard__grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .nx-myaccount-dashboard__card {
    padding: 14px 16px;
  }
}

/* ============================================================
 * Login / Register (Electro-style 2-col)
 * ============================================================ */

.nx-login-page {
  margin: 32px 0 48px;
}

.nx-login-page__heading {
  text-align: center;
  margin-bottom: 28px;
}

.nx-login-page__title {
  font-size: var(--nx-fs-30);
  margin: 0 0 6px;
  color: var(--nx-ink);
}

.nx-login-page__sub {
  font-size: var(--nx-fs-15);
  color: var(--nx-muted);
  margin: 0;
}

.nx-login-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.nx-login-column {
  background: var(--nx-white);
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-radius);
  padding: 24px 26px;
}

.nx-login-column__head {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--nx-line);
}

.nx-login-column__head h2 {
  font-size: var(--nx-fs-20);
  margin: 0 0 4px;
  color: var(--nx-ink);
}

.nx-login-column__head p {
  font-size: var(--nx-fs-13);
  color: var(--nx-muted);
  margin: 0;
}

.nx-login-column form .form-row {
  margin-bottom: 14px;
}

.nx-login-column form label {
  display: block;
  font-size: var(--nx-fs-13);
  font-weight: 600;
  color: var(--nx-ink);
  margin-bottom: 6px;
}

.nx-login-column form .input-text {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-button-radius);
  font-size: var(--nx-fs-14);
  color: var(--nx-ink);
  background: var(--nx-white);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.nx-login-column form .input-text:focus {
  border-color: var(--nx-blue);
  box-shadow: var(--nx-focus-ring);
  outline: none;
}

.nx-login-row {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.nx-login-row .woocommerce-form__label-for-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--nx-fs-13);
  color: var(--nx-ink);
  font-weight: 400;
  margin: 0;
}

.nx-login-lost {
  font-size: var(--nx-fs-13);
  color: var(--nx-blue);
  font-weight: 600;
}

.nx-login-lost:hover,
.nx-login-lost:focus {
  text-decoration: underline;
  outline: none;
}

.nx-login-submit {
  margin-top: 16px !important;
}

/* ============================================================
 * WC show-password toggle (login, register, edit account, reset)
 *
 * WC emite <button class="show-password-input"></button> despues de cada
 * input de tipo password. Por defecto usa el font "dashicons" (solo se
 * carga en el admin de WP), asi que en el frontend el boton queda vacio
 * y se renderiza como una rayita fea. Reemplazamos el dashicon por un
 * icono de Font Awesome 5 (ya encolado) y le damos el estilo del theme.
 * El toggle se hace via la clase .display-password que el JS de WC
 * agrega cuando la contrasena esta visible.
 * ============================================================ */

.show-password-input {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  margin: 0 0 0 -34px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 4px;
  color: var(--nx-muted);
  cursor: pointer;
  font-size: var(--nx-fs-14);
  line-height: 1;
  vertical-align: middle;
  transition: color 0.15s ease, background 0.15s ease;
}

.show-password-input::after {
  content: "\f06e"; /* fa-eye */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  display: block;
  line-height: 1;
}

.show-password-input:hover,
.show-password-input:focus {
  color: var(--nx-blue);
  background: var(--nx-soft);
  outline: none;
}

.show-password-input.display-password::after {
  content: "\f070"; /* fa-eye-slash */
}

/* Padding extra a la derecha en los inputs de password para que el texto
 * no quede tapado por el boton de mostrar contrasena. WC lo hace
 * automaticamente cuando su CSS esta cargada, pero al sobreescribir los
 * estilos de input perdemos ese padding. */
.woocommerce-Input[type="password"],
.woocommerce-form-login .input-text[type="password"],
.nx-login-column form .input-text[type="password"],
.woocommerce-EditAccountForm input[type="password"] {
  padding-right: 42px;
}

/* El boton debe quedar dentro del flujo visual del input. El HTML de WC
 * lo emite como hermano del input dentro de <p>, asi que margin-left
 * negativo lo "tira" sobre el input. En el form de login ocupa una
 * sola linea asi que con inline-flex basta. */
.woocommerce-form-login p .show-password-input,
.nx-login-column form p .show-password-input {
  vertical-align: middle;
}

.nx-login-submit .button {
  width: 100%;
  height: 44px;
  font-size: var(--nx-fs-14);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.nx-login-note {
  font-size: var(--nx-fs-12);
  color: var(--nx-muted);
  background: var(--nx-soft);
  border-radius: var(--nx-button-radius);
  padding: 10px 12px;
  margin: 0 0 14px;
}

@media (max-width: 768px) {
  .nx-login-columns {
    grid-template-columns: 1fr;
  }
  .nx-login-page__title {
    font-size: var(--nx-fs-24);
  }
}

/* ============================================================
   SLIDER CPT — carrusel de banners de la home
   ============================================================ */

/* Cuando el hero-stage contiene un slider, pierde su propio fondo
   y deja que .nx-slide__bg maneje el fondo por slide. */
.hero-stage:has(.nx-slider) {
  display: block;
  padding: 0;
  min-height: 380px;
  background: transparent;
}

.nx-slider {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 380px;
  border-radius: var(--nx-radius);
  overflow: hidden;
}

.nx-slider__track {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 380px;
}

.nx-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
  z-index: 0;
}

.nx-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

/* Fondo: sin animacion, aparece instantaneamente con el slide. */
.nx-slide__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--nx-bg-color, #234793);
  overflow: hidden;
}

.nx-slide__bg-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.nx-slide__bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.55) 0%, rgba(15, 23, 42, 0.15) 60%, rgba(15, 23, 42, 0) 100%);
}

/* Contenido del slide */
.nx-slide__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  padding: 48px 128px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 32px;
}

.nx-slide__text {
  color: var(--nx-white);
  max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-shadow: 0 1px 2px rgba(15, 23, 42, 0.25);
}

.nx-slide__title {
  margin: 0 0 18px;
  font-family: "Roboto", Arial, sans-serif;
  font-size: var(--nx-fs-42);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: 0;
  text-wrap: balance;
}

.nx-slide__desc {
  max-width: 460px;
  margin: 0 0 24px;
  font-size: var(--nx-fs-17);
  line-height: 1.55;
  text-wrap: balance;
}

/* Imagen destacada del slide */
.nx-slide__image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.nx-slide__image-img {
  max-width: 100%;
  max-height: 320px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Variantes de color del boton CTA */
.nx-slide__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: var(--nx-button-radius);
  font-family: "Roboto", Arial, sans-serif;
  font-size: var(--nx-fs-14);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  cursor: pointer;
}

.nx-slide__cta--red {
  background: var(--nx-red);
  color: var(--nx-white);
  box-shadow: var(--nx-shadow-red);
}
.nx-slide__cta--red:hover {
  transform: translateY(-1px);
  box-shadow: var(--nx-shadow-red-hover);
}

.nx-slide__cta--white {
  background: var(--nx-white);
  color: var(--nx-blue);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}
.nx-slide__cta--white:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.22);
}

.nx-slide__cta--blue {
  background: var(--nx-blue);
  color: var(--nx-white);
  box-shadow: 0 4px 12px rgba(35, 71, 147, 0.35);
}
.nx-slide__cta--blue:hover {
  background: var(--nx-blue-dark);
  transform: translateY(-1px);
}

/* Animacion de entrada — el background no anima, solo el contenido. */
@keyframes nx-fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nx-slide.is-active .nx-slide__image {
  animation: nx-fade-up 0.6s ease 0.05s both;
}

.nx-slide.is-active .nx-slide__title {
  animation: nx-fade-up 0.6s ease 0.3s both;
}

.nx-slide.is-active .nx-slide__desc {
  animation: nx-fade-up 0.6s ease 0.5s both;
}

.nx-slide.is-active .nx-slide__cta {
  animation: nx-fade-up 0.6s ease 0.7s both;
}

/* Navegacion: flechas */
.nx-slider__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.85);
  color: var(--nx-blue);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  transition: background 0.18s ease, transform 0.18s ease;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
}

.nx-slider__nav:hover {
  background: var(--nx-white);
  transform: translateY(-50%) scale(1.08);
}

.nx-slider__nav:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px var(--nx-focus-ring);
}

.nx-slider__nav--prev { left: 12px; }
.nx-slider__nav--next { right: 12px; }

/* Dots */
.nx-slider__dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 8px;
}

.nx-slider__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: 0;
  transition: background 0.18s ease, transform 0.18s ease, width 0.18s ease;
}

.nx-slider__dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

.nx-slider__dot.is-active {
  background: var(--nx-white);
  width: 26px;
  border-radius: 999px;
}

/* Reduced motion: sin animaciones de entrada ni transiciones */
@media (prefers-reduced-motion: reduce) {
  .nx-slide { transition: none; }
  .nx-slide.is-active .nx-slide__image,
  .nx-slide.is-active .nx-slide__title,
  .nx-slide.is-active .nx-slide__desc,
  .nx-slide.is-active .nx-slide__cta {
    animation: none;
  }
  .nx-slider__nav,
  .nx-slider__dot,
  .nx-slide__cta {
    transition: none;
  }
}

/* Tablet */
@media (max-width: 1024px) {
  .hero-stage:has(.nx-slider) {
    min-height: 320px;
  }
  .nx-slider,
  .nx-slider__track {
    min-height: 320px;
  }
  .nx-slide__inner {
    padding: 32px 88px;
  }
  .nx-slide__title { font-size: var(--nx-fs-32); }
  .nx-slide__image-img { max-height: 240px; }
}

/* Mobile */
@media (max-width: 720px) {
  .hero-stage:has(.nx-slider) {
    min-height: 360px;
  }
  .nx-slider,
  .nx-slider__track {
    min-height: 360px;
  }
  .nx-slide__inner {
    grid-template-columns: 1fr;
    padding: 24px 64px 64px;
    text-align: center;
    align-items: center;
    justify-items: center;
  }
  .nx-slide__text {
    align-items: center;
    max-width: 100%;
  }
  .nx-slide__title { font-size: var(--nx-fs-24); margin-bottom: 12px; }
  .nx-slide__desc { font-size: var(--nx-fs-15); line-height: 1.5; }
  .nx-slide__image { order: -1; }
  .nx-slide__image-img { max-height: 140px; }
  .nx-slider__nav { width: 32px; height: 32px; }
  .nx-slider__nav--prev { left: 8px; }
  .nx-slider__nav--next { right: 8px; }
  .nx-slider__dots { bottom: 10px; }
}
