/*
 * linea.css — Premium Industrial Line Detail Page
 * Extends globals + detalle.css. New selectors only.
 * All values reference existing CSS custom properties.
 */

html {
  scroll-behavior: smooth;
}

/* ============================================================
   HERO
   ============================================================ */
.lp-hero {
  background:
    linear-gradient(150deg,
      rgba(0, 20, 55, .95) 0%,
      rgba(0, 42, 96, .88) 55%,
      rgba(0, 20, 55, .95) 100%);
  padding: 50px 0 44px;
  color: #fff;
}

.lp-hero-inner {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 44px;
  align-items: start;
}

.lp-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .71rem;
  color: var(--c-300);
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.lp-breadcrumb a {
  color: var(--c-300);
  text-decoration: none;
  transition: color .15s;
}

.lp-breadcrumb a:hover {
  color: #fff;
}

.lp-bc-sep {
  color: var(--c-600);
}

.lp-div-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: var(--r-xs);
  padding: 4px 10px;
  font-size: .67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--c-200);
  margin-bottom: 14px;
}

.lp-hero-title {
  font-family: var(--font-c);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 14px;
  letter-spacing: -.01em;
}

.lp-hero-desc {
  font-size: .875rem;
  color: rgba(255, 255, 255, .75);
  line-height: 1.72;
  margin-bottom: 22px;
  max-width: 500px;
}

.lp-hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Ghost button — white outline for dark backgrounds */
.btn-ghost-wh {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  border: 2px solid rgba(255, 255, 255, .35);
  border-radius: var(--r-md);
  color: rgba(255, 255, 255, .88);
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  transition: border-color .2s, color .2s, background .2s;
}

.btn-ghost-wh:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255, 255, 255, .07);
}

/* Aside: spec card + image */
.lp-hero-aside {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lp-spec-card {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: var(--r-xl);
  padding: 18px 20px;
}

.lp-spec-card-title {
  font-size: .67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--c-300);
  margin-bottom: 12px;
}

.lp-spec-card-rows {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.lp-spec-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.lp-spec-row:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.lp-spec-k {
  font-size: .7rem;
  color: var(--c-300);
  font-weight: 500;
  flex-shrink: 0;
}

.lp-spec-v {
  font-size: .7rem;
  color: rgba(255, 255, 255, .9);
  font-weight: 600;
  text-align: right;
}

.lp-hero-img-wrap {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--r-xl);
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 16px;
}

.lp-hero-img-wrap img {
  max-width: 100%;
  max-height: 120px;
  object-fit: contain;
  display: block;
}

/* ============================================================
   CERT BAR
   ============================================================ */
.lp-cert-bar {
  background: var(--c-50);
  border-top: 1.5px solid var(--c-100);
  border-bottom: 1.5px solid var(--c-100);
  padding: 13px 0;
}

.lp-cert-list {
  display: flex;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.lp-cert-list::-webkit-scrollbar {
  display: none;
}

.lp-cert-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 18px;
  white-space: nowrap;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--c-700);
  flex-shrink: 0;
}

.lp-cert-item+.lp-cert-item {
  border-left: 1.5px solid var(--c-200);
}

.lp-cert-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--c-500);
  flex-shrink: 0;
}

/* ============================================================
   SHARED SECTION WRAPPER
   ============================================================ */
.lp-section {
  padding: 48px 0;
}

.lp-section--alt {
  background: var(--c-50);
}

.lp-section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.lp-section-head h2 {
  color: var(--c-900);
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  white-space: nowrap;
}

.lp-section-rule {
  flex: 1;
  height: 1.5px;
  background: var(--c-200);
  border-radius: 1px;
}

/* ============================================================
   TECH DESCRIPTION
   ============================================================ */
.lp-tech-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}

.lp-tech-text p {
  color: #475569;
  font-size: .875rem;
  line-height: 1.75;
  margin-bottom: 14px;
}

.lp-tech-text p:last-child {
  margin-bottom: 0;
}

.lp-tech-img-box {
  background: var(--c-100);
  border: 1.5px solid var(--c-200);
  border-radius: var(--r-2xl);
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 24px;
}

.lp-tech-img-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--c-200) 1px, transparent 1px),
    linear-gradient(90deg, var(--c-200) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: .45;
}

.lp-tech-img-box img {
  max-width: 100%;
  max-height: 220px;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 1;
}

/* ============================================================
   FEATURE BLOCKS
   ============================================================ */
.lp-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.lp-feature-card {
  background: #fff;
  border: 1.5px solid var(--c-100);
  border-radius: var(--r-lg);
  padding: 16px 16px 14px;
  transition: border-color .18s, box-shadow .18s;
}

.lp-feature-card:hover {
  border-color: var(--c-300);
  box-shadow: var(--sh-md);
}

.lp-feature-icon {
  width: 34px;
  height: 34px;
  background: var(--c-50);
  border: 1.5px solid var(--c-100);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-600);
  margin-bottom: 10px;
}

.lp-feature-title {
  font-size: .78rem;
  font-weight: 700;
  color: var(--c-800);
  margin-bottom: 5px;
  line-height: 1.3;
}

.lp-feature-desc {
  font-size: .74rem;
  color: #64748b;
  line-height: 1.6;
}

/* ============================================================
   MODELS TABLE
   ============================================================ */
.lp-tech-tbl th,
.lp-tech-tbl td {
  padding: 9px 12px;
}

.lp-ver-link {
  color: var(--c-600);
  font-size: .78rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.lp-ver-link:hover {
  color: var(--c-800);
  text-decoration: underline;
}

.lp-models-note {
  font-size: .73rem;
  color: #94a3b8;
  margin-top: 10px;
}

/* ============================================================
   ACCESSORIES
   ============================================================ */
.lp-acc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.lp-acc-card {
  border: 1.5px solid var(--c-100);
  border-radius: var(--r-lg);
  padding: 12px 14px;
  background: #fff;
  transition: border-color .18s, background .18s;
}

.lp-acc-card:hover {
  border-color: var(--c-300);
  background: var(--c-50);
}

.lp-acc-name {
  font-size: .78rem;
  font-weight: 700;
  color: var(--c-800);
  margin-bottom: 3px;
  line-height: 1.3;
}

.lp-acc-code {
  font-family: monospace;
  font-size: .7rem;
  color: #94a3b8;
}

/* ============================================================
   FINAL CTA
   ============================================================ */
.lp-cta {
  background: var(--c-900);
  padding: 50px 0;
}

.lp-cta-inner {
  max-width: 600px;
}

.lp-cta-title {
  font-family: var(--font-c);
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.2;
}

.lp-cta-text {
  font-size: .875rem;
  color: rgba(255, 255, 255, .6);
  line-height: 1.72;
  margin-bottom: 22px;
}

.lp-cta-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}


/* ============================================================
   PRODUCTS GRID (MODE A/C)
   ============================================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.prod-card {
  background: #fff;
  display: flex;
  flex-direction: column;
}

.prod-img {
  background: var(--c-100);
  height: 320px;
  /* Increased for vertical photos */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.prod-img.light {
  background: var(--c-50);
}

.prod-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.prod-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.prod-name {
  color: var(--c-800);
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.4;
}

.prod-code {
  color: #64748b;
  font-family: monospace;
  font-size: .85rem;
  margin-bottom: 14px;
  flex: 1;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .lp-hero-inner {
    grid-template-columns: 1fr;
  }

  .lp-hero-aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .lp-hero-desc {
    max-width: 100%;
  }
}

@media (max-width: 840px) {
  .lp-hero-title {
    font-size: 1.8rem;
  }

  .lp-hero-aside {
    grid-template-columns: 1fr;
  }

  .lp-tech-grid {
    grid-template-columns: 1fr;
  }

  .lp-tech-img-box {
    min-height: 200px;
  }

  .lp-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .lp-acc-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .products-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .lp-hero {
    padding: 34px 0 28px;
  }

  .lp-hero-title {
    font-size: 1.5rem;
  }

  .lp-section {
    padding: 34px 0;
  }

  .lp-features-grid {
    grid-template-columns: 1fr;
  }

  .lp-cert-item {
    padding: 0 10px;
    font-size: .65rem;
  }

  .lp-cta {
    padding: 34px 0;
  }

  .lp-cta-title {
    font-size: 1.15rem;
  }

  .prod-img {
    height: 260px;
  }
}

/* ── Product Card overrides for Mode A/C ── */
.prod-img {
  padding: 14px;
}

.prod-img img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.prod-card .btn-solid.full {
  display: block;
  text-align: center;
  margin-top: .75rem;
  padding: .5rem 1rem;
  background: var(--c-700);
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
}