
:root {
  --cam-color: #00ff00;
  /* Green for camera overlay */
  --cam-bg: #000000;
  --cam-text: #e0e0e0;
  --cam-highlight: #ff0000;
  /* Red for REC */
}

body {
  background-color: var(--cam-bg);
  color: var(--cam-text);
  font-family: "ocr-a-std", monospace;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header Override */
nav {
  border-bottom: 1px solid var(--cam-color);
}

nav a {
  color: var(--cam-color) !important;
}

nav a:hover {
  background: var(--cam-color) !important;
  color: #000 !important;
}

/* Main Container */
.cam-container {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px;
  box-sizing: border-box;
  background:
    linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%),
    linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
  background-size: 100% 2px, 3px 100%;
}

/* Security Camera Overlay Elements */
.overlay-ui {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
  padding: 20px;
  box-sizing: border-box;
}







.crosshair {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.ch-tl {
  top: 20px;
  left: 20px;
  border-right: none;
  border-bottom: none;
}

.ch-tr {
  top: 20px;
  right: 20px;
  border-left: none;
  border-bottom: none;
}

.ch-bl {
  bottom: 20px;
  left: 20px;
  border-right: none;
  border-top: none;
}

.ch-br {
  bottom: 20px;
  right: 20px;
  border-left: none;
  border-top: none;
}

.center-cross {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  opacity: 0.3;
}



/* Content Layout */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  height: 100%;
  z-index: 20;
  margin-top: 60px;
  /* Space for header overlay */
}

/* Left Column: Visuals */
.visual-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--cam-color);
  padding: 20px;
  background: rgba(0, 20, 0, 0.3);
  position: relative;
}

.diagram-img {
  max-width: 100%;
  max-height: 60vh;
  border: 2px solid var(--cam-color);
  box-shadow: 0 0 15px rgba(0, 255, 0, 0.2);
  filter: sepia(100%) hue-rotate(50deg) saturate(300%) contrast(0.8);
  /* Greenish night vision look */
  transition: filter 0.3s ease;
}

.diagram-img:hover {
  filter: none;
  /* hover efecto para imagen */
}

/* manual interactivo  */
.manual-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.manual-header {
  border-bottom: 2px solid var(--cam-color);
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.manual-title {
  font-size: 1.5rem;
  color: var(--cam-color);
  text-transform: uppercase;
  margin: 0;
}

.step-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.step-btn {
  background: transparent;
  border: 1px solid var(--cam-color);
  color: var(--cam-color);
  padding: 10px 15px;
  cursor: pointer;
  font-family: inherit;
  text-transform: uppercase;
  transition: all 0.3s;
}

.step-btn:hover,
.step-btn.active {
  background: var(--cam-color);
  color: #000;
  box-shadow: 0 0 10px var(--cam-color);
}

.step-content {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid #333;
  padding: 20px;
  flex: 1;
  display: none;
  /* Hidden by default */
  animation: fadeIn 0.5s;
}

.step-content.active {
  display: block;
}

.step-content h3 {
  color: #fff;
  border-left: 4px solid var(--cam-color);
  padding-left: 10px;
  margin-top: 0;
}

.step-content p,
.step-content ul {
  line-height: 1.6;
  color: #ccc;
}

.step-content li {
  margin-bottom: 8px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 900px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

  .visual-col {
    order: -1;
  }
}