/* ── Hardware rail (base) ───────────────────────────────────────── */
.hardware { background: var(--paper); }

.hardware-rail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: .75rem;
  margin-top: 2.2rem;
}

.hardware-rail figure {
  min-height: 14rem;
  display: grid;
  align-content: end;
  justify-items: center;
  gap: .8rem;
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  box-shadow: none;
}

.hardware-rail img {
  width: 100%;
  height: 10rem;
  filter: none;
  object-fit: contain;
}

.hardware-rail figcaption {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 500;
}

/* ── Conectividade ──────────────────────────────────────────────── */
.connectivity-section { background: var(--soft); }

.connectivity-inner { display: grid; gap: 3rem; }

.connectivity-specs { display: grid; gap: 1rem; margin-top: 1.5rem; }

.spec-item {
  padding: 1rem 1.25rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.spec-item:hover {
  transform: translateY(-2px);
  border-color: rgba(124,58,237,.25);
  box-shadow: var(--shadow-sm);
}

.spec-item strong { display: block; font-size: .9rem; margin-bottom: .3rem; color: var(--ink); }
.spec-item p      { font-size: .85rem; margin: 0; }

.connectivity-visual { position: relative; }

.connectivity-visual > img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

/* ── Gateway card ───────────────────────────────────────────────── */
.gw-card {
  margin-top: 1rem;
  background: var(--dark-card);
  border-radius: var(--radius);
  padding: 1.25rem;
  color: #fff;
}

.gw-card-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.gw-card-top img    { width: 52px; height: 52px; object-fit: contain; border-radius: 8px; background: #fff; padding: .3rem; }
.gw-card-top strong { display: block; font-weight: 600; }
.gw-card-top span   { font-size: .8rem; color: rgba(255,255,255,.5); }

.gw-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }

.gw-card li {
  font-size: .84rem;
  color: rgba(255,255,255,.7);
  display: flex;
  align-items: center;
  gap: .5rem;
}

.gw-card li::before { content: '→'; color: var(--purple-light); font-size: .75rem; }

/* ── Hardware installation ──────────────────────────────────────── */
.hardware-installation {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.hardware-installation > img {
  width: 100%;
  max-height: 26rem;
  object-fit: cover;
  object-position: center top;
}

.installation-caption { padding: 1.5rem; }
.installation-caption strong { display: block; margin-bottom: .45rem; font-size: 1rem; }
.installation-caption p      { font-size: .9rem; margin: 0; }

/* ── Setores ────────────────────────────────────────────────────── */
.sectors-section { background: var(--soft); }

.sectors-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
  grid-template-columns: 1fr;
}

.sector-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
}

.sector-card strong { display: block; margin-bottom: .45rem; font-size: 1rem; color: var(--ink); }
.sector-card p      { font-size: .9rem; margin: 0; }

/* ── OEE dashboard (página oee.html) ───────────────────────────── */
.product-hero {
  grid-template-columns: minmax(0, .9fr) minmax(20rem, 1.1fr);
}

.oee-dashboard {
  border-radius: 1.6rem;
  padding: 1.3rem;
  color: #fff;
  background: var(--dark);
  box-shadow: var(--shadow-lg);
}

.dashboard-top {
  display: flex;
  justify-content: space-between;
  color: rgba(255,255,255,.66);
  font-size: .78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.dashboard-main {
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: 1.3rem;
  align-items: center;
  margin-top: 2rem;
}

.big-gauge {
  width: 12rem;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--purple) 0 274deg, rgba(255,255,255,.13) 274deg 360deg);
}

.big-gauge span  { font-size: 3.4rem; font-weight: 950; }
.big-gauge small { display: block; color: rgba(255,255,255,.62); font-size: .72rem; font-weight: 850; text-transform: uppercase; }

.loss-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.loss-grid article {
  min-height: 13rem;
  display: grid;
  align-content: end;
  gap: .85rem;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 16px 44px rgba(7,17,31,.06);
}

.loss-grid article span {
  color: var(--purple);
  font-size: .78rem;
  font-weight: 950;
}

.loss-grid article p { font-size: .95rem; }

/* ── Simulador de OEE ───────────────────────────────────────────── */
.simulator-section {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(20rem, 1.2fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  background: #fff;
}

.simulator-card {
  display: grid;
  gap: 1.1rem;
  padding: 1.2rem;
  border-radius: 1.3rem;
  color: #fff;
  background: var(--dark);
  box-shadow: var(--shadow-lg);
}

.sim-result {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,.14);
}

.sim-result span  { font-size: clamp(4rem, 11vw, 7rem); font-weight: 950; line-height: .82; }
.sim-result small { color: rgba(255,255,255,.68); font-weight: 850; }

.simulator-card label {
  display: grid;
  gap: .55rem;
  color: rgba(255,255,255,.76);
  font-size: .9rem;
  font-weight: 780;
}

.simulator-card label span { display: flex; justify-content: space-between; }
.simulator-card input[type="range"] { accent-color: var(--purple-light); }

.dark-split { color: #fff; background: var(--dark); }
.dark-split h2 { color: #fff; }
.dark-split p  { color: rgba(255,255,255,.72); }

.device-stack { min-height: 28rem; position: relative; }

.device-stack img {
  position: absolute;
  object-fit: contain;
  filter: drop-shadow(0 24px 32px rgba(0,0,0,.35));
}

.device-stack img:nth-child(1) { left: 3%;  top: 20%; width: 13%; }
.device-stack img:nth-child(2) { left: 15%; top: 2%;  width: 68%; }
.device-stack img:nth-child(3) { right: 0;  bottom: 0; width: 46%; }

/* ── Responsivo: connectivity / hardware / oee ──────────────────── */
@media (max-width: 920px) {
  .simulator-section { grid-template-columns: 1fr; }

  .capability-grid, .loss-grid, .hardware-rail { grid-template-columns: 1fr; }

  .dashboard-main { grid-template-columns: 1fr; justify-items: center; }
  .big-gauge { width: min(12rem, 82vw); }

  .device-stack { min-height: 24rem; }
  .device-stack img:nth-child(1) { width: 16%; }
  .device-stack img:nth-child(2) { width: 80%; left: 8%; }
  .device-stack img:nth-child(3) { width: 48%; }
}

@media (min-width: 700px) {
  .hardware-rail      { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .connectivity-specs { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .hardware-installation { grid-template-columns: 1fr 1fr; }
  .hardware-installation > img { max-height: 100%; height: 100%; object-position: center; }
}

@media (min-width: 1000px) {
  .connectivity-inner { grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
}
