/* OneTech brand fonts — Manual de marca 2025 */
@font-face {
  font-family: 'Just Sans';
  src: url('/fonts/just-sans/JustSans-Regular.woff2') format('woff2'),
       url('/fonts/just-sans/JustSans-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  /* Rany y Just Sans reutilizan el glifo de n/a/e/o para ñ/á/é/ó. El acento lo pinta sans-serif. */
  unicode-range: U+0000-007F;
}

@font-face {
  font-family: 'Just Sans';
  src: url('/fonts/just-sans/JustSans-ExBold.woff2') format('woff2'),
       url('/fonts/just-sans/JustSans-ExBold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  /* Rany y Just Sans reutilizan el glifo de n/a/e/o para ñ/á/é/ó. El acento lo pinta sans-serif. */
  unicode-range: U+0000-007F;
}

@font-face {
  font-family: 'Just Sans';
  src: url('/fonts/just-sans/JustSans-ExBold.woff2') format('woff2'),
       url('/fonts/just-sans/JustSans-ExBold.woff') format('woff');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  /* Rany y Just Sans reutilizan el glifo de n/a/e/o para ñ/á/é/ó. El acento lo pinta sans-serif. */
  unicode-range: U+0000-007F;
}

@font-face {
  font-family: 'Rany';
  src: url('/fonts/rany/Rany-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  /* Rany y Just Sans reutilizan el glifo de n/a/e/o para ñ/á/é/ó. El acento lo pinta sans-serif. */
  unicode-range: U+0000-007F;
}

@font-face {
  font-family: 'Rany';
  src: url('/fonts/rany/Rany-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  /* Rany y Just Sans reutilizan el glifo de n/a/e/o para ñ/á/é/ó. El acento lo pinta sans-serif. */
  unicode-range: U+0000-007F;
}

@font-face {
  font-family: 'Rany';
  src: url('/fonts/rany/Rany-Italic.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  /* Rany y Just Sans reutilizan el glifo de n/a/e/o para ñ/á/é/ó. El acento lo pinta sans-serif. */
  unicode-range: U+0000-007F;
}

@font-face {
  font-family: 'Rany';
  src: url('/fonts/rany/Rany-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  /* Rany y Just Sans reutilizan el glifo de n/a/e/o para ñ/á/é/ó. El acento lo pinta sans-serif. */
  unicode-range: U+0000-007F;
}

@font-face {
  font-family: 'Rany';
  src: url('/fonts/rany/Rany-MediumItalic.otf') format('opentype');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
  /* Rany y Just Sans reutilizan el glifo de n/a/e/o para ñ/á/é/ó. El acento lo pinta sans-serif. */
  unicode-range: U+0000-007F;
}

@font-face {
  font-family: 'Rany';
  src: url('/fonts/rany/Rany-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  /* Rany y Just Sans reutilizan el glifo de n/a/e/o para ñ/á/é/ó. El acento lo pinta sans-serif. */
  unicode-range: U+0000-007F;
}

@font-face {
  font-family: 'Rany';
  src: url('/fonts/rany/Rany-BoldItalic.otf') format('opentype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
  /* Rany y Just Sans reutilizan el glifo de n/a/e/o para ñ/á/é/ó. El acento lo pinta sans-serif. */
  unicode-range: U+0000-007F;
}

@font-face {
  font-family: 'Rany';
  src: url('/fonts/rany/Rany-LightItalic.otf') format('opentype');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
  /* Rany y Just Sans reutilizan el glifo de n/a/e/o para ñ/á/é/ó. El acento lo pinta sans-serif. */
  unicode-range: U+0000-007F;
}

:root {
  --cyan: #00caeb;
  --cyan-deep: #00b6d4;
  --navy: #162132;
  --ink: #162132;
  --ink-soft: #333333;
  --fog: #e8eef1;
  --paper: #f4f7f9;
  --surface: #ffffff;
  --white: #ffffff;
  --line: rgba(22, 33, 50, 0.12);
  --shadow: 0 18px 50px rgba(22, 33, 50, 0.12);
  --radius: 16px;
  --container: 1180px;
  --header-h: 78px;
  --font-display: 'Just Sans', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Rany', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  color-scheme: light;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-soft);
  background:
    radial-gradient(ellipse 80% 45% at 8% -8%, rgba(0, 202, 235, 0.12), transparent 48%),
    radial-gradient(ellipse 55% 35% at 92% 0%, rgba(22, 33, 50, 0.08), transparent 42%),
    linear-gradient(180deg, #f7f9fb 0%, #eef2f5 100%);
  min-height: 100vh;
  line-height: 1.55;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.container--wide {
  width: min(100% - 1.25rem, 1520px);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 0.75rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

main#contenido {
  margin-top: 0;
}

main#contenido:not(:has(> .hero:first-child)) {
  margin-top: 1rem;
}

/* Header */
body:has(.site-header .search-suggest:not([hidden])) .site-header,
body:has(.catalog-toolbar .search-suggest:not([hidden])) .catalog-toolbar {
  z-index: 90;
}

.catalog-toolbar {
  position: relative;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px) saturate(1.2);
  background: rgba(10, 16, 24, 0.88);
  border-bottom: 1px solid rgba(0, 202, 235, 0.16);
  padding: 1.4rem 0 1.45rem;
  box-shadow: 0 1px 0 rgba(0, 202, 235, 0.08), 0 12px 40px rgba(0, 0, 0, 0.25);
}

.site-header::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--cyan) 35%, var(--cyan-deep) 65%, transparent 100%);
  opacity: 0.85;
  pointer-events: none;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: var(--header-h);
  position: relative;
  width: min(100% - 1rem, 1520px);
  padding-inline: 0;
}

.header-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-width: 0;
  flex: 1;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  z-index: 2;
}

.brand img {
  width: 140px;
  height: auto;
}

.brand-fallback {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: 0.04em;
  color: var(--white);
  text-transform: uppercase;
}

.brand-fallback span {
  color: var(--cyan);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  z-index: 2;
  margin-left: auto;
}

.search-form {
  position: relative;
  z-index: 6;
  display: none;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
  max-width: 380px;
  min-height: 0;
  margin-inline: auto;
  margin-top: 0.45rem;
  background:
    linear-gradient(135deg, rgba(0, 202, 235, 0.14), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(0, 202, 235, 0.38);
  border-radius: 999px;
  padding: 0.2rem 0.25rem 0.2rem 0.9rem;
  box-shadow:
    inset 0 0 0 1px rgba(0, 202, 235, 0.08),
    0 0 24px rgba(0, 202, 235, 0.12);
}

.search-form:focus-within {
  border-color: rgba(0, 202, 235, 0.38);
  box-shadow:
    inset 0 0 0 1px rgba(0, 202, 235, 0.08),
    0 0 24px rgba(0, 202, 235, 0.12);
}

.search-form input {
  border: 0;
  background: transparent;
  outline: none;
  min-width: 0;
  width: 100%;
  font-size: 0.875rem;
  line-height: 1.2;
  padding: 0.25rem 0;
  color: var(--white);
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
  box-shadow: none;
}

.search-form input:focus,
.search-form input:focus-visible {
  outline: none;
  border: 0;
  box-shadow: none;
  border-radius: 0;
}

.search-form input[type="search"]::-webkit-search-decoration,
.search-form input[type="search"]::-webkit-search-cancel-button,
.search-form input[type="search"]::-webkit-search-results-button,
.search-form input[type="search"]::-webkit-search-results-decoration {
  -webkit-appearance: none;
}

.search-form input::placeholder {
  color: rgba(255, 255, 255, 0.58);
}

.search-form .btn-small {
  padding: 0.42rem 0.95rem;
  font-size: 0.8rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #3ad8f3 0%, var(--cyan) 45%, var(--cyan-deep) 100%);
  color: #041018;
  border: 0;
  box-shadow:
    0 4px 14px rgba(0, 202, 235, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.search-form .btn-small:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #6ce5f8 0%, #1fd4f0 50%, var(--cyan) 100%);
  box-shadow:
    0 6px 18px rgba(0, 202, 235, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.search-form .btn-small:focus,
.search-form .btn-small:focus-visible {
  outline: none;
  box-shadow:
    0 4px 14px rgba(0, 202, 235, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(0, 202, 235, 0.28);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--white);
  position: relative;
  display: block;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--white);
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.main-nav {
  display: none;
  width: 100%;
  border-top: 1px solid var(--line);
  padding: 0.75rem 0 1rem;
}

.main-nav.open {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 40;
  width: auto;
  background: rgba(10, 16, 24, 0.98);
  border-top: 1px solid rgba(0, 202, 235, 0.16);
  padding: 0.75rem 1rem 1rem;
  box-shadow: var(--shadow);
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.nav-list > li > a,
.nav-list .nav-parent > a,
.nav-list .nav-parent > button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 0;
  background: transparent;
  font-weight: 600;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.nav-parent > [data-products-toggle]::after {
  content: '';
  width: 0.38rem;
  height: 0.38rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-top: -0.22rem;
  flex: 0 0 auto;
}

.nav-list > li > a:hover,
.nav-list > li > a:focus-visible,
.nav-list .nav-parent > a:hover,
.nav-list .nav-parent > a:focus-visible,
.nav-list .nav-parent > button:hover,
.nav-list .nav-parent > button:focus-visible,
.nav-list > li > a.active {
  background: rgba(0, 202, 235, 0.14);
  color: var(--cyan);
}

.submenu {
  display: none;
  list-style: none;
  margin: 0.25rem 0 0.5rem;
  padding: 0.65rem 0.5rem;
  background: rgba(8, 14, 22, 0.97);
  border: 1px solid rgba(0, 202, 235, 0.22);
  border-radius: 14px;
  max-height: min(70vh, 420px);
  overflow: auto;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  z-index: 30;
}

@media (max-width: 979px) {
  .submenu--mega.open,
  .nav-parent.is-open > .submenu {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
  }
}

.submenu__col {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.15rem;
}

.submenu a {
  display: block;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
}

.submenu a:hover,
.submenu a:focus-visible {
  background: rgba(0, 202, 235, 0.14);
  color: var(--cyan);
  outline: none;
}

/* Notices */
.notices-bar {
  background: linear-gradient(90deg, var(--navy), #1f334d 58%, var(--cyan-deep));
  color: var(--white);
  overflow: hidden;
}

.notices-track {
  display: flex;
  gap: 2.5rem;
  padding: 0.7rem 0;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.notice-item {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  white-space: nowrap;
  font-size: 0.95rem;
}

.notice-item a {
  color: var(--white);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 999px;
  padding: 0.8rem 1.25rem;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:focus-visible {
  outline: 3px solid rgba(0, 202, 235, 0.45);
  outline-offset: 2px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--cyan-deep));
  color: var(--navy);
  box-shadow: 0 10px 24px rgba(0, 202, 235, 0.28);
  font-weight: 700;
}

.btn-secondary {
  background: var(--navy);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--navy);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--cyan-deep);
  color: var(--navy);
}

.site-header .btn-ghost {
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--white);
}

.site-header .btn-ghost:hover,
.site-header .btn-ghost:focus-visible {
  border-color: var(--cyan);
  color: var(--cyan);
}

.site-header .btn-secondary {
  background: rgba(0, 202, 235, 0.12);
  border-color: rgba(0, 202, 235, 0.35);
  color: var(--cyan);
}

.btn-small {
  padding: 0.55rem 0.95rem;
  font-size: 0.92rem;
}

.btn-icon {
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  flex-shrink: 0;
}

.btn-icon svg {
  display: block;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(78vh, 720px);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroZoom 18s ease-in-out infinite alternate;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(22, 33, 50, 0.78) 0%, rgba(22, 33, 50, 0.35) 55%, rgba(22, 33, 50, 0.25) 100%),
    linear-gradient(180deg, transparent 40%, rgba(22, 33, 50, 0.55) 100%);
}

.hero-content {
  color: var(--white);
  padding: 5rem 0 3.5rem;
  max-width: 720px;
  animation: riseIn 0.8s ease both;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--cyan);
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}

.hero p {
  margin: 0 0 1.5rem;
  font-size: 1.08rem;
  max-width: 38ch;
  color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Home: la imagen se une al header (sin hueco, continúa detrás) */
body:has(.hero--below) .site-header {
  border-bottom-color: transparent;
  box-shadow: none;
  background: rgba(10, 16, 24, 0.72);
}

.hero--below {
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin-top: calc(-1 * (var(--header-h) + 3.5rem));
  overflow: visible;
}

.hero--below .hero-visual {
  position: relative;
  min-height: min(68vh, 640px);
  overflow: hidden;
  margin-top: 0;
  /* Compensa el solapamiento para que la foto se vea completa bajo el header */
  padding-top: calc(var(--header-h) + 3.5rem);
  box-sizing: border-box;
  border-radius: 0 0 clamp(3.5rem, 10vw, 7rem) clamp(3.5rem, 10vw, 7rem);
  box-shadow: 0 18px 40px rgba(22, 33, 50, 0.16);
}

.hero--below .hero-media,
.hero--below .hero-overlay,
.hero--below .hero-carousel__viewport,
.hero--below .hero-carousel__slide {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero--below .hero-media img,
.hero--below .hero-carousel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero--below .hero-overlay {
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10, 16, 24, 0.45) 0%, rgba(22, 33, 50, 0.08) 38%, rgba(22, 33, 50, 0.22) 100%);
}

.hero--below .hero-content {
  position: relative;
  z-index: 2;
  color: var(--ink);
  max-width: none;
  margin-inline: auto;
  padding: 2.5rem 0 1.5rem;
  animation: riseIn 0.8s ease both;
  text-align: left;
}

.hero--below .hero-content > * {
  max-width: 36rem;
}

.hero--below .hero-content--cta {
  padding: 3rem 0 0.5rem;
}

.hero--below .hero-content--cta > * {
  max-width: none;
}

.hero--below .hero-kicker {
  color: var(--navy);
}

.hero--below h1 {
  color: var(--navy);
  font-size: clamp(1.7rem, 3.2vw, 2.55rem);
  line-height: 1.12;
  text-shadow: none;
}

.hero--below p {
  color: var(--ink-soft);
  max-width: 36rem;
}

/* Móvil/tablet: el banner es apaisado (2048×726). cover + 68vh recorta los lados. */
@media (max-width: 979px) {
  .hero--below {
    margin-top: 0;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .hero--below .hero-visual {
    min-height: 0;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    padding-top: 0;
    aspect-ratio: 2048 / 726;
    background: #0a1018;
    overflow: hidden;
    border-radius: 0 0 3rem 3rem;
  }

  .hero--below .hero-media img,
  .hero--below .hero-carousel img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    object-position: center center;
  }

  .hero--below .hero-overlay {
    background: linear-gradient(180deg, rgba(10, 16, 24, 0.2) 0%, rgba(22, 33, 50, 0.08) 100%);
  }

  .hero--below .hero-content {
    min-width: 0;
    max-width: 100%;
    padding: 1.35rem 0 0.85rem;
  }

  .hero--below .hero-content--cta {
    padding: 2.25rem 0 0.85rem;
  }

  .hero-carousel__controls {
    padding: 0 0.4rem;
  }

  .hero-carousel__btn {
    width: 2.15rem;
    height: 2.15rem;
    font-size: 1.35rem;
  }

  .hero-carousel__dots {
    bottom: 0.5rem;
  }
}

@media (max-width: 719px) {
  .header-inner {
    flex-wrap: wrap;
    row-gap: 0.65rem;
    align-items: center;
  }

  .brand {
    order: 1;
  }

  .header-actions {
    order: 2;
    flex: 1 1 auto;
    min-width: 0;
    margin-left: auto;
    justify-content: flex-end;
    gap: 0.35rem;
  }

  .header-main {
    order: 3;
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
    overflow: visible;
    gap: 0;
  }

  .search-form {
    display: flex;
    max-width: none;
    margin: 0;
  }

  .site-header .search-suggest {
    width: 100%;
    max-width: 100%;
  }

  .site-header .user-chip {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .header-actions .user-tools {
    flex-wrap: nowrap;
    gap: 0.35rem;
    min-width: 0;
  }

  .header-actions .btn-small {
    padding: 0.4rem 0.7rem;
  }
}

@media (max-width: 479px) {
  .brand img {
    width: 104px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-head h2,
.page-hero h1,
.panel h2 {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin: 0;
}

.section-head p,
.lede {
  margin: 0.5rem 0 0;
  color: var(--ink-soft);
  max-width: 48ch;
}

.page-hero {
  padding: 3.5rem 0 2rem;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.2;
}

.page-hero--about h1 {
  max-width: 36rem;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.12;
  text-align: left;
}

.page-hero--about .lede {
  max-width: 36rem;
  text-align: left;
}

/* Títulos compactos en vistas internas (menú, módulos) */
.page-hero--compact {
  padding: 1.75rem 0 1rem;
}

.page-hero--compact h1 {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  letter-spacing: -0.02em;
}

.page-hero--compact .lede {
  margin-top: 0.35rem;
  font-size: 0.95rem;
}

.menu-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}

.menu-hero__copy {
  min-width: 0;
}

.menu-version {
  flex: 0 0 auto;
  margin: 0.15rem 0 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.1rem;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.menu-version__value {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-transform: none;
  color: var(--navy);
}

@media (max-width: 640px) {
  .menu-hero {
    flex-wrap: wrap;
  }
}

.eyebrow {
  color: var(--navy);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  margin-bottom: 0.6rem;
}

a.eyebrow-link {
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s ease, opacity 0.15s ease;
}

a.eyebrow-link:hover,
a.eyebrow-link:focus-visible {
  color: var(--ink-soft);
  outline: none;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* Breadcrumb: Menu < Importaciones < … */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin-bottom: 0.55rem;
  color: var(--navy);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.breadcrumb__sep {
  color: #6b7a86;
  font-weight: 700;
  user-select: none;
}

.breadcrumb__link {
  color: var(--navy);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s ease;
}

.breadcrumb__link:hover,
.breadcrumb__link:focus-visible {
  color: var(--ink-soft);
  outline: none;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.breadcrumb--shop {
  font-weight: 600;
  color: #8b98a2;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  margin: 1.25rem 0 1.5rem;
}

.breadcrumb--shop .breadcrumb__link,
.breadcrumb--shop .breadcrumb__sep {
  color: #8b98a2;
  font-weight: 600;
}

/* Cards / grids */
.product-grid,
.brand-grid,
.solution-grid,
.service-grid,
.value-grid,
.team-grid,
.location-grid {
  display: grid;
  gap: 1rem;
}

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

.product-card,
.brand-card,
.solution-card,
.service-card,
.value-card,
.team-card,
.location-card,
.info-panel,
.form-card,
.admin-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.35s ease;
  color: var(--ink-soft);
}

.product-card:hover,
.brand-card:hover,
.solution-card:hover,
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(0, 202, 235, 0.35);
}

.product-card img,
.solution-card img,
.service-card img {
  width: 100%;
  object-fit: cover;
  background: #e4e9ed;
  filter: none;
}

.product-card img {
  aspect-ratio: 1.85 / 1;
  max-height: 9.5rem;
  object-fit: contain;
  background: #fff;
}

.service-card,
.solution-card {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  min-width: 0;
  background: var(--navy);
  color: #fff;
}

.solution-card {
  border-radius: clamp(1.5rem, 12%, 2.25rem);
  isolation: isolate;
}

.service-card img,
.solution-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s ease;
}

.solution-card img {
  border-radius: inherit;
}

.service-card:hover img,
.solution-card:hover img {
  transform: scale(1.04);
}

.service-card:focus-visible,
.solution-card:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.service-card .body,
.solution-card .body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 4rem 1.1rem 1.15rem;
  background: linear-gradient(180deg, transparent 0%, rgba(22, 33, 50, 0.92) 78%);
}

.service-card h3,
.solution-card h3 {
  margin: 0 0 0.35rem;
  color: #fff;
  font-size: 1.02rem;
  line-height: 1.3;
  font-family: var(--font-display);
}

.service-card .muted {
  color: #5b6d76;
  margin: 0;
}

/* Cómo podemos ayudarte: forma orgánica e imagen solo en hover */
.service-card {
  aspect-ratio: 3 / 4;
  width: 100%;
  max-width: 15.5rem;
  background: var(--surface);
  color: var(--navy);
  border-radius: clamp(2.5rem, 24%, 4rem) 0 clamp(2.5rem, 24%, 4rem) 0;
  text-align: center;
}

.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(165deg, rgba(22, 33, 50, 0.42) 0%, rgba(10, 28, 38, 0.82) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.service-card img {
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.45s ease;
}

.service-card .body {
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.1rem 0.95rem;
  background: none;
  text-align: center;
  z-index: 2;
}

.service-card__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 3.15rem;
  height: 3.15rem;
  margin: 0 0 0.7rem;
  border-radius: 50%;
  background: var(--cyan);
  color: #fff;
  box-shadow: 0 6px 16px rgba(0, 202, 235, 0.28);
  transition: background 0.35s ease, color 0.35s ease, box-shadow 0.35s ease;
}

.service-card__icon svg {
  width: 52%;
  height: 52%;
}

.service-card h3 {
  color: var(--navy);
  font-size: 0.92rem;
  transition: color 0.35s ease;
}

.service-card .muted {
  font-size: 0.8rem;
  line-height: 1.35;
  transition: color 0.35s ease;
}

.service-card:hover,
.service-card:focus-visible,
.service-card.reveal.visible:hover,
.service-card.reveal.visible:focus-visible {
  background: var(--navy);
  border-color: transparent;
  color: #fff;
  transform: translateY(-4px);
}

.service-card:hover img,
.service-card:focus-visible img {
  opacity: 1;
  transform: scale(1.04);
}

.service-card:hover::after,
.service-card:focus-visible::after {
  opacity: 1;
}

.service-card:hover h3,
.service-card:focus-visible h3 {
  color: #fff;
}

.service-card:hover .muted,
.service-card:focus-visible .muted {
  color: rgba(255, 255, 255, 0.88);
}

.service-card:hover .service-card__icon,
.service-card:focus-visible .service-card__icon {
  background: #fff;
  color: var(--cyan);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}

.product-card img.is-placeholder {
  object-fit: contain;
  background: #fff;
  padding: 8%;
}

.product-card .body,
.brand-card,
.value-card,
.team-card,
.location-card,
.info-panel,
.form-card,
.admin-card {
  padding: 1rem 1.05rem 1.15rem;
}

.product-card h3,
.value-card h3,
.team-card h3,
.location-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: var(--navy);
  font-family: var(--font-display);
}

.muted {
  color: #5b6d76;
  font-size: 0.92rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  background: rgba(0, 202, 235, 0.16);
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 700;
}

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

.brand-card {
  display: grid;
  place-items: center;
  min-height: 110px;
  text-align: center;
  font-weight: 700;
  color: var(--navy);
}

.brand-card img {
  max-height: 42px;
  width: auto;
  margin: 0 auto 0.55rem;
  filter: grayscale(0.1);
}

.solution-grid,
.service-grid {
  grid-template-columns: 1fr;
}

.service-grid {
  gap: 0.9rem;
  justify-items: center;
}

.value-grid,
.team-grid,
.location-grid {
  grid-template-columns: 1fr;
}

.split {
  display: grid;
  gap: 1.25rem;
}

.banner-strip {
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.banner-strip img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  filter: none;
}

.banner-strip--training {
  align-self: stretch;
  display: grid;
}

.banner-strip--training img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  min-height: 280px;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
}

@media (min-width: 720px) {
  .banner-strip--training img {
    aspect-ratio: auto;
    min-height: 100%;
  }
}

.cta-band {
  background:
    radial-gradient(circle at 90% 20%, rgba(0, 202, 235, 0.2), transparent 42%),
    linear-gradient(135deg, var(--navy) 0%, #1f334d 55%, var(--cyan-deep));
  color: var(--white);
  border: 1px solid transparent;
  border-radius: calc(var(--radius) + 8px);
  padding: 2rem;
  display: grid;
  gap: 1rem;
}

.cta-band h2 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: -0.03em;
}

.audience-cta {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.audience-cta__card {
  position: relative;
  display: flex;
  min-height: min(52vw, 280px);
  overflow: hidden;
  border-radius: calc(var(--radius) + 8px);
  color: var(--navy);
  text-decoration: none;
  isolation: isolate;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.audience-cta__card--channel {
  background:
    radial-gradient(circle at 92% 12%, rgba(0, 202, 235, 0.18), transparent 44%),
    linear-gradient(145deg, #f4f7fb 0%, #e4ebf3 55%, #d7e2ee 100%);
}

.audience-cta__card--project {
  background:
    radial-gradient(circle at 8% 88%, rgba(255, 255, 255, 0.7), transparent 42%),
    linear-gradient(145deg, #e9fbff 0%, #c8f3fa 58%, #b3eef6 100%);
}

.audience-cta__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  padding: 1.5rem 1.25rem 1.35rem;
}

.audience-cta__kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.audience-cta__card--channel .audience-cta__kicker {
  color: var(--cyan-deep);
}

.audience-cta__card--project .audience-cta__kicker {
  color: #0a7a8c;
}

.audience-cta__card h3 {
  margin: 0;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.audience-cta__body > p:not(.audience-cta__kicker) {
  margin: 0;
  max-width: 34ch;
  color: rgba(22, 33, 50, 0.78);
  font-size: 0.95rem;
}

.audience-cta__action {
  display: inline-flex;
  align-items: center;
  margin-top: 0.45rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
}

.audience-cta__card--channel .audience-cta__action {
  background: var(--navy);
  color: var(--white);
}

.audience-cta__card--project .audience-cta__action {
  background: var(--cyan);
  color: var(--navy);
}

.audience-cta__card:hover,
.audience-cta__card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 22px 48px rgba(22, 33, 50, 0.22);
}

.audience-cta__card:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

.audience-cta--hero .audience-cta__card {
  min-height: min(48vw, 220px);
}

.audience-cta--hero .audience-cta__body {
  padding: 1.15rem 1.1rem 1.15rem;
}

.audience-cta--hero .audience-cta__card h3 {
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
}

.audience-cta--hero .audience-cta__body > p:not(.audience-cta__kicker) {
  font-size: 0.88rem;
}

@media (min-width: 720px) {
  .audience-cta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem;
  }

  .audience-cta__card {
    min-height: 340px;
  }

  .audience-cta--hero {
    gap: 1rem;
  }

  .audience-cta--hero .audience-cta__card {
    min-height: 240px;
  }

  .audience-cta__body {
    padding: 2rem 1.6rem 1.7rem;
  }

  .audience-cta--hero .audience-cta__body {
    padding: 1.4rem 1.4rem 1.35rem;
  }
}

/* Forms */
.form-grid {
  display: grid;
  gap: 0.9rem;
}

.form-grid.two,
.form-grid.three,
.form-grid.four {
  grid-template-columns: 1fr;
}

.form-field--full {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.94rem;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  background: var(--white);
  color: var(--ink);
}

input::placeholder,
textarea::placeholder {
  color: #7a8f98;
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(0, 202, 235, 0.35);
  border-color: var(--cyan-deep);
}

.password-field {
  position: relative;
  display: block;
}

.password-field input {
  padding-right: 2.85rem;
}

.password-toggle {
  position: absolute;
  right: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
}

.password-toggle:hover,
.password-toggle:focus-visible {
  color: var(--navy);
  background: rgba(0, 202, 235, 0.1);
}

.password-toggle:focus-visible {
  outline: 3px solid rgba(0, 202, 235, 0.35);
  outline-offset: 1px;
}

.password-toggle__icon {
  display: block;
}

.password-toggle[aria-pressed="true"] .password-toggle__icon--show,
.password-toggle[aria-pressed="false"] .password-toggle__icon--hide {
  display: none;
}

.password-toggle[aria-pressed="true"] .password-toggle__icon--hide {
  display: block;
}

.form-choice {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.form-choice legend {
  padding: 0;
  margin: 0 0 0.5rem;
  font-weight: 600;
  font-size: 0.94rem;
}

.form-choice__options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.35rem;
}

.form-choice.is-invalid legend {
  color: #c0392b;
}

.form-choice.is-invalid input {
  outline: 2px solid #c0392b;
  outline-offset: 2px;
}

.form-choice .field-error {
  display: block;
  margin-top: 0.4rem;
}

.contact-lead__chooser {
  margin-bottom: 0.85rem;
}

.contact-lead__chooser[hidden] {
  display: none;
}

.contact-lead__options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
}

.contact-lead__option {
  position: relative;
  display: block;
  margin: 0;
  cursor: pointer;
  font-weight: 700;
}

.contact-lead__face {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  padding: 0.75rem 1.1rem;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  text-align: center;
  line-height: 1.25;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.contact-lead__option:hover .contact-lead__face {
  transform: translateY(-1px);
  border-color: rgba(0, 182, 212, 0.45);
}

.contact-lead__option--cliente input:checked + .contact-lead__face {
  border-color: var(--cyan-deep);
  background: linear-gradient(135deg, var(--cyan), var(--cyan-deep));
  color: var(--navy);
  box-shadow: 0 10px 24px rgba(0, 202, 235, 0.28);
}

.contact-lead__option--dealer input:checked + .contact-lead__face {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(22, 33, 50, 0.22);
}

.contact-lead__option:focus-within .contact-lead__face {
  outline: 3px solid rgba(0, 202, 235, 0.45);
  outline-offset: 2px;
}

.contact-lead__chooser.is-invalid .contact-lead__face {
  border-color: #c0392b;
}

.contact-lead__body {
  display: grid;
  gap: 0.9rem;
}

.form-card:has(.contact-lead [name="tipo"][value="Cliente final"]:checked) {
  background:
    radial-gradient(circle at 8% 88%, rgba(255, 255, 255, 0.72), transparent 42%),
    linear-gradient(145deg, #e9fbff 0%, #c8f3fa 58%, #b3eef6 100%);
  border-color: rgba(0, 182, 212, 0.38);
}

.form-card:has(.contact-lead [name="tipo"][value="Dealer"]:checked) {
  background:
    radial-gradient(circle at 92% 12%, rgba(0, 202, 235, 0.2), transparent 44%),
    linear-gradient(145deg, #e8eef6 0%, #d4dde8 55%, #c3cfdd 100%);
  border-color: rgba(22, 33, 50, 0.22);
}

@media (min-width: 600px) {
  .contact-lead__options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.checkbox {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.55rem;
  font-weight: 500;
}

/* display:flex en .checkbox pisa el [hidden] del navegador y el filtro no oculta ítems. */
.checkbox[hidden] {
  display: none !important;
}

.checkbox input {
  width: auto;
  margin-top: 0.25rem;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-top: 0.35rem;
}

.form-actions form {
  margin: 0;
}

.form-label-text {
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
  font-weight: 700;
}

.required-mark {
  color: #c62828;
  font-weight: 700;
  line-height: 1;
}

input.is-invalid,
textarea.is-invalid,
select.is-invalid {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.16);
}

.checkbox.is-invalid input {
  outline: 2px solid #c0392b;
  outline-offset: 2px;
}

.field-error {
  font-size: 0.82rem;
  font-weight: 600;
  color: #c0392b;
}

.checkbox .field-error {
  flex-basis: 100%;
  margin-left: 1.7rem;
}

.alert {
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
}

.alert a {
  color: inherit;
  font-weight: 700;
  text-underline-offset: 2px;
}

.alert-success {
  background: #e6f8ef;
  color: #146c43;
  border: 1px solid #b7ebd0;
}

.alert-error {
  background: #fdecec;
  color: #9b1c1c;
  border: 1px solid #f3c1c1;
}

.alert-info {
  background: #e8f7fb;
  color: var(--navy);
  border: 1px solid #b7e6f2;
}

.alert-warning {
  background: #fff6e5;
  color: #8a5a00;
  border: 1px solid #f3d59a;
}

/* Footer */
.site-footer {
  position: relative;
  margin-top: 3rem;
  background:
    radial-gradient(ellipse 70% 80% at 10% 0%, rgba(0, 202, 235, 0.16), transparent 55%),
    radial-gradient(ellipse 50% 60% at 90% 100%, rgba(0, 202, 235, 0.08), transparent 50%),
    linear-gradient(180deg, #122033 0%, var(--navy) 42%, #05080d 100%);
  color: rgba(255, 255, 255, 0.88);
  padding: 3.25rem 0 1.5rem;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--cyan) 30%, #6ce5f8 50%, var(--cyan-deep) 70%, transparent 100%);
  box-shadow: 0 0 24px rgba(0, 202, 235, 0.45);
  pointer-events: none;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  margin-bottom: 1.15rem;
}

.footer-brand img {
  width: 160px;
  height: auto;
  filter: drop-shadow(0 0 18px rgba(0, 202, 235, 0.25));
}

.footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.75rem;
}

.footer-col {
  min-width: 0;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
}

.site-footer h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
  color: var(--cyan);
  margin: 0 0 0.85rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #6ce5f8;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.footer-lead {
  margin: 0 0 1.15rem;
  color: rgba(255, 255, 255, 0.68);
}

.footer-locations {
  display: grid;
  gap: 1.15rem;
}

.footer-locations strong {
  display: block;
  color: rgba(255, 255, 255, 0.94);
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.footer-address {
  display: block;
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.68);
}

.footer-social {
  list-style: none;
  margin: 1.35rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  color: rgba(255, 255, 255, 0.9);
}

.footer-social a:hover,
.footer-social a:focus-visible {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(0, 202, 235, 0.1);
  outline: none;
}

.footer-bottom {
  position: relative;
  z-index: 1;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 202, 235, 0.18);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.58);
}

.whatsapp-fab {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 45;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 10px 24px rgba(18, 140, 70, 0.38);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.whatsapp-fab:hover,
.whatsapp-fab:focus-visible {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(18, 140, 70, 0.46);
  outline: 2px solid #fff;
  outline-offset: 3px;
}

@media (max-width: 719px) {
  .footer-col + .footer-col {
    border-top: 1px solid rgba(0, 202, 235, 0.18);
    padding-top: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-fab,
  .whatsapp-fab:hover,
  .whatsapp-fab:focus-visible {
    transition: none;
    transform: none;
  }

  .service-card img,
  .service-card:hover img,
  .service-card:focus-visible img,
  .service-card::after {
    transition: none;
    transform: none;
  }
}

/* Admin */
.admin-layout {
  display: grid;
  gap: 1rem;
}

.perfil-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1rem;
  align-items: start;
}

.perfil-grid__col {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.perfil-meta {
  margin: 0.85rem 0 0;
  display: grid;
  gap: 0.55rem;
}

.perfil-meta dt {
  margin: 0;
  font-size: 0.85rem;
}

.perfil-meta dd {
  margin: 0.15rem 0 0;
  font-weight: 600;
}

.perfil-card__intro {
  margin: 0.35rem 0 0;
}

.perfil-grid__col .perfil-card__intro {
  margin-bottom: 1rem;
}

.perfil-password-form {
  margin-top: 1rem;
}

@media (max-width: 799px) {
  .perfil-grid {
    grid-template-columns: 1fr;
  }
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table tbody tr[hidden] {
  display: none !important;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-size: 0.92rem;
}

.usuarios-table-wrap {
  margin-top: 1rem;
  overflow-x: visible;
}

.usuarios-table {
  table-layout: fixed;
}

.usuarios-table th,
.usuarios-table td {
  padding: 0.45rem 0.28rem;
  font-size: 0.82rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.usuarios-table th:nth-child(1),
.usuarios-table td:nth-child(1) { width: 13%; }
.usuarios-table th:nth-child(2),
.usuarios-table td:nth-child(2) { width: 20%; }
.usuarios-table th:nth-child(3),
.usuarios-table td:nth-child(3) { width: 12%; }
.usuarios-table th:nth-child(4),
.usuarios-table td:nth-child(4) { width: 11%; }
.usuarios-table th:nth-child(5),
.usuarios-table td:nth-child(5) { width: 15%; }
.usuarios-table th:nth-child(6),
.usuarios-table td:nth-child(6) { width: 11%; }
.usuarios-table th:nth-child(7),
.usuarios-table td:nth-child(7) { width: 8%; }
.usuarios-table th:nth-child(8),
.usuarios-table td:nth-child(8) { width: 8%; }
.usuarios-table th:nth-child(9),
.usuarios-table td:nth-child(9) {
  width: 2.5rem;
  padding-inline: 0.15rem;
}

@media (max-width: 900px) {
  .admin-layout:has(.usuarios-table),
  .admin-card:has(.usuarios-table) {
    min-width: 0;
    max-width: 100%;
  }

  .usuarios-table-wrap {
    overflow-x: auto;
    max-width: 100%;
    /* La tabla en nowrap mide ~1400px. Sin contain, ese ancho ensancha el documento
       y empuja los botones fijos (WhatsApp, TRM) fuera de la pantalla. */
    contain: paint;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: auto;
    scrollbar-color: rgba(22, 33, 50, 0.45) rgba(22, 33, 50, 0.08);
  }

  .usuarios-table {
    table-layout: auto;
    width: max-content;
    min-width: 100%;
  }

  .usuarios-table th:nth-child(n),
  .usuarios-table td:nth-child(n) {
    width: auto;
    min-width: 4.5rem;
    padding: 0.55rem 0.55rem;
    font-size: 0.85rem;
    line-height: 1.35;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
  }

  .usuarios-table th:nth-child(9),
  .usuarios-table td:nth-child(9) {
    min-width: 2.4rem;
    padding-inline: 0.35rem;
  }
}

.color-swatch {
  display: inline-block;
  width: 0.9rem;
  height: 0.9rem;
  margin-right: 0.4rem;
  vertical-align: -0.1rem;
  border: 1px solid var(--line);
  border-radius: 2px;
}

.login-shell {
  min-height: calc(100vh - 180px);
  display: grid;
  place-items: center;
  padding: 2rem 0;
}

.login-card {
  width: min(100%, 440px);
}

.panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.user-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.user-chip {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.78);
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-chip .muted {
  color: rgba(255, 255, 255, 0.55);
}

.edit-pedido-bar {
  background: #e8f7fb;
  border-bottom: 1px solid #b7e6f2;
  color: var(--navy);
  padding: 0.75rem 0;
}

.edit-pedido-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}

.edit-pedido-bar p {
  margin: 0;
  font-weight: 600;
}

.edit-pedido-bar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.price-mode-bar {
  background: #f4f7f9;
  border-bottom: 1px solid var(--line);
  padding: 0.45rem 0;
}

.price-mode-bar__inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.price-mode-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.price-mode-switch__label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.price-mode-switch__group {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--white);
}

.price-mode-switch__btn {
  appearance: none;
  border: 0;
  margin: 0;
  width: auto;
  white-space: nowrap;
  padding: 0.28rem 0.7rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink-soft);
  background: transparent;
  cursor: pointer;
}

.price-mode-switch__btn:hover,
.price-mode-switch__btn:focus-visible {
  color: var(--navy);
  background: rgba(0, 202, 235, 0.12);
  outline: none;
}

.price-mode-switch__btn:focus-visible {
  box-shadow: inset 0 0 0 2px var(--cyan);
}

.price-mode-switch__btn.is-active {
  color: var(--navy);
  background: var(--cyan);
}

.admin-card .price-mode-switch,
.cart-totals .price-mode-switch,
.cart-drawer__foot .price-mode-switch,
.checkout-summary .price-mode-switch {
  flex-wrap: wrap;
}

.cart-totals .price-mode-switch,
.cart-drawer__foot .price-mode-switch,
.checkout-summary .price-mode-switch {
  display: flex;
  justify-content: space-between;
}

.cart-totals .price-mode-switch,
.checkout-summary .price-mode-switch {
  margin: 0.85rem 0 0;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}

.cart-drawer__foot .price-mode-switch {
  margin: 0 0 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.config-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.config-tile {
  display: block;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
  color: var(--ink-soft);
}

a.config-tile:hover,
a.config-tile:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(0, 202, 235, 0.45);
  outline: none;
}

.config-tile h2 {
  margin: 0.35rem 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--navy);
}

.config-tile.is-disabled {
  opacity: 0.65;
}

.logistica-form-grid {
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .logistica-form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.logistica-table th:nth-child(1),
.logistica-table td:nth-child(1) {
  min-width: 9rem;
}

.logistica-table th:nth-child(2),
.logistica-table td:nth-child(2) {
  min-width: 7rem;
}

.logistica-table th:nth-child(3),
.logistica-table td:nth-child(3) {
  min-width: 11rem;
}

.logistica-table th:nth-child(4),
.logistica-table td:nth-child(4) {
  min-width: 6.5rem;
  max-width: 8rem;
}

.logistica-table input,
.logistica-table select {
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  font-size: 0.9rem;
}

.logistica-hint {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
}

.module-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fill, minmax(160px, 200px));
  justify-content: start;
}

.module-card {
  display: flex;
  flex-direction: column;
  max-width: 200px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: visible;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  color: var(--navy);
}

.module-card:hover,
.module-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(22, 33, 50, 0.1);
  border-color: rgba(0, 202, 235, 0.45);
  outline: none;
}

.module-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 9px 9px 0 0;
  background:
    radial-gradient(circle at 50% 40%, rgba(0, 202, 235, 0.1), transparent 62%),
    #f7f9fb;
  padding: 0.75rem;
}

.module-card__media img {
  width: min(100%, 140px);
  height: auto;
  object-fit: contain;
}

.module-card__label {
  padding: 0.7rem 0.8rem 0.8rem;
  border-top: 1px solid var(--line);
  background: var(--white);
  border-radius: 0 0 9px 9px;
}

.module-card__label span {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink-soft);
  letter-spacing: 0;
}

.module-card--drawer {
  cursor: pointer;
}

.module-card--drawer.is-active {
  border-color: rgba(0, 202, 235, 0.7);
  box-shadow: 0 10px 28px rgba(22, 33, 50, 0.12);
}

.menu-workspace {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 1.5rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.menu-workspace .module-grid {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(160px, 100%), 200px));
  gap: 0.85rem;
  width: auto;
  max-width: 100%;
  min-width: 0;
}

.menu-workspace .module-card {
  width: auto;
  max-width: none;
  min-width: 0;
}

.menu-workspace.is-open .menu-drawer {
  flex: 0 0 320px;
  width: 320px;
  margin-left: auto;
}

.menu-drawer__backdrop {
  display: none;
}

.menu-drawer__backdrop[hidden] {
  display: none !important;
}

.menu-drawer {
  min-width: 0;
}

.menu-drawer__panel {
  position: sticky;
  top: 5.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: auto;
  max-height: calc(100vh - 7rem);
  box-shadow: 0 10px 28px rgba(22, 33, 50, 0.08);
}

.menu-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, var(--navy) 0%, #1f334d 100%);
  color: #fff;
}

.menu-drawer__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.menu-drawer__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.menu-drawer__close:hover,
.menu-drawer__close:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.menu-drawer__body {
  padding: 0.65rem 0.75rem 1rem;
}

.menu-tree {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-tree .menu-tree {
  margin: 0.2rem 0 0.35rem 0.85rem;
  padding-left: 0.65rem;
  border-left: 2px solid rgba(0, 202, 235, 0.35);
}

.menu-tree__item {
  margin: 0.15rem 0;
}

.menu-tree__item details {
  border-radius: 8px;
}

.menu-tree__item summary {
  list-style: none;
  cursor: pointer;
  padding: 0.4rem 0.45rem;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--navy);
}

.menu-tree__item summary::-webkit-details-marker {
  display: none;
}

.menu-tree__item summary:hover,
.menu-tree__item summary:focus-visible {
  background: rgba(0, 202, 235, 0.1);
  outline: none;
}

.menu-tree__group::before {
  content: '';
  display: inline-block;
  width: 0.4rem;
  height: 0.4rem;
  margin-right: 0.45rem;
  border-right: 2px solid var(--cyan-deep);
  border-bottom: 2px solid var(--cyan-deep);
  transform: rotate(45deg);
  vertical-align: 0.1rem;
}

.menu-tree__item details:not([open]) .menu-tree__group::before {
  transform: rotate(-45deg);
  vertical-align: 0.05rem;
}

.menu-tree__link {
  display: block;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  color: var(--ink-soft);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.35;
}

.menu-tree__link:hover,
.menu-tree__link:focus-visible {
  background: rgba(0, 202, 235, 0.12);
  color: var(--navy);
  outline: none;
}

@media (max-width: 900px) {
  .menu-workspace.is-open .menu-drawer {
    flex: none;
    width: min(100%, 360px);
    margin-left: 0;
  }

  .menu-workspace.is-open .menu-drawer__backdrop:not([hidden]) {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 70;
    border: 0;
    padding: 0;
    background: rgba(22, 33, 50, 0.45);
    cursor: pointer;
  }

  .menu-workspace.is-open .menu-drawer:not([hidden]) {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    width: min(100%, 360px);
  }

  .menu-drawer__panel {
    position: relative;
    top: 0;
    height: 100%;
    max-height: none;
    border-radius: 0;
    border: 0;
    border-left: 1px solid var(--line);
  }
}

@media (prefers-reduced-motion: reduce) {
  .module-card,
  .menu-tree__link {
    transition: none;
  }
}

@media (max-width: 640px) {
  .module-grid,
  .menu-workspace .module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .module-card,
  .menu-workspace .module-card {
    max-width: none;
    width: auto;
  }
}

.permissions-table th[scope='row'] {
  min-width: 200px;
}

.permission-check {
  justify-content: center;
  margin: 0;
}

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

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.status-pill {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.8rem;
  background: rgba(0, 202, 235, 0.08);
  color: var(--ink-soft);
}

/* Motion helpers */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (min-width: 720px) {
  .search-form {
    display: inline-flex;
  }

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

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

  .solution-grid,
  .value-grid,
  .team-grid,
  .location-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 15.5rem));
    justify-content: center;
    justify-items: stretch;
  }

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

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

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

  .split {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .offer-carousel__item {
    flex: 0 0 calc((100% - 1rem) / 2.08);
  }

  .distributor-cover__copy {
    padding: 2rem 2.1rem 2.15rem;
  }

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

  .footer-col {
    padding: 0 1.75rem;
  }

  .footer-col:first-child {
    padding-left: 0;
  }

  .footer-col:last-child {
    padding-right: 0;
  }

  .footer-col + .footer-col {
    border-left: 1px solid rgba(0, 202, 235, 0.18);
  }
}

@media (min-width: 980px) {
  .nav-toggle {
    display: none;
  }

  .header-inner {
    align-items: center;
    gap: 0.85rem;
    width: min(100% - 1rem, 1520px);
    padding-inline: clamp(3rem, 8vw, 7rem);
  }

  .header-main {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, calc(-50% + 0.28rem));
    width: max-content;
    max-width: min(760px, calc(100% - 280px));
    flex: none;
    z-index: 1;
    padding-top: 0.2rem;
  }

  .search-form {
    max-width: 360px;
  }

  .main-nav {
    display: block;
    border-top: 0;
    padding: 0;
    position: static;
    background: transparent;
    box-shadow: none;
    width: auto;
    max-width: 100%;
  }

  .main-nav.open {
    display: block;
    position: static;
    box-shadow: none;
    border-top: 0;
    padding: 0;
    background: transparent;
  }

  .site-header {
    padding: 1.6rem 0 1.9rem;
  }

  .main-nav .nav-list {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0.15rem;
  }

  .nav-list > li {
    position: relative;
  }

  .nav-list > li > a,
  .nav-list .nav-parent > a,
  .nav-list .nav-parent > button {
    width: auto;
    padding: 0.45rem 0.65rem;
    white-space: nowrap;
  }

  .submenu {
    position: absolute;
    top: calc(100% + 0.4rem);
    left: 50%;
    transform: translateX(-50%);
    width: min(920px, calc(100vw - 2rem));
    max-height: none;
    overflow: visible;
    padding: 0.85rem 0;
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    margin-top: 0;
  }

  /* Puente invisible sobre el hueco para no perder hover al bajar el mouse */
  .submenu::before {
    content: '';
    position: absolute;
    top: -0.45rem;
    left: 0;
    right: 0;
    height: 0.45rem;
  }

  .submenu__col {
    flex: 1 1 0;
    min-width: 0;
    padding: 0 1.1rem;
    border-right: 1px solid rgba(0, 202, 235, 0.28);
  }

  .submenu__col:last-child {
    border-right: 0;
  }

  .nav-parent:hover .submenu,
  .nav-parent:focus-within .submenu,
  .nav-parent.is-open > .submenu {
    display: flex;
    flex-direction: row;
  }

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

  .brand-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

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

  .service-grid {
    grid-template-columns: repeat(4, minmax(0, 15.5rem));
    justify-content: center;
    justify-items: stretch;
  }

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

  .team-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

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

/* Hoja tipo Excel (Pedidos y tablas densas) */
.sheet-hint {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
}

.sheet-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 251, 253, 0.96));
  box-shadow: 0 14px 36px rgba(22, 33, 50, 0.08);
  overflow: hidden;
}

.sheet-wrap {
  width: 100%;
  overflow-x: scroll;
  overflow-y: auto;
  max-height: min(72vh, 760px);
  scrollbar-gutter: stable;
  scrollbar-width: auto;
  scrollbar-color: rgba(22, 33, 50, 0.45) rgba(22, 33, 50, 0.08);
}

.sheet-wrap::-webkit-scrollbar {
  width: 12px;
  height: 14px;
}

.sheet-wrap::-webkit-scrollbar-track {
  background: rgba(22, 33, 50, 0.08);
  border-top: 1px solid var(--line);
}

.sheet-wrap::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--cyan-deep), var(--navy));
  border-radius: 999px;
  border: 3px solid rgba(232, 238, 241, 0.9);
}

.sheet-wrap::-webkit-scrollbar-thumb:hover {
  background: var(--navy);
}

.sheet-wrap::-webkit-scrollbar-corner {
  background: rgba(22, 33, 50, 0.08);
}

.sheet-table {
  --sheet-col-min: 8.5rem; /* mínimo tipo columna Proveedor */
  width: max-content;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
  table-layout: auto;
}

.sheet-table th,
.sheet-table td {
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid rgba(22, 33, 50, 0.1);
  border-right: 1px solid rgba(22, 33, 50, 0.06);
  vertical-align: middle;
}

/* Ancho = dato (nowrap), con mínimo uniforme. El título puede ir en varias líneas. */
.sheet-table td {
  white-space: nowrap;
  width: 0;
  min-width: var(--sheet-col-min);
}

.sheet-table td.sheet-table__actions,
.sheet-table td.sheet-table__empty {
  min-width: 0;
}

.sheet-table th:first-child,
.sheet-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #f3f8fa;
  box-shadow: 1px 0 0 rgba(22, 33, 50, 0.08);
}

.sheet-table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: linear-gradient(180deg, #e8f4f8 0%, #dceef4 100%);
  color: var(--navy); /* mismo color de texto que .btn-primary (Agregar pedido) */
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  text-align: left;
  box-shadow: inset 0 -1px 0 rgba(22, 33, 50, 0.14);
  white-space: normal;
  line-height: 1.2;
  overflow-wrap: break-word;
  hyphens: auto;
  vertical-align: bottom;
  /* Mínimo aunque no haya filas (p. ej. mensaje vacío con colspan) */
  min-width: var(--sheet-col-min);
  /* El título no define el ancho; se parte según el dato de la columna */
  max-width: 1px;
}

.sheet-table thead th:first-child {
  z-index: 4;
  background: linear-gradient(180deg, #e0f1f6 0%, #d4eaf2 100%);
}

.sheet-table tbody tr {
  background: rgba(255, 255, 255, 0.92);
  transition: background 0.15s ease;
}

.sheet-table tbody tr:nth-child(even) {
  background: rgba(244, 248, 250, 0.95);
}

.sheet-table tbody tr:nth-child(even) td:first-child {
  background: #eef5f8;
}

.sheet-table tbody tr:hover {
  background: rgba(0, 202, 235, 0.08);
}

.sheet-table tbody tr:hover td:first-child {
  background: #e4f6fb;
}

.sheet-table td.sheet-table__cats {
  white-space: normal;
  min-width: 16rem;
  max-width: 28rem;
  line-height: 1.35;
}

.sheet-table td.sheet-table__pos {
  min-width: 7.5rem;
}

.equipo-orden-input {
  width: 6.25rem;
  max-width: 100%;
  padding: 0.28rem 0.4rem;
  border: 1px solid rgba(22, 33, 50, 0.18);
  border-radius: 6px;
  text-align: right;
  font: inherit;
  font-variant-numeric: tabular-nums;
  background: #fff;
}

.equipo-orden-input:focus {
  outline: 2px solid var(--cyan-deep);
  outline-offset: 1px;
}

.equipo-orden-input[aria-invalid='true'] {
  border-color: #b42318;
}

.sheet-table__readonly {
  color: var(--ink-soft);
  background: rgba(22, 33, 50, 0.03);
}

.sheet-table__empty {
  text-align: center;
  color: #667085;
  padding: 1.75rem !important;
  white-space: normal;
}

.sheet-table__actions {
  position: sticky;
  right: 0;
  z-index: 2;
  width: 0;
  white-space: nowrap;
  text-align: center;
  background: #f3f8fa;
  box-shadow: -1px 0 0 rgba(22, 33, 50, 0.08);
}

.sheet-table thead .sheet-table__actions {
  z-index: 4;
  background: linear-gradient(180deg, #e0f1f6 0%, #d4eaf2 100%);
  max-width: none;
}

.sheet-table tbody tr:nth-child(even) .sheet-table__actions {
  background: #eef5f8;
}

.sheet-table tbody tr:hover .sheet-table__actions {
  background: #e4f6fb;
}

#info-pedidos-table th.sheet-table__actions,
#info-pedidos-table td.sheet-table__actions,
#facturas-table th.sheet-table__actions,
#facturas-table td.sheet-table__actions {
  width: auto;
  min-width: 6.5rem;
}

/* Facturas: dos columnas de acción sticky (Archivo + Lista de equipos). */
#facturas-table th.sheet-table__actions:nth-last-child(2),
#facturas-table td.sheet-table__actions:nth-last-child(2) {
  right: 6.5rem;
}

.sheet-input {
  display: inline-block;
  width: auto;
  min-width: calc(var(--sheet-col-min) - 0.9rem);
  max-width: none;
  box-sizing: border-box;
  padding: 0.3rem 0.35rem;
  border: 1px solid rgba(22, 33, 50, 0.18);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font-size: 0.84rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, width 0.12s ease;
  /* Ancho según el valor (Chrome/Safari); size= en HTML como respaldo */
  field-sizing: content;
}

.sheet-input--date {
  width: 100%;
  min-width: calc(var(--sheet-col-min) - 0.9rem);
  max-width: none;
  field-sizing: fixed;
}

.sheet-input--date.is-editing {
  min-width: 9.1rem;
}

.sheet-input--date::-webkit-calendar-picker-indicator {
  margin-left: 0.1rem;
  padding: 0;
  cursor: pointer;
}

/* En solo lectura ocultamos el icono del calendario para no ensanchar la columna */
.sheet-input--date[readonly]:not(.is-editing)::-webkit-calendar-picker-indicator {
  opacity: 0;
  width: 0;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

.sheet-input--num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.sheet-input:hover {
  border-color: rgba(0, 168, 198, 0.55);
}

.sheet-input:focus {
  outline: none;
  border-color: var(--cyan-deep);
  box-shadow: 0 0 0 3px rgba(0, 202, 235, 0.22);
}

.sheet-table--editable td {
  padding: 0.4rem 0.45rem;
}

.sheet-actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.sheet-action-btn {
  position: relative;
  width: 2.1rem;
  height: 2.1rem;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.sheet-action-btn[hidden] {
  display: none !important;
}

.sheet-action-btn:hover,
.sheet-action-btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(22, 33, 50, 0.18);
  outline: none;
}

.sheet-action-btn.btn-ghost:hover,
.sheet-action-btn.btn-ghost:focus-visible {
  background: rgba(0, 202, 235, 0.12);
  border-color: rgba(0, 168, 198, 0.45);
  color: var(--navy);
}

.sheet-action-btn.btn-primary:hover,
.sheet-action-btn.btn-primary:focus-visible {
  filter: brightness(1.06);
}

.sheet-action-btn.btn-secondary:hover,
.sheet-action-btn.btn-secondary:focus-visible {
  filter: brightness(1.08);
}

.sheet-actions .pedido-delete-form {
  display: inline-flex;
  margin: 0;
}

.sheet-action-btn--danger:hover,
.sheet-action-btn--danger:focus-visible {
  color: #b42318;
  background: rgba(180, 35, 24, 0.08);
}

.sheet-action-btn--has-equipos {
  background: linear-gradient(135deg, var(--cyan), var(--cyan-deep));
  color: var(--ink);
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(0, 202, 235, 0.28);
}

.sheet-action-btn--has-equipos:hover,
.sheet-action-btn--has-equipos:focus-visible {
  filter: brightness(1.06);
}

/* A la izquierda del botón: evita recorte por overflow derecho/inferior del sheet */
.sheet-action-btn::after {
  content: attr(data-tooltip);
  position: absolute;
  right: calc(100% + 0.45rem);
  left: auto;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%) translateX(4px);
  padding: 0.28rem 0.5rem;
  border-radius: 6px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 6;
}

.sheet-action-btn:hover::after,
.sheet-action-btn:focus-visible::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* Evita que el thead sticky cubra el tooltip de acciones */
.sheet-table tbody tr:hover .sheet-table__actions,
.sheet-table tbody tr:focus-within .sheet-table__actions {
  z-index: 5;
}

.sheet-action-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.sheet-input[readonly]:not(.is-editing),
.sheet-input[disabled]:not(.is-editing) {
  background: rgba(22, 33, 50, 0.04);
  color: #3d4f57;
  cursor: default;
  pointer-events: none;
  border-color: transparent;
  opacity: 1;
}

.sheet-input.is-editing {
  background: var(--white);
  pointer-events: auto;
}

.pedido-row.is-editing-row .sheet-table__actions,
.pedido-row.is-dirty .sheet-table__actions {
  background: #e4f6fb;
}

.pedido-row.is-dirty {
  box-shadow: inset 3px 0 0 var(--cyan-deep);
}

/* TRM flotante */
.trm-badge {
  position: fixed;
  right: 1.1rem;
  bottom: 5.4rem;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.1rem;
  width: max-content;
  max-width: calc(100% - 2.2rem);
  padding: 0.65rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(22, 33, 50, 0.18);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(232, 244, 248, 0.96));
  /* Sombra sesgada a la izquierda para no empujar el scroll horizontal */
  box-shadow: -4px 10px 24px rgba(22, 33, 50, 0.14);
  pointer-events: none;
}

.trm-badge__label {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 700;
}

.trm-badge__value {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  font-weight: 650;
}

/* Toast confirmación */
.toast-root {
  position: fixed;
  right: 1.1rem;
  bottom: 9.4rem;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: min(22rem, calc(100vw - 2rem));
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  border-radius: 12px;
  border: 1px solid rgba(22, 33, 50, 0.16);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 14px 34px rgba(22, 33, 50, 0.16);
  padding: 0.9rem 1rem;
  animation: toastIn 0.22s ease;
}

.toast__message {
  margin: 0 0 0.75rem;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.35;
}

.toast__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Overlay guardando */
.saving-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(22, 33, 50, 0.42);
  backdrop-filter: blur(2px);
  animation: toastIn 0.18s ease;
}

.saving-overlay[hidden] {
  display: none !important;
}

.saving-overlay__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  min-width: min(18rem, calc(100vw - 2rem));
  padding: 1.35rem 1.5rem;
  border-radius: 14px;
  border: 1px solid rgba(22, 33, 50, 0.16);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 40px rgba(22, 33, 50, 0.2);
  text-align: center;
}

.saving-overlay__spinner {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  border: 3px solid rgba(22, 33, 50, 0.16);
  border-top-color: var(--cyan-deep);
  animation: savingSpin 0.75s linear infinite;
}

.saving-overlay__text {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 650;
  line-height: 1.3;
}

.saving-overlay__hint {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.35;
}

@keyframes savingSpin {
  to {
    transform: rotate(360deg);
  }
}

body.is-saving {
  cursor: wait;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(22, 33, 50, 0.42);
  backdrop-filter: blur(2px);
}

.page-loader[hidden] {
  display: none !important;
}

.page-loader__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  min-width: min(16rem, calc(100vw - 2rem));
  padding: 1.25rem 1.5rem;
  border-radius: 14px;
  border: 1px solid rgba(22, 33, 50, 0.16);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 40px rgba(22, 33, 50, 0.2);
  text-align: center;
}

.page-loader__spinner {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  border: 3px solid rgba(22, 33, 50, 0.16);
  border-top-color: var(--cyan-deep);
  animation: savingSpin 0.75s linear infinite;
}

.page-loader__text {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 650;
  line-height: 1.3;
}

body.is-page-loading {
  cursor: wait;
}

.btn.is-saving {
  opacity: 0.72;
  cursor: wait;
  pointer-events: none;
}

.btn.is-downloading {
  cursor: wait;
  pointer-events: none;
}

.btn.is-downloading:hover {
  transform: none;
}

.btn.is-downloading.btn-icon {
  background: rgba(0, 182, 212, 0.14);
  border-color: var(--cyan-deep);
}

.btn.is-downloading.btn-icon > svg {
  display: none;
}

.btn-download-spinner {
  display: block;
  box-sizing: border-box;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  border: 2px solid rgba(22, 33, 50, 0.22);
  border-top-color: var(--cyan-deep);
  animation: savingSpin 0.75s linear infinite;
  flex-shrink: 0;
}

.btn:disabled {
  opacity: 0.72;
  cursor: not-allowed;
}

/* Modal */
body.modal-open,
body.modal-open {
  overflow: hidden;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal.is-open,
.modal:not([hidden]) {
  display: flex;
}

.modal[hidden] {
  display: none !important;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(22, 33, 50, 0.45);
}

.modal__dialog {
  position: relative;
  z-index: 1;
  width: min(52rem, 100%);
  max-height: min(90vh, 860px);
  overflow: auto;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 22px 50px rgba(22, 33, 50, 0.22);
}

.modal__dialog--wide {
  width: min(96rem, 100%);
}

#equipo-edit-modal .modal__dialog {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: min(90vh, 860px);
  max-height: min(90vh, 860px);
}

#equipo-edit-modal .modal__header {
  flex: none;
  position: static;
}

#equipo-edit-modal .equipo-edit-layout {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

#equipo-edit-modal .equipo-edit-layout__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

#equipo-edit-modal .equipo-edit-layout__actions {
  flex: none;
  margin: 0;
  padding: 0.85rem 1.15rem;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.modal__dialog--thanks {
  width: min(26rem, 100%);
  max-height: none;
  overflow: visible;
}

.contact-thanks {
  padding: 2.25rem 1.6rem 1.6rem;
  text-align: center;
}

.contact-thanks h2 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--navy);
}

.contact-thanks p {
  margin: 0 0 1.4rem;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.45;
}

.contact-thanks .btn-primary {
  min-width: 8.5rem;
}

.contact-thanks__close {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
}

.sheet-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1rem;
}

.sheet-toolbar--equipos {
  align-items: center;
}

#info-equipos-table {
  --sheet-col-min: 5.25rem;
}

#info-equipos-table td:not(.sheet-table__actions):not(.sheet-table__empty):not(.sheet-table__brand) {
  overflow: hidden;
  text-overflow: ellipsis;
}

#info-equipos-table th.sheet-table__actions,
#info-equipos-table td.sheet-table__actions {
  width: auto;
  min-width: 6.5rem;
}

#info-equipos-table th.sheet-table__brand,
#info-equipos-table td.sheet-table__brand {
  width: 4.25rem;
  min-width: 4.25rem;
  max-width: 4.25rem;
  text-align: center;
  padding-left: 0.55rem;
  padding-right: 0.55rem;
}

#info-equipos-table th.sheet-table__brand {
  vertical-align: bottom;
}

#info-equipos-table td.sheet-table__brand {
  vertical-align: middle;
}

#info-equipos-table td.sheet-table__brand .sheet-thumb {
  margin: 0 auto;
}

/* Referencia GYG y Referencia proveedor */
#info-equipos-table th:nth-child(2),
#info-equipos-table td:nth-child(2),
#info-equipos-table th:nth-child(3),
#info-equipos-table td:nth-child(3) {
  width: 10.5rem;
  min-width: 7.5rem;
  max-width: 10.5rem;
}

/* Descripción corta */
#info-equipos-table th:nth-child(4),
#info-equipos-table td:nth-child(4) {
  width: 14rem;
  min-width: 9rem;
  max-width: 14rem;
}

/* Unidad de medida y Color */
#info-equipos-table th:nth-child(5),
#info-equipos-table td:nth-child(5),
#info-equipos-table th:nth-child(6),
#info-equipos-table td:nth-child(6) {
  width: 7rem;
  min-width: 5.5rem;
  max-width: 7rem;
}

/* Proveedor, Categoría y Solución */
#info-equipos-table th:nth-child(7),
#info-equipos-table td:nth-child(7),
#info-equipos-table th:nth-child(8),
#info-equipos-table td:nth-child(8),
#info-equipos-table th:nth-child(9),
#info-equipos-table td:nth-child(9) {
  width: 10rem;
  min-width: 7.5rem;
  max-width: 10rem;
}

/* Descontinuado, Activo y Descuento especial */
#info-equipos-table th:nth-child(10),
#info-equipos-table td:nth-child(10),
#info-equipos-table th:nth-child(12),
#info-equipos-table td:nth-child(12) {
  width: 7rem;
  min-width: 5.75rem;
  max-width: 7rem;
}

#info-equipos-table th:nth-child(11),
#info-equipos-table td:nth-child(11) {
  width: 5.5rem;
  min-width: 4.75rem;
  max-width: 5.5rem;
}

/* Descuento % */
#info-equipos-table th:nth-child(13),
#info-equipos-table td:nth-child(13) {
  width: 6.5rem;
  min-width: 5.25rem;
  max-width: 6.5rem;
}

/* Nota descuento */
#info-equipos-table th:nth-child(14),
#info-equipos-table td:nth-child(14) {
  width: 12rem;
  min-width: 8rem;
  max-width: 12rem;
}

/* Costos y precios */
#info-equipos-table th:nth-child(15),
#info-equipos-table td:nth-child(15),
#info-equipos-table th:nth-child(16),
#info-equipos-table td:nth-child(16),
#info-equipos-table th:nth-child(19),
#info-equipos-table td:nth-child(19),
#info-equipos-table th:nth-child(20),
#info-equipos-table td:nth-child(20),
#info-equipos-table th:nth-child(22),
#info-equipos-table td:nth-child(22) {
  width: 8.25rem;
  min-width: 6.5rem;
  max-width: 8.25rem;
}

/* Márgenes */
#info-equipos-table th:nth-child(17),
#info-equipos-table td:nth-child(17),
#info-equipos-table th:nth-child(18),
#info-equipos-table td:nth-child(18),
#info-equipos-table th:nth-child(21),
#info-equipos-table td:nth-child(21) {
  width: 7.5rem;
  min-width: 6rem;
  max-width: 7.5rem;
}

/* Inventario mínimo y máximo */
#info-equipos-table th:nth-child(23),
#info-equipos-table td:nth-child(23),
#info-equipos-table th:nth-child(24),
#info-equipos-table td:nth-child(24) {
  width: 6.75rem;
  min-width: 5.75rem;
  max-width: 6.75rem;
}

#info-equipos-table .equipo-row.is-editing-row td {
  background: #fff8e8;
  overflow: visible;
}

#info-equipos-table .equipo-row.is-editing-row td.sheet-table__actions {
  background: #fff1d0;
}

#info-equipos-table .equipo-row.is-editing-row .sheet-input {
  min-width: 0;
  max-width: 100%;
  width: 100%;
  field-sizing: fixed;
}

#info-equipos-table .equipo-row.is-editing-row .sheet-input--num {
  min-width: 0;
  text-align: right;
}

#info-equipos-table .equipo-row.is-editing-row td.sheet-table__brand {
  width: 7.75rem;
  min-width: 7.75rem;
  max-width: 8.5rem;
  text-align: left;
  vertical-align: top;
  overflow: visible;
  white-space: normal;
}

.sheet-thumb-btn {
  display: inline-flex;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  border-radius: 6px;
}

.sheet-thumb-btn:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

.equipo-image-edit {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
  min-width: 6.5rem;
}

.equipo-image-edit .sheet-thumb {
  margin: 0;
}

.equipo-image-edit .btn {
  width: 100%;
  justify-content: center;
  padding: 0.2rem 0.4rem;
  font-size: 0.75rem;
}

.equipo-image-edit__remove {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 500;
  gap: 0.3rem;
}

.equipo-image-edit__remove[hidden] {
  display: none;
}

.equipo-image-edit__remove input {
  margin-top: 0.1rem;
}

.modal__dialog--image {
  width: min(48rem, 100%);
}

.equipo-image-preview {
  display: block;
  width: 100%;
  max-height: min(75vh, 720px);
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.filters-box {
  margin: 0 0 1rem;
  padding: 0.9rem 1.05rem 1rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: visible;
}

.filters-box[hidden] {
  display: none !important;
}

.filters-box__title {
  margin: 0 0 0.65rem;
  font-size: 1rem;
  font-family: var(--font-display);
  color: var(--navy);
}

.filters-box__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.filters-box__toggle[aria-expanded="true"] .filters-box__chevron {
  transform: rotate(180deg);
}

.filters-box__chevron {
  transition: transform 0.2s ease;
}

.filters-box__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}

.filters-box__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.sheet-pagination {
  margin-top: 1rem;
}

.filters-box .sheet-filters {
  display: flex;
  margin-top: 0;
  flex: none;
}

.sheet-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  flex: 1 1 22rem;
}

.sheet-filters__field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 11rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.sheet-filters__field .form-label-text,
.sheet-filters__field legend {
  font-size: 0.8rem;
  padding: 0;
}

.multi-select {
  position: relative;
  min-width: 12.5rem;
}

.form-field > .multi-select {
  min-width: 0;
  width: 100%;
}

.modal__dialog .form-field:has(.multi-select.is-open) {
  z-index: 4;
}

.multi-select__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  background: var(--white);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.multi-select__trigger:hover,
.multi-select__trigger:focus-visible {
  border-color: var(--cyan-deep, #00caeb);
}

.multi-select__trigger:focus-visible {
  outline: 3px solid rgba(0, 202, 235, 0.35);
}

.multi-select.is-open .multi-select__trigger {
  border-color: var(--cyan-deep, #00caeb);
}

.multi-select__value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 400;
}

.multi-select__chevron {
  flex-shrink: 0;
  color: #667085;
  transition: transform 0.2s ease;
}

.multi-select.is-open .multi-select__chevron {
  transform: rotate(180deg);
}

.multi-select__panel {
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  top: calc(100% + 0.25rem);
  display: flex;
  flex-direction: column;
  min-width: 14rem;
  max-height: 16rem;
  padding: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 12px 28px rgba(22, 33, 50, 0.14);
}

.multi-select__panel[hidden] {
  display: none !important;
}

.multi-select__search {
  width: 100%;
  margin: 0 0 0.35rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.multi-select__list {
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: auto;
  max-height: 12rem;
}

.multi-select__list li {
  margin: 0;
}

.multi-select__option {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin: 0;
  padding: 0.4rem 0.45rem;
  border-radius: 8px;
  font-weight: 400;
  font-size: 0.92rem;
  cursor: pointer;
}

.multi-select__option:hover,
.multi-select__option:has(input:checked) {
  background: rgba(0, 202, 235, 0.12);
}

#equipo-categoria-web .multi-select__value {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}

.multi-select__option input {
  width: auto;
  margin: 0.15rem 0 0;
  flex-shrink: 0;
}

.multi-select__option span {
  min-width: 0;
  line-height: 1.3;
}

.multi-select__summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.45rem 0 0;
  font-size: 0.88rem;
  line-height: 1.4;
  font-weight: 400;
}

.multi-select__chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: #e4e8eb;
  color: #3d4c56;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
}

.multi-select__summary[hidden] {
  display: none !important;
}

.sku-select__option {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  margin: 0;
  padding: 0.45rem 0.65rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.sku-select__option:hover,
.sku-select__option:focus-visible,
.sku-select__option.is-selected {
  background: #e7f7fb;
}

.sku-select__option:focus-visible {
  outline: 3px solid rgba(0, 202, 235, 0.35);
  outline-offset: 1px;
}

.sku-select__equipo {
  color: #5c6b76;
  font-size: 0.78rem;
  line-height: 1.3;
}

.sku-select__empty {
  padding: 0.45rem 0.65rem;
  color: #5c6b76;
  font-size: 0.85rem;
}

.sheet-toolbar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-left: auto;
}

.import-errors {
  margin: 0;
  padding-left: 1.2rem;
}

.brand-picker {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.brand-picker legend {
  padding: 0;
  margin: 0 0 0.15rem;
}

.brand-picker__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.brand-picker__search {
  flex: 1 1 12rem;
  min-width: 0;
  margin: 0;
  padding: 0.55rem 0.75rem;
}

.brand-picker__list {
  display: grid;
  gap: 0.1rem;
  max-height: 14rem;
  overflow: auto;
  padding: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}

.brand-picker__list .checkbox {
  padding: 0.4rem 0.5rem;
  border-radius: 8px;
}

.brand-picker__list .checkbox:hover,
.brand-picker__list .checkbox:focus-within {
  background: rgba(0, 202, 235, 0.12);
}

.brand-picker__empty {
  margin: 0;
  padding: 0.55rem 0.5rem;
}

.org-picker__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.15rem;
}

.org-picker__toolbar .search-select__hint {
  margin: 0;
  flex: 1 1 12rem;
}

.search-select__option .org-picker__name,
.search-select__option .org-picker__meta {
  display: block;
}

.search-select__option .org-picker__meta {
  font-weight: 400;
  margin-top: 0.15rem;
}

.usuarios-search {
  flex: 1 1 16rem;
  min-width: min(100%, 16rem);
  max-width: 28rem;
  margin: 0;
}

.usuarios-search input[type="search"] {
  width: 100%;
  margin: 0;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: inherit;
  font: inherit;
}

.usuarios-search input[type="search"]:focus {
  outline: 2px solid rgba(0, 202, 235, 0.45);
  outline-offset: 1px;
  border-color: var(--teal, #00caeb);
}

.usuarios-search input[type="search"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.usuarios-role-filter {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 0 1 18rem;
  min-width: min(100%, 12rem);
  margin: 0;
}

.usuarios-role-filter label {
  margin: 0;
  font-size: 0.92rem;
  white-space: nowrap;
}

.usuarios-role-filter select {
  width: auto;
  flex: 1 1 auto;
  min-width: 10rem;
  margin: 0;
  padding: 0.55rem 2rem 0.55rem 0.75rem;
  border-radius: var(--radius);
}

.usuarios-role-filter select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 640px) {
  .usuarios-role-filter {
    flex: 1 1 100%;
  }

  .usuarios-role-filter select {
    width: 100%;
    max-width: none;
  }
}

.pedido-create-fields {
  margin: 0 0 1.25rem;
  padding: 0;
  border: 0;
}

.pedido-create-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1rem;
}

.factura-create-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.factura-create-grid__third {
  grid-column: span 2;
}

.factura-create-grid__half {
  grid-column: span 3;
}

.factura-create-grid__full {
  grid-column: 1 / -1;
}

.pr-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.55rem;
}

.pr-chips[hidden] {
  display: none !important;
}

.pr-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
  padding: 0.28rem 0.45rem 0.28rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f3f7f9;
  color: var(--navy);
  font-size: 0.88rem;
  line-height: 1.2;
}

.pr-chip__label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pr-chip__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #667085;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.pr-chip__remove:hover,
.pr-chip__remove:focus-visible {
  background: rgba(0, 202, 235, 0.16);
  color: var(--navy);
  outline: none;
}

.email-list__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.55rem;
}

.email-list__chips[hidden] {
  display: none !important;
}

.email-list__add {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.email-list__add input {
  flex: 1 1 14rem;
  min-width: 0;
}

.email-list__add .btn {
  flex: 0 0 auto;
}

.email-list__error {
  margin: 0.4rem 0 0;
  color: #b42318;
  font-size: 0.88rem;
}

.email-list__error[hidden] {
  display: none !important;
}

.pedido-create-equipos {
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.pedido-create-equipos__title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--navy);
}

.form-hint {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
}

@media (max-width: 700px) {
  .pedido-create-grid {
    grid-template-columns: 1fr;
  }

  .factura-create-grid__third,
  .factura-create-grid__half,
  .factura-create-grid__full {
    grid-column: 1 / -1;
  }
}

.equipos-list-filters {
  margin: 0 0 0.85rem;
}

.equipos-list-filters__field {
  display: grid;
  gap: 0.35rem;
  max-width: 28rem;
}

.equipos-list-filters .search-select {
  width: 100%;
}

.equipos-list-status {
  margin: 0 0 0.85rem;
}

.equipos-list-status--error {
  color: #b42318;
}

.equipos-list-wrap {
  margin: 0;
  max-height: min(50vh, 420px);
}

.equipos-list-table td {
  white-space: nowrap;
}

.equipos-list-table th:first-child,
.equipos-list-table td:first-child,
.equipos-list-table th.sheet-table__actions,
.equipos-list-table td.sheet-table__actions,
.equipos-list-table tbody tr:hover .sheet-table__actions,
.equipos-list-table tbody tr:focus-within .sheet-table__actions {
  position: static;
  left: auto;
  right: auto;
  z-index: auto;
  box-shadow: none;
}

.equipos-list-table tbody tr:nth-child(even) td:first-child,
.equipos-list-table tbody tr:hover td:first-child {
  background: transparent;
  box-shadow: none;
}

.equipos-list-row td.sheet-table__actions,
.equipos-list-bulk td.sheet-table__actions,
.equipos-list-cols th.sheet-table__actions {
  background: var(--white, #fff);
}

.equipos-list-row:hover td.sheet-table__actions,
.equipos-list-row.is-editing-row td.sheet-table__actions {
  background: #eef5f8;
}

.equipos-list-group th {
  padding: 0.85rem 0.75rem 0.45rem;
  border: none;
  background: transparent;
  white-space: normal;
  text-align: left;
  font-weight: 400;
}

.equipos-list-group--spaced th {
  padding-top: 1.35rem;
}

.equipos-list-group__head {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  min-width: 0;
}

.equipos-list-group__equipo {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
}

.equipos-list-group__proveedor {
  color: var(--muted, #5b6b73);
  font-weight: 500;
}

.equipos-list-group__proveedor::before {
  content: '·';
  margin-right: 0.4rem;
  color: rgba(22, 33, 50, 0.45);
}

.equipos-list-group__bulk-btn {
  margin-left: 0.15rem;
  width: 1.85rem;
  height: 1.85rem;
}

.equipos-list-group__bulk-btn.is-active,
.equipos-list-group__bulk-btn[aria-expanded='true'] {
  background: rgba(0, 202, 235, 0.16);
  border-color: rgba(0, 168, 198, 0.45);
  color: var(--navy);
}

/* Tooltip a la derecha del icono en el encabezado del grupo */
.equipos-list-group__bulk-btn.sheet-action-btn::after {
  right: auto;
  left: calc(100% + 0.45rem);
  transform: translateY(-50%) translateX(-4px);
}

.equipos-list-group__bulk-btn.sheet-action-btn:hover::after,
.equipos-list-group__bulk-btn.sheet-action-btn:focus-visible::after {
  transform: translateY(-50%) translateX(0);
}

.equipos-list-bulk-hint td {
  padding: 0.35rem 0.75rem 0.15rem;
  border: none;
  background: #f3f8fa;
  white-space: normal;
  font-size: 0.9rem;
}

.equipos-list-bulk td {
  background: #f3f8fa;
  vertical-align: middle;
}

.equipos-list-bulk .sheet-input,
.equipos-list-row .sheet-input {
  min-width: 5.5rem;
  max-width: 9rem;
}

.equipos-list-row .sheet-input[readonly]:not(.is-editing) {
  background: transparent;
  border-color: transparent;
}

.equipos-list-row.is-editing-row td {
  background: #fff8e8;
}

.equipos-bulk-actions {
  flex-wrap: wrap;
  gap: 0.35rem;
}

.equipos-list-cols th {
  position: static;
  top: auto;
  z-index: auto;
  white-space: normal;
  background: #eef5f8;
  border-top: 1px solid rgba(22, 33, 50, 0.12);
  border-bottom: 1px solid rgba(22, 33, 50, 0.12);
  box-shadow: none;
}

.equipos-list-table tbody tr.equipos-list-group,
.equipos-list-table tbody tr.equipos-list-cols,
.equipos-list-table tbody tr.equipos-list-row {
  background: transparent;
}

.equipos-list-table tbody tr.equipos-list-group:nth-child(even),
.equipos-list-table tbody tr.equipos-list-cols:nth-child(even),
.equipos-list-table tbody tr.equipos-list-row:nth-child(even) {
  background: transparent;
}

.equipos-list-row td {
  background: var(--white, #fff);
}

.equipos-list-table tbody tr.equipos-list-group:hover,
.equipos-list-table tbody tr.equipos-list-cols:hover {
  background: transparent;
}

.equipos-list-table tbody tr.equipos-list-row:hover td {
  background: #eef5f8;
}

.equipo-lines {
  display: grid;
  gap: 0.9rem;
}

.equipo-line {
  position: relative;
  margin: 0;
  padding: 0.9rem 1rem 1rem;
  border: 1px solid rgba(22, 33, 50, 0.14);
  border-radius: 12px;
  background: rgba(247, 251, 253, 0.85);
}

.equipo-line__title {
  padding: 0 0.25rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--navy);
}

.equipo-line__remove {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
}

.equipo-line__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.equipo-line__check {
  grid-column: 1 / -1;
}

@media (max-width: 700px) {
  .equipo-line__grid {
    grid-template-columns: 1fr;
  }
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 1;
}

.modal__header h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--navy);
}

.modal__body {
  padding: 1.1rem 1.15rem 1.25rem;
}

.modal__body .input-readonly,
.modal__body input[readonly] {
  background: #eef5f8;
  color: #667085;
  border-color: rgba(22, 33, 50, 0.1);
  cursor: default;
}

.search-select {
  position: relative;
}

.search-select__control {
  position: relative;
}

.search-select__control .search-select__input {
  width: 100%;
  padding-right: 2.4rem;
}

.search-select__chevron {
  position: absolute;
  right: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  color: #667085;
  pointer-events: none;
}

.search-select__input:disabled {
  background: #eef5f8;
  color: #667085;
  cursor: not-allowed;
}

.search-select__list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.25rem);
  z-index: 8;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  max-height: 12rem;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 12px 28px rgba(22, 33, 50, 0.14);
}

/* Lista embebida: no se recorta por overflow del modal */
.search-select__list--panel {
  position: static;
  z-index: auto;
  margin-top: 0.4rem;
  max-height: 11rem;
  box-shadow: none;
  background: #f7f9fb;
}

.search-select--combo.is-open .search-select__chevron {
  transform: translateY(-50%) rotate(180deg);
}

.search-select__list[hidden] {
  display: none !important;
}

.search-select__option,
.search-select__option {
  display: block;
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.search-select__option:hover,
.search-select__option.is-active,
.search-select__option:focus-visible,
.search-select__option:hover,
.search-select__option.is-active,
.search-select__option:focus-visible {
  background: rgba(0, 202, 235, 0.12);
  color: var(--navy);
  outline: none;
}

.search-select__empty,
.search-select__empty {
  padding: 0.65rem 0.7rem;
  color: #667085;
  font-size: 0.9rem;
}

.search-select__hint {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
}

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

@media (max-width: 700px) {
  .modal__body.form-grid {
    grid-template-columns: 1fr;
  }

  .trm-badge {
    right: 0.75rem;
    bottom: 4.9rem;
    padding: 0.5rem 0.7rem;
  }

  .toast-root {
    right: 0.75rem;
    bottom: 8.6rem;
  }

  .whatsapp-fab {
    right: 0.75rem;
    bottom: 0.75rem;
  }
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card > a:not(.product-card__cta) {
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.product-card .body {
  padding: 0.45rem 0.85rem 0.7rem;
}

.product-card h3 {
  margin: 0 0 0.2rem;
  font-size: 0.92rem;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card .muted {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.3;
}

.product-card .product-price {
  margin: 0.35rem 0 0;
}

.product-card .product-price--login {
  padding: 0 0.85rem 0.4rem;
  margin-top: -0.2rem;
}

.product-card img.is-placeholder {
  padding: 6%;
}

.product-card__media {
  position: relative;
  background: #fff;
  margin: 0.65rem 0.7rem 0.15rem;
}

.product-card__placeholder {
  width: 100%;
  aspect-ratio: 1.85 / 1;
  max-height: 9.5rem;
  background:
    linear-gradient(180deg, #eef2f4 0%, #d9e2e8 100%);
}

.product-card__placeholder--lg {
  min-height: 320px;
  aspect-ratio: 1.2 / 1;
  border-radius: var(--radius);
}

.product-card__labels {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.28rem;
  margin: 0.4rem 0.85rem 0;
  pointer-events: none;
}

.product-card__label {
  display: inline-flex;
  align-items: center;
  border-radius: 3px;
  padding: 0.22rem 0.45rem;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.product-card__label--oferta {
  background: var(--cyan);
}

.product-card__label--alta {
  background: #004d65;
}

.product-card__label--backorder {
  background: #7a838d;
}

.product-card__cta {
  align-self: stretch;
  margin: 0 0.7rem 0.75rem;
  min-height: 2.35rem;
  padding: 0.5rem 0.7rem;
  border: 0;
  border-radius: 999px;
  background: var(--cyan);
  color: #fff;
  box-shadow: none;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.product-card__cta:hover,
.product-card__cta:focus-visible {
  background: var(--cyan-deep);
  color: #fff;
  transform: none;
}

.product-price {
  margin: 0.35rem 0 0;
  color: var(--navy);
}

.product-price__was {
  margin-right: 0.4rem;
  color: #7a8a93;
  text-decoration: line-through;
  font-weight: 500;
}

.product-price__from {
  color: #5b6d76;
  font-weight: 500;
}

.product-price--login {
  font-size: 0.92rem;
  font-weight: 600;
}

.product-price--login a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.catalog-layout {
  display: grid;
  gap: 1.5rem;
}

.catalog-main {
  min-width: 0;
}

.catalog-main--full {
  grid-column: 1 / -1;
}

.catalog-back {
  margin-bottom: 1rem;
}

.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.catalog-toolbar__search {
  position: relative;
  z-index: 4;
  display: flex;
  flex: 1 1 220px;
  align-items: center;
  gap: 0.5rem;
}

.search-suggest {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  width: min(28rem, calc(100vw - 2rem));
  max-height: min(70vh, 32rem);
  overflow: auto;
  background: #fff;
  color: var(--ink);
  border: 1px solid rgba(22, 33, 50, 0.1);
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(14, 26, 43, 0.18);
  z-index: 30;
}

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

.search-suggest__status,
.search-suggest__empty {
  margin: 0;
  padding: 0.85rem 1rem;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.search-suggest__label {
  margin: 0;
  padding: 0.7rem 1rem 0.25rem;
  color: #8b95a3;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.search-suggest__item {
  display: grid;
  grid-template-columns: 2.1rem 1fr;
  gap: 0.65rem;
  align-items: center;
  padding: 0.55rem 0.85rem;
  color: inherit;
  text-decoration: none;
}

.search-suggest__item:hover,
.search-suggest__item:focus-visible,
.search-suggest__item.is-active {
  background: rgba(0, 202, 235, 0.1);
  outline: none;
}

.search-suggest__item--product {
  grid-template-columns: 2.1rem minmax(0, 1fr) auto;
  align-items: center;
}

.search-suggest__link {
  display: contents;
  color: inherit;
  text-decoration: none;
}

.search-suggest__cart {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.search-suggest__qty input {
  width: 3.1rem;
  margin: 0;
  padding: 0.35rem 0.3rem;
  border: 1px solid rgba(22, 33, 50, 0.16);
  border-radius: 8px;
  background: #fff;
  color: var(--navy);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
}

.search-suggest__add {
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 8px;
  background: var(--cyan);
  color: #041018;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.search-suggest__add:hover,
.search-suggest__add:focus-visible {
  background: var(--cyan-deep);
  outline: none;
}

.search-suggest__add:disabled {
  opacity: 0.65;
  cursor: progress;
}

.search-suggest__add.is-added {
  background: #123;
  color: #fff;
}

.search-suggest__icon {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1a73c7;
  color: #fff;
}

.search-suggest__icon--product {
  background: #fff;
  overflow: hidden;
  border: 1px solid rgba(22, 33, 50, 0.08);
  padding: 0;
}

.search-suggest__photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #fff;
}

.search-suggest__photo.is-placeholder {
  object-fit: cover;
  padding: 0.2rem;
}

.search-suggest__name {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--navy);
  line-height: 1.25;
}

.search-suggest__path {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #8b95a3;
  line-height: 1.3;
}

.search-suggest__all {
  display: block;
  margin: 0.35rem 0 0;
  padding: 0.75rem 1rem;
  border-top: 1px solid rgba(22, 33, 50, 0.08);
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5c6b7a;
  text-decoration: none;
}

.search-suggest__all:hover,
.search-suggest__all:focus-visible,
.search-suggest__all.is-active {
  color: var(--navy);
  background: rgba(0, 202, 235, 0.08);
  outline: none;
}

.catalog-toolbar__clear {
  flex: 0 0 auto;
  white-space: nowrap;
}

.catalog-toolbar__search input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
}

.catalog-toolbar__filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
  flex: 1 1 auto;
}

.catalog-toolbar__field {
  display: flex;
  align-items: center;
  min-width: 0;
}

.catalog-toolbar__select {
  width: auto;
  min-width: 10.5rem;
  max-width: 16rem;
  padding: 0.55rem 2rem 0.55rem 0.75rem;
  border-radius: 10px;
  font-size: 0.92rem;
  line-height: 1.2;
}

.catalog-toolbar__sort {
  margin-left: auto;
}

.catalog-toolbar__select--sort {
  min-width: 14rem;
  max-width: 22rem;
}

.catalog-toolbar__check {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
  cursor: pointer;
  white-space: nowrap;
}

.catalog-toolbar__check input {
  width: auto;
  margin: 0;
}

@media (max-width: 640px) {
  .catalog-toolbar__field {
    flex: 1 1 100%;
  }

  .catalog-toolbar__select {
    width: 100%;
    max-width: none;
  }

  .catalog-toolbar__sort {
    margin-left: 0;
  }
}

.sale-brand-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sale-brand-card {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 0.85rem;
  align-items: center;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.sale-brand-card:hover,
.sale-brand-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: rgba(0, 202, 235, 0.35);
  outline: none;
}

.sale-brand-card__media img {
  width: 100%;
  max-height: 56px;
  object-fit: contain;
}

.sale-brand-card__placeholder {
  width: 100%;
  height: 56px;
  border-radius: 8px;
  background: linear-gradient(180deg, #eef2f4 0%, #d9e2e8 100%);
}

.sale-brand-card__body h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  color: var(--navy);
  font-family: var(--font-display);
}

.sale-brand-card__body .muted {
  margin: 0;
}

.catalog-sidebar {
  min-width: 0;
}

.catalog-cats__title {
  margin: 0 0 0.5rem;
  font-weight: 700;
  color: var(--navy);
}

.catalog-cats__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.catalog-cats__list--nested {
  margin: 0.15rem 0 0.35rem;
  padding-left: 0.85rem;
  border-left: 1px solid rgba(0, 202, 235, 0.22);
}

.catalog-cats__item {
  margin: 0;
  border-bottom: 1px solid rgba(22, 33, 50, 0.06);
  padding: 0.15rem 0;
}

.catalog-cats__branch {
  margin: 0;
}

.catalog-cats__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem;
  list-style: none;
  cursor: pointer;
  padding: 0.15rem 0;
}

.catalog-cats__summary::-webkit-details-marker {
  display: none;
}

.catalog-cats__summary::marker {
  content: '';
}

.catalog-cats__link {
  flex: 1 1 auto;
  min-width: 0;
  order: 1;
  display: inline-block;
  padding: 0.35rem 0;
  color: #8b98a2;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.catalog-cats__link:hover,
.catalog-cats__link:focus-visible,
.catalog-cats__link.is-active {
  color: var(--navy);
  text-decoration: none;
  outline: none;
}

.catalog-cats__chevron {
  flex: 0 0 auto;
  order: 2;
  margin-left: auto;
  width: 1.5rem;
  height: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: #8b98a2;
  transition: transform 0.2s ease, background 0.15s ease;
}

.catalog-cats__chevron::before {
  content: '';
  width: 0.4rem;
  height: 0.4rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  margin-top: -0.1rem;
}

.catalog-cats__branch[open] > .catalog-cats__summary > .catalog-cats__chevron {
  transform: rotate(90deg);
}

.catalog-cats__summary:hover > .catalog-cats__chevron,
.catalog-cats__summary:focus-visible > .catalog-cats__chevron {
  background: rgba(0, 202, 235, 0.14);
}

.catalog-cats__trailing {
  margin-top: 0.75rem;
  padding-top: 0.45rem;
  border-top: 1px solid rgba(22, 33, 50, 0.14);
}

.shop-page {
  padding-bottom: 3rem;
}

.shop-page__head {
  margin: 0 0 1.35rem;
}

.shop-page__head h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
}

.shop-page__head .lede {
  max-width: none;
}

.shop-page__head--promo {
  margin: 1rem 0 1.15rem;
}

.shop-page__brand {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
}

.promo-banner {
  position: relative;
  overflow: hidden;
  margin: 0 0 1.35rem;
  padding: 1.55rem 1.4rem 1.45rem;
  border-radius: 18px;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(0, 202, 235, 0.55), transparent 52%),
    radial-gradient(90% 120% at 0% 100%, rgba(0, 182, 212, 0.28), transparent 48%),
    linear-gradient(118deg, #0e1a2b 0%, #162132 42%, #12344a 100%);
  box-shadow: 0 16px 36px rgba(14, 26, 43, 0.22);
}

.promo-banner::before {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 17px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  pointer-events: none;
}

.promo-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1.2px);
  background-size: 14px 14px;
  opacity: 0.18;
  pointer-events: none;
}

.promo-banner__glow {
  position: absolute;
  width: 42%;
  height: 120%;
  top: -40%;
  left: 29%;
  background: radial-gradient(circle, rgba(0, 202, 235, 0.45), transparent 68%);
  pointer-events: none;
}

.promo-banner__kicker,
.promo-banner__title,
.promo-banner__lead {
  position: relative;
  z-index: 1;
}

.promo-banner__kicker {
  display: inline-flex;
  margin: 0 0 0.65rem;
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  background: rgba(0, 202, 235, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.promo-banner__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3.4vw, 2.05rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-wrap: balance;
}

.promo-banner__lead {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin: 0.7rem 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
}

.promo-banner__dot {
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(0, 202, 235, 0.18);
  flex: 0 0 auto;
}

.promo-banner__lead::before,
.promo-banner__lead::after {
  content: '';
  width: min(4.5rem, 18vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
}

@media (min-width: 720px) {
  .promo-banner {
    padding: 1.9rem 2rem 1.75rem;
  }
}

.shop-page .catalog-toolbar {
  background: #fff;
  box-shadow: 0 8px 22px rgba(22, 33, 50, 0.04);
}

.shop-cat-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.shop-cat-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  padding: 0.45rem 0.45rem 0.7rem;
  background: #fff;
  border: 1px solid rgba(22, 33, 50, 0.08);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(22, 33, 50, 0.05);
  color: inherit;
  text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.shop-cat-card:hover,
.shop-cat-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(0, 202, 235, 0.45);
  box-shadow: 0 18px 40px rgba(22, 33, 50, 0.1);
  outline: none;
}

.shop-cat-card__media {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(232, 238, 241, 0.95) 100%);
  border: 1px solid rgba(22, 33, 50, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  overflow: hidden;
}

.shop-cat-card__media--promo {
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(0, 202, 235, 0.35), transparent 58%),
    linear-gradient(165deg, #1a2b42 0%, #162132 100%);
  border-color: transparent;
}

.shop-cat-card__media--fill {
  padding: 0;
  border: 0;
  background: #f3f6f8;
}

.shop-cat-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.shop-cat-card__icon {
  color: var(--cyan);
}

.shop-cat-card__fallback {
  color: var(--navy);
  text-align: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(0.9rem, 1.5vw, 1.15rem);
  letter-spacing: 0.02em;
  line-height: 1.15;
}

.shop-cat-card__media--promo .shop-cat-card__fallback {
  color: #fff;
}

.shop-cat-card__body {
  text-align: center;
}

.shop-cat-card__name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
}

.shop-cat-card__count {
  margin: 0.2rem 0 0;
  font-size: 0.7rem;
  color: #7a8790;
}

.brand-grid--compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.brand-grid--compact .brand-card {
  min-height: 76px;
  padding: 0.65rem;
  font-size: 0.85rem;
}

.product-page {
  padding: 1.5rem 0 3.5rem;
}

.shop-page.product-page {
  padding-top: 1.5rem;
}

.product-layout {
  display: grid;
  gap: 1.75rem;
}

.product-related {
  margin-top: 2.5rem;
}

.product-gallery__main {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}

.product-gallery .product-card__labels {
  margin: 0.65rem 0 0;
}

.product-gallery .product-card__label {
  font-size: 0.78rem;
  padding: 0.28rem 0.55rem;
}

.product-gallery__main img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  background: #fff;
  border-radius: 0;
}

.product-gallery__main img.is-placeholder {
  width: 58%;
  height: auto;
  padding: 0;
}

.product-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
}

.product-thumbs__btn {
  display: block;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.product-thumbs__btn.is-active,
.product-thumbs__btn:focus-visible {
  border-color: var(--navy);
  outline: none;
}

.product-thumbs img {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 6px;
}

.variant-swatches {
  border: 0;
  margin: 1rem 0 0;
  padding: 0;
}

.variant-swatches legend {
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.45rem;
}

.variant-swatches__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.variant-swatches__item {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0.25rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy);
  text-decoration: none;
  font-size: 0.88rem;
  background: #fff;
}

.variant-swatches__item:hover,
.variant-swatches__item:focus-visible,
.variant-swatches__item.is-active {
  border-color: var(--navy);
  background: rgba(0, 202, 235, 0.12);
  outline: none;
}

.product-stock {
  margin: 0.2rem 0 0;
  font-size: 0.88rem;
  font-weight: 500;
  color: #7a8790;
}

.product-meta {
  margin: 1rem 0 0;
  font-size: 0.92rem;
}

.product-copy__html {
  max-width: 72ch;
  color: var(--ink-soft);
}

.product-copy__html :is(p, ul, ol) {
  margin: 0 0 0.85rem;
}

.product-copy__html :is(ul, ol) {
  padding-left: 1.25rem;
}

.product-copy__html li {
  margin: 0 0 0.4rem;
}

.product-copy--preview {
  max-width: none;
  margin: 0 0 0.85rem;
  color: #8a959c;
}

.product-copy--preview p:last-child {
  margin-bottom: 0;
}

.product-existencia {
  margin: 0.65rem 0 1.1rem;
  font-size: 0.88rem;
  font-weight: 500;
  font-style: italic;
  color: #8a959c;
}

.product-copy--preview + .product-existencia,
.product-accordion--description + .product-existencia {
  margin-top: 0.15rem;
}

.product-accordion--description summary {
  align-items: flex-start;
}

.product-accordion__preview {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.product-accordion--description .product-copy--preview {
  margin: 0;
}

.product-accordion__more {
  color: var(--cyan-deep);
  font-size: 0.88rem;
  font-weight: 700;
}

.product-info {
  min-width: 0;
}

.product-info .breadcrumb--shop {
  margin: 0 0 1.15rem;
}

.product-info__sale {
  margin: 0 0 0.65rem;
}

.product-sku {
  margin: 0 0 0.45rem;
  padding: 0;
  background: none;
  color: #8b98a2;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-info__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.6vw, 2.05rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.product-price--detail {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.45rem;
  margin: 0 0 0.35rem;
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
}

.product-price--detail strong {
  color: var(--cyan);
  font-weight: 800;
}

.product-price--detail .product-price__iva {
  color: var(--navy);
  font-size: 0.72em;
  font-weight: 600;
}

.product-price--detail .muted {
  font-size: 1rem;
}

.product-buy-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.75rem;
  margin: 1.15rem 0 1.35rem;
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: 2.85rem;
  min-height: 2.85rem;
  border: 1.5px solid rgba(0, 202, 235, 0.7);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.qty-stepper button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 2.1rem;
  width: 2.1rem;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--cyan-deep);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}

.qty-stepper button:hover,
.qty-stepper button:focus-visible {
  background: rgba(0, 202, 235, 0.1);
  outline: none;
}

.qty-stepper input,
.qty-stepper input:focus,
.qty-stepper input:focus-visible {
  flex: 0 0 1.6rem;
  width: 1.6rem;
  min-width: 1.6rem;
  max-width: 1.6rem;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--navy);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-align: center;
  outline: none;
  box-shadow: none;
  appearance: textfield;
  -moz-appearance: textfield;
}

.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qty-stepper--mini {
  height: 1.9rem;
  min-height: 1.9rem;
  border-radius: 8px;
}

.qty-stepper--mini button {
  flex-basis: 1.5rem;
  width: 1.5rem;
  font-size: 0.95rem;
}

.qty-stepper--mini input,
.qty-stepper--mini input:focus,
.qty-stepper--mini input:focus-visible {
  flex-basis: 1.35rem;
  width: 1.35rem;
  min-width: 1.35rem;
  max-width: 1.35rem;
  font-size: 0.85rem;
}

.product-add-cart {
  flex: 1 1 180px;
  min-height: 2.85rem;
  padding: 0.7rem 1.4rem;
  border: 0;
  border-radius: 999px;
  background: var(--cyan);
  color: #fff;
  box-shadow: none;
  font-weight: 700;
}

.product-add-cart:hover,
.product-add-cart:focus-visible {
  background: var(--cyan-deep);
  color: #fff;
  transform: none;
}

.product-add-cart.is-disabled,
.product-add-cart:disabled {
  opacity: 0.45;
  pointer-events: none;
  cursor: not-allowed;
}

.product-accordion {
  margin: 0 0 0.75rem;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
}

.product-accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.2rem;
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
}

.product-accordion summary::-webkit-details-marker {
  display: none;
}

.product-accordion summary::after {
  content: '−';
  font-size: 1.25rem;
  font-weight: 500;
  color: #8a959c;
  line-height: 1;
}

.product-accordion:not([open]) summary::after {
  content: '+';
}

.product-accordion summary:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: -2px;
}

.product-accordion__body {
  padding: 0 1.2rem 1.15rem;
  color: #8a959c;
}

.product-accordion__body p {
  margin: 0 0 0.7rem;
}

.product-accordion__body p:last-child {
  margin-bottom: 0;
}

.product-accordion__body .product-copy__html,
.product-accordion .product-copy__html {
  max-width: none;
  color: #8a959c;
}

.product-accordion__body .product-meta {
  margin: 0.65rem 0 0;
}

.product-accordion__body a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.catalog-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.5rem 0 0;
}

.catalog-pagination__status {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

@media (min-width: 640px) {
  .shop-cat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .catalog-layout {
    grid-template-columns: 240px minmax(0, 1fr);
    align-items: start;
  }

  .catalog-sidebar {
    position: sticky;
    top: calc(var(--header-h) + 1rem);
  }

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

  .product-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: start;
  }

  .product-page .product-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.75rem;
  }
}

@media (min-width: 1100px) {
  .product-page .product-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2.5rem;
  }
}

#info-proveedores-table {
  --sheet-col-min: 5.25rem;
}

#info-proveedores-table td:not(.sheet-table__actions):not(.sheet-table__empty):not(.sheet-table__brand) {
  overflow: hidden;
  text-overflow: ellipsis;
}

#info-proveedores-table td a {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#info-proveedores-table th.sheet-table__actions,
#info-proveedores-table td.sheet-table__actions {
  width: auto;
  min-width: 4.5rem;
}

#info-proveedores-table th.sheet-table__brand,
#info-proveedores-table td.sheet-table__brand {
  width: 4.75rem;
  min-width: 4.75rem;
  max-width: 4.75rem;
  text-align: center;
  vertical-align: middle;
  padding-left: 0.45rem;
  padding-right: 0.45rem;
  overflow: hidden;
}

/* Proveedor y Holding */
#info-proveedores-table th:nth-child(3),
#info-proveedores-table td:nth-child(3),
#info-proveedores-table th:nth-child(4),
#info-proveedores-table td:nth-child(4) {
  width: 10.5rem;
  min-width: 7.5rem;
  max-width: 10.5rem;
}

/* EIN, Tipo y País */
#info-proveedores-table th:nth-child(5),
#info-proveedores-table td:nth-child(5),
#info-proveedores-table th:nth-child(6),
#info-proveedores-table td:nth-child(6),
#info-proveedores-table th:nth-child(7),
#info-proveedores-table td:nth-child(7) {
  width: 7.25rem;
  min-width: 5.5rem;
  max-width: 7.25rem;
}

/* Retención, Valor retención e IVA */
#info-proveedores-table th:nth-child(8),
#info-proveedores-table td:nth-child(8),
#info-proveedores-table th:nth-child(10),
#info-proveedores-table td:nth-child(10) {
  width: 6.25rem;
  min-width: 4.75rem;
  max-width: 6.25rem;
}

#info-proveedores-table th:nth-child(9),
#info-proveedores-table td:nth-child(9) {
  width: 7.5rem;
  min-width: 6rem;
  max-width: 7.5rem;
}

/* Dirección y Página web */
#info-proveedores-table th:nth-child(11),
#info-proveedores-table td:nth-child(11),
#info-proveedores-table th:nth-child(12),
#info-proveedores-table td:nth-child(12) {
  width: 14rem;
  min-width: 9rem;
  max-width: 14rem;
}

/* Tiempos de entrega */
#info-proveedores-table th:nth-child(13),
#info-proveedores-table td:nth-child(13),
#info-proveedores-table th:nth-child(14),
#info-proveedores-table td:nth-child(14),
#info-proveedores-table th:nth-child(15),
#info-proveedores-table td:nth-child(15),
#info-proveedores-table th:nth-child(16),
#info-proveedores-table td:nth-child(16) {
  width: 6.5rem;
  min-width: 5.25rem;
  max-width: 6.5rem;
}

#info-proveedores-table th:nth-child(17),
#info-proveedores-table td:nth-child(17) {
  width: 7.5rem;
  min-width: 6rem;
  max-width: 7.5rem;
}

/* Contactos */
#info-proveedores-table th:nth-child(18),
#info-proveedores-table td:nth-child(18) {
  width: 12rem;
  min-width: 8rem;
  max-width: 12rem;
}

/* Cupo cartera y Término pago */
#info-proveedores-table th:nth-child(19),
#info-proveedores-table td:nth-child(19),
#info-proveedores-table th:nth-child(21),
#info-proveedores-table td:nth-child(21) {
  width: 6.75rem;
  min-width: 5.5rem;
  max-width: 6.75rem;
}

/* Valor cupo */
#info-proveedores-table th:nth-child(20),
#info-proveedores-table td:nth-child(20) {
  width: 8.25rem;
  min-width: 6.5rem;
  max-width: 8.25rem;
}

/* Banco */
#info-proveedores-table th:nth-child(22),
#info-proveedores-table td:nth-child(22) {
  width: 10rem;
  min-width: 7.5rem;
  max-width: 10rem;
}

/* Dirección banco */
#info-proveedores-table th:nth-child(23),
#info-proveedores-table td:nth-child(23) {
  width: 12rem;
  min-width: 8rem;
  max-width: 12rem;
}

/* SWIFT, N° cuenta y Routing */
#info-proveedores-table th:nth-child(24),
#info-proveedores-table td:nth-child(24),
#info-proveedores-table th:nth-child(26),
#info-proveedores-table td:nth-child(26) {
  width: 7.5rem;
  min-width: 6rem;
  max-width: 7.5rem;
}

#info-proveedores-table th:nth-child(25),
#info-proveedores-table td:nth-child(25) {
  width: 9rem;
  min-width: 7rem;
  max-width: 9rem;
}

/* Estado */
#info-proveedores-table th:nth-child(27),
#info-proveedores-table td:nth-child(27) {
  width: 6.5rem;
  min-width: 5.25rem;
  max-width: 6.5rem;
}

#info-proveedores-table th.sheet-table__brand {
  white-space: normal;
  line-height: 1.2;
}

#info-proveedores-table td.sheet-table__brand .sheet-thumb {
  margin: 0 auto;
}

.sheet-thumb {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.sheet-thumb[hidden] {
  display: none;
}

.sheet-thumb--cover {
  width: 72px;
  height: 40px;
  object-fit: cover;
}

.sheet-thumb--empty {
  background:
    linear-gradient(135deg, #eef2f4 0%, #d9e2e8 100%);
}

.proveedor-form__section,
.equipo-form__section {
  margin: 0 0 1.15rem;
  padding: 0;
  border: 0;
}

.proveedor-form__section legend,
.equipo-form__section legend {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
}

.equipo-form__section textarea {
  min-height: 6.5rem;
  resize: vertical;
}

.equipo-form__section textarea.equipo-form__textarea--lg {
  min-height: 10rem;
}

.equipo-form__section--web {
  padding: 1rem 1.15rem 1.2rem;
  border: 1px solid rgba(0, 182, 212, 0.38);
  border-left: 5px solid var(--cyan);
  border-radius: var(--radius);
  background: #e7f7fb;
}

.equipo-form__section--web .equipo-form__section-title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--cyan-deep);
}

.equipo-form__section--web #equipo-web-hint {
  color: #2a4a58;
}

.equipo-form__section--precios {
  padding: 1rem 1.15rem 1.2rem;
  border: 1px solid rgba(11, 61, 92, 0.22);
  border-left: 5px solid var(--navy);
  border-radius: var(--radius);
  background: #f3f6f8;
}

.equipo-form__section--precios .equipo-form__section-title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
}

.equipo-form__section--precios #equipo-precios-rol-hint {
  color: #2a4a58;
}

.equipo-form__section--boxed {
  padding: 1rem 1.15rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 1.15rem;
}

.equipo-form__section--catalog {
  border-left: 5px solid var(--cyan);
  background: #e7f7fb;
}

.equipo-form__section--import {
  border-left: 5px solid var(--navy);
  background: #f3f6f8;
}

.equipo-form__section--otros {
  border-left: 5px solid #8aa0ad;
  background: #f7f8f9;
}

.equipo-variables {
  margin: 0.35rem 0 0;
  padding: 0.85rem 1rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.equipo-variables legend {
  padding: 0 0.35rem;
  font-weight: 650;
}

.equipo-variables__list {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.equipo-variables__main {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex: 1 1 auto;
}

.equipo-variables__thumb {
  width: 3rem;
  height: 3rem;
  flex: 0 0 auto;
  object-fit: contain;
  background: #eef2f4;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.equipo-variables__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7fbfc;
}

.equipo-variables__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.85rem;
  align-items: baseline;
  min-width: 0;
}

.equipo-variables__meta strong {
  color: var(--navy);
}

.equipo-variables__item--anulada {
  background: #f4f5f6;
  color: #5c6b76;
}

.equipo-variables__item--anulada strong {
  color: #5c6b76;
  text-decoration: line-through;
}

.equipo-variables__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: #efe2e2;
  color: #8a3030;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.equipo-variable-editor {
  margin: 0 0 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.form-field__head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.45rem;
  margin: 0 0 0.35rem;
}

.form-field__head .form-label-text {
  margin: 0;
}

.form-field__nuevo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  margin: 0;
  padding: 0.12rem 0.55rem;
  border: 0;
  border-radius: 999px;
  background: #e4e8eb;
  color: #5c6b76;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  text-decoration: none;
}

.form-field__nuevo:hover,
.form-field__nuevo:focus-visible {
  background: #d5dbe0;
  color: #3d4c56;
}

.form-field__nuevo:focus-visible {
  outline: 3px solid rgba(92, 107, 118, 0.35);
  outline-offset: 2px;
}

.modal--nested {
  z-index: 70;
}

.catalog-manager__create {
  margin: 0.75rem 0 1rem;
}

/* El diálogo del catálogo hace scroll: la lista del padre va en el flujo para no recortarse. */
#equipo-catalog-parent-picker.is-open .multi-select__panel {
  position: static;
  top: auto;
  margin-top: 0.4rem;
  max-height: 16rem;
  box-shadow: none;
  background: #f7f9fb;
}

.catalog-manager__list-title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.catalog-manager__filter {
  margin: 0 0 0.65rem;
}

.catalog-manager__filter input {
  width: 100%;
}

.catalog-manager__group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0;
  padding: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f7f9fb;
}

.catalog-manager__kind {
  flex: none;
  min-width: 6.4rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #3d4c56;
}

.catalog-manager__row--child {
  margin-left: calc(0.7rem * var(--depth, 1));
  padding: 0.2rem 0.35rem 0.2rem 0.55rem;
  border-left: 2px solid #b7c6ce;
  border-radius: 10px;
  background: var(--white);
}

.catalog-manager__row--child .catalog-manager__kind {
  color: #5c6b76;
  font-weight: 600;
}

#equipo-catalog-parent-list .sku-select__option--root {
  font-weight: 700;
}

#equipo-catalog-parent-list .sku-select__option--child {
  padding-left: calc(0.65rem + 0.8rem * var(--depth, 1));
  font-weight: 400;
}

.catalog-manager__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 46vh;
  overflow: auto;
}

.catalog-manager__row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.catalog-manager__row input {
  flex: 1;
  min-width: 0;
}

.catalog-manager__row .btn-icon {
  width: 2.15rem;
  height: 2.15rem;
}

.catalog-manager__row.is-inactive input {
  color: #6b7c86;
}

.catalog-manager__row--pais {
  flex-wrap: wrap;
  align-items: flex-end;
}

.catalog-manager__times {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.catalog-manager__time {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  width: 6.2rem;
}

.catalog-manager__time span {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--navy);
}

.catalog-manager__time input {
  width: 100%;
  padding: 0.4rem 0.5rem;
}

.equipo-checks {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  padding: 0.45rem;
}

.equipo-checks--inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  border: 0;
  padding: 0.15rem 0 0;
  background: transparent;
}

.equipo-checks__search {
  width: 100%;
  margin: 0 0 0.35rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
}

.equipo-checks__list {
  display: flex;
  flex-direction: column;
  max-height: 11rem;
  overflow: auto;
}

.equipo-checks__option {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0;
  padding: 0.35rem 0.45rem;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
}

.equipo-checks__option:hover {
  background: #f3f7f9;
}

.equipo-checks__option input {
  margin-top: 0.15rem;
}

.equipo-checks__option span {
  line-height: 1.35;
}

.equipo-checks__option[hidden] {
  display: none;
}

.equipo-rel {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 182, 212, 0.35);
}

.equipo-rel__picker {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.55rem;
}

.equipo-rel__picker[hidden] {
  display: none;
}

.equipo-rel__pick {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.45rem 0.55rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: var(--white);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.equipo-rel__pick:last-child {
  border-bottom: 0;
}

.equipo-rel__pick:hover,
.equipo-rel__pick:focus-visible {
  background: #f3f7f9;
}

.equipo-rel__results,
.equipo-rel__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.equipo-rel__results {
  gap: 0;
  max-height: 12rem;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
}

.equipo-rel__results[hidden] {
  display: none;
}

.equipo-rel__group h4 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
}

.equipo-rel__group > .btn {
  margin-top: 0.45rem;
}

.equipo-rel__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.4rem 0.55rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.equipo-rel__results .equipo-rel__item {
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid var(--line);
}

.equipo-rel__results .equipo-rel__item:last-child {
  border-bottom: 0;
}

.equipo-rel__item span {
  min-width: 0;
  line-height: 1.35;
}

.equipo-rel__empty {
  margin: 0;
  color: #5c6b73;
  font-size: 0.92rem;
}

.proveedor-photo-field__preview {
  display: block;
  width: 100%;
  max-width: 220px;
  height: 140px;
  object-fit: contain;
  background: #eef2f4;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.proveedor-photo-field__preview-wrap {
  position: relative;
  display: inline-block;
  max-width: 220px;
  margin: 0 0 0.55rem;
}

.proveedor-photo-field__preview-wrap:has(img[hidden]) {
  display: none;
}

.proveedor-photo-field__remove {
  position: absolute;
  top: 0.28rem;
  right: 0.28rem;
  z-index: 1;
  width: 1.4rem;
  height: 1.4rem;
  min-height: 0;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(22, 33, 50, 0.78);
  color: #fff;
  cursor: pointer;
}

.proveedor-photo-field__remove:hover,
.proveedor-photo-field__remove:focus-visible {
  background: #c0392b;
  outline: 2px solid #fff;
  outline-offset: 1px;
}

.proveedor-photo-field__remove[hidden] {
  display: none;
}

.proveedor-photo-field__remove svg {
  display: block;
}

.proveedor-photo-field__preview--promo {
  background: #fff;
}

.proveedor-photo-field__preview--cover {
  max-width: 280px;
  object-fit: cover;
}

.proveedor-photo-field__preview[hidden] {
  display: none;
}

.proveedor-photo-field .checkbox {
  margin-top: 0.7rem;
}

.proveedor-photo-field .checkbox span {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.proveedor-photo-field .checkbox .form-hint {
  margin: 0;
  font-weight: 400;
}

.equipo-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0 0 0.75rem;
  padding: 0;
  list-style: none;
}

.equipo-gallery:empty {
  display: none;
}

.equipo-gallery__empty {
  margin: 0;
  color: #5c6b73;
  font-size: 0.92rem;
}

.equipo-gallery__item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: 8.25rem;
}

.equipo-gallery__item img {
  width: 8.25rem;
  height: 8.25rem;
  object-fit: contain;
  background: #eef2f4;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.equipo-gallery__item.is-removed img {
  opacity: 0.4;
}

.equipo-gallery__badge {
  position: absolute;
  top: 0.35rem;
  left: 0.35rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: #16324f;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.3;
}

.equipo-gallery__item .btn {
  width: 100%;
  justify-content: center;
  min-height: 2rem;
  padding-inline: 0.35rem;
}

.section--carousel {
  padding: 2.25rem 0;
}

.hero-carousel {
  position: relative;
}

.hero-carousel__viewport {
  position: absolute;
  inset: 0;
}

.hero-carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.hero-carousel__slide.is-active {
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
}

.hero-carousel__link {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-carousel__controls {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.75rem;
  pointer-events: none;
}

.hero-carousel__btn,
.product-carousel__nav {
  pointer-events: auto;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(10, 16, 24, 0.45);
  color: var(--white);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-carousel__btn:hover,
.hero-carousel__btn:focus-visible,
.product-carousel__nav:hover,
.product-carousel__nav:focus-visible {
  background: rgba(10, 16, 24, 0.72);
  outline: none;
}

.hero-carousel__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1rem;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 0.45rem;
}

.hero-carousel__dot {
  width: 0.65rem;
  height: 0.65rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.hero-carousel__dot.is-active,
.hero-carousel__dot:hover,
.hero-carousel__dot:focus-visible {
  background: var(--cyan);
  outline: none;
}

.product-carousel {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem;
}

.product-carousel__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.product-carousel__viewport:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.product-carousel__viewport::-webkit-scrollbar {
  display: none;
}

.product-carousel__track {
  display: flex;
  gap: 1rem;
}

.product-carousel__item {
  flex: 0 0 min(78%, 260px);
  scroll-snap-align: start;
}

.product-carousel .product-card.reveal,
.product-carousel .solution-card.reveal {
  opacity: 1;
  transform: none;
}

.product-carousel--solutions .product-carousel__item {
  flex: 0 0 min(78%, 280px);
}

.product-carousel__nav {
  border-color: rgba(22, 33, 50, 0.18);
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 6px 16px rgba(22, 33, 50, 0.12);
}

.product-carousel__nav:disabled {
  opacity: 0.35;
  cursor: default;
  box-shadow: none;
}

.brand-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
}

.brand-marquee__viewport {
  overflow: hidden;
}

.brand-marquee__track {
  display: flex;
  width: max-content;
  animation: brandMarquee 42s linear infinite;
}

.brand-marquee:hover .brand-marquee__track,
.brand-marquee:focus-within .brand-marquee__track {
  animation-play-state: paused;
}

.solutions-marquee {
  overflow: hidden;
  padding: 0.4rem 0 0.65rem;
  mask-image: linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
}

.solutions-marquee__viewport {
  overflow: hidden;
}

.solutions-marquee__track {
  display: flex;
  width: max-content;
  animation: solutionsMarquee 52s linear infinite;
}

.solutions-marquee:hover .solutions-marquee__track,
.solutions-marquee:focus-within .solutions-marquee__track {
  animation-play-state: paused;
}

.solutions-marquee__group {
  display: flex;
  gap: 1rem;
  padding-right: 1rem;
}

.solutions-marquee__item {
  flex: 0 0 min(78vw, 280px);
  width: min(78vw, 280px);
}

.brand-marquee__group {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  padding-right: 2.25rem;
}

.brand-marquee__item {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  min-width: 120px;
  min-height: 56px;
  padding: 0.35rem 0.5rem;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}

.brand-marquee__item:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 6px;
  border-radius: 4px;
}

.brand-marquee__item img {
  max-height: 52px;
  width: auto;
  max-width: 168px;
  object-fit: contain;
  filter: none;
}

.home-slides-admin {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.home-slides-admin__item {
  display: grid;
  gap: 0.85rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.home-slides-admin__preview img {
  width: 100%;
  max-width: 420px;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
  background: #eef2f4;
}

.training-videos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

.training-video {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.training-video--admin {
  border: 0;
  box-shadow: none;
  background: transparent;
}

.training-video__player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #111820;
}

.training-video__player iframe,
.training-video__player video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #111820;
}

.training-video__player p {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 1rem;
  color: rgba(255, 255, 255, 0.82);
  text-align: center;
}

.training-video__body {
  padding: 1rem 1.1rem 1.15rem;
}

.training-video__body h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: var(--navy);
  font-family: var(--font-display);
}

.training-video__body .muted {
  margin: 0;
}

@media (min-width: 720px) {
  .training-videos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-carousel__item {
    flex-basis: min(42%, 240px);
  }

  .product-carousel--solutions .product-carousel__item {
    flex-basis: min(48%, 320px);
  }

  .solutions-marquee__item {
    flex-basis: min(44vw, 320px);
    width: min(44vw, 320px);
  }
}

@media (min-width: 980px) {
  .product-carousel__item {
    flex-basis: calc((100% - 3rem) / 4);
  }

  .product-carousel--solutions .product-carousel__item {
    flex-basis: calc((100% - 2rem) / 3);
  }

  .solutions-marquee__item {
    flex-basis: min(30vw, 360px);
    width: min(30vw, 360px);
  }
}

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

  .brand-marquee__track,
  .solutions-marquee__track {
    animation: none;
  }

  .solutions-marquee__group[aria-hidden="true"] {
    display: none;
  }

  .solutions-marquee__viewport {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .solutions-marquee__viewport::-webkit-scrollbar {
    display: none;
  }

  .solutions-marquee__item {
    scroll-snap-align: start;
  }
}

@keyframes brandMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes solutionsMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.brand-marquee--stack {
  display: grid;
  gap: 0.75rem;
}

.brand-marquee__track--reverse {
  animation-name: brandMarqueeReverse;
}

@keyframes brandMarqueeReverse {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

.section-title-split {
  color: #6b7c86;
  font-weight: 500;
}

.section-title-split strong {
  color: var(--navy);
  font-weight: 800;
}

.section-head--ruled {
  border-bottom: 1px solid rgba(0, 202, 235, 0.45);
  padding-bottom: 1.1rem;
  margin-bottom: 1.6rem;
}

.value-card--icon {
  text-align: center;
  padding-top: 1.35rem;
}

.value-card__icon {
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  margin: 0 auto 0.85rem;
  color: var(--cyan-deep);
}

.value-card__icon svg {
  width: 2.35rem;
  height: 2.35rem;
}

.banner-strip--about {
  margin-top: 2rem;
}

.banner-strip--about img {
  max-height: 420px;
  aspect-ratio: 16 / 9;
}

.about-brands {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.about-brands__copy {
  margin: 0;
  color: #5b6d76;
  font-size: 1.02rem;
  line-height: 1.65;
  max-width: 42ch;
}

.about-brands__copy strong {
  color: var(--navy);
  font-weight: 700;
}

.brand-marquee--compact {
  width: 100%;
}

.brand-marquee--compact .brand-marquee__item {
  min-width: 96px;
  min-height: 44px;
}

.brand-marquee--compact .brand-marquee__item img {
  max-height: 40px;
  max-width: 128px;
}

.ally-grid {
  display: grid;
  gap: 1.75rem 1.25rem;
}

.ally-card {
  position: relative;
  background: transparent;
  border: 0;
  overflow: visible;
  color: var(--white);
  padding-bottom: 1.15rem;
}

.ally-card:hover {
  transform: none;
  box-shadow: none;
  border-color: transparent;
}

.ally-card__frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
}

.ally-card__media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #1a2733;
}

.ally-card__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 18, 26, 0.72) 0%, rgba(10, 18, 26, 0.22) 38%, rgba(10, 18, 26, 0.48) 100%);
  pointer-events: none;
}

.ally-card__body {
  position: absolute;
  left: 1.15rem;
  right: 1.15rem;
  top: 1.15rem;
  z-index: 1;
}

.ally-card__body h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
}

.ally-card__body p {
  margin: 0.45rem 0 0;
  max-width: 28ch;
  font-size: 0.92rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.88);
}

.ally-card__badge {
  position: absolute;
  right: 0.85rem;
  bottom: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 4.1rem;
  height: 4.1rem;
  border-radius: 14px;
  background: #111111;
  color: var(--white);
  box-shadow: 0 10px 24px rgba(10, 18, 26, 0.28);
}

.ally-card__badge svg {
  width: 1.85rem;
  height: 1.85rem;
}

.distributor-cover {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: calc(var(--radius) + 10px);
  min-height: 280px;
  box-shadow: var(--shadow);
}

.distributor-cover img {
  width: 100%;
  min-height: 280px;
  max-height: 440px;
  object-fit: cover;
  object-position: center 42%;
}

.distributor-cover__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 18, 28, 0.84) 0%, rgba(10, 18, 28, 0.48) 46%, rgba(10, 18, 28, 0.18) 100%);
  pointer-events: none;
}

.distributor-cover__copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 1.6rem 1.4rem 1.7rem;
  color: var(--white);
  max-width: 38rem;
}

.distributor-cover__copy h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--white);
  font-size: clamp(1.28rem, 2.6vw, 2rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.distributor-cover__copy p {
  margin: 0.7rem 0 0;
  font-size: 1.05rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.9);
  max-width: 38ch;
}

.section-head--center {
  justify-content: center;
  text-align: center;
}

.section-head--center p,
.section-head--center h2 {
  max-width: 28ch;
  margin-inline: auto;
}

.section--offer-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.1), transparent 32%),
    radial-gradient(circle at 88% 86%, rgba(0, 0, 0, 0.18), transparent 36%),
    linear-gradient(180deg, #0c6b76 0%, #0a5c66 100%);
  color: var(--white);
}

.section--offer-band::before,
.section--offer-band::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.section--offer-band::before {
  width: 28rem;
  height: 28rem;
  left: -8rem;
  top: -12rem;
}

.section--offer-band::after {
  width: 20rem;
  height: 20rem;
  right: -6rem;
  bottom: -8rem;
}

.section--offer-band .section-head h2 {
  color: var(--white);
}

.offer-carousel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.35rem;
}

.offer-carousel__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.offer-carousel__viewport:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.offer-carousel__viewport::-webkit-scrollbar {
  display: none;
}

.offer-carousel__track {
  display: flex;
  gap: 1rem;
  padding: 0.35rem 0 1.35rem;
}

.offer-carousel__item {
  flex: 0 0 min(82%, 17.5rem);
  scroll-snap-align: start;
}

.offer-carousel__nav {
  pointer-events: auto;
  width: 2.6rem;
  height: 2.6rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--white);
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.offer-carousel__nav:hover,
.offer-carousel__nav:focus-visible {
  color: var(--cyan);
  outline: none;
}

.offer-carousel__nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.offer-card {
  position: relative;
  background: transparent;
  border: 0;
  overflow: visible;
  color: var(--white);
  padding-bottom: 1.15rem;
  height: 100%;
}

.offer-card__frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 22px;
}

.offer-card__media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #12343a;
}

.offer-card__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 22, 28, 0.28) 0%, rgba(8, 22, 28, 0.42) 42%, rgba(8, 22, 28, 0.62) 100%);
  pointer-events: none;
}

.offer-card__body {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 1.4rem 1.15rem 2.2rem;
  text-align: center;
}

.offer-card__body p {
  margin: 0;
  max-width: 22ch;
  font-size: clamp(0.95rem, 1.7vw, 1.12rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--white);
  text-wrap: balance;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

.offer-card__badge {
  position: absolute;
  right: 0.85rem;
  bottom: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 10px;
  background: var(--white);
  color: #111111;
  box-shadow: 0 10px 24px rgba(10, 18, 26, 0.28);
}

.offer-card__badge svg {
  width: 1.7rem;
  height: 1.7rem;
}

.team-photo {
  border-radius: 22px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  border: 1px solid var(--line);
}

.team-photo img {
  width: 100%;
  aspect-ratio: 1244 / 432;
  object-fit: cover;
  object-position: center;
}

.team-slider {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  min-height: 260px;
  background:
    radial-gradient(ellipse at 22% 50%, #1d5560 0%, #123840 48%, #0c262d 100%);
}

.team-slider__viewport {
  min-height: 260px;
}

.team-slide {
  display: none;
  grid-template-columns: minmax(0, 1.15fr) minmax(140px, 0.85fr);
  align-items: stretch;
  min-height: 260px;
}

.team-slide.is-active {
  display: grid;
}

.team-slide__copy {
  display: flex;
  align-items: center;
  padding: 2.2rem 3.5rem 2.2rem 3.25rem;
}

.team-slide__copy h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3.4vw, 2.55rem);
  font-weight: 800;
  line-height: 1.15;
  color: rgba(176, 214, 220, 0.88);
}

.team-slide__photo {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 220px;
}

.team-slide__photo img {
  width: auto;
  max-width: 100%;
  height: 240px;
  object-fit: contain;
  object-position: bottom center;
  filter: grayscale(1);
}

.team-slider__controls {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.55rem;
  pointer-events: none;
}

.team-slider__btn {
  pointer-events: auto;
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.team-slider__btn:hover,
.team-slider__btn:focus-visible {
  color: var(--cyan);
  outline: none;
}

.form-card--wide {
  padding: 1.6rem 1.4rem 1.7rem;
}

.form-card--wide h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--navy);
}

.form-card--wide .lede {
  margin: 0.4rem 0 1.2rem;
  max-width: none;
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.human-check {
  max-width: 18.5rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f7fafb;
}

.human-check.is-invalid {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.16);
}

.human-check__label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  font-weight: 600;
  color: var(--navy);
}

.human-check__label input {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0;
  accent-color: var(--cyan-deep);
}

.human-check__error {
  margin: 0.4rem 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #c0392b;
}

.human-check--recaptcha {
  max-width: 22rem;
  background: transparent;
  border: 0;
  padding: 0;
}

@media (min-width: 900px) {
  .about-brands {
    grid-template-columns: minmax(16rem, 0.82fr) minmax(0, 1.35fr);
    gap: 2.25rem;
  }

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

  .form-card--wide {
    padding: 2rem 2.1rem 2.15rem;
  }

  .offer-carousel__item {
    flex: 0 0 calc((100% - 2rem) / 3.08);
  }

  .distributor-cover img {
    max-height: 480px;
  }
}

@media (max-width: 719px) {
  .distributor-cover__overlay {
    background:
      linear-gradient(180deg, rgba(10, 18, 28, 0.12) 0%, rgba(10, 18, 28, 0.78) 100%);
  }

  .team-slide {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .team-slide__copy {
    padding: 1.5rem 2.5rem 0.35rem;
    justify-content: center;
  }

  .team-slide__photo img {
    height: 200px;
  }

  .team-photo {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    border-radius: 0;
    border-inline: 0;
  }

  .team-photo img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }
}

.contact-channel-grid {
  display: grid;
  gap: 1rem;
  max-width: 46rem;
  margin-inline: auto;
}

.contact-channel {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 0%, rgba(0, 202, 235, 0.14), transparent 42%),
    linear-gradient(180deg, #101820 0%, #162132 100%);
  border: 1px solid rgba(0, 202, 235, 0.22);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow);
  color: var(--white);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.contact-channel:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 202, 235, 0.45);
  box-shadow: 0 16px 36px rgba(10, 18, 26, 0.24);
}

.contact-channel__media {
  overflow: hidden;
  background: #0b1218;
}

.contact-channel__media img {
  width: 100%;
  height: 148px;
  object-fit: cover;
  object-position: center 28%;
}

.contact-channel__body {
  padding: 0.85rem 1rem 1.05rem;
}

.contact-channel__body h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.02rem, 1.7vw, 1.18rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--white);
}

.contact-channel__body p {
  margin: 0.4rem 0 0.85rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  line-height: 1.5;
}

.contact-channel .btn-primary {
  min-width: 9.5rem;
  padding: 0.62rem 1.05rem;
  font-size: 0.92rem;
}

.showroom-grid {
  display: grid;
  gap: 1.15rem;
}

.showroom-card {
  text-align: center;
  padding: 1.35rem 1.1rem 1.5rem;
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 202, 235, 0.12), transparent 46%),
    #111111;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: calc(var(--radius) + 8px);
  color: var(--white);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.showroom-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 202, 235, 0.35);
}

.showroom-card__photo {
  display: grid;
  place-items: center;
  margin: 0 auto 0.95rem;
  max-width: 220px;
}

.showroom-card__photo img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: transparent;
}

.showroom-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
}

.showroom-card__kind {
  margin: 0.35rem 0 0.45rem;
  color: var(--cyan);
  font-weight: 700;
  font-size: 0.92rem;
}

.showroom-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  line-height: 1.45;
}

@media (min-width: 720px) {
  .contact-channel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem;
    max-width: 52rem;
  }

  .contact-channel__media img {
    height: 164px;
  }

  .showroom-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-marquee__track--reverse {
    animation: none;
    transform: none;
  }
}

/* Carrito */
.header-cart {
  position: relative;
}

.header-cart__badge {
  position: absolute;
  top: -0.2rem;
  right: -0.2rem;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  background: var(--cyan);
  color: var(--navy);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.15rem;
  text-align: center;
}

.header-cart__badge.is-empty {
  display: none;
}

.cart-drawer__backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(10, 16, 24, 0.45);
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 80;
  width: min(26rem, 100vw);
  height: 100vh;
  height: 100dvh;
}

/* Con el buscador abierto, el carrito queda bajo el campo de búsqueda y encima del banner. */
.cart-drawer.is-clear-of-search {
  top: var(--cart-search-offset, 0px);
  height: calc(100vh - var(--cart-search-offset, 0px));
  height: calc(100dvh - var(--cart-search-offset, 0px));
}

.cart-drawer__panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  box-shadow: -12px 0 40px rgba(10, 16, 24, 0.18);
}

.cart-drawer__head,
.cart-drawer__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--line);
}

.cart-drawer__head h2,
.cart-totals h2,
.checkout-card h2,
.checkout-summary h2 {
  margin: 0;
  color: var(--cyan-deep);
  font-size: 1.15rem;
}

.cart-drawer__body {
  flex: 1;
  overflow: auto;
  padding: 1rem 1.1rem;
  display: grid;
  gap: 0.85rem;
  align-content: start;
}

.cart-drawer__foot {
  border-bottom: 0;
  border-top: 1px solid var(--line);
  flex-direction: column;
  align-items: stretch;
}

.cart-drawer__total,
.cart-totals dl > div,
.checkout-items tr {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.cart-drawer__actions,
.checkout-actions {
  display: grid;
  gap: 0.55rem;
}

.cart-mini-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 0.7rem;
  align-items: start;
}

.cart-mini-item__info {
  display: grid;
  gap: 0.3rem;
  min-width: 0;
}

.cart-mini-item__info p {
  margin: 0;
}

.cart-mini-item__side {
  display: grid;
  justify-items: end;
  align-content: start;
  gap: 0.45rem;
}

.cart-mini-item img,
.cart-thumb {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: #f6f8fa;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.cart-mini-item__name,
.cart-product-name {
  color: var(--cyan-deep);
  font-weight: 700;
  text-decoration: none;
}

.cart-mini-item__name:hover,
.cart-mini-item__name:focus-visible,
.cart-product-name:hover,
.cart-product-name:focus-visible {
  text-decoration: underline;
  outline: none;
}

.cart-item-option {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
  color: #4b5563;
}

.cart-item-option__label {
  font-weight: 700;
  color: #344054;
}

.cart-item-option__select {
  max-width: 100%;
  min-width: 7.5rem;
  padding: 0.22rem 1.6rem 0.22rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23344054' d='M1.2.6 6 5.4 10.8.6 12 1.8 6 7.8 0 1.8z'/%3E%3C/svg%3E") no-repeat right 0.45rem center;
  background-size: 10px 7px;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  appearance: none;
  cursor: pointer;
}

.cart-item-option__select:hover,
.cart-item-option__select:focus-visible {
  border-color: var(--cyan-deep);
  outline: 2px solid rgba(0, 202, 235, 0.25);
  outline-offset: 1px;
}

.cart-item-option__select:disabled {
  opacity: 0.65;
  cursor: wait;
}

.cart-item-option__edit {
  color: var(--cyan-deep);
  font-weight: 700;
  text-decoration: none;
}

.cart-item-option__edit:hover,
.cart-item-option__edit:focus-visible {
  text-decoration: underline;
  outline: none;
}

.cart-remove {
  width: 1.6rem;
  height: 1.6rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.cart-remove:hover,
.cart-remove:focus-visible {
  color: #9b1c1c;
}

.cart-layout,
.checkout-layout {
  display: grid;
  gap: 1.25rem;
  min-width: 0;
}

.cart-layout > * {
  min-width: 0;
  max-width: 100%;
}

.cart-table-card,
.cart-totals,
.checkout-card,
.checkout-summary,
.cart-empty {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.1rem 1.15rem 1.2rem;
}

.cart-table-wrap {
  overflow-x: auto;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
}

.cart-table th,
.cart-table td {
  padding: 0.85rem 0.6rem;
  border-bottom: 1px solid #eef1f4;
  text-align: left;
  vertical-align: middle;
}

.cart-table th {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #667085;
}

.cart-product-desc {
  margin: 0.2rem 0 0;
  font-size: 0.86rem;
}

.cart-price {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  line-height: 1.25;
}

.cart-price .product-price__was {
  margin-right: 0;
  font-size: 0.82rem;
}

.cart-price__badge {
  display: inline-block;
  width: fit-content;
  margin-top: 0.1rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: #e7f6ee;
  color: #0b5c32;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.cart-mini-item__price {
  margin: 0.2rem 0 0;
}

.cart-product-name,
.cart-product-desc,
.cart-item-option {
  overflow-wrap: anywhere;
}

.pedido-estado {
  display: inline-block;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  background: #eef1f4;
  color: #4b5563;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.pedido-estado--enviado {
  background: rgba(0, 202, 235, 0.16);
  color: var(--cyan-deep);
}

.pedido-price-old {
  text-decoration: line-through;
  color: #667085;
  font-weight: 500;
  margin-right: 0.35rem;
}

.pedido-price-change {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.2rem;
}

.pedido-price-badge {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.08rem 0.4rem;
  border-radius: 999px;
  background: #fff6e5;
  color: #8a5a00;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.cart-mini-item--price-changed {
  outline: 1px solid #f3d59a;
  outline-offset: 4px;
  border-radius: 10px;
}

.pedido-actions-cell {
  vertical-align: middle;
  width: 1%;
  white-space: nowrap;
}

.pedido-row-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.35rem;
}

.pedido-row-actions form {
  display: inline-flex;
  margin: 0;
}

.pedido-ok-items {
  list-style: none;
  margin: 1rem 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.pedido-ok-items li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.92rem;
}

.checkout-lines {
  display: grid;
  gap: 0.85rem;
  margin: 0.85rem 0 0;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}

.cart-totals dl,
.checkout-items {
  width: 100%;
  margin: 0.85rem 0 1rem;
}

.cart-totals dt,
.checkout-items th {
  font-weight: 500;
}

.cart-totals__grand,
.checkout-items__total th,
.checkout-items__total td {
  font-weight: 800;
  color: var(--navy);
}

.cart-checkout-btn,
.checkout-add-products,
.checkout-actions .btn-primary {
  width: 100%;
}

.cart-totals .cart-checkout-btn + .cart-checkout-btn {
  margin-top: 0.55rem;
}

.checkout-add-products {
  margin-top: 0.85rem;
}

.checkout-add-products__label {
  margin: 0 0 0.4rem;
  font-weight: 700;
  color: var(--navy);
}

.search-form.search-form--pedido {
  display: flex;
  width: 100%;
  max-width: none;
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: none;
  z-index: 8;
}

.search-form.search-form--pedido input {
  color: var(--ink);
}

.search-form.search-form--pedido input::placeholder {
  color: #6b7785;
}

.search-form.search-form--pedido:focus-within {
  border-color: rgba(0, 168, 198, 0.7);
  box-shadow: 0 0 0 3px rgba(0, 202, 235, 0.18);
}

.checkout-summary .search-suggest,
.cart-add-products .search-suggest {
  width: 100%;
  max-width: none;
  z-index: 12;
}

.cart-add-products {
  margin: 0 0 1rem;
}

.cart-edit-billing {
  margin-top: 1.25rem;
}

.cart-edit-actions {
  max-width: 22rem;
  margin-top: 1rem;
}

.cart-empty {
  text-align: center;
}

.checkout-org-name {
  margin: 0 0 1rem;
}

.checkout-contacto-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
}

.checkout-contacto-head label {
  margin: 0;
}

.checkout-contacto-head .btn {
  flex: 0 0 auto;
}

.checkout-contacto-head .btn[hidden] {
  display: none !important;
}

.checkout-new-contacto {
  margin-top: 0.85rem;
}

.checkout-new-contacto[hidden] {
  display: none !important;
}

.form-field > label {
  display: inline-flex;
  align-items: baseline;
  gap: 0.2rem;
}

.checkout-card .required-mark,
.checkout-card label span[aria-hidden="true"] {
  color: var(--cyan-deep);
}

.checkout-ship-choice {
  border: 0;
  padding: 0;
  margin: 0 0 1rem;
  display: grid;
  gap: 0.55rem;
}

.checkout-radio,
.checkout-privacy,
.checkout-save-hint {
  font-weight: 500;
  font-size: 0.92rem;
}

.checkout-privacy {
  color: #4b5563;
  line-height: 1.45;
}

.checkout-items td {
  text-align: right;
  white-space: nowrap;
}

body.cart-drawer-open {
  overflow: hidden;
}

@media (max-width: 899px) {
  .cart-page .container,
  .cart-table-card,
  .cart-totals {
    min-width: 0;
    max-width: 100%;
  }

  .cart-table-card,
  .cart-totals {
    padding: 0.85rem 0.75rem 1rem;
  }

  .cart-table-wrap {
    overflow: visible;
  }

  .cart-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .cart-table,
  .cart-table tbody,
  .cart-table tr,
  .cart-table td {
    display: block;
    width: auto;
  }

  .cart-table tr {
    display: grid;
    grid-template-columns: auto 4.5rem minmax(0, 1fr);
    grid-template-areas:
      "remove thumb product"
      "remove thumb price"
      ". thumb qty"
      ". thumb subtotal";
    column-gap: 0.65rem;
    row-gap: 0.3rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid #eef1f4;
  }

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

  .cart-table td {
    min-width: 0;
    padding: 0;
    border-bottom: 0;
  }

  .cart-table td:nth-child(1) { grid-area: remove; align-self: start; }
  .cart-table td:nth-child(2) { grid-area: thumb; }
  .cart-table td:nth-child(3) { grid-area: product; }
  .cart-table td:nth-child(4) { grid-area: price; }
  .cart-table td:nth-child(5) { grid-area: qty; }
  .cart-table td:nth-child(6) { grid-area: subtotal; font-weight: 700; }

  .cart-table td:nth-child(4)::before,
  .cart-table td:nth-child(5)::before,
  .cart-table td:nth-child(6)::before {
    display: block;
    margin-bottom: 0.1rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #667085;
  }

  .cart-table td:nth-child(4)::before { content: "Precio"; }
  .cart-table td:nth-child(5)::before { content: "Cantidad"; }
  .cart-table td:nth-child(6)::before { content: "Subtotal"; }

  .cart-thumb {
    width: 4.5rem;
    height: 4.5rem;
  }

  .cart-item-option__select {
    min-width: 0;
    width: 100%;
  }

  .cart-totals .price-mode-switch {
    flex-wrap: wrap;
    row-gap: 0.45rem;
  }
}

@media (min-width: 900px) {
  .cart-layout,
  .checkout-layout,
  .checkout-page .form-grid.two {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  }

  .checkout-page .form-grid.two {
    grid-template-columns: 1fr 1fr;
  }

  .checkout-layout {
    align-items: start;
  }

  .cart-totals,
  .checkout-summary {
    position: sticky;
    top: calc(var(--header-h, 5rem) + 1rem);
  }
}

.status-pill--activa {
  background: #e6f8ef;
  color: #146c43;
  border-color: #b7ebd0;
}

.status-pill--programada {
  background: rgba(0, 202, 235, 0.12);
  color: var(--navy);
  border-color: rgba(0, 202, 235, 0.35);
}

.status-pill--finalizada {
  background: #f3f4f6;
  color: #4b5563;
}

.status-pill--inactiva {
  background: #fdecec;
  color: #9b1c1c;
  border-color: #f3c1c1;
}

.campana-tipo {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.campana-tipo legend {
  padding: 0;
  margin: 0 0 0.45rem;
  font-weight: 600;
  font-size: 0.94rem;
}

.campana-tipo__options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.campana-tipo__option {
  margin: 0;
}

[data-campana-productos] .pr-chips {
  margin: 0 0 0.55rem;
}

.categorias-layout {
  display: grid;
  gap: 1rem;
  align-items: start;
}

.categorias-panel h2 {
  margin: 0;
  font-size: 1.08rem;
  color: var(--navy);
  font-family: var(--font-display);
}

.categorias-tree {
  margin-top: 0.85rem;
  max-height: min(70vh, 42rem);
  overflow: auto;
}

.categorias-tree__list {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
}

.categorias-tree__list--nested {
  margin: 0.15rem 0 0 0.85rem;
  padding-left: 0.65rem;
  border-left: 1px solid var(--line);
}

.categorias-tree__link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
}

.categorias-tree__link:hover,
.categorias-tree__link:focus-visible {
  background: rgba(0, 202, 235, 0.1);
}

.categorias-tree__link.is-selected {
  background: rgba(0, 202, 235, 0.18);
  color: var(--navy);
  font-weight: 700;
}

.categorias-tree__link--root {
  margin-bottom: 0.25rem;
}

.categorias-tree__name {
  min-width: 0;
}

.categorias-tree__count {
  flex-shrink: 0;
  color: #5b6d76;
  font-size: 0.78rem;
  font-weight: 600;
}

.categorias-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.4rem;
  margin: 0 0 0.85rem;
  font-size: 0.9rem;
}

.categorias-crumbs a {
  color: var(--navy);
}

.categorias-order {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.categorias-order__item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.65rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.categorias-order__item.is-dragging {
  opacity: 0.55;
}

.categorias-order__item.is-inactive {
  opacity: 0.55;
}

.categorias-create {
  margin: 0 0 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.categorias-create__title {
  margin: 0 0 0.65rem;
  font-size: 1rem;
}

.categorias-foto {
  margin: 0.75rem 0 0;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.categorias-foto legend {
  padding: 0 0.35rem;
  font-weight: 700;
  color: var(--navy);
}

.categorias-status:empty {
  display: none;
}

.categorias-status {
  margin: 0 0 0.75rem;
  color: var(--navy);
  font-weight: 600;
}

.categorias-order__pos {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--navy);
  text-align: center;
}

.categorias-order__handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #5b6d76;
  cursor: grab;
}

.categorias-order__handle:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.categorias-order__thumb {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
}

.categorias-order__thumb--empty {
  display: block;
  background: #eef2f4;
}

.categorias-order__meta {
  min-width: 0;
  display: grid;
  gap: 0.1rem;
  flex: 1 1 12rem;
}

.categorias-order__name {
  font-weight: 700;
  color: var(--navy);
}

.categorias-order__slug {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.categorias-order__moves {
  display: inline-flex;
  gap: 0.2rem;
}

@media (max-width: 799px) {
  .categorias-order__handle {
    display: none;
  }
}

@media (min-width: 900px) {
  .categorias-layout {
    grid-template-columns: minmax(16rem, 22rem) minmax(0, 1fr);
  }

  .categorias-panel:first-child {
    position: sticky;
    top: calc(var(--header-h, 5rem) + 1rem);
  }
}

/* Cotizaciones tienda */
.qapp-page {
  padding-bottom: 2rem;
}

.qapp-toolbar,
.qapp-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.qapp-toolbar__title,
.qapp-filters__label {
  margin: 0;
  font-weight: 700;
  color: var(--navy);
}

.qapp-toolbar__actions,
.qapp-filters__fields {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.qapp-filters select,
.qapp-fields input,
.qapp-trm input,
.qapp-search input,
.qapp-modal input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--navy);
  padding: 0.55rem 0.75rem;
  font: inherit;
}

.qapp-filters select:focus,
.qapp-fields input:focus,
.qapp-trm input:focus,
.qapp-search input:focus,
.qapp-num:focus,
.qapp-modal input:focus,
.qapp-user-filter .search-select__input:focus {
  outline: 2px solid rgba(0, 202, 235, 0.45);
  border-color: var(--cyan);
}

.qapp-modal__dialog--form input {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0.75rem 0.9rem;
}

.qapp-modal__dialog--form .qapp-fields label {
  font-size: 1rem;
  letter-spacing: 0.02em;
  gap: 0.45rem;
}

.qapp-modal__dialog--form.qapp-modal__dialog--project {
  width: min(100%, 52rem);
  max-height: min(90vh, 54rem);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: 0;
}

.qapp-modal__dialog--project > h2,
.qapp-modal__dialog--project > .muted {
  flex: none;
}

.qapp-party-form {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.qapp-modal__dialog--project > .qapp-party-form > .qapp-fields {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  align-content: start;
  padding-bottom: 0.85rem;
}

.qapp-modal__dialog--form.qapp-modal__dialog--project .qapp-modal__actions {
  flex: none;
  position: sticky;
  bottom: 0;
  z-index: 4;
  margin: 0 -1.1rem 0;
  padding: 0.85rem 1.1rem calc(0.95rem + env(safe-area-inset-bottom, 0px));
  background: #fff;
  border-top: 1px solid var(--line);
}

.qapp-modal__dialog--project .qapp-fields {
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

.qapp-modal__dialog--project .is-wide,
.qapp-modal__dialog--project fieldset {
  grid-column: 1 / -1;
}

.qapp-modal__dialog--project fieldset {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem 1rem;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.qapp-modal__dialog--project fieldset[hidden],
.qapp-modal__dialog--project [hidden] {
  display: none !important;
}

.qapp-modal__dialog--project .qapp-lookup__list {
  position: static;
  top: auto;
  margin-top: 0.35rem;
  max-height: 12rem;
}

.qapp-kicker {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #64748b;
}

.qapp-choice {
  display: flex;
  gap: 0.5rem;
}

.qapp-choice button {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--navy);
  font: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 0.75rem 0.9rem;
  cursor: pointer;
}

.qapp-choice button[aria-pressed="true"] {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.qapp-choice button:focus-visible {
  outline: 2px solid rgba(0, 202, 235, 0.45);
  outline-offset: 2px;
}

.qapp-modal__dialog--form select:disabled {
  background: var(--fog, #f4f7fb);
  cursor: default;
}

.qapp-modal__dialog--project fieldset.qapp-checks-field {
  grid-template-columns: 1fr;
  gap: 0.45rem;
}

.qapp-checks-field legend {
  padding: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.qapp-modal .multi-select {
  width: 100%;
  min-width: 0;
}

.qapp-modal .multi-select__trigger {
  padding: 0.75rem 0.9rem;
  background: var(--paper);
  color: var(--navy);
  font-size: 1.05rem;
  font-weight: 600;
}

.qapp-modal .multi-select__value {
  font-weight: 600;
}

.qapp-modal .multi-select__panel {
  position: static;
  min-width: 0;
  margin-top: 0.35rem;
  box-shadow: none;
}

.qapp-modal__dialog--form .qapp-fields .multi-select__option {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--navy);
}

.qapp-modal .multi-select__option input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
  accent-color: var(--navy, #0b1f33);
}

.qapp-modal__dialog--form .multi-select__search {
  padding: 0.5rem 0.7rem;
  font-size: 0.98rem;
  font-weight: 600;
}

.qapp-modal .multi-select__empty {
  padding: 0.45rem 0.5rem;
  color: #64748b;
  font-size: 0.92rem;
}

.qapp-modal .multi-select .qapp-chips {
  margin-top: 0.45rem;
}

.qapp-modal .multi-select .qapp-chips:empty {
  display: none;
}

.qapp-modal__dialog--form select,
.qapp-modal__dialog--form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--navy);
  padding: 0.75rem 0.9rem;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

.qapp-modal__dialog--form textarea {
  min-height: 6rem;
  resize: vertical;
}

.qapp-modal__dialog--form select:focus,
.qapp-modal__dialog--form textarea:focus {
  outline: 2px solid rgba(0, 202, 235, 0.45);
  border-color: var(--cyan);
}

.qapp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.qapp-chips:empty {
  display: none;
}

.qapp-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.4rem 0.28rem 0.7rem;
  border-radius: 999px;
  background: var(--paper, #f4f7fb);
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 700;
}

.qapp-chip button {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  line-height: 1;
  padding: 0.15rem 0.35rem;
  cursor: pointer;
  border-radius: 999px;
}

.qapp-chip button:focus-visible {
  outline: 2px solid rgba(0, 202, 235, 0.45);
  outline-offset: 2px;
}

@media (max-width: 720px) {
  .qapp-modal__dialog--project .qapp-fields,
  .qapp-modal__dialog--project fieldset {
    grid-template-columns: 1fr;
  }
}

.qapp-filters__user {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1 1 18rem;
  min-width: min(100%, 18rem);
}

.qapp-filters__user .qapp-user-filter {
  flex: 1 1 auto;
  min-width: 12rem;
  max-width: none;
}

.qapp-filters__user .btn {
  flex: 0 0 auto;
}

.qapp-user-filter {
  position: relative;
  flex: 1 1 16rem;
  min-width: 14rem;
  max-width: 22rem;
}

.qapp-user-filter.is-open {
  z-index: 30;
}

.qapp-user-filter .search-select__input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--navy);
  padding: 0.55rem 2.2rem 0.55rem 0.75rem;
  font: inherit;
}

.qapp-user-filter .search-select__input::-webkit-search-cancel-button,
.qapp-user-filter .search-select__input::-webkit-search-decoration {
  appearance: none;
}

.qapp-check {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  color: var(--navy);
}

.qapp-currency {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 4px;
  border-radius: 999px;
  background: #1c2838;
  line-height: 1;
}

.qapp-currency__btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 4.2rem;
  height: 2.15rem;
  margin: 0;
  padding: 0 1rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.62);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  cursor: pointer;
  user-select: none;
}

.qapp-currency__btn:hover:not(.is-active) {
  color: #fff;
}

.qapp-currency__btn.is-active {
  background: var(--cyan);
  color: var(--navy);
}

.qapp-currency__btn:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.qapp-stats,
.qapp-panels,
.qapp-layout {
  display: grid;
  gap: 1rem;
}

.qapp-stats {
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  margin-bottom: 1rem;
}

@media (max-width: 640px) {
  .qapp-stats {
    grid-template-columns: 1fr;
  }
}

.qapp-stat,
.qapp-side .admin-card,
.qapp-doc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}

.qapp-side .admin-card {
  overflow: visible;
}

.qapp-stat h2,
.qapp-side h2,
.qapp-panels h2 {
  margin: 0 0 0.45rem;
  font-size: 0.95rem;
  color: var(--navy);
}

.qapp-side h2 {
  font-size: 1.15rem;
}

.qapp-stat p {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--navy);
}

.qapp-stat {
  box-shadow: 0 10px 28px rgba(22, 33, 50, 0.06);
}

.qapp-stat--center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 100%;
  padding: 1.35rem 1.1rem 1.5rem;
}

.qapp-stat__icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 0.65rem;
  border-radius: 999px;
  background: rgba(0, 202, 235, 0.14);
  color: var(--cyan-deep);
}

.qapp-stat--center h2 {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 600;
  color: #6b7c86;
}

.qapp-stat--center p {
  margin-top: 0.2rem;
  font-size: 1.85rem;
  letter-spacing: -0.03em;
}

.qapp-panel-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.qapp-panel-title__icon {
  display: inline-flex;
  color: var(--cyan-deep);
}

.qapp-top .admin-table {
  table-layout: fixed;
}

.qapp-top .admin-table th:first-child,
.qapp-top .admin-table td:first-child {
  width: 68%;
}

.qapp-top .admin-table td:first-child strong {
  overflow-wrap: anywhere;
}

.qapp-top .admin-table th {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8a9aa3;
}

.qapp-top .admin-table th:last-child,
.qapp-top .admin-table td:last-child {
  text-align: right;
}

.qapp-top .admin-table td .muted {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.qapp-top .admin-table td:last-child {
  color: var(--cyan-deep);
  font-weight: 800;
  white-space: nowrap;
}

.qapp-stat .muted,
.qapp-panels .muted {
  font-size: 0.95rem;
  font-weight: 500;
}

.qapp-rank {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.qapp-rank__label {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.qapp-rank__track {
  height: 0.4rem;
  border-radius: 999px;
  background: var(--fog);
  overflow: hidden;
}

.qapp-rank__bar {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--navy), var(--cyan));
}

.qapp-panels {
  grid-template-columns: minmax(16rem, 22rem) minmax(0, 1fr);
}

.qapp-table-wrap {
  overflow-x: auto;
  max-width: 100%;
}

.qapp-lines {
  width: 100%;
}

.qapp-lines th,
.qapp-lines td {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.qapp-lines .qapp-num {
  box-sizing: border-box;
  width: 5.5rem;
  max-width: 100%;
}

.qapp-layout {
  align-items: start;
}

@media (min-width: 981px) {
  .qapp-layout {
    grid-template-columns: minmax(16rem, 20rem) minmax(0, 1fr);
  }

  .qapp-side .qapp-fields {
    grid-template-columns: 1fr;
  }

  .qapp-lines {
    table-layout: fixed;
  }

  .qapp-lines th:nth-child(1),
  .qapp-lines td:nth-child(1) { width: 7%; }

  .qapp-lines th:nth-child(2),
  .qapp-lines td:nth-child(2) { width: 13%; }

  .qapp-lines th:nth-child(3),
  .qapp-lines td:nth-child(3) { width: 27%; }

  .qapp-lines th:nth-child(4),
  .qapp-lines td:nth-child(4),
  .qapp-lines th:nth-child(6),
  .qapp-lines td:nth-child(6),
  .qapp-lines th:nth-child(7),
  .qapp-lines td:nth-child(7) { width: 8%; }

  .qapp-lines th:nth-child(5),
  .qapp-lines td:nth-child(5),
  .qapp-lines th:nth-child(8),
  .qapp-lines td:nth-child(8) { width: 11%; }

  .qapp-lines th:nth-child(9),
  .qapp-lines td:nth-child(9) {
    width: 7%;
    padding-inline: 0.2rem;
  }

  .qapp-lines .qapp-num {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
}

.qapp-side {
  display: grid;
  gap: 1rem;
}

.qapp-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.qapp-fields--stack {
  grid-template-columns: 1fr;
  margin-top: 0.9rem;
}

.qapp-lookup,
.qapp-field {
  position: relative;
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}

.qapp-field__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-width: 0;
}

.qapp-side .qapp-fields .qapp-field__head label,
.qapp-fields .qapp-field__head label,
.qapp-modal__dialog--form .qapp-field__head label {
  display: inline-flex;
  align-items: baseline;
  gap: 0.2rem;
  min-width: 0;
}

.qapp-create {
  flex: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  line-height: 1;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
}

.qapp-create:hover,
.qapp-create:focus-visible {
  border-color: var(--navy);
  outline: 2px solid rgba(0, 202, 235, 0.45);
  outline-offset: 2px;
}

.qapp-fields input.is-invalid {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.16);
}

.qapp-fields input[readonly] {
  background: var(--fog, #f4f7fb);
  cursor: default;
}

.qapp-lookup__list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% - 0.15rem);
  z-index: 40;
  list-style: none;
  margin: 0;
  padding: 0.3rem;
  max-height: 16rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.qapp-lookup__list[hidden] {
  display: none;
}

.qapp-lookup__option {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--navy);
  font: inherit;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  padding: 0.45rem 0.55rem;
  cursor: pointer;
}

.qapp-lookup__option small {
  display: block;
  margin-top: 0.1rem;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 600;
}

.qapp-lookup__option:hover,
.qapp-lookup__option:focus-visible,
.qapp-lookup__option.is-active {
  background: var(--paper);
  outline: none;
}

.qapp-lookup__empty {
  padding: 0.45rem 0.55rem;
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

.qapp-fields label,
.qapp-trm label,
.qapp-block__tools label {
  display: grid;
  gap: 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

.qapp-side .qapp-fields label,
.qapp-side .qapp-trm label {
  gap: 0.4rem;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
}

.qapp-side .qapp-fields input,
.qapp-side .qapp-trm input {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  padding: 0.75rem 0.9rem;
}

.qapp-trm {
  margin-top: 0.8rem;
}

.qapp-cats {
  display: grid;
  gap: 0.45rem;
}

.qapp-cats__hint {
  margin: 0 0 0.7rem;
  color: #64748b;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
  text-transform: none;
  letter-spacing: 0;
}

.qapp-cat {
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: var(--paper);
  color: #64748b;
  border-radius: 12px;
  padding: 0.9rem 1rem;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.3;
  cursor: pointer;
}

.qapp-cat.is-active {
  background: var(--navy);
  color: var(--cyan);
  border-color: var(--navy);
}

.qapp-doc__head,
.qapp-meta,
.qapp-block__head,
.qapp-summary p,
.qapp-bar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.qapp-doc__head {
  align-items: flex-start;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--fog);
}

.qapp-doc__brand {
  margin: 0;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--navy);
}

.qapp-doc__kicker {
  margin: 0.15rem 0;
  color: var(--cyan-deep);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.qapp-doc__id {
  text-align: right;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.55rem 0.8rem;
}

.qapp-doc__id span {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
}

.qapp-doc__id strong {
  color: var(--navy);
  font-size: 1.15rem;
}

.qapp-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 0.8rem 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  margin: 0 0 1.2rem;
}

.qapp-meta dt {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
}

.qapp-meta dd {
  margin: 0.15rem 0 0;
  font-weight: 700;
  color: var(--navy);
  overflow-wrap: anywhere;
}

.qapp-block {
  margin-top: 1.4rem;
}

.qapp-block__head {
  align-items: center;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--navy);
  padding-bottom: 0.45rem;
  margin-bottom: 0.7rem;
}

.qapp-block__head h3 {
  margin: 0;
  color: var(--navy);
}

.qapp-block__tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  margin-left: auto;
}

.qapp-block__tools label {
  grid-template-columns: auto auto auto;
  align-items: center;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.75rem;
}

.qapp-block__tools .qapp-num {
  width: 2.6rem;
  padding: 0.25rem 0.2rem;
}

.qapp-add {
  width: 1.65rem;
  height: 1.65rem;
  min-height: 0;
  padding: 0;
  border-radius: 8px;
  font-size: 1.15rem;
  line-height: 1;
  box-shadow: none;
}

.qapp-search__tools {
  margin: 0.85rem 0 0;
}

.qapp-custom {
  margin: 0.75rem 0 0;
  padding: 0.85rem 0 0.2rem;
  border-top: 1px solid var(--line);
}

.qapp-ref {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.qapp-external {
  display: inline-flex;
  flex: none;
  color: #b45309;
}

.qapp-external-note {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.8rem;
  color: #8a5a00;
  font-size: 0.88rem;
  font-weight: 700;
}

.qapp-custom h3 {
  margin: 0 0 0.35rem;
  color: var(--navy);
  font-size: 1.05rem;
}

.qapp-custom .qapp-fields {
  margin-top: 0.75rem;
}

.qapp-custom__wide {
  grid-column: 1 / -1;
}

.qapp-custom textarea {
  width: 100%;
  min-height: 4.2rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--navy);
  padding: 0.55rem 0.75rem;
  font: inherit;
  resize: vertical;
}

.qapp-custom textarea:focus {
  outline: 2px solid rgba(0, 202, 235, 0.45);
  border-color: var(--cyan);
}

.qapp-custom__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.75rem;
}

.qapp-num {
  width: 5.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.25rem 0.35rem;
  text-align: right;
  font-weight: 700;
  color: var(--navy);
}

#qapp-labor {
  width: 3.4rem;
}

.qapp-num--discount {
  color: #047857;
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.qapp-empty {
  margin: 0;
  padding: 1.2rem;
  text-align: center;
  color: #94a3b8;
  background: rgba(244, 247, 249, 0.7);
  border: 1px dashed var(--line);
  border-radius: 12px;
}

.qapp-line__photo-cell {
  width: 4.5rem;
  min-width: 0;
  vertical-align: middle;
}

.qapp-line__photo {
  width: 100%;
  max-width: 64px;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: block;
}

.qapp-lines td .muted,
.qapp-discount {
  display: block;
}

.qapp-price-old {
  display: block;
  color: #667085;
  font-weight: 500;
  text-decoration: line-through;
  font-size: 0.78rem;
}

.qapp-price-old[hidden] {
  display: none;
}

.qapp-discount[hidden] {
  display: none;
}

.qapp-discount {
  margin-top: 0.3rem;
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  width: fit-content;
}

.qapp-docbar {
  margin-top: 1.2rem;
  padding: 0.85rem 1rem;
  background: rgba(22, 33, 50, 0.96);
  color: #fff;
  border-radius: 14px;
}

.qapp-docbar p {
  margin: 0;
}

.qapp-docbar__main {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.55rem 0.85rem;
}

.qapp-docbar strong {
  font-size: 1.35rem;
  color: var(--cyan);
}

.qapp-docbar .muted,
.qapp-docbar__detail {
  color: #cbd5e1;
  font-size: 0.78rem;
}

.qapp-docbar__detail {
  margin-top: 0.15rem;
}

.qapp-summary {
  margin-left: auto;
  margin-right: 0;
  margin-top: 1.2rem;
  width: min(100%, 26rem);
  max-width: 26rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
}

.qapp-summary__margins {
  margin: 0.45rem 0 0.65rem;
  padding: 0.55rem 0 0.15rem;
  border-top: 1px solid var(--line);
}

.qapp-summary__margins-title,
.qapp-summary__margin-cat {
  margin: 0;
  color: var(--navy);
}

.qapp-summary__margins-title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

.qapp-summary__margin-group + .qapp-summary__margin-group {
  margin-top: 0.55rem;
}

.qapp-summary__margin-cat {
  margin: 0.35rem 0 0.2rem;
  font-size: 0.82rem;
  font-weight: 800;
}

.qapp-summary__margin {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 5.5rem auto;
  align-items: center;
  gap: 0.35rem;
  margin: 0.28rem 0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: var(--navy);
}

.qapp-summary__margin span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qapp-summary p {
  margin: 0.35rem 0;
  align-items: center;
  color: var(--ink-soft);
}

.qapp-summary p.qapp-summary__total,
.qapp-summary p.qapp-summary__total span,
.qapp-summary p.qapp-summary__total strong {
  background: var(--navy);
  color: #fff;
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
}

.qapp-summary p.qapp-summary__total span,
.qapp-summary p.qapp-summary__total strong {
  background: transparent;
  padding: 0;
  border-radius: 0;
}

.qapp-legal {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: #64748b;
  font-size: 0.72rem;
  line-height: 1.45;
}

.qapp-legal p {
  margin: 0 0 0.4rem;
}

.qapp-doc {
  position: relative;
  min-width: 0;
  padding-bottom: 5.75rem;
}

.qapp--readonly .qapp-doc {
  padding-bottom: 1.1rem;
}

.qapp-doc__body {
  min-width: 0;
}

.qapp-doc > .qapp-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  margin: 0;
  flex-wrap: wrap;
  border-radius: 0 0 var(--radius) var(--radius);
}

.qapp-bar {
  z-index: 30;
  align-items: center;
  padding: 0.8rem 1rem;
  background: rgba(22, 33, 50, 0.96);
  color: #fff;
  box-shadow: 0 -10px 30px rgba(22, 33, 50, 0.25);
}

.qapp-bar.is-floating {
  position: fixed;
  right: auto;
  bottom: auto;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(22, 33, 50, 0.28);
}

.qapp-bar.is-hidden {
  visibility: hidden;
  pointer-events: none;
}

.qapp-bar .muted {
  color: #cbd5e1;
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
}

.qapp-bar__totals p {
  margin: 0;
}

.qapp-bar__totals strong {
  font-size: 1.35rem;
  color: var(--cyan);
}

.qapp-bar__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.qapp-bar__actions .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.qapp-bar__actions .btn-ghost:hover,
.qapp-bar__actions .btn-ghost:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.qapp-finish {
  position: relative;
}

.qapp-finish__menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.45rem);
  min-width: 14rem;
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.qapp-finish__menu button {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--fog);
  padding: 0.75rem 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.qapp-finish__menu button:hover,
.qapp-finish__menu button:focus {
  background: var(--paper);
}

.qapp-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 4vh 1rem 1rem;
}

.qapp-modal[hidden] {
  display: none;
}

.qapp-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

.qapp-modal__dialog {
  position: relative;
  width: min(100%, 56rem);
  max-height: min(84vh, 46rem);
  overflow: auto;
  background: #fff;
  border-radius: 20px;
  padding: 1rem 1.1rem 1.2rem;
  box-shadow: var(--shadow);
}

.qapp-modal__dialog--small {
  width: min(100%, 28rem);
}

.qapp-modal__dialog--form {
  width: min(100%, 34rem);
  overflow: visible;
}

.qapp-modal__dialog--form .qapp-modal__actions {
  margin-top: 1rem;
}

.qapp-modal--composer {
  align-items: center;
  padding: 2vh 1rem;
}

.qapp-modal__dialog--wide {
  width: min(96vw, 92rem);
  height: min(94vh, 60rem);
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  padding: 0.85rem 1.1rem 0;
  overflow: visible;
}

.qapp-modal__dialog--wide > .qapp-modal__head {
  flex: none;
  margin-bottom: 0.35rem;
}

.qapp-modal__dialog--wide > .qapp {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding-bottom: 0.85rem;
}

.qapp-modal__dialog--wide .qapp-doc > .qapp-bar {
  z-index: 5;
}

.qapp-modal--layer {
  z-index: 80;
}

.qapp-modal__head,
.qapp-modal__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.qapp-modal__head h2,
.qapp-modal__dialog h2 {
  margin: 0;
  color: var(--navy);
}

.qapp-search {
  display: block;
  margin: 0.8rem 0 0.4rem;
}

.qapp-search__hint {
  margin: 0 0 0.7rem;
}

.qapp-template-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0.8rem;
  margin-top: 0.9rem;
}

.qapp-template {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.9rem;
  background: var(--paper);
}

.qapp-template h3 {
  margin: 0 0 0.3rem;
  color: var(--navy);
}

.qapp-toast {
  position: fixed;
  top: 5.5rem;
  right: 1rem;
  z-index: 70;
  background: var(--navy);
  color: #fff;
  border: 1px solid rgba(0, 202, 235, 0.35);
  border-radius: 12px;
  padding: 0.7rem 0.95rem;
  font-weight: 700;
  box-shadow: var(--shadow);
}

.qapp-print-only {
  display: none;
}

@media (max-width: 980px) {
  .qapp-panels,
  .qapp-layout,
  .qapp-legal,
  .qapp-fields {
    grid-template-columns: 1fr;
  }

  .qapp-bar {
    flex-wrap: wrap;
  }
}

@media print {
  .site-header,
  .site-footer,
  .page-hero,
  .qapp-screen-only,
  .toast-root,
  #page-loader,
  .cart-drawer,
  .trm-badge {
    display: none !important;
  }

  .qapp-print-only {
    display: inline;
  }

  .qapp-num,
  .qapp-block__tools,
  .qapp-lines .btn {
    display: none !important;
  }

  .qapp-page {
    padding: 0;
  }

  .qapp-doc {
    border: 0;
    box-shadow: none;
    padding-bottom: 1rem !important;
  }

  .qapp-docbar {
    break-inside: avoid;
  }
}
