/* ==========================================================================
   Instalación de Cámaras
   ========================================================================== */

/* Héroe oscuro: transmite seguridad */
.cam-hero {
  position: relative;
  overflow: hidden;
  padding-block: var(--sp-7) var(--sp-8);
  background:
    radial-gradient(700px 400px at 90% 10%, rgb(192 22 28 / 0.16), transparent 70%),
    radial-gradient(700px 500px at 0% 100%, rgb(30 58 158 / 0.3), transparent 70%),
    var(--ink-900);
  color: #c9d3e3;
}
@media (min-width: 1024px) { .cam-hero { padding-block: var(--sp-8) var(--sp-9); } }
.cam-hero h1 { color: #fff; margin-bottom: var(--sp-5); }
.cam-hero h1 em { color: var(--accent-on-ink); }
.cam-hero .lead { color: #c9d3e3; max-width: 56ch; margin-bottom: var(--sp-5); }
.cam-hero .eyebrow { color: #ff8a8e; }
.cam-hero .eyebrow::before { background: #ff8a8e; }
.cam-hero .breadcrumb, .cam-hero .breadcrumb a { color: #9fb0c8; }
.cam-hero .pill { color: #fff; }
.cam-hero .pill .icon { color: #ff8a8e; }
.cam-hero .btn--primary { background: var(--cam); }
.cam-hero .btn--primary:hover { background: #e01b22; }
.cam-hero__logo {
  width: 170px;
  margin-bottom: var(--sp-4);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: #fff;
}

/* Monitor tipo DVR */
.dvr {
  position: relative;
  padding: 10px;
  border-radius: var(--radius-lg);
  background: #050b18;
  border: 1px solid rgb(255 255 255 / 0.1);
  box-shadow: 0 30px 60px rgb(0 0 0 / 0.45);
}
.dvr__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.dvr__cell { position: relative; overflow: hidden; border-radius: 8px; aspect-ratio: 16 / 9; background: #111c33; }
.dvr__cell img { width: 100%; height: 100%; object-fit: cover; }
.dvr__cell span {
  position: absolute;
  left: 8px;
  bottom: 6px;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  color: #fff;
  text-shadow: 0 1px 2px #000;
}
.dvr__rec {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgb(0 0 0 / 0.6);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.dvr__rec::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #ff2d33; animation: rec 1.4s ease-in-out infinite; }
@keyframes rec { 50% { opacity: 0.25; } }
/* Fecha y hora en vivo, como en un grabador real (la actualiza main.js) */
.dvr__time {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 1;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgb(0 0 0 / 0.6);
  font-family: var(--font-mono);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: #fff;
}
.dvr__rec { z-index: 1; }
/* Línea de barrido muy tenue sobre cada cámara */
.dvr__cell::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(180deg, rgb(255 255 255 / 0.035) 0 1px, transparent 1px 3px);
  pointer-events: none;
}

/* Segmentos (hogar, negocio...) */
.segment {
  height: 100%;
  padding: var(--sp-5) 0 0;
  border-top: 1px solid var(--line-strong);
}
.segment h3 { font-size: 1.3rem; margin-bottom: var(--sp-2); }
.segment p { margin: 0; color: var(--ink-500); font-size: var(--fs-sm); }
.segment .icon-badge { color: var(--cam-blue); }

/* Galería HD */
.hd-gallery { display: grid; gap: var(--sp-4); }
@media (min-width: 768px) { .hd-gallery { grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr 1fr; } }
.hd-gallery button {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: #000;
  aspect-ratio: 16 / 9;
}
@media (min-width: 768px) {
  .hd-gallery button:first-child { grid-row: span 2; aspect-ratio: auto; }
}
.hd-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
@media (hover: hover) { .hd-gallery button:hover img { transform: scale(1.04); } }
.hd-gallery figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgb(11 26 51 / 0.82);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 600;
}
.hd-gallery figcaption .icon { width: 14px; height: 14px; }
.hd-gallery figure { margin: 0; height: 100%; }

/* Equipos */
.equip-list { list-style: none; display: grid; gap: var(--sp-3); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .equip-list { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.equip-list li {
  display: grid;
  justify-items: start;
  gap: var(--sp-6);
  padding: var(--sp-4);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  color: var(--ink-900);
  transition: border-color var(--dur) ease, transform var(--dur) var(--ease-out);
}
@media (hover: hover) { .equip-list li:hover { border-color: var(--line-strong); transform: translateY(-2px); } }
.equip-list .icon { width: 26px; height: 26px; color: var(--cam); }
.equip-list li:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (min-width: 900px) { .equip-list li:last-child:nth-child(odd) { grid-column: auto; } }
