:root {
  --ink: #0F3D5E;
  --muted: #6B7280;
  --surface: #F5F7FA;
  --paper: #ffffff;
  --line: #d9e1ea;
  --line-strong: #c6d2de;
  --brand: #0F3D5E;
  --brand-dark: #08263b;
  --brand-soft: #e8f0f7;
  --steel: #6B7280;
  --steel-dark: #374151;
  --orange: #F97316;
  --danger: #be4b2d;
  --shadow: 0 20px 55px rgba(15, 61, 94, 0.14);
  --logo-font: "Montserrat", "Inter", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: 96px;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), transparent 560px),
    var(--surface);
  font-family: "Inter", Arial, sans-serif;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
  padding: 12px clamp(18px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  min-width: 420px;
}

.brand-wordmark-img {
  display: block;
  width: 420px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  padding: 10px 12px;
  color: var(--muted);
  border-radius: 7px;
  font-size: 0.92rem;
  font-weight: 700;
}

.site-nav a:hover {
  color: var(--paper);
  background: var(--brand);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 7px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--brand);
}

.hero {
  position: relative;
  min-height: calc(100vh - 84px);
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: clamp(72px, 10vw, 120px) clamp(18px, 5vw, 72px);
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(8, 38, 59, 0.96) 0%, rgba(8, 38, 59, 0.84) 43%, rgba(8, 38, 59, 0.12) 100%),
    linear-gradient(0deg, rgba(8, 38, 59, 0.38), transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  color: var(--paper);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3.4rem, 9vw, 7.8rem);
  line-height: 0.88;
  letter-spacing: 0;
  text-shadow: 0 14px 42px rgba(0, 0, 0, 0.28);
}

.hero-subtitle {
  margin: 18px 0 0;
  font-size: clamp(1.35rem, 3vw, 2.2rem);
  font-weight: 800;
}

.hero-copy {
  max-width: 580px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.08rem;
  line-height: 1.65;
}

.hero-actions,
.contact-band {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-actions {
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-weight: 800;
}

.btn.primary {
  color: var(--paper);
  background: var(--orange);
  box-shadow: 0 14px 30px rgba(249, 115, 22, 0.24);
}

.btn.secondary {
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.52);
}

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

.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 72px 0;
}

.intro,
.coverage {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: start;
}

.intro h2,
.section-heading h2,
.coverage h2,
.contact-band h2,
.category-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.coverage p,
.contact-band p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.intro-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  object-fit: cover;
}

.trust-strip {
  width: min(1180px, calc(100% - 36px));
  margin: -22px auto 56px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.trust-strip article {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(15, 61, 94, 0.09);
}

.trust-strip h3 {
  margin: 0;
  padding: 18px 18px 12px;
  color: var(--brand-dark);
  font-size: 1rem;
  line-height: 1.2;
}

.trust-strip img {
  display: block;
  width: calc(100% - 24px);
  aspect-ratio: 16 / 9;
  margin: 0 12px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.trust-strip p {
  margin: 0;
  padding: 12px 18px 18px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

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

.service-card,
.product-card,
.quote {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(15, 61, 94, 0.07);
}

.service-card {
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--brand), var(--orange));
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 34px;
  color: var(--brand-dark);
  background: var(--brand-soft);
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 800;
}

.service-card h3,
.product-card h3 {
  margin: 22px 0 12px;
  font-size: 1.3rem;
}

.service-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}

.service-card a {
  display: inline-flex;
  margin-top: 22px;
  color: var(--orange);
  font-weight: 800;
}

.products {
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.product-grid {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 18px;
  transition: transform 320ms ease;
  will-change: transform;
}

.category-hero {
  border-top: 1px solid var(--line);
}

.category-breadcrumb {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.category-breadcrumb a {
  color: var(--brand);
}

.category-breadcrumb a:hover {
  color: var(--orange);
}

.site-nav a[aria-current="page"] {
  color: var(--paper);
  background: var(--brand);
}

.section-heading p:not(.eyebrow) {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.category-grid-message {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.subcategory-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.subcategory-chip {
  padding: 9px 16px;
  color: var(--brand-dark);
  background: var(--brand-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
}

.subcategory-chip:hover {
  border-color: var(--brand);
}

.subcategory-chip.is-active {
  color: var(--paper);
  background: var(--brand);
  border-color: var(--brand);
}

.subcategory-filters-secondary {
  margin-top: -16px;
}

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

.product-carousel {
  position: relative;
}

.product-carousel-viewport {
  overflow: hidden;
}

.product-card {
  flex: 0 0 calc((100% - 54px) / 4);
  min-width: 0;
  min-height: 430px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 55px rgba(15, 61, 94, 0.12);
}

.product-card.is-clickable {
  cursor: pointer;
}

.product-card.is-clickable:focus-visible {
  outline: 3px solid rgba(249, 115, 22, 0.35);
  outline-offset: 4px;
}

.product-media-link {
  display: block;
}

.product-media-selectable {
  cursor: pointer;
}

.product-card img {
  width: 100%;
  aspect-ratio: 1 / 0.78;
  object-fit: contain;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 7px;
}

.product-card h3 {
  margin: 10px 10px 8px;
}

.product-title-link {
  color: inherit;
  padding: 0;
  font: inherit;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.product-title-link:hover {
  color: var(--orange);
}

.product-detail-trigger {
  align-self: flex-start;
  margin: 0 10px 18px;
  padding: 0;
  color: var(--orange);
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 800;
}

.product-detail-trigger:hover {
  color: var(--brand);
}

.product-card p {
  margin: 0 10px 20px;
  color: var(--muted);
  line-height: 1.55;
}

.product-card-price {
  margin: 2px 10px 14px !important;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--brand) !important;
}

.product-card-price s {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--muted) !important;
  margin-right: 6px;
  text-decoration: line-through;
}

.product-tag {
  display: inline-flex;
  margin: 18px 10px 0;
  padding: 6px 9px;
  color: var(--brand-dark);
  background: var(--brand-soft);
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 800;
}

.product-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  color: var(--paper);
  background: var(--brand);
  border-radius: 7px;
  font-size: 0.92rem;
  font-weight: 800;
}

.product-carousel-button {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--paper);
  background: var(--brand);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transform: translateY(-50%);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

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

.product-carousel-button:disabled {
  opacity: 0.35;
  cursor: default;
}

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

.product-carousel-button-prev {
  left: -20px;
}

.product-carousel-button-next {
  right: -20px;
}

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

.product-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
}

.product-detail-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 38, 59, 0.72);
}

.product-detail-dialog {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  overflow: auto;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 28px;
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.product-detail-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  color: var(--brand);
  background: var(--brand-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
}

.product-detail-image-wrap {
  align-self: center;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
}

.product-detail-image {
  width: 100%;
  aspect-ratio: 1 / 0.9;
  object-fit: contain;
  background: var(--paper);
  display: block;
  transition: transform 0.35s ease;
}

.product-detail-image-wrap:hover .product-detail-image {
  transform: scale(1.07);
}

.product-detail-img-prev,
.product-detail-img-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,0.88);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.2s;
}

.product-detail-img-prev { left: 8px; }
.product-detail-img-next { right: 8px; }

.product-detail-img-prev:hover,
.product-detail-img-next:hover { background: var(--line); }

.product-detail-img-prev[hidden],
.product-detail-img-next[hidden] { display: none; }

.product-detail-content {
  align-self: center;
  padding-right: 24px;
}

.product-detail-content h3 {
  margin: 14px 0 14px;
  color: var(--brand);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
}

.product-detail-meta {
  margin: 0 0 16px;
}

.product-detail-sku-row {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
}

.product-detail-sku-row dt {
  color: var(--brand);
  font-weight: 800;
}

.product-detail-sku-row dd {
  margin: 0;
}

.product-detail-short-description,
.product-detail-full-description {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

body.has-product-modal {
  overflow: hidden;
}

.coverage {
  border-top: 1px solid var(--line);
}

.coverage-note {
  display: grid;
  gap: 20px;
}

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

.coverage-points span {
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 5px solid var(--orange);
  border-radius: 7px;
  font-weight: 800;
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding-top: 0;
}

.quote {
  padding: 28px;
}

.quote p {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 1.1rem;
  line-height: 1.65;
}

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

.contact-band {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto 72px;
  justify-content: space-between;
  padding: 34px;
  color: var(--paper);
  background:
    linear-gradient(135deg, rgba(15, 61, 94, 0.96), rgba(55, 65, 81, 0.96)),
    var(--brand-dark);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-band p {
  color: rgba(255, 255, 255, 0.78);
}

.floating-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: var(--paper);
  background: #20b15a;
  border: 3px solid var(--paper);
  border-radius: 50%;
  box-shadow: var(--shadow);
}

.floating-whatsapp svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.72);
  background: var(--brand-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-wordmark-img {
  width: 300px;
  height: auto;
  filter: brightness(0) invert(1);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 84px;
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .intro,
  .coverage,
  .service-grid,
  .testimonials,
  .trust-strip {
    grid-template-columns: 1fr;
  }

  .product-card {
    flex-basis: calc((100% - 18px) / 2);
  }

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

  .hero {
    min-height: 720px;
    align-items: flex-end;
  }

  .hero-overlay {
    background: linear-gradient(0deg, rgba(8, 38, 59, 0.94) 0%, rgba(8, 38, 59, 0.7) 54%, rgba(8, 38, 59, 0.2) 100%);
  }
}

@media (max-width: 560px) {
  .brand {
    min-width: auto;
  }

  .brand-wordmark-img {
    width: 255px;
  }

  .hero {
    min-height: 650px;
  }

  .hero h1 {
    font-size: 3.3rem;
  }

  .product-card {
    flex-basis: 100%;
  }

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

  .product-carousel-button {
    width: 38px;
    height: 38px;
  }

  .product-carousel-button-prev {
    left: -8px;
  }

  .product-carousel-button-next {
    right: -8px;
  }

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

  .product-detail-content {
    padding-right: 0;
  }

  .coverage-points {
    grid-template-columns: 1fr;
  }

  .contact-band,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* ── Carousel in category pages ─────────────────────────────── */
.product-carousel .category-grid {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 18px;
  transition: transform 320ms ease;
  will-change: transform;
}

/* ── Product modal: price ───────────────────────────────────── */
.product-detail-price {
  margin: 0 0 10px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--brand);
}

.product-detail-price s {
  font-weight: 400;
  font-size: 1rem;
  color: var(--muted);
  margin-right: 6px;
  text-decoration: line-through;
}

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

/* ── Product modal: specs table ─────────────────────────────── */
.product-detail-specs[hidden] { display: none; }

.product-detail-specs {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 16px;
  margin: 0 0 18px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 0.9rem;
}

.product-detail-specs dt {
  color: var(--brand);
  font-weight: 700;
  white-space: nowrap;
}

.product-detail-specs dd {
  margin: 0;
  color: var(--ink);
}

/* ── Product modal: actions row ─────────────────────────────── */
.product-detail-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ── Product modal: download buttons row ───────────────────── */
.product-detail-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.product-detail-downloads .product-detail-ficha {
  flex: 1 1 0;
  min-width: 0;
}

/* ── Product modal: ficha tecnica link ──────────────────────── */
.product-detail-ficha {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  color: var(--brand);
  background: var(--brand-soft);
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 0.92rem;
  font-weight: 800;
  text-align: center;
}

.product-detail-ficha:hover {
  background: var(--line);
}

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

/* ── Product modal: HTML description content ────────────────── */
.product-detail-full-description {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.product-detail-full-description p { margin: 0 0 10px; }
.product-detail-full-description ul { margin: 0 0 10px; padding-left: 20px; }
.product-detail-full-description a { color: var(--orange); font-weight: 700; }

/* ── YouTube video section ──────────────────────────────────── */
.video-section {
  border-top: 1px solid var(--line);
}

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

.video-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(15, 61, 94, 0.07);
}

.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  background: var(--surface);
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-card-body {
  padding: 16px 20px 20px;
}

.video-card-body h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  line-height: 1.3;
}

.video-card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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