:root {
  /* v2-aligned palette — Performance layer (cyan/blue) */
  --bg: #040609;
  --bg-alt: #070c14;
  --card: rgba(10, 18, 28, 0.96);
  --card-2: rgba(5, 11, 18, 0.98);
  --border: rgba(78, 168, 255, 0.35);
  --border-strong: rgba(83, 217, 255, 0.55);
  --border-gold: rgba(255, 190, 85, 0.55);
  --text: #d9e6ff;
  --muted: #9fb0c9;
  --title: #d9e6ff;
  --ok: #43db7c;
  --warn: var(--woper-warning);
  --danger: var(--woper-danger);
  --layer-color: rgba(83, 217, 255, 0.85);
  --layer-glow: rgba(83, 217, 255, 0.4);
  --glow-layer: 0 0 24px rgba(83, 217, 255, 0.25);
  --glow-gold: 0 0 0 1px rgba(255, 190, 85, 0.06);
  --glow-green: 0 0 28px rgba(78, 168, 255, 0.15);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at 18% 8%, #050a10 0%, #020304 50%, #000000 100%);
  color: var(--text);
  font-family: var(--woper-font-display);
  font-size: 0.95rem;
  line-height: 1.5;
}

body {
  min-height: 100vh;
}

a {
  color: var(--title);
  text-decoration: none;
}

a:hover { text-decoration: underline; }

.pd-shell {
  width: min(1240px, 94%);
  margin: 24px auto;
  padding-bottom: 22px;
}

.pd-topbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  margin-bottom: 18px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff1b8;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 6px;
}

.layer-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

/* ── nav icons via CSS (span.nav-icon) ── */
.nav-icon--incident::before   { content: '⦿ '; }
.nav-icon--warroom::before    { content: '◈ '; }
.nav-icon--performance::before{ content: '▥ '; }
.nav-icon--cabina::before     { content: '⛨ '; }

.layer-link {
  padding: 6px 10px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.87rem;
  border: 1px solid #2a3f5a;
  color: #d7e3ff;
  background: rgba(12, 19, 33, 0.85);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.layer-link:hover {
  text-decoration: none;
  border-color: rgba(83, 217, 255, 0.35);
  box-shadow: 0 0 8px rgba(83, 217, 255, 0.15);
  color: #ffffff;
}

/* Layer-specific colors */
.layer-link[href*="INCIDENT_REPORT_ENGINE"] {
  border-color: rgba(255, 61, 87, 0.72);
  color: #ffd1d8;
  background: rgba(72, 14, 24, 0.9);
}
.layer-link[href*="INCIDENT_REPORT_ENGINE"]:hover {
  box-shadow: 0 0 12px rgba(255, 61, 87, 0.45);
}

.layer-link[href*="WARROOM"] {
  border-color: rgba(255, 190, 85, 0.72);
  color: #ffe3b0;
  background: rgba(58, 39, 9, 0.9);
}
.layer-link[href*="WARROOM"]:hover {
  box-shadow: 0 0 12px rgba(255, 190, 85, 0.45);
}

.layer-link.active,
.layer-link.layer-link-performance.active,
.layer-link[href*="PERFORMANCE"].active {
  border-color: rgba(83, 217, 255, 0.85);
  color: #c6eeff;
  background: rgba(8, 36, 53, 0.9);
  box-shadow: 0 0 20px rgba(83, 217, 255, 0.45);
}

.layer-link.layer-link-performance,
.layer-link[href*="PERFORMANCE"] {
  border-color: rgba(83, 217, 255, 0.75);
  color: #c6eeff;
  background: rgba(8, 36, 53, 0.9);
}
.layer-link.layer-link-performance:hover,
.layer-link[href*="PERFORMANCE"]:hover {
  box-shadow: 0 0 12px rgba(83, 217, 255, 0.35);
}

.layer-link.layer-link-cabina,
.layer-link[href*="CABINA"] {
  border-color: rgba(67, 219, 124, 0.72);
  color: #c5ffd8;
  background: rgba(9, 49, 27, 0.9);
}
.layer-link.layer-link-cabina:hover,
.layer-link[href*="CABINA"]:hover {
  box-shadow: 0 0 12px rgba(67, 219, 124, 0.35);
}

.layer-link.layer-link-cabina {
  background: rgba(9, 49, 27, 0.9);
  color: #c5ffd8;
  border: 1px solid rgba(67, 219, 124, 0.72);
  box-shadow: none;
}

.layer-link.layer-link-cabina:hover {
  box-shadow: 0 0 12px rgba(67, 219, 124, 0.35);
  border-color: rgba(67, 219, 124, 0.85);
}

.pd-top-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.pd-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(78, 168, 255, 0.5);
  background: rgba(10, 18, 28, 0.85);
  color: #d9e6ff;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: all 0.2s ease;
}

.pd-link:hover {
  border-color: rgba(83, 217, 255, 0.6);
  text-decoration: none;
  box-shadow: 0 0 12px rgba(83, 217, 255, 0.2);
}

.pd-link.pd-link--critical {
  border-color: rgba(255, 98, 98, 0.72);
  background: linear-gradient(135deg, rgba(92, 18, 18, 0.95), rgba(44, 12, 12, 0.98));
  color: #ffe6e6;
  box-shadow:
    0 0 0 1px rgba(255, 98, 98, 0.12),
    0 0 16px rgba(255, 88, 88, 0.20),
    inset 0 0 12px rgba(255, 130, 130, 0.08);
}

.pd-link.pd-link--critical:hover {
  border-color: rgba(255, 130, 130, 0.86);
  background: linear-gradient(135deg, rgba(122, 24, 24, 0.98), rgba(55, 14, 14, 1));
  box-shadow:
    0 0 0 1px rgba(255, 98, 98, 0.16),
    0 0 22px rgba(255, 88, 88, 0.28),
    inset 0 0 12px rgba(255, 130, 130, 0.10);
}

.pd-lang-switch {
  display: flex;
  border: 1px solid #2a3a57;
  border-radius: 10px;
  overflow: hidden;
}

.pd-lang-btn {
  padding: 8px 11px;
  border: 0;
  border-radius: 0;
  font-size: 0.82rem;
  font-weight: 700;
  background: #0a1218;
  color: #b5c4df;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.04em;
}

.pd-lang-btn:hover {
  background: rgba(15, 28, 45, 0.8);
  color: #d7e3ff;
}

.pd-lang-btn.active,
.pd-lang-btn.is-active {
  background: #1f3a52;
  color: #ffffff;
}

.pd-lang-btn.inactive {
  background: #0a1218;
  color: #b5c4df;
}

.pd-hero,
.pd-card {
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--glow-layer), 0 18px 40px rgba(0, 0, 0, 0.5);
}

.pd-hero {
  padding: 24px 26px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(8, 36, 53, 0.72), rgba(4, 10, 18, 0.98));
  border-left: 4px solid rgba(83, 217, 255, 0.85);
}

.performance-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.performance-cabina-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 210, 90, 0.85);
  background: linear-gradient(135deg, #8a5708, #d99a1c);
  color: #fff;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 800;
  box-shadow: 0 0 12px rgba(255, 198, 70, 0.32);
  white-space: nowrap;
}

.performance-cabina-btn:hover {
  text-decoration: none;
  filter: saturate(1.05);
  box-shadow: 0 0 14px rgba(255, 198, 70, 0.4);
}

.performance-cabina-btn:focus-visible {
  outline: 2px solid rgba(255, 224, 130, 0.95);
  outline-offset: 2px;
}

.pd-title {
  margin: 0;
  color: #d9e6ff;
  letter-spacing: 0.05em;
  font-size: clamp(30px, 4vw, 44px);
  text-shadow: 0 0 22px rgba(83, 217, 255, 0.2);
}

.pd-subtitle {
  margin: 10px 0 0 0;
  color: var(--muted);
  max-width: 860px;
  line-height: 1.6;
  font-size: 1.02rem;
}

.pd-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.pd-card {
  padding: 20px;
}

.operational-module-card {
  position: relative;
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(8, 18, 30, 0.96), rgba(4, 10, 18, 0.99));
  border: 1px solid rgba(83, 217, 255, 0.38);
  box-shadow: 0 0 24px rgba(83, 217, 255, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 18px 40px rgba(0, 0, 0, 0.5);
  transition: border-color 0.2s ease;
}

.operational-module-card:hover {
  border-color: rgba(83, 217, 255, 0.55);
}

.module-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.module-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid rgba(83, 217, 255, 0.45);
  background: rgba(8, 36, 53, 0.45);
  box-shadow: 0 0 14px rgba(83, 217, 255, 0.2);
  font-size: 24px;
  flex: 0 0 auto;
}

.module-title {
  margin: 0;
  color: #fff1b8;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.module-subtitle {
  margin: 4px 0 0;
  color: rgba(213, 255, 219, 0.68);
  font-size: 14px;
  line-height: 1.5;
}

.module-body {
  display: grid;
  gap: 10px;
}


.tactical-row {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 10px;
  margin: 10px 0;
}

.tactical-label {
  color: #9fb0c9;
  font-weight: 700;
  font-size: 0.82rem;
}

.tactical-value {
  color: #d9e6ff;
  font-weight: 600;
}

.action-highlight {
  border: 1px solid rgba(255, 213, 91, 0.62);
  background: rgba(62, 48, 11, 0.28);
  border-radius: 14px;
  padding: 14px 16px;
  color: #fff4c2;
}

.tactical-log-list,
.tactical-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tactical-log-item {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 10px;
  margin: 10px 0;
  padding: 10px 12px;
  border: 1px solid rgba(83, 217, 255, 0.16);
  border-radius: 14px;
  background: rgba(5, 12, 22, 0.65);
  transition: border-color 0.2s ease;
}

.tactical-log-item:hover {
  border-color: rgba(83, 217, 255, 0.3);
}

.timeline-item {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 14px;
  margin: 12px 0;
  padding: 14px 16px;
  border: 1px solid rgba(78, 168, 255, 0.18);
  border-radius: 16px;
  background: rgba(5, 12, 22, 0.54);
  transition: border-color 0.2s ease;
}

.timeline-item:hover {
  border-color: rgba(83, 217, 255, 0.3);
}

.timeline-stamp {
  color: #d9e6ff;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.timeline-body {
  display: grid;
  gap: 4px;
}

.timeline-empty {
  grid-template-columns: 1fr;
  color: #9fb0c9;
}

.pd-card-global {
  border-left: 4px solid rgba(83, 217, 255, 0.8);
}

.pd-card-incident {
  border-left: 4px solid rgba(255, 61, 87, 0.8);
}

.pd-card-decision {
  border-left: 4px solid rgba(255, 190, 85, 0.8);
}

.pd-card-action {
  border-left: 4px solid rgba(67, 219, 124, 0.8);
}

.pd-card-trace {
  border-left: 4px solid rgba(83, 217, 255, 0.6);
}

.pd-card h2 {
  margin: 0 0 10px 0;
  color: #d9e6ff;
  font-size: 1.18rem;
  letter-spacing: 0.04em;
  font-weight: 800;
}

.pd-kv {
  margin: 9px 0;
  line-height: 1.55;
  color: #9fb0c9;
}

.pd-kv strong {
  color: #d9e6ff;
  font-weight: 700;
}

.pd-alert {
  border-left: 4px solid var(--border-gold);
}

.pd-action {
  border: 1px solid rgba(83, 217, 255, 0.35);
  border-radius: 14px;
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(8, 18, 30, 0.96), rgba(4, 10, 18, 0.99));
  color: var(--text);
  line-height: 1.55;
  box-shadow: none;
}

.pd-status-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.pd-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 12px;
  border: 1px solid rgba(78, 168, 255, 0.42);
  font-size: 0.82rem;
  font-weight: 700;
  background: rgba(8, 36, 53, 0.55);
  color: #c6eeff;
}

.pd-pill-ok {
  background: rgba(9, 49, 27, 0.55);
  color: #c5ffd8;
  border-color: rgba(67, 219, 124, 0.46);
}

.pd-pill-warn {
  background: rgba(58, 39, 9, 0.55);
  color: #ffe3b0;
  border-color: rgba(255, 190, 85, 0.46);
}

.pd-pill-danger {
  background: rgba(72, 14, 24, 0.55);
  color: #ffd1d8;
  border-color: rgba(255, 61, 87, 0.42);
}

.pd-pill-neutral {
  background: rgba(10, 18, 28, 0.55);
  color: #9fb0c9;
  border-color: rgba(42, 63, 90, 0.55);
}

.lang {
  display: none;
}

html[data-lang="es"] .lang-es,
html[data-lang="en"] .lang-en {
  display: inline;
}

html[data-lang="es"] p.lang-es,
html[data-lang="en"] p.lang-en {
  display: block;
}

.pd-list {
  margin: 0;
  padding-left: 18px;
}

.pd-list li {
  margin: 10px 0;
  line-height: 1.55;
}

.pd-empty {
  color: #9fb0c9;
  font-style: italic;
}

@media (max-width: 900px) {
  .pd-shell {
    width: 100%;
    max-width: 100%;
    padding-left: 10px;
    padding-right: 10px;
  }

  .pd-grid {
    grid-template-columns: 1fr;
    width: 100%;
    min-width: 0;
  }

  .pd-card,
  .operational-module-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .tactical-row,
  .tactical-log-item,
  .timeline-item {
    grid-template-columns: 1fr;
  }

  .pd-topbar {
    align-items: flex-start;
  }

  .pd-top-actions {
    width: 100%;
    justify-content: space-between;
  }

  .performance-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 600px) {
  .pd-shell {
    width: 100%;
    max-width: 100%;
    margin: 16px auto;
    padding-left: 10px;
    padding-right: 10px;
  }

  .pd-grid {
    width: 100%;
    min-width: 0;
  }

  .pd-card,
  .operational-module-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
}

/* =========================================================
   CORRECCION COMPACTA - PERFORMANCE WARROOM STYLE
   Reduce escala y elimina sensacion sobredimensionada.
========================================================= */

.operational-module-card {
  padding: 16px 18px;
  border-radius: 18px;
  min-height: auto;
}

.module-header {
  gap: 12px;
  margin-bottom: 12px;
}

.module-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  font-size: 0;
  color: #7cff6b;
  border: 1px solid rgba(124, 255, 107, 0.65);
  background: rgba(20, 90, 35, 0.22);
  box-shadow: 0 0 14px rgba(57, 255, 136, 0.25), inset 0 0 12px rgba(57, 255, 136, 0.08);
  position: relative;
}

.module-icon::before {
  content: "";
  position: absolute;
  inset: 8px;
  background-color: #39ff88;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.module-icon-target::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='7' fill='none' stroke='black' stroke-width='2'/%3E%3Ccircle cx='12' cy='12' r='2' fill='black'/%3E%3Cpath d='M12 2v4M12 18v4M2 12h4M18 12h4' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='7' fill='none' stroke='black' stroke-width='2'/%3E%3Ccircle cx='12' cy='12' r='2' fill='black'/%3E%3Cpath d='M12 2v4M12 18v4M2 12h4M18 12h4' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.module-icon-alert::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3a5 5 0 0 0-5 5v3.5L5 15v2h14v-2l-2-3.5V8a5 5 0 0 0-5-5Z' fill='black'/%3E%3Cpath d='M10 19a2 2 0 0 0 4 0' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3a5 5 0 0 0-5 5v3.5L5 15v2h14v-2l-2-3.5V8a5 5 0 0 0-5-5Z' fill='black'/%3E%3Cpath d='M10 19a2 2 0 0 0 4 0' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.module-icon-decision::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='6' cy='12' r='2.2' fill='black'/%3E%3Ccircle cx='12' cy='7' r='2.2' fill='black'/%3E%3Ccircle cx='18' cy='12' r='2.2' fill='black'/%3E%3Ccircle cx='12' cy='17' r='2.2' fill='black'/%3E%3Cpath d='M7.8 10.9l2.4-2.8M13.8 8.1l2.4 2.8M16.2 13.1l-2.4 2.8M10.2 15.9l-2.4-2.8' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='6' cy='12' r='2.2' fill='black'/%3E%3Ccircle cx='12' cy='7' r='2.2' fill='black'/%3E%3Ccircle cx='18' cy='12' r='2.2' fill='black'/%3E%3Ccircle cx='12' cy='17' r='2.2' fill='black'/%3E%3Cpath d='M7.8 10.9l2.4-2.8M13.8 8.1l2.4 2.8M16.2 13.1l-2.4 2.8M10.2 15.9l-2.4-2.8' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.module-icon-action::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13 2 5 13h5l-1 9 8-11h-5l1-9Z' fill='black'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13 2 5 13h5l-1 9 8-11h-5l1-9Z' fill='black'/%3E%3C/svg%3E");
}

.module-icon-log::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 3h8l4 4v14H7z' fill='black'/%3E%3Cpath d='M15 3v5h4' fill='none' stroke='white' stroke-width='0'/%3E%3Cpath d='M10 11h6M10 15h6M10 19h4' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 3h8l4 4v14H7z' fill='black'/%3E%3Cpath d='M15 3v5h4' fill='none' stroke='white' stroke-width='0'/%3E%3Cpath d='M10 11h6M10 15h6M10 19h4' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.module-icon-chart::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 19h16' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M7 16V9M12 16V5M17 16v-7' stroke='black' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 19h16' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M7 16V9M12 16V5M17 16v-7' stroke='black' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.module-title {
  font-size: 18px;
  letter-spacing: 0.035em;
}

.module-subtitle {
  font-size: 13px;
  line-height: 1.35;
}

.tactical-row {
  grid-template-columns: 150px 1fr;
  gap: 8px;
  margin: 7px 0;
}

.tactical-label,
.tactical-value {
  font-size: 14px;
  line-height: 1.35;
}

.pd-grid,
.dashboard-grid {
  gap: 18px;
}

.tactical-log-item,
.timeline-item {
  padding: 10px 12px;
}

.timeline-stamp {
  font-size: 13px;
}

/* =========================================================
   WARROOM ALERT / RESPONSE PILLS
========================================================= */

.status-pill,
.tactical-alert-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-pill--green,
.status-pill.pd-pill-ok {
  color: #d9ffe0;
  border: 1px solid rgba(94, 255, 130, 0.68);
  background: linear-gradient(180deg, rgba(25, 122, 48, 0.72), rgba(8, 58, 28, 0.92));
  box-shadow: 0 0 12px rgba(57, 255, 136, 0.20);
}

.status-pill--orange,
.status-pill.pd-pill-danger {
  color: #fff0d6;
  border: 1px solid rgba(255, 124, 55, 0.72);
  background: linear-gradient(180deg, rgba(168, 77, 22, 0.75), rgba(82, 30, 10, 0.95));
  box-shadow: 0 0 12px rgba(255, 110, 35, 0.18);
}

.status-pill--amber,
.status-pill.pd-pill-warn {
  color: #fff6c9;
  border: 1px solid rgba(255, 213, 91, 0.72);
  background: linear-gradient(180deg, rgba(126, 101, 20, 0.72), rgba(53, 42, 8, 0.95));
  box-shadow: 0 0 12px rgba(255, 213, 91, 0.16);
}

.status-pill--neutral {
  color: #bfffd0;
  border: 1px solid rgba(124, 255, 107, 0.38);
  background: rgba(12, 64, 34, 0.58);
}

.system-response-box {
  position: relative;
  margin-top: 12px;
  padding: 16px 18px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 213, 91, 0.72);
  background: linear-gradient(180deg, rgba(40, 37, 12, 0.76), rgba(5, 20, 15, 0.92));
  box-shadow: 0 0 18px rgba(255, 213, 91, 0.10), inset 0 0 18px rgba(255, 213, 91, 0.04);
}

.system-response-label {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  color: #0b140b;
  background: #ffe17a;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.system-response-text {
  color: #fff6c9;
  font-weight: 800;
  line-height: 1.45;
}

.alert-strip {
  margin-top: 10px;
  padding: 10px 12px;
  border-left: 3px solid #ff7c37;
  border-radius: 10px;
  background: rgba(92, 31, 8, 0.28);
  color: #fff0d6;
}

.alert-strip .tactical-row {
  margin: 6px 0;
}

.tactical-alert-value {
  justify-content: flex-start;
  border-radius: 8px;
  text-transform: none;
  letter-spacing: 0.01em;
  color: #ffe7bf;
  border: 1px solid rgba(255, 124, 55, 0.46);
  background: rgba(82, 30, 10, 0.45);
  box-shadow: inset 0 0 10px rgba(255, 110, 35, 0.12);
}

.technical-stamp {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* =========================================================
   NAV WARROOM — BARRA TRI-CAPA (sin emojis)
========================================================= */

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

/* Icono CSS mask genérico */
.nav-icon {
  width: 22px;
  height: 22px;
  display: inline-block;
  background: currentColor;
  flex-shrink: 0;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
}

/* Incident — crosshair/target — verde #7CFF6B */
.nav-icon--incident {
  color: #7CFF6B;
  mask-image: url('/assets/icons/incident.svg');
  -webkit-mask-image: url('/assets/icons/incident.svg');
}

/* WARROOM — diamond/decisión — dorado #FFD45A */
.nav-icon--warroom {
  color: #FFD45A;
  mask-image: url('/assets/icons/warroom.svg');
  -webkit-mask-image: url('/assets/icons/warroom.svg');
}

/* Performance — bar chart — turquesa var(--woper-cyan) */
.nav-icon--performance {
  color: var(--woper-cyan);
  mask-image: url('/assets/icons/performance.svg');
  -webkit-mask-image: url('/assets/icons/performance.svg');
}

.nav-icon--cabina {
  color: #00c16a;
  mask-image: url('/assets/icons/shield-check.svg');
  -webkit-mask-image: url('/assets/icons/shield-check.svg');
}

/* Icono del botón Volver a WARROOM (img element) */
.nav-icon--brand {
  width: 24px;
  height: 24px;
  object-fit: contain;
  border-radius: 5px;
}

/* =========================================================
   HERO ICON — coherencia con nav-icon system
========================================================= */

.hero-icon {
  width: 28px;
  height: 28px;
  display: inline-block;
  margin-right: 10px;
  background: currentColor;
  vertical-align: middle;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
}

.hero-icon--performance {
  color: var(--woper-cyan);
  mask-image: url('/assets/icons/performance.svg');
  -webkit-mask-image: url('/assets/icons/performance.svg');
}

@media (max-width: 900px) {
  .pd-shell {
    width: 100%;
    max-width: 100%;
    padding-left: 10px;
    padding-right: 10px;
  }

  .pd-grid {
    width: 100%;
    min-width: 0;
  }

  .pd-card,
  .operational-module-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .tactical-row,
  .tactical-log-item,
  .timeline-item {
    grid-template-columns: minmax(0, 1fr);
  }

  .tactical-value {
    min-width: 0;
    overflow-wrap: anywhere;
  }
}

/* ── v1.3: Executable action button styles ──────────────────────── */
.pd-exec-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}

.pd-exec-btn--primary {
  background: rgba(220, 38, 38, 0.18);
  border-color: #dc2626;
  color: #ff6b6b;
  box-shadow: 0 0 10px rgba(220, 38, 38, 0.20);
}

.pd-exec-btn--primary:hover,
.pd-exec-btn--primary:focus {
  background: rgba(220, 38, 38, 0.30);
  border-color: #ef4444;
  box-shadow: 0 0 16px rgba(220, 38, 38, 0.35);
  outline: none;
}

.pd-exec-btn--revert {
  background: rgba(107, 114, 128, 0.15);
  border-color: rgba(107, 114, 128, 0.50);
  color: #9ca3af;
}

.pd-exec-btn--revert:hover,
.pd-exec-btn--revert:focus {
  background: rgba(107, 114, 128, 0.25);
  border-color: #6b7280;
  outline: none;
}

.pd-exec-done-label {
  color: #4ade80 !important;
  font-weight: 700;
}

.pd-exec-result {
  color: #d4f5e0;
}

.pd-exec-timestamp {
  font-size: 0.78rem;
  color: #6b7280;
  margin-top: 6px;
  font-family: monospace;
}

@media (max-width: 600px) {
  .pd-exec-btn {
    width: 100%;
    justify-content: center;
  }
}
