/* ==========================================================================
   APLICACIONES (.screen--aplicaciones) — videos por tipo de falla
   Categorías en una fila (navy la activa); video y explicación a la izquierda;
   qué es la falla y lista de videos a la derecha. Sin ámbar.
   ========================================================================== */
.screen--aplicaciones { background: var(--bg-2); }
.ap { position: absolute; inset: 0; padding: 26px 40px 18px; display: flex; flex-direction: column; }
.ap-cab { flex: none; }

/* Categorías */
.ap-cats { margin-top: 14px; display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; flex: none; }
.ap-cat { min-height: 88px; padding: 10px 14px 10px; display: flex; flex-direction: column; gap: 6px; text-align: left;
  background: var(--bg-1); border: 1px solid var(--border-1); border-radius: var(--radius-lg); }
.ap-cat__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ap-cat__top svg { width: 24px; height: 24px; color: var(--fg-teal); flex: none; }
.ap-cat__top small { font: 500 13px/1 var(--font-mono); color: var(--fg-2); white-space: nowrap; font-feature-settings: "tnum" 1, "zero" 1; }
.ap-cat__n { font: 600 18px/1.18 var(--font-sans); color: var(--fg-brand); text-wrap: balance; }
.ap-cat:active { background: var(--bg-3); }
.ap-cat.is-active { background: var(--gamt-navy); border-color: var(--gamt-navy); }
.ap-cat.is-active .ap-cat__n { color: #fff; }
.ap-cat.is-active .ap-cat__top svg { color: var(--gamt-mint); }
.ap-cat.is-active .ap-cat__top small { color: rgba(255,255,255,.8); }

/* Cuerpo */
.ap-cuerpo { margin-top: 12px; flex: 1; min-height: 0; display: grid; grid-template-columns: 1100px 1fr; gap: 24px; }
.ap-izq { display: flex; flex-direction: column; min-height: 0; }
.ap-video { height: 619px; flex: none; }
.ap-tx { padding: 10px 4px 0; flex: 1; min-height: 0; }
.ap-eq { gap: 10px; }
.ap-eq svg { width: 18px; height: 18px; flex: none; }
.ap-tit { margin-top: 6px; display: flex; align-items: center; gap: 16px; font: 700 28px/1.1 var(--font-display); color: var(--fg-brand); }
.ap-etq { flex: none; letter-spacing: .08em; background: #E6EFF6; color: #08529E; }
.ap-etq[hidden] { display: none; }
.ap-texto { margin-top: 6px; font: 400 17px/1.45 var(--font-sans); color: var(--fg-1); text-wrap: pretty; }
.ap-tx > * { transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
.ap-tx:not(.is-in) > * { opacity: 0; transform: translateY(8px); }

/* Columna derecha: la falla y sus videos */
.ap-der { display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.ap-info { flex: none; padding: 16px 20px 18px; border-radius: var(--radius-lg); background: var(--bg-1); border: 1px solid var(--border-1); }
.ap-info__x { margin-top: 8px; font: 400 16px/1.45 var(--font-sans); color: var(--fg-2); text-wrap: pretty; }
.ap-info > * { transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
.ap-info:not(.is-in) > * { opacity: 0; transform: translateY(6px); }
.ap-lista { display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.ap-it { display: grid; grid-template-columns: 116px 1fr; gap: 14px; align-items: center; min-height: 80px; padding: 7px 14px 7px 7px; text-align: left;
  background: var(--bg-1); border: 1px solid var(--border-1); border-radius: var(--radius-lg); animation: aparecer var(--dur-slow) var(--ease-out) both; }
.ap-it__th { width: 116px; height: 65px; }
.ap-it__tx b { display: block; font: 600 17px/1.22 var(--font-sans); color: var(--fg-1); }
.ap-it__tx small { display: block; margin-top: 3px; font: 400 14px/1.25 var(--font-sans); color: var(--fg-2); }
.ap-it:active { background: var(--bg-3); }
.ap-it.is-active { border-color: var(--gamt-navy); box-shadow: inset 0 0 0 2px var(--gamt-navy); }
.ap-it.is-active .ap-it__tx b { color: var(--fg-brand); }
