/* ==========================================================================
   ExtraIoT — Hero interactivo con dashboard en vivo + video ambiental
   Additive: se carga despues de styles.css. Issue #13.
   Paleta de marca: --navy #1E417A / --cyan #61CBCB
   ========================================================================== */
.hero.hero-live { padding: 0; }
.hero.hero-live .hero-grid { padding-top: 96px; padding-bottom: 110px; position: relative; z-index: 2; }

.hero-video-wrap { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-video-wrap video { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(1.08) brightness(1.15); }
.hero-video-wrap::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(1000px 600px at 82% 10%, rgba(97,203,203,.18), transparent 55%),
    linear-gradient(90deg, rgba(16,38,72,.72) 0%, rgba(16,38,72,.34) 45%, rgba(16,38,72,.06) 100%),
    linear-gradient(180deg, rgba(16,38,72,.06), rgba(16,38,72,.38));
}

.hero-live-card {
  background: linear-gradient(180deg, rgba(20,30,50,.82), rgba(10,20,40,.9));
  border: 1px solid rgba(255,255,255,.10); border-radius: var(--radius-lg);
  padding: 18px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-lg);
}
.hero-live-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.08); }
.hero-live-head .hl-room { color: #fff; font-family: 'Space Grotesk'; font-weight: 600; font-size: .95rem; }
.hero-live-head .hl-clock { color: var(--cyan); font-size: .82rem; font-variant-numeric: tabular-nums; }

.hl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.hl-tile { cursor: pointer; user-select: none; border-radius: 14px; padding: 12px 13px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); transition: background var(--transition), border-color var(--transition), transform var(--transition); }
.hl-tile:hover { transform: translateY(-2px); }
.hl-tile:active { transform: scale(.97); }
.hl-tile .hl-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 9px; background: rgba(255,255,255,.06); color: #7d8daf; transition: all var(--transition); }
.hl-tile .hl-ic svg { width: 18px; height: 18px; }
.hl-tile .hl-name { color: #fff; font-size: .82rem; font-weight: 600; }
.hl-tile .hl-state { color: #8fa0c0; font-size: .72rem; margin-top: 1px; }
.hl-tile.on { background: rgba(97,203,203,.16); border-color: rgba(97,203,203,.5); }
.hl-tile.on .hl-ic { background: rgba(97,203,203,.22); color: var(--cyan); }
.hl-tile.on .hl-state { color: var(--cyan); }

.hl-foot { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.08); display: flex; align-items: center; justify-content: space-between; font-size: .72rem; color: #7d8daf; }
.hl-foot .hl-live { display: inline-flex; align-items: center; gap: 6px; color: var(--cyan); font-weight: 600; }
.hl-foot .hl-live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgba(97,203,203,.7); animation: hl-pulse 1.7s infinite; }
@keyframes hl-pulse { 0% { box-shadow: 0 0 0 0 rgba(97,203,203,.6); } 70% { box-shadow: 0 0 0 10px rgba(97,203,203,0); } 100% { box-shadow: 0 0 0 0 rgba(97,203,203,0); } }

@media (max-width: 720px) {
  .hero.hero-live .hero-grid { padding-top: 70px; padding-bottom: 72px; }
  .hero-video-wrap::after { background: linear-gradient(180deg, rgba(16,38,72,.90) 0%, rgba(16,38,72,.70) 50%, rgba(16,38,72,.85) 100%); }
}
@media (prefers-reduced-motion: reduce) { .hero-video-wrap video { display: none; } .hl-foot .hl-live::before { animation: none; } }
