/* Automatización Inteligente › IoT (docs/lib/iot-block.cjs, td-iot.js). A block at the end of capability 05,
   separated by the capability's hairline: heading (title left, introduction right), then a large screenshot of the IoT
   operations centre with three options beside it. The screenshots are light interfaces: they sit in a thin dark bezel
   so they read as a screen on the dark page, without altering their content. */
.iot{margin-top:42px;padding-top:32px;border-top:1px solid #ffffff16}
.iot-head{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:56px;align-items:end}
.iot-head .cap-eyebrow{margin:0}
.iot-head h4{margin:12px 0 0;font-size:clamp(1.4rem,2vw,1.9rem);font-weight:400;line-height:1.28;letter-spacing:-.03em;color:#f3f5fc;text-wrap:balance}
.iot-intro{margin:0;font-size:.92rem;line-height:1.85;color:#b8c5d9}
.iot-body{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);gap:40px;align-items:center;margin-top:28px}

/* Stage: the three screenshots share one cell and cross-fade. */
.iot-stage{min-width:0}
.iot-shots{display:grid}
.iot-shot{grid-area:1/1;margin:0;min-width:0}
.iot-body.is-enhanced .iot-shot{opacity:0;visibility:hidden;transform:translateY(6px);transition:opacity .35s ease,transform .35s ease,visibility 0s linear .35s}
.iot-body.is-enhanced .iot-shot.is-active{opacity:1;visibility:visible;transform:none;transition:opacity .35s ease,transform .35s ease,visibility 0s}
.iot-body:not(.is-enhanced) .iot-shots{gap:18px}
.iot-body:not(.is-enhanced) .iot-shot{grid-area:auto}
.iot-screen{padding:6px;border:1px solid rgba(255,255,255,.1);border-radius:14px;background:linear-gradient(160deg,#111c33,#070d1d);box-shadow:0 24px 60px rgba(0,1,14,.55),inset 0 1px 0 rgba(255,255,255,.05)}
.iot-screen img{display:block;width:100%;height:auto;aspect-ratio:16/10;border-radius:9px}
.iot-note{margin:12px 0 0;font-size:.68rem;letter-spacing:.02em;line-height:1.5;color:#7f95ae}

/* Options: a quiet vertical track; the active one gets the cyan-to-blue accent and full-contrast text. */
.iot-options{display:grid;gap:4px;min-width:0;border-left:1px solid #ffffff14}
.iot-option{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr);gap:16px;padding:16px 4px 16px 22px;color:inherit;text-decoration:none;cursor:pointer;transition:background .25s ease}
.iot-option::before{content:'';position:absolute;left:-1px;top:12px;bottom:12px;width:2px;border-radius:2px;background:linear-gradient(180deg,#00b0d1,#0095e5);transform:scaleY(0);transition:transform .3s ease}
.iot-option-num{padding-top:3px;font-size:.66rem;letter-spacing:.12em;color:#5e7a96;transition:color .25s ease}
.iot-option-text{display:grid;gap:5px;min-width:0}
.iot-option-name{font-size:1rem;font-weight:500;line-height:1.35;color:#aebdd0;transition:color .25s ease}
.iot-option-desc{font-size:.8rem;line-height:1.65;color:#8296ad;transition:color .25s ease}
.iot-option:hover .iot-option-name{color:#e3edf7}
.iot-option.is-active{background:linear-gradient(90deg,rgba(0,176,209,.07),rgba(0,176,209,0) 85%)}
.iot-option.is-active::before{transform:scaleY(1)}
.iot-option.is-active .iot-option-num{color:#00b0d1}
.iot-option.is-active .iot-option-name{color:#fff}
.iot-option.is-active .iot-option-desc{color:#b8c8d9}
.iot-option:focus-visible{outline:2px solid #00b0d1;outline-offset:-2px;border-radius:4px}

/* Short laptop screens (e.g. 1366×768): a little less air. */
@media (min-width:1001px) and (max-height:820px){
  .iot{margin-top:34px;padding-top:26px}
  .iot-body{margin-top:22px;gap:32px}
  .iot-option{padding:12px 4px 12px 20px}
}
/* Tablet: screenshot on top, the three options in a row below it (accent on top). */
@media (max-width:1000px){
  .iot-head{grid-template-columns:minmax(0,1fr);gap:14px}
  .iot-body{grid-template-columns:minmax(0,1fr);gap:20px}
  .iot-options{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;border-left:0;border-top:1px solid #ffffff14}
  .iot-option{grid-template-columns:minmax(0,1fr);gap:6px;padding:14px 6px 10px}
  .iot-option::before{left:0;right:0;top:-1px;bottom:auto;width:auto;height:2px;transform:scaleX(0);background:linear-gradient(90deg,#00b0d1,#0095e5)}
  .iot-option.is-active::before{transform:scaleX(1)}
  .iot-option.is-active{background:linear-gradient(180deg,rgba(0,176,209,.07),rgba(0,176,209,0) 85%)}
}
/* Mobile: one option per row again (short descriptions stay readable), accent on the left. */
@media (max-width:600px){
  .iot{margin-top:32px;padding-top:26px}
  .iot-head h4{font-size:1.35rem}
  .iot-screen{padding:4px;border-radius:11px}
  .iot-screen img{border-radius:7px}
  .iot-options{grid-template-columns:minmax(0,1fr);gap:2px;border-top:0;border-left:1px solid #ffffff14}
  .iot-option{grid-template-columns:auto minmax(0,1fr);gap:14px;padding:12px 4px 12px 18px}
  .iot-option::before{left:-1px;right:auto;top:10px;bottom:10px;width:2px;height:auto;transform:scaleY(0);background:linear-gradient(180deg,#00b0d1,#0095e5)}
  .iot-option.is-active::before{transform:scaleY(1)}
  .iot-option.is-active{background:linear-gradient(90deg,rgba(0,176,209,.07),rgba(0,176,209,0) 85%)}
}
@media (prefers-reduced-motion:reduce){
  .iot-body.is-enhanced .iot-shot,.iot-body.is-enhanced .iot-shot.is-active,.iot-option,.iot-option::before,.iot-option-name,.iot-option-desc,.iot-option-num{transition:none}
  .iot-body.is-enhanced .iot-shot{transform:none}
}
