/* ==========================================================
   tecnoan.com.ar/iot — Estilos de la landing de IoT Industrial
   Extiende css/tecnoan.css (misma paleta y tipografia)
   ========================================================== */

/* ── Sub-nav / breadcrumb ── */
.iot-crumb {
  max-width: 1200px; margin: 0 auto;
  padding: 84px 1.5rem 0;
  font-size: .82rem; color: var(--text-muted);
}
.iot-crumb a { color: var(--text-muted); }
.iot-crumb a:hover { color: var(--accent-blue); }
.iot-crumb span { color: var(--accent-blue); }

/* ── Hero ── */
.iot-hero {
  background: var(--gradient-hero);
  padding: 2.5rem 1.5rem 4.5rem;
  position: relative; overflow: hidden;
}
.iot-hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 82% 40%, rgba(0,212,255,.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 15% 85%, rgba(255,107,53,.06) 0%, transparent 70%);
}
.iot-hero-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 3.5rem;
  align-items: center; position: relative; z-index: 1;
}
.iot-hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  font-weight: 800; line-height: 1.14; margin: 1rem 0 1.1rem;
}
.iot-hero h1 em { font-style: normal; color: var(--accent-blue); }
.iot-hero h1 strong { color: var(--accent-orange); }
.iot-hero p.lead {
  color: var(--text-muted); font-size: 1.06rem;
  max-width: 520px; margin-bottom: 1.75rem;
}
.iot-hero-visual img {
  width: 100%; border-radius: 12px;
  border: 1px solid var(--dark-border);
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
}

/* ── Chips de protocolo bajo el hero ── */
.proto-row {
  display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem;
}
.proto-chip {
  font-size: .78rem; font-weight: 700; letter-spacing: .03em;
  padding: .35rem .8rem; border-radius: 50px;
  background: rgba(0,212,255,.08); border: 1px solid rgba(0,212,255,.25);
  color: var(--accent-blue);
}
.proto-chip.o { background: rgba(255,107,53,.08); border-color: rgba(255,107,53,.28); color: var(--accent-orange); }
.proto-chip.g { background: rgba(0,230,118,.08); border-color: rgba(0,230,118,.28); color: var(--accent-green); }

/* ── KPIs ── */
.kpi-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  max-width: 1200px; margin: -2.5rem auto 0; padding: 0 1.5rem;
  position: relative; z-index: 3;
}
.kpi {
  background: #fff; border: 1px solid var(--dark-border);
  border-radius: 8px; padding: 1.4rem 1.2rem; text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.kpi .n { font-size: 1.9rem; font-weight: 800; color: var(--accent-blue); }
.kpi .n.o { color: var(--accent-orange); }
.kpi .n.g { color: var(--accent-green); }
.kpi .l { font-size: .8rem; color: var(--text-muted); margin-top: .25rem; }

/* ── Problema / dolor ── */
.problem-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
  gap: 1.25rem;
}
.problem-card {
  background: var(--dark-bg); border: 1px solid var(--dark-border);
  border-left: 3px solid var(--accent-orange);
  border-radius: 12px; padding: 1.5rem;
}
.problem-card h4 { font-size: 1rem; margin-bottom: .4rem; }
.problem-card p { color: var(--text-muted); font-size: .88rem; }

/* ── Figuras / imagenes con epigrafe ── */
.figure {
  background: var(--dark-bg); border: 1px solid var(--dark-border);
  border-radius: 16px; padding: 1.75rem; overflow-x: auto;
}
.figure img { display: block; width: 100%; min-width: 620px; }
.figure.wide img { min-width: 900px; }
.figure figcaption {
  margin-top: 1rem; font-size: .82rem; color: var(--text-muted);
  text-align: center;
}

/* ── PLC / SCADA destacado ── */
.plc-block { background: var(--dark-card); }
.plc-grid {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: start;
}
.plc-list { list-style: none; }
.plc-list li {
  display: flex; gap: .8rem; padding: .85rem 0;
  border-bottom: 1px solid var(--dark-border); font-size: .92rem;
}
.plc-list li:last-child { border: none; }
.plc-list li b { color: var(--accent-blue); font-weight: 700; white-space: nowrap; }
.plc-list li span { color: var(--text-muted); }
.proto-table {
  background: var(--dark-bg); border: 1px solid var(--dark-border);
  border-radius: 14px; overflow: hidden; font-size: .84rem;
}
.proto-table div {
  display: grid; grid-template-columns: 1fr 1fr;
  padding: .7rem 1rem; border-bottom: 1px solid var(--dark-border);
}
.proto-table div:last-child { border: none; }
.proto-table div:nth-child(odd) { background: rgba(0,0,0,.02); }
.proto-table b { color: var(--text-light); font-weight: 700; }
.proto-table span { color: var(--text-muted); }

/* ── Casos de uso ── */
.usecase-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
  gap: 1.5rem;
}
.usecase-card {
  background: var(--dark-card); border: 1px solid var(--dark-border);
  border-radius: 14px; padding: 1.75rem;
  transition: border-color .3s, transform .3s;
}
.usecase-card:hover { border-color: var(--accent-blue); transform: translateY(-5px); }
.usecase-card .uc-ico {
  width: 46px; height: 46px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 1rem; background: rgba(0,212,255,.1);
}
.usecase-card h4 { font-size: 1.02rem; margin-bottom: .45rem; }
.usecase-card p { color: var(--text-muted); font-size: .87rem; }
.usecase-card .uc-metric {
  margin-top: .9rem; font-size: .8rem; font-weight: 700;
  color: var(--accent-green);
}

/* ── Timeline de implementacion ── */
.timeline { position: relative; margin-top: 1rem; }
.timeline::before {
  content: ''; position: absolute; left: 19px; top: 8px; bottom: 8px;
  width: 2px; background: var(--dark-border);
}
.tl-step { position: relative; padding: 0 0 1.75rem 3.25rem; }
.tl-step::before {
  content: ''; position: absolute; left: 12px; top: 3px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--dark-bg); border: 2px solid var(--accent-blue);
}
.tl-step:last-child { padding-bottom: 0; }
.tl-step h4 { font-size: 1rem; margin-bottom: .3rem; }
.tl-step h4 span { color: var(--accent-blue); font-weight: 700; margin-right: .5rem; }
.tl-step p { color: var(--text-muted); font-size: .88rem; }

/* ── Stack / componentes ── */
.stack-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr));
  gap: 1rem;
}
.stack-item {
  background: var(--dark-card); border: 1px solid var(--dark-border);
  border-radius: 12px; padding: 1.1rem 1.25rem;
}
.stack-item b { display: block; font-size: .92rem; margin-bottom: .2rem; }
.stack-item span { color: var(--text-muted); font-size: .8rem; }

/* ── CTA final ── */
.iot-cta {
  background: var(--dark-card);
  border: 1px solid var(--dark-border); border-radius: 12px;
  padding: 3rem 2rem; text-align: center; max-width: 900px; margin: 0 auto;
}
.iot-cta h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: .8rem; }
.iot-cta p { color: var(--text-muted); max-width: 520px; margin: 0 auto 1.75rem; }
.iot-cta .cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .iot-hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .plc-grid { grid-template-columns: 1fr; gap: 2rem; }
  .kpi-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .kpi-row { grid-template-columns: 1fr 1fr; }
  .proto-table div { grid-template-columns: 1fr; gap: .2rem; }
}
