:root {
  --bg: #f7f9fc;
  --text: #172033;
  --muted: #637083;
  --brand: #1f3f8f;
  --brand-dark: #183070;
  --accent: #dce6ff;
  --logo-blue: #1f3f8f;
  --logo-yellow: #1f3f8f;
  --line: #dde5ef;
  --surface: #ffffff;
  --success: #136f3a;
  --error: #a32828;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

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

.maintenance-banner {
  background: var(--logo-blue);
  color: #fff;
  font-weight: 800;
  padding: 10px 16px;
  text-align: center;
  text-transform: uppercase;
}

.maintenance-page {
  align-items: center;
  background: #f3f6fb;
  display: flex;
  min-height: 100vh;
  padding: 24px;
  justify-content: center;
}

.maintenance-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(31, 63, 143, 0.12);
  max-width: 520px;
  padding: 42px 28px;
  text-align: center;
  width: 100%;
}

.maintenance-card img {
  height: 72px;
  margin-bottom: 24px;
  object-fit: contain;
}

.maintenance-card h1 {
  color: var(--logo-blue);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.maintenance-card p {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0;
}

.site-header {
  align-items: center;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 18px clamp(20px, 6vw, 72px);
}

.brand {
  align-items: center;
  color: var(--brand);
  display: inline-flex;
  font-size: 1.3rem;
  font-weight: 700;
}

.brand img {
  display: block;
  height: 42px;
  max-width: 170px;
  object-fit: contain;
}

nav {
  display: flex;
  gap: 18px;
}

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

.cart-nav-link span {
  align-items: center;
  background: var(--brand);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 0.75rem;
  font-weight: 800;
  height: 20px;
  justify-content: center;
  min-width: 20px;
  padding: 0 6px;
}

main {
  margin: 0 auto;
  max-width: 1480px;
  padding: 0 clamp(16px, 4vw, 48px) 56px;
}

.hero {
  align-items: center;
  display: grid;
  min-height: 430px;
}

.hero h1,
.form-copy h1 {
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1.08;
  margin: 0 0 18px;
  max-width: 760px;
}

.hero p,
.form-copy p {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 650px;
}

.eyebrow {
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.button,
button {
  background: var(--brand);
  border: 0;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 700;
  justify-content: center;
  margin-top: 16px;
  padding: 13px 18px;
}

.button:hover,
button:hover {
  background: var(--brand-dark);
}

.secondary-button {
  background: #eef3ff;
  color: var(--brand-dark);
}

.secondary-button:hover {
  background: #dce6ff;
  color: var(--brand-dark);
}

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

.features article,
.quote-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

.features h2 {
  font-size: 1.1rem;
  margin: 0 0 8px;
}

.features p {
  color: var(--muted);
  margin: 0;
}

.form-section {
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  padding-top: 64px;
}

.quote-form {
  display: grid;
  gap: 16px;
}

label {
  color: var(--muted);
  display: grid;
  font-size: 0.92rem;
  gap: 7px;
}

input,
textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
  padding: 12px;
  width: 100%;
}

textarea {
  resize: vertical;
}

.messages {
  padding-top: 18px;
}

.message {
  border-radius: 8px;
  margin: 0;
  padding: 12px 14px;
}

.message.success {
  background: #e9f7ee;
  color: var(--success);
}

.message.error {
  background: #faecec;
  color: var(--error);
}

.catalog {
  overflow-x: hidden;
  padding-top: 28px;
}

.breadcrumb {
  align-items: center;
  background: var(--brand-dark);
  border-radius: 5px;
  color: #fff;
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  font-size: 0.9rem;
  gap: 6px;
  margin-bottom: 18px;
  padding: 4px 8px;
  white-space: nowrap;
}

.breadcrumb a {
  flex: 0 0 auto;
  color: #fff;
}

.single-breadcrumb a {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.breadcrumb strong,
.breadcrumb span {
  flex: 0 0 auto;
}

.single-breadcrumb {
  align-items: center;
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 6px;
  max-width: 100%;
  overflow: hidden;
}

.single-breadcrumb strong {
  display: inline-block;
  max-width: min(620px, 55vw);
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
  white-space: nowrap;
}

.single-breadcrumb a,
.single-breadcrumb span,
.single-breadcrumb strong {
  flex: 0 1 auto;
  min-width: 0;
}

.catalog-search {
  margin: 0 auto 22px;
  max-width: 560px;
  position: relative;
}

.catalog-search button {
  margin-top: 0;
}

.search-box {
  position: relative;
}

.search-box input {
  border: 2px solid var(--text);
  border-radius: 999px;
  padding: 14px 86px 14px 22px;
}

.search-clear,
.search-icon {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--muted);
  display: flex;
  height: 100%;
  justify-content: center;
  margin: 0;
  padding: 0;
  position: absolute;
  top: 0;
  width: 42px;
}

.search-clear {
  right: 42px;
}

.search-icon {
  pointer-events: none;
  right: 4px;
}

.search-clear:hover {
  background: transparent;
  color: var(--text);
}

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

.search-panel {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 42px rgba(23, 32, 51, 0.18);
  display: grid;
  gap: 22px;
  grid-template-columns: 0.9fr 1.1fr;
  left: 0;
  padding: 20px;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(860px, 92vw);
  z-index: 15;
}

.search-panel section:first-child {
  border-right: 1px solid var(--line);
  padding-right: 18px;
}

.search-panel h3 {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.search-panel h3 span {
  color: var(--text);
}

.suggest-categories {
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
  padding-bottom: 12px;
}

.suggest-categories a,
.suggest-product,
.suggest-all {
  color: var(--text);
  display: grid;
  margin-bottom: 10px;
}

.suggest-categories small,
.suggest-product small {
  color: var(--muted);
}

.suggest-product {
  align-items: center;
  gap: 12px;
  grid-template-columns: 48px minmax(0, 1fr) auto;
}

.suggest-product img {
  border: 1px solid var(--line);
  border-radius: 6px;
  height: 48px;
  object-fit: contain;
  padding: 4px;
  width: 48px;
}

.suggest-product strong {
  display: block;
  font-size: 0.92rem;
  line-height: 1.18;
}

.suggest-product b {
  color: var(--logo-blue);
  white-space: nowrap;
}

.suggest-all {
  color: var(--logo-blue);
  font-size: 0.86rem;
  font-weight: 800;
  margin-top: 14px;
  text-transform: uppercase;
}

.catalog-layout {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: 190px minmax(0, 1fr);
  min-width: 0;
}

.category-sidebar {
  min-width: 0;
  position: sticky;
  top: 14px;
}

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

.category-sidebar h2 {
  font-size: 0.95rem;
  margin: 0 0 10px;
}

.filter-bar {
  display: grid;
  gap: 10px;
  max-width: 100%;
}

.category-carousel-controls {
  display: none;
}

.filter-chip {
  align-items: center;
  background: var(--surface);
  border: 1px solid #cfd6dd;
  border-radius: 7px;
  box-shadow: 0 1px 4px rgba(23, 32, 51, 0.15);
  display: grid;
  font-size: 0.82rem;
  gap: 4px;
  justify-items: center;
  min-height: 54px;
  padding: 7px 10px;
  text-align: center;
}

.filter-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  font-weight: 700;
}

.chip-icon {
  align-items: center;
  color: var(--brand);
  display: flex;
  font-size: 1.15rem;
  font-weight: 800;
  height: 24px;
  justify-content: center;
  line-height: 1;
  max-width: 52px;
  overflow: hidden;
  text-transform: uppercase;
}

.filter-chip.active .chip-icon {
  color: var(--brand-dark);
}

.product-grid {
  margin-left: 0;
  margin-right: 0;
}

.catalog-pagination {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.catalog-pagination.top {
  margin-bottom: 14px;
}

.catalog-pagination.bottom {
  justify-content: center;
  margin-top: 22px;
}

.catalog-pagination p {
  color: var(--muted);
  margin: 0;
}

.catalog-pagination .page-link {
  color: var(--brand-dark);
}

.catalog-pagination .active .page-link {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.product-card {
  background: var(--surface);
  border: 1px solid #d3d3d3;
  border-radius: 7px;
  box-shadow: 0 1px 4px rgba(23, 32, 51, 0.14);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 306px;
  padding: 10px;
}

.product-image {
  align-items: center;
  display: flex;
  height: 136px;
  justify-content: center;
  margin-bottom: 8px;
}

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

.image-button {
  align-items: center;
  background: transparent;
  border: 0;
  cursor: pointer;
  display: flex;
  height: 100%;
  justify-content: center;
  margin: 0;
  padding: 0;
  width: 100%;
}

.image-button:hover {
  background: transparent;
}

.product-image span {
  color: var(--muted);
  font-size: 0.85rem;
}

.product-image.missing-image::after {
  color: var(--muted);
  content: "Sin imagen";
  font-size: 0.85rem;
}

.product-card h2 {
  font-size: 0.94rem;
  line-height: 1.12;
  margin: 0 0 8px;
  min-height: 34px;
}

.product-data {
  display: grid;
  gap: 7px;
  margin: 0;
}

.product-data div {
  align-items: center;
  background: #e9f8f0;
  border: 1px solid #ccebdc;
  border-radius: 7px;
  display: grid;
  gap: 8px;
  grid-template-columns: 24px 1fr;
  min-height: 34px;
  padding: 7px 9px;
}

.product-data dt {
  color: #007d4b;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.product-data dd {
  font-size: 0.82rem;
  margin: 0;
  overflow-wrap: anywhere;
}

.price-list {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.price-list p {
  align-items: center;
  background: #f4f9ff;
  border: 1px solid #d6e7f8;
  border-radius: 7px;
  display: flex;
  justify-content: space-between;
  margin: 0;
  padding: 8px 9px;
}

.price-list p:last-child {
  background: #f7f9ff;
  border-color: #cdd8f2;
}

.price-list span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.price-list strong {
  color: var(--brand-dark);
  font-size: 0.9rem;
  text-align: right;
}

.cart-add-button {
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 12px;
  width: 100%;
}

.product-card .cart-add-button {
  margin-top: auto;
}

.product-card .price-list + .cart-add-button {
  margin-top: 14px;
}

.cart-add-button.is-added {
  background: var(--success);
}

.cart-add-button.is-added:hover {
  background: #0f5d31;
}

.quote-add-button {
  align-items: center;
  background: #eef3ff;
  color: var(--brand-dark);
  gap: 8px;
  margin-top: 8px;
  padding: 10px 12px;
  width: 100%;
}

.quote-add-button:hover,
.quote-add-button.is-added {
  background: var(--brand);
  color: #fff;
}

.quote-add-button.is-added:hover {
  background: var(--brand-dark);
}

.catalog-empty {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  padding: 18px;
  text-align: center;
}

.product-modal[hidden] {
  display: none;
}

.product-modal {
  align-items: center;
  display: flex;
  inset: 0 !important;
  justify-content: center;
  padding: 18px;
  position: fixed !important;
  width: 100vw !important;
  z-index: 20;
}

.product-modal-backdrop {
  background: rgba(0, 0, 0, 0.48);
  inset: 0;
  position: absolute;
  z-index: 0;
}

.modal-panel {
  background: #fff;
  border-radius: 8px;
  max-height: min(760px, 86vh);
  max-width: 820px;
  overflow: auto;
  padding: 0 18px 22px;
  position: relative;
  width: min(calc(100vw - 36px), 820px);
  z-index: 1;
}

.modal-close {
  align-items: center;
  background: transparent;
  border-radius: 0;
  color: #fff;
  display: flex;
  height: 34px;
  justify-content: center;
  margin: 0;
  padding: 0;
  position: absolute;
  right: 16px;
  top: 1px;
  width: 34px;
}

.modal-close:hover {
  background: transparent;
}

.modal-download {
  background: #5b646d;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  margin: 0 -18px 10px;
  padding: 4px 38px 4px 12px;
  text-align: center;
}

.technical-header {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 12px;
}

.technical-header h2 {
  font-size: 1rem;
  line-height: 1.2;
  margin: 0;
}

.technical-header img {
  max-height: 34px;
  max-width: 140px;
  object-fit: contain;
}

.technical-sheet {
  display: grid;
  gap: 16px;
  grid-template-columns: 1.1fr 1fr;
}

.technical-main-image {
  align-items: center;
  display: flex;
  min-height: 250px;
  justify-content: center;
}

.technical-main-image img {
  max-height: 260px;
  max-width: 100%;
  object-fit: contain;
}

.technical-summary dl {
  margin: 0 0 14px;
}

.technical-summary div {
  display: grid;
  grid-template-columns: 96px 1fr;
}

.technical-summary dt,
.technical-summary dd {
  border-bottom: 1px solid #d7dce1;
  font-size: 0.82rem;
  margin: 0;
  padding: 8px;
}

.technical-summary dt {
  background: #f0f0f0;
  font-weight: 700;
}

.technical-description {
  grid-column: 1;
}

.technical-description h3 {
  border-bottom: 1px solid #d7dce1;
  font-size: 1rem;
  margin: 0 0 8px;
  padding-bottom: 6px;
  text-transform: uppercase;
}

.technical-description div {
  font-size: 0.82rem;
}

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

.technical-description td,
.technical-description th {
  border: 1px solid #d0d0d0;
  font-size: 0.78rem;
  padding: 6px;
  text-align: left;
}

.technical-gallery {
  display: grid;
  gap: 10px;
  grid-column: 2;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.technical-gallery img {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  height: 118px;
  object-fit: contain;
  padding: 8px;
  width: 100%;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

.detail-button {
  margin-top: 0;
}

.single-product {
  padding-top: 28px;
}

.single-product-grid {
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
}

.single-product-media,
.single-product-info,
.single-description {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}

.single-image-stage {
  position: relative;
}

.single-main-image {
  display: block;
  height: 360px;
  object-fit: contain;
  width: 100%;
}

.single-zoom-button {
  align-items: center;
  background: var(--brand);
  border: 0;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(31, 63, 143, 0.22);
  color: #fff;
  display: flex;
  height: 42px;
  justify-content: center;
  position: absolute;
  right: 12px;
  top: 12px;
  width: 42px;
}

.single-zoom-button:hover {
  background: var(--brand-dark);
}

.single-gallery {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 16px;
}

.single-thumb-button {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
}

.single-thumb-button:hover {
  border-color: var(--brand);
  box-shadow: 0 8px 18px rgba(31, 63, 143, 0.12);
}

.single-gallery img {
  height: 92px;
  object-fit: contain;
  padding: 8px;
  width: 100%;
}

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

.image-lightbox {
  align-items: center;
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
  z-index: 3000;
}

.image-lightbox-backdrop {
  background: rgba(8, 15, 31, 0.78);
  border: 0;
  inset: 0;
  position: absolute;
}

.image-lightbox-panel {
  align-items: center;
  background: #fff;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  max-height: calc(100vh - 40px);
  max-width: min(1100px, calc(100vw - 40px));
  min-height: 420px;
  overflow: hidden;
  padding: 52px 72px 46px;
  position: relative;
  width: 100%;
  z-index: 1;
}

.image-lightbox-panel img {
  max-height: calc(100vh - 160px);
  max-width: 100%;
  object-fit: contain;
}

.image-lightbox-close,
.image-lightbox-nav {
  align-items: center;
  border: 0;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  position: absolute;
}

.image-lightbox-close {
  background: var(--brand);
  color: #fff;
  height: 38px;
  right: 14px;
  top: 14px;
  width: 38px;
}

.image-lightbox-nav {
  background: #f3f6fb;
  border: 1px solid var(--line);
  color: var(--brand);
  font-size: 1.25rem;
  height: 48px;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
}

.image-lightbox-nav.prev {
  left: 14px;
}

.image-lightbox-nav.next {
  right: 14px;
}

.image-lightbox-close:hover,
.image-lightbox-nav:hover {
  background: var(--brand-dark);
  color: #fff;
}

.image-lightbox-counter {
  bottom: 14px;
  color: var(--muted);
  font-weight: 700;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
}

body.lightbox-open {
  overflow: hidden;
}

.single-product-info h1 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.12;
  margin: 0 0 18px;
}

.single-meta {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
}

.single-meta div {
  display: grid;
  grid-template-columns: 88px 1fr;
}

.single-meta dt,
.single-meta dd {
  border-bottom: 1px solid var(--line);
  margin: 0;
  padding: 8px 0;
}

.single-meta dt {
  color: var(--muted);
  font-weight: 700;
}

.single-price {
  background: #f7f9ff;
  border: 1px solid #cdd8f2;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 14px;
}

.single-price.secondary {
  background: #f4f9ff;
  border-color: #d6e7f8;
  margin-top: -8px;
}

.single-price span {
  color: var(--muted);
  font-weight: 700;
}

.single-price strong {
  color: var(--brand-dark);
  font-size: 1.18rem;
}

.single-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.single-actions .button,
.single-actions button {
  margin-top: 0;
}

.single-actions .cart-add-button,
.single-actions .button {
  width: 100%;
}

.cart-page {
  padding-top: 28px;
}

.cart-header {
  align-items: end;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 22px;
}

.cart-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  margin: 0;
}

.cart-layout {
  align-items: start;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1fr) 340px;
}

.cart-items {
  display: grid;
  gap: 12px;
}

.cart-item {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 16px;
  grid-template-columns: 110px minmax(0, 1fr) 110px auto;
  padding: 14px;
}

.cart-item img {
  height: 90px;
  object-fit: contain;
  width: 100%;
}

.cart-item h2 {
  font-size: 1rem;
  line-height: 1.2;
  margin: 0 0 6px;
}

.cart-item p {
  color: var(--muted);
  margin: 0 0 6px;
}

.cart-item strong {
  color: var(--brand-dark);
}

.cart-item label {
  color: var(--muted);
  font-size: 0.8rem;
}

.cart-item input {
  padding: 8px;
}

.cart-remove {
  margin: 0;
  white-space: nowrap;
}

.cart-summary {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  position: sticky;
  top: 14px;
}

.cart-summary h2 {
  font-size: 1.2rem;
  margin: 0 0 14px;
}

.cart-summary dl {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
}

.cart-summary dl div {
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding-bottom: 10px;
}

.cart-summary dt {
  color: var(--muted);
  font-weight: 700;
}

.cart-summary dd {
  color: var(--brand-dark);
  font-weight: 800;
  margin: 0;
}

.cart-summary button {
  width: 100%;
}

.cart-note,
.cart-warning {
  color: var(--muted);
  font-size: 0.86rem;
  margin: 12px 0 0;
}

.product-quote-page {
  padding-top: 28px;
}

.product-quote-page h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 18px;
}

.quote-table-wrap {
  overflow-x: auto;
}

.quote-table {
  background: #fff;
  border-collapse: collapse;
  min-width: 860px;
  width: 100%;
}

.quote-table th {
  background: var(--brand);
  color: #fff;
  font-size: 0.82rem;
  padding: 12px;
  text-align: left;
}

.quote-table td {
  border: 1px solid #d7d7d7;
  padding: 12px;
  vertical-align: middle;
}

.quote-table small {
  color: var(--muted);
  display: block;
  margin-top: 4px;
}

.quote-product-image {
  height: 76px;
  object-fit: contain;
  width: 90px;
}

.quote-remove {
  background: transparent;
  color: #ad1010;
  margin: 0;
  padding: 8px;
}

.quote-remove:hover {
  background: #ffe9e9;
}

.quote-table input[type="number"] {
  max-width: 72px;
  padding: 7px;
}

.quote-certificates {
  align-items: center;
  background: #fff;
  border: 1px solid #d7d7d7;
  border-top: 0;
  display: grid;
  gap: 14px;
  grid-template-columns: 72px 120px minmax(0, 1fr);
  padding: 14px;
}

.quote-certificates span {
  color: var(--brand);
  font-size: 2.6rem;
  text-align: center;
}

.quote-certificates p {
  font-size: 0.86rem;
  margin: 0;
}

.update-quote-button {
  display: flex;
  margin: 10px 0 18px auto;
}

.quote-totals h2 {
  font-size: 1.1rem;
  margin: 0 0 10px;
}

.quote-totals dl,
.quote-customer-form {
  background: #fff;
  border: 1px solid #d7d7d7;
  margin: 0 0 16px;
}

.quote-totals dl div,
.quote-customer-form label {
  align-items: center;
  border-bottom: 1px solid #d7d7d7;
  display: grid;
  grid-template-columns: 36% minmax(0, 1fr);
  margin: 0;
  padding: 10px 12px;
}

.quote-totals dl div:last-child,
.quote-customer-form label:last-child {
  border-bottom: 0;
}

.quote-totals dt,
.quote-totals dd {
  margin: 0;
}

.quote-totals dt,
.quote-customer-form label {
  color: #111;
  font-weight: 700;
}

.quote-totals dd {
  font-weight: 800;
  text-align: right;
}

.quote-customer-form input,
.quote-customer-form textarea,
.quote-customer-form select {
  border: 1px solid #9c9c9c;
  border-radius: 0;
}

.quote-terms {
  justify-items: end;
}

.quote-terms input {
  margin-right: 8px;
  width: auto;
}

/* ===== Rediseno del formulario de datos del cliente ===== */
.quote-customer-form {
  background: #fff;
  border: 1px solid #e2e6ee;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(20, 40, 80, 0.06);
  margin: 0 0 16px;
  padding: 22px 24px 24px;
}

.quote-form-title {
  border-bottom: 2px solid var(--logo-yellow, #f5c518);
  color: var(--logo-blue, #1f3f8f);
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 18px;
  padding-bottom: 10px;
  text-transform: uppercase;
}

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

/* Sobrescribe el grid heredado: campos apilados (etiqueta encima del input). */
.quote-customer-form .quote-form-grid label,
.quote-customer-form > .quote-terms {
  align-items: stretch;
  border: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  grid-template-columns: none;
  margin: 0;
  padding: 0;
}

.quote-customer-form .quote-form-grid label > span {
  color: #3a4658;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.quote-customer-form input,
.quote-customer-form textarea,
.quote-customer-form select {
  background: #fbfcfe;
  border: 1px solid #cfd6e2;
  border-radius: 8px;
  color: #111;
  font-family: inherit;
  font-size: 0.95rem;
  padding: 11px 13px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  width: 100%;
}

.quote-customer-form input::placeholder,
.quote-customer-form textarea::placeholder {
  color: #9aa3b2;
}

.quote-customer-form input:focus,
.quote-customer-form textarea:focus,
.quote-customer-form select:focus {
  background: #fff;
  border-color: var(--logo-blue, #1f3f8f);
  box-shadow: 0 0 0 3px rgba(31, 63, 143, 0.14);
  outline: none;
}

/* Observaciones ocupa todo el ancho. */
.quote-customer-form .quote-form-grid label.quote-notes {
  grid-column: 1 / -1;
}

.quote-customer-form textarea {
  min-height: 96px;
  resize: vertical;
}

/* Terminos: letrero arriba y checkbox grande debajo, centrado en su barra. */
.quote-customer-form > .quote-terms {
  align-items: center;
  background: #f5f8fd;
  border: 1px solid #e2e6ee;
  border-radius: 8px;
  flex-direction: column;
  gap: 10px;
  justify-items: center;
  margin-top: 18px;
  padding: 14px;
  text-align: center;
}

.quote-customer-form > .quote-terms span {
  color: #2a3342;
  font-size: 0.95rem;
  font-weight: 800;
}

.quote-customer-form > .quote-terms input {
  accent-color: var(--logo-blue, #1f3f8f);
  cursor: pointer;
  height: 24px;
  margin: 0;
  width: 24px;
}

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

.single-description {
  margin-top: 24px;
}

.single-description h2 {
  font-size: 1.25rem;
  margin: 0 0 14px;
}

.ficha-tecnica-wrapper {
  width: 100%;
}

.ficha-letrero {
  background: var(--logo-blue);
  border-left: 4px solid var(--logo-yellow);
  color: #fff;
  font-weight: 800;
  margin-bottom: 10px;
  padding: 10px;
  text-align: center;
  text-transform: uppercase;
}

.ficha-tecnica-imagen {
  cursor: zoom-in;
  margin-bottom: 15px;
  text-align: center;
}

.ficha-tecnica-imagen img {
  height: auto;
  max-width: 100%;
}

.ficha-tecnica-letrero {
  color: #555;
  display: block;
  font-size: 0.85rem;
  margin-top: 6px;
}

.ficha-tecnica {
  border-collapse: collapse;
  border-left: 4px solid var(--logo-yellow);
  font-size: 0.92rem;
  table-layout: fixed;
  width: 100%;
}

.ficha-tecnica td {
  border: 1px solid #cfcfcf;
  padding: 8px 10px;
  vertical-align: top;
}

.ficha-label {
  color: var(--logo-blue);
  font-weight: 800;
  width: 35%;
}

.ficha-valor {
  width: 65%;
}

.ficha-full {
  background: #f7f9ff;
  color: var(--logo-blue);
}

/* ===== Ficha tecnica en formato tabla (estilo azul de la pagina) ===== */
.ficha-specs {
  border: 1px solid #dbe2ee;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 22px;
  overflow: hidden;
  width: 100%;
}

.ficha-specs th,
.ficha-specs td {
  border-bottom: 1px solid #e6ebf3;
  padding: 12px 16px;
  text-align: left;
  vertical-align: middle;
}

.ficha-specs tr:last-child th,
.ficha-specs tr:last-child td {
  border-bottom: 0;
}

/* Columna de etiqueta (con icono) y acento azul a la izquierda. */
.ficha-specs th {
  border-left: 4px solid var(--logo-blue);
  color: #1f2a3a;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  width: 42%;
}

.ficha-specs td {
  color: #1f2937;
  font-size: 0.95rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.ficha-spec-icon {
  color: var(--logo-blue);
  display: inline-flex;
  font-size: 1.05rem;
  justify-content: center;
  margin-right: 9px;
  vertical-align: middle;
  width: 20px;
}

.ficha-spec-label {
  vertical-align: middle;
}

/* Franjas alternas. */
.ficha-specs tbody tr:nth-child(odd) th {
  background: #eef3fb;
}

.ficha-specs tbody tr:nth-child(odd) td {
  background: #f7faff;
}

.ficha-specs tbody tr:nth-child(even) th {
  background: #e4ecf8;
}

.ficha-specs tbody tr:nth-child(even) td {
  background: #fff;
}

/* Filas de ancho completo (notas o listados sin etiqueta). */
.ficha-specs tbody tr.ficha-spec-full td {
  background: #f3f7fd;
  border-left: 4px solid var(--logo-blue);
  color: #334155;
  font-weight: 600;
}

@media (max-width: 720px) {
  .ficha-specs th {
    width: 46%;
  }

  .ficha-specs th,
  .ficha-specs td {
    padding: 10px 12px;
  }
}

.site-footer {
  background: #172033;
  color: #d9e2ee;
  margin-top: 36px;
  padding: 34px clamp(16px, 4vw, 48px) 18px;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 64px;
  margin: 0 auto;
  max-width: 1480px;
}

/* La marca/contacto ocupa su ancho natural (no se estira para llenar huecos). */
.footer-grid > section:first-child {
  flex: 1 1 280px;
  max-width: 460px;
}

.footer-grid > section {
  flex: 0 1 auto;
  min-width: 160px;
}

.footer-logo {
  display: block;
  height: 44px;
  margin-bottom: 14px;
  object-fit: contain;
}

.site-footer h2 {
  color: #fff;
  font-size: 1rem;
  margin: 0 0 12px;
}

.site-footer p {
  color: #b9c7d8;
  margin: 0 0 10px;
  max-width: 420px;
}

.site-footer a {
  color: #d9e2ee;
  display: block;
  margin-bottom: 8px;
}

.site-footer a:hover {
  color: #fff;
}

.footer-whatsapp {
  align-items: center;
  display: inline-flex;
  gap: 8px;
}

.footer-whatsapp i {
  color: #25d366;
  font-size: 1.15rem;
}

/* Boton flotante de WhatsApp: visible en todas las paginas (partials/footer.php). */
.whatsapp-float {
  align-items: center;
  background: #25d366;
  border-radius: 50%;
  bottom: 22px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .28);
  color: #fff;
  display: flex;
  height: 58px;
  justify-content: center;
  left: 22px;
  position: fixed;
  transition: transform .2s ease, box-shadow .2s ease;
  width: 58px;
  /* Debajo del modal de producto (20) y del lightbox (3000), sobre el resto. */
  z-index: 16;
}

.whatsapp-float i {
  font-size: 2rem;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  box-shadow: 0 6px 20px rgba(0, 0, 0, .35);
  color: #fff;
  transform: scale(1.07);
}

@media (max-width: 600px) {
  .whatsapp-float {
    bottom: 16px;
    height: 52px;
    left: 16px;
    width: 52px;
  }

  .whatsapp-float i {
    font-size: 1.75rem;
  }
}

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

  .whatsapp-float:hover,
  .whatsapp-float:focus-visible {
    transform: none;
  }
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  align-items: center;
  background: #223049;
  border-radius: 8px;
  display: flex;
  height: 38px;
  justify-content: center;
  margin: 0;
  width: 38px;
}

.footer-copy {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #aebdce;
  font-size: 0.9rem;
  margin: 24px auto 0;
  max-width: 1480px;
  padding-top: 16px;
}

@media (max-width: 1020px) {
  .ficha-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .single-product {
    padding-top: 18px;
  }

  .single-breadcrumb {
    display: inline-flex;
    flex-wrap: nowrap;
    font-size: clamp(0.68rem, 1.8vw, 0.82rem);
    gap: 6px;
    line-height: 1.2;
    max-width: 100%;
    overflow: hidden;
    padding: 8px 10px;
    white-space: nowrap;
  }

  .single-breadcrumb strong {
    max-width: 52vw;
  }

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

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

  .cart-summary {
    position: static;
  }

  .category-sidebar {
    position: static;
  }

  .category-sidebar h2 {
    margin-bottom: 8px;
  }

  .filter-bar {
    display: grid;
    gap: 10px;
    grid-auto-columns: minmax(112px, max-content);
    grid-auto-flow: column;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding: 0 0 10px;
    scroll-snap-type: inline mandatory;
    scrollbar-width: thin;
    width: 100%;
  }

  .filter-bar::-webkit-scrollbar {
    height: 8px;
  }

  .filter-bar::-webkit-scrollbar-thumb {
    background: #b8c7d6;
    border-radius: 999px;
  }

  .filter-chip {
    min-height: 64px;
    min-width: 112px;
    scroll-snap-align: start;
    white-space: normal;
  }

  .category-carousel-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 0 0 18px;
  }

  .category-carousel-controls button {
    align-items: center;
    background: var(--surface);
    border: 1px solid #cfd6dd;
    border-radius: 8px;
    color: var(--brand-dark);
    display: flex;
    height: 38px;
    justify-content: center;
    margin: 0;
    padding: 0;
    width: 46px;
  }

  .category-carousel-controls button:hover {
    background: #eef8e8;
  }

  .product-modal {
    align-items: flex-start;
    padding: 14px;
  }

  .modal-panel {
    max-height: calc(100vh - 28px);
    width: calc(100vw - 28px);
  }
}

@media (max-width: 760px) {
  .single-breadcrumb {
    border-radius: 5px;
    display: inline-flex;
    font-size: clamp(0.58rem, 2.55vw, 0.72rem);
    margin-bottom: 14px;
    max-width: 100%;
    overflow: hidden;
    padding: 7px 9px;
    white-space: nowrap;
  }

  .single-breadcrumb strong {
    max-width: 46vw;
  }

  .site-header,
  nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .cart-header {
    align-items: stretch;
    flex-direction: column;
  }

  .cart-item {
    align-items: start;
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .cart-item label,
  .cart-remove {
    grid-column: 2;
  }

  .quote-certificates {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .quote-certificates p {
    grid-column: 1 / -1;
  }

  .quote-totals dl div,
  .quote-customer-form label {
    align-items: stretch;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .quote-terms {
    justify-items: start;
  }

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

  .single-actions .cart-add-button,
  .single-actions .button {
    width: 100%;
  }

  .features,
  .form-section {
    grid-template-columns: 1fr;
  }

  .catalog-search {
    max-width: 100%;
  }

  .search-panel {
    gap: 18px;
    grid-template-columns: 1fr;
    left: 0;
    max-height: min(70vh, 620px);
    overflow-y: auto;
    padding: 16px;
    right: 0;
    width: 100%;
  }

  .search-panel section:first-child {
    border-bottom: 1px solid var(--line);
    border-right: 0;
    padding-bottom: 12px;
    padding-right: 0;
  }

  .suggest-product {
    align-items: start;
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .suggest-product b {
    grid-column: 2;
    white-space: normal;
  }

  .suggest-product strong {
    overflow-wrap: anywhere;
  }

  .technical-sheet,
  .technical-header {
    grid-template-columns: 1fr;
  }

  .technical-description,
  .technical-gallery {
    grid-column: auto;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .modal-actions {
    justify-content: stretch;
  }

  .detail-button {
    width: 100%;
  }

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

  .single-main-image {
    height: 260px;
  }

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

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

  .ficha-spec-card {
    min-height: 124px;
  }

  .image-lightbox {
    padding: 12px;
  }

  .image-lightbox-panel {
    max-height: calc(100vh - 24px);
    max-width: calc(100vw - 24px);
    min-height: 320px;
    padding: 56px 14px 48px;
  }

  .image-lightbox-panel img {
    max-height: calc(100vh - 160px);
  }

  .image-lightbox-nav {
    bottom: 10px;
    top: auto;
    transform: none;
  }

  .image-lightbox-nav.prev {
    left: 14px;
  }

  .image-lightbox-nav.next {
    right: 14px;
  }
}

@media (max-width: 420px) {
  .ficha-card-grid {
    grid-template-columns: 1fr;
  }
}
