:root {
  --navy: #06162a;
  --navy2: #0a2342;
  --blue: #0878e8;
  --cyan: #10aee9;
  --green: #98d719;
  --green2: #66b616;
  --ink: #132033;
  --muted: #6e7785;
  --line: #e4e9ef;
  --white: #fff;
  --shadow: 0 14px 34px rgba(14, 32, 54, .13);
  --shell: 1180px
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background: #f8fafc
}

button,
input,
select {
  font: inherit
}

.shell {
  width: min(calc(100% - 40px), var(--shell));
  margin: auto
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(90deg, #04101f, #071a30 55%, #08213d);
  box-shadow: 0 3px 16px rgba(0, 0, 0, .22)
}

.nav-wrap {
  height: 76px;
  display: flex;
  align-items: center;
  gap: 34px
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  min-width: 190px
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  transform: rotate(-2deg)
}

.brand span {
  display: flex;
  flex-direction: column;
  line-height: .84;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 26px
}

.brand strong {
  color: #18a9e4
}

.nav-wrap nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto
}

.nav-wrap nav a {
  color: #fff;
  text-decoration: none;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 17px
}

.nav-wrap nav a:hover {
  color: var(--green)
}

.nav-actions {
  display: flex;
  gap: 10px
}

.chat,
.quote-button {
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #0b6bdb, #0d8bea);
  color: #fff;
  text-decoration: none;
  padding: 9px 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase
}

.quote-button {
  cursor: pointer;
  background: #122d4a
}

.quote-button b {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green);
  color: #0b1a2d
}

.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 70% 35%, #123c66 0, #082340 35%, #051528 70%);
  color: #fff;
  min-height: 500px
}

.hero-lines {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 65%, rgba(8, 120, 232, .22) 65.2%, transparent 66%), radial-gradient(circle at 82% 55%, rgba(17, 167, 232, .12), transparent 34%)
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 38px;
  align-items: center;
  padding: 54px 0 78px
}

.eyebrow {
  margin: 0;
  color: var(--green);
  font-family: "Barlow Condensed";
  font-weight: 800;
  font-size: 33px;
  letter-spacing: .01em
}

.hero h1 {
  margin: 4px 0 18px;
  max-width: 660px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(49px, 5vw, 72px);
  line-height: .94;
  text-transform: uppercase;
  letter-spacing: -.02em
}

.lead {
  max-width: 600px;
  color: #d3dce6;
  line-height: 1.6;
  font-size: 15px
}

.hero-product {
  position: relative;
  min-height: 355px;
  display: grid;
  place-items: center
}

.hero-product .glow {
  position: absolute;
  width: 430px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(24, 147, 225, .28), transparent 68%);
  filter: blur(5px)
}

.hero-product>img {
  position: relative;
  width: min(100%, 500px);
  height: 330px;
  object-fit: contain;
  border-radius: 22px;
  mix-blend-mode: screen;
  filter: contrast(1.1) saturate(.9)
}

.hero-wave {
  position: absolute;
  bottom: -34px;
  left: -4%;
  width: 108%;
  height: 82px;
  background: linear-gradient(90deg, #0077df, #0a90e7 58%, var(--green));
  transform: rotate(-2deg);
  transform-origin: left
}

.brand-strip {
  position: relative;
  z-index: 5;
  margin-top: -26px;
  padding: 0 8px;
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  gap: 8px
}

.brand-carousel {
  display: flex;
  gap: 7px;
  overflow: auto;
  scrollbar-width: none;
  padding: 10px;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow);
  border: 1px solid #e1e7ee
}

.brand-carousel::-webkit-scrollbar {
  display: none
}

.brand-card {
  min-width: 118px;
  height: 72px;
  border: 1px solid #e0e5eb;
  border-radius: 9px;
  background: #fff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-family: "Barlow Condensed";
  font-weight: 700;
  transition: .18s
}

.brand-card span {
  font-size: 17px;
  color: #6c7582
}

.brand-card b {
  font-size: 15px
}

.brand-card img {
  width: 42px;
  height: 32px;
  object-fit: contain;
}

.brand-card.active {
  border: 2px solid var(--green);
  box-shadow: 0 0 0 3px rgba(152, 215, 25, .12)
}

.strip-arrow {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow);
  font-size: 28px;
  color: #2674c4;
  cursor: pointer
}

.selector-wrap {
  position: relative;
  z-index: 6;
  margin-top: 20px
}

.selector-card {
  display: grid;
  grid-template-columns: 1.05fr 1fr 1.45fr auto;
  gap: 12px;
  align-items: end;
  padding: 22px 28px;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow);
  border: 1px solid #e5eaf0
}

.selector-title {
  grid-column: 1/-1;
  display: flex;
  gap: 8px;
  align-items: center;
  font-family: "Barlow Condensed";
  font-size: 22px
}

.selector-card label span {
  display: block;
  font-size: 10px;
  font-weight: 800;
  margin: 0 0 6px
}

.selector-card select,
.selector-card input,
.catalog-actions input {
  width: 100%;
  height: 43px;
  border: 1px solid #d5dce5;
  border-radius: 8px;
  background: #fff;
  padding: 0 12px;
  color: #435064;
  outline: none
}

.selector-card select:focus,
.selector-card input:focus,
.catalog-actions input:focus {
  border-color: #2686dd;
  box-shadow: 0 0 0 3px rgba(38, 134, 221, .12)
}

.primary-btn {
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #076fd5, #0b8aeb);
  color: #fff;
  height: 43px;
  padding: 0 22px;
  font-weight: 800;
  font-family: "Barlow Condensed";
  font-size: 16px;
  cursor: pointer
}

.primary-btn:hover {
  filter: brightness(1.06)
}

.products-section {
  padding-top: 30px
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px
}

.section-heading>div:first-child {
  display: flex;
  align-items: center;
  gap: 10px
}

.section-heading span {
  width: 9px;
  height: 25px;
  background: linear-gradient(var(--green), #0f85df);
  border-radius: 3px;
  transform: skew(-12deg)
}

.section-heading h2 {
  margin: 0;
  font-family: "Barlow Condensed";
  font-size: 29px
}

.section-heading h2 em {
  font-style: normal;
  color: #0877d9
}

.section-heading>button,
.catalog-actions button {
  border: 1px solid #2785dc;
  background: #fff;
  color: #126fc3;
  border-radius: 8px;
  padding: 9px 13px;
  font-family: "Barlow Condensed";
  font-weight: 800;
  cursor: pointer
}

.products-section {
  padding-bottom: 42px
}

.catalog-actions {
  display: flex;
  gap: 8px
}

.catalog-actions input {
  width: 240px
}

.filters-line {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin: 6px 0 16px
}

.pills {
  display: flex;
  gap: 7px;
  flex-wrap: wrap
}

.pill {
  border: 1px solid #dbe2ea;
  background: #fff;
  border-radius: 999px;
  padding: 7px 12px;
  color: #536173;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700
}

.pill.active {
  background: #0b78db;
  border-color: #0b78db;
  color: #fff
}

.filters-line p {
  margin: 0;
  color: #697689;
  font-size: 12px
}

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

.product-card {
  background: #fff;
  border: 1px solid #e1e7ed;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 14px rgba(15, 35, 58, .06);
  transition: .18s;
  display: flex;
  flex-direction: column
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(15, 35, 58, .11)
}

.product-image {
  height: 175px;
  padding: 12px;
  background: #fff;
  display: grid;
  place-items: center;
  cursor: pointer
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain
}

.product-info {
  padding: 0 13px 13px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 120px
}

.product-info small {
  font-size: 10px;
  color: #708096
}

.product-info h3 {
  margin: 0;
  font-size: 14px;
  line-height: 1.3;
  min-height: 37px
}

.product-code {
  font-family: "Barlow Condensed";
  font-size: 17px;
  font-weight: 800;
  color: #0a3156
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: auto
}

.card-actions button {
  height: 34px;
  border-radius: 7px;
  font-family: "Barlow Condensed";
  font-weight: 800;
  cursor: pointer
}

.detail-btn {
  border: 1px solid #0b7add;
  color: #0b70c7;
  background: #fff
}

.add-btn {
  border: 0;
  background: #0b7add;
  color: #fff
}

.empty-state {
  padding: 50px;
  text-align: center;
  background: #fff;
  border-radius: 12px;
  border: 1px dashed #cbd5df
}

.empty-state b,
.empty-state span {
  display: block
}

.empty-state span {
  color: #788598;
  margin-top: 6px
}

.benefits-band {
  margin-top: 24px;
  background: linear-gradient(90deg, #0873d2 0, #07529b 35%, #096148 68%, #78b616);
  color: #fff
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr)
}

.benefits-grid article {
  padding: 22px 20px;
  display: flex;
  gap: 14px;
  align-items: center;
  border-right: 1px solid rgba(255, 255, 255, .2)
}

.benefits-grid article:last-child {
  border: 0
}

.benefits-grid article>span {
  font-size: 28px;
  color: #c2ee34
}

.benefits-grid b,
.benefits-grid small {
  display: block
}

.benefits-grid b {
  font-family: "Barlow Condensed";
  font-size: 18px
}

.benefits-grid small {
  font-size: 10px;
  color: #dbe6e9;
  margin-top: 3px
}

footer {
  background: #06162a;
  color: #d5dfeb;
  padding: 32px 0 14px
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.25fr;
  gap: 35px
}

.footer-grid h3 {
  font-family: "Barlow Condensed";
  font-size: 15px;
  color: #fff
}

.footer-grid a,
.footer-grid p {
  display: block;
  color: #c4cfda;
  text-decoration: none;
  font-size: 12px;
  line-height: 1.7;
  margin: 0
}

.footer-brand p {
  margin-top: 10px
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, .12);
  margin-top: 25px;
  padding-top: 12px;
  text-align: center;
  font-size: 10px
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(2, 11, 20, .62);
  backdrop-filter: blur(3px)
}

.modal {
  position: fixed;
  z-index: 70;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -46%) scale(.97);
  opacity: 0;
  pointer-events: none;
  width: min(900px, calc(100% - 28px));
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .3);
  padding: 24px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 24px;
  transition: .18s
}

.modal.open {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  pointer-events: auto
}

.modal-close {
  position: absolute;
  right: 14px;
  top: 10px;
  border: 0;
  background: #eef2f6;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 23px;
  cursor: pointer
}

.modal-gallery>img {
  width: 100%;
  height: 390px;
  object-fit: contain;
  border: 1px solid #e6ebef;
  border-radius: 12px
}

.thumbs {
  display: flex;
  gap: 8px;
  margin-top: 9px;
  overflow: auto
}

.thumbs button {
  width: 66px;
  height: 58px;
  border: 2px solid transparent;
  border-radius: 8px;
  background: #fff;
  padding: 2px
}

.thumbs button.active {
  border-color: #0b7add
}

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

.modal-info {
  padding: 20px 8px
}

.modal-tag {
  color: #0b7add;
  font-size: 11px;
  font-weight: 800
}

.modal-info h2 {
  font-family: "Barlow Condensed";
  font-size: 38px;
  line-height: 1;
  margin: 8px 0 12px
}

.modal-code {
  font-size: 14px;
  background: #f3f6f9;
  padding: 10px;
  border-radius: 8px
}

.modal-info p {
  color: #6d7988;
  font-size: 13px
}

.qty-row {
  display: flex;
  width: 150px;
  height: 39px;
  margin: 22px 0 12px
}

.qty-row button,
.qty-row input {
  width: 50px;
  border: 1px solid #d7dee6;
  background: #fff;
  text-align: center
}

.qty-row button {
  font-size: 20px;
  cursor: pointer
}

.wide {
  width: 100%
}

.outline-btn {
  display: block;
  margin-top: 8px;
  border: 1px solid #0b7add;
  color: #0b70c7;
  background: #fff;
  border-radius: 8px;
  padding: 11px;
  text-align: center;
  text-decoration: none;
  font-family: "Barlow Condensed";
  font-weight: 800;
  cursor: pointer
}

.drawer {
  position: fixed;
  z-index: 75;
  right: 0;
  top: 0;
  width: min(430px, 100%);
  height: 100vh;
  background: #fff;
  transform: translateX(105%);
  transition: .22s;
  box-shadow: -20px 0 50px rgba(0, 0, 0, .2);
  display: flex;
  flex-direction: column
}

.drawer.open {
  transform: none
}

.drawer-head {
  padding: 20px;
  border-bottom: 1px solid #e7ebef;
  display: flex;
  justify-content: space-between
}

.drawer-head small {
  color: #0b7add;
  font-weight: 800
}

.drawer-head h2 {
  margin: 2px 0;
  font-family: "Barlow Condensed";
  font-size: 32px
}

.drawer-head button {
  border: 0;
  background: #eef2f5;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 22px
}

.quote-items {
  padding: 14px 18px;
  overflow: auto;
  flex: 1
}

.quote-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #edf0f3
}

.quote-item img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border: 1px solid #e5e9ed;
  border-radius: 8px
}

.quote-item strong,
.quote-item small {
  display: block
}

.quote-item strong {
  font-size: 13px
}

.quote-item small {
  font-size: 10px;
  color: #7b8795
}

.quote-qty {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 8px
}

.quote-qty button {
  border: 1px solid #d8dee5;
  background: #fff;
  border-radius: 5px;
  width: 28px;
  height: 27px
}

.quote-qty .remove {
  width: auto;
  padding: 0 8px;
  color: #a44343
}

.drawer-foot {
  padding: 16px;
  border-top: 1px solid #e6eaef
}

.toast {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);
  opacity: 0;
  background: #081a2f;
  color: #fff;
  padding: 11px 16px;
  border-radius: 8px;
  font-size: 12px;
  transition: .2s
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0)
}

@media(max-width:980px) {
  .nav-wrap nav {
    display: none
  }

  .hero-inner {
    grid-template-columns: 1fr
  }

  .hero-product {
    display: none
  }

  .selector-card {
    grid-template-columns: 1fr 1fr
  }

  .selector-title {
    grid-column: 1/-1
  }

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

  .benefits-grid,
  .footer-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .modal {
    grid-template-columns: 1fr
  }

  .modal-gallery>img {
    height: 300px
  }
}

@media(max-width:620px) {
  .shell {
    width: min(calc(100% - 22px), var(--shell))
  }

  .topbar .brand {
    min-width: auto
  }

  .brand span {
    font-size: 21px
  }

  .brand img {
    width: 42px;
    height: 42px
  }

  .chat {
    display: none
  }

  .nav-wrap {
    height: 66px
  }

  .hero-inner {
    padding: 38px 0 70px
  }

  .eyebrow {
    font-size: 27px
  }

  .hero h1 {
    font-size: 48px
  }

  .brand-strip {
    grid-template-columns: 1fr
  }

  .strip-arrow {
    display: none
  }

  .selector-card {
    grid-template-columns: 1fr;
    padding: 18px
  }

  .product-grid,
  .benefits-grid,
  .footer-grid {
    grid-template-columns: 1fr
  }

  .catalog-actions {
    width: 100%
  }

  .catalog-actions input {
    width: 100%
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column
  }

  .filters-line {
    align-items: flex-start;
    flex-direction: column
  }

  .modal {
    padding: 14px
  }

  .modal-gallery>img {
    height: 240px
  }

  .modal-info h2 {
    font-size: 31px
  }
}

/* Ajuste de galería: la mayoría de fotos de producto son cuadradas (1200x1200).
   Mantiene la imagen completa dentro de una zona 1:1, sin recortes ni invasión del texto. */
.product-image {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  padding: 14px;
  overflow: hidden;
  background: #fff;
  display: grid;
  place-items: center;
}

.product-image img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.product-info {
  position: relative;
  z-index: 1;
  background: #fff;
}