/**
 * ==========================================================================
 * ÓRBITA - PÁGINA DE MISIONES (misiones.css)
 * Bitácora de Vuelo, Rejilla Bento Adaptativa, Consola de Filtros & Dossier
 * ==========================================================================
 */

/* ==========================================================================
   1. VARIABLES DE ETAPAS MATRICES
   ========================================================================== */
:root {
  --stage-origen: #FF4924;
  --stage-origen-glow: rgba(255, 73, 36, 0.45);
  --stage-origen-soft: rgba(255, 73, 36, 0.12);

  --stage-movimiento: #56D7FF;
  --stage-movimiento-glow: rgba(86, 215, 255, 0.45);
  --stage-movimiento-soft: rgba(86, 215, 255, 0.12);

  --stage-crecimiento: #2CB764;
  --stage-crecimiento-glow: rgba(44, 183, 100, 0.45);
  --stage-crecimiento-soft: rgba(44, 183, 100, 0.12);

  --stage-estacion: #FFB800;
  --stage-estacion-glow: rgba(255, 184, 0, 0.45);
  --stage-estacion-soft: rgba(255, 184, 0, 0.12);
}

/* ==========================================================================
   1.1 ESTRUCTURA GLOBAL & FONDO ESPACIAL
   ========================================================================== */
body.page-misiones {
  background-color: #020610;
  color: #e2eeff;
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

.missions-space-background {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.missions-stars-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.missions-nebula-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(20, 35, 70, 0.35) 0%, rgba(2, 6, 16, 0.85) 65%, #020610 100%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.missions-radial-beacon {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(86, 215, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* ==========================================================================
   2. SECCIÓN PRINCIPAL & ENCABEZADO DE MISIONES
   ========================================================================== */
.missions-main-section {
  position: relative;
  z-index: 10;
  width: 100%;
  min-height: 100vh;
  padding: 105px 24px 80px 24px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.missions-header-viewport {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 28px auto;
  user-select: none;
}

.missions-badge-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  background: rgba(4, 12, 30, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  margin-bottom: 14px;
}

.missions-badge-line .badge-dot-beacon {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mission-accent, #FF4924);
  box-shadow: 0 0 10px var(--mission-accent, #FF4924);
  animation: pulseDot 2s infinite ease-in-out;
  transition: background 0.5s ease, box-shadow 0.5s ease;
  display: inline-block;
  flex-shrink: 0;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
}

.missions-badge-line .badge-telemetry-text {
  font-family: "SF Mono", "Roboto Mono", Menlo, Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 2px;
  color: rgba(226, 238, 255, 0.85);
  text-transform: uppercase;
  line-height: 1;
}

.missions-headline-title {
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(3.2rem, 7.5vw, 6.2rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: clamp(4px, 1vw, 8px);
  color: #FFF7D0;
  margin: 0 0 12px 0;
  text-transform: uppercase;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.9), 0 0 45px rgba(86, 215, 255, 0.35);
}

.missions-headline-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 14px;
}

.missions-div-line {
  width: 48px;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, #56D7FF);
}

.missions-div-line.right {
  background: linear-gradient(90deg, #56D7FF, transparent);
}

.missions-div-text {
  font-family: "SF Mono", "Roboto Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 2.2px;
  color: rgba(226, 238, 255, 0.7);
  text-transform: uppercase;
  font-weight: 600;
}

.missions-summary-paragraph {
  font-size: clamp(0.92rem, 1.25vw, 1.05rem);
  line-height: 1.6;
  color: rgba(255, 247, 208, 0.85);
  max-width: 720px;
  margin: 0 auto;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.95);
}

/* ==========================================================================
   3. CONSOLA TÁCTICA DE FILTROS DE MISIÓN
   ========================================================================== */
.missions-filter-console {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto 40px auto;
  background: rgba(3, 9, 24, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 20px 24px 16px 24px;
  box-sizing: border-box;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(86, 215, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.filter-group-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.filter-group-wrap.secondary {
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

.filter-group-label {
  font-family: "SF Mono", "Roboto Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 2px;
  color: rgba(226, 238, 255, 0.55);
  text-transform: uppercase;
  font-weight: 700;
  min-width: 110px;
}

.filter-pills-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Botón individual de filtro */
.filter-pill-btn {
  position: relative;
  background: rgba(14, 26, 50, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 7px 16px;
  color: rgba(226, 238, 255, 0.75);
  font-family: "SF Mono", "Roboto Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 1.2px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.filter-pill-btn:hover {
  background: rgba(24, 42, 80, 0.8);
  border-color: rgba(255, 255, 255, 0.3);
  color: #FFF7D0;
  transform: translateY(-1px);
}

.filter-pill-btn .pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.8;
}

/* Estados Activos según Etapa */
.filter-pill-btn.is-active {
  background: #56D7FF;
  border-color: #56D7FF;
  color: #020610;
  font-weight: 700;
  box-shadow: 0 0 16px rgba(86, 215, 255, 0.5);
}

.filter-pill-btn.stage-origen.is-active {
  background: var(--stage-origen);
  border-color: var(--stage-origen);
  color: #020610;
  box-shadow: 0 0 16px var(--stage-origen-glow);
}

.filter-pill-btn.stage-movimiento.is-active {
  background: var(--stage-movimiento);
  border-color: var(--stage-movimiento);
  color: #020610;
  box-shadow: 0 0 16px var(--stage-movimiento-glow);
}

.filter-pill-btn.stage-crecimiento.is-active {
  background: var(--stage-crecimiento);
  border-color: var(--stage-crecimiento);
  color: #020610;
  box-shadow: 0 0 16px var(--stage-crecimiento-glow);
}

.filter-pill-btn.stage-estacion.is-active {
  background: var(--stage-estacion);
  border-color: var(--stage-estacion);
  color: #020610;
  box-shadow: 0 0 16px var(--stage-estacion-glow);
}

/* Filtros de formato */
.filter-pill-btn.format-btn {
  font-size: 0.68rem;
  padding: 6px 14px;
}

.filter-pill-btn.format-btn.is-active {
  background: rgba(255, 255, 255, 0.95);
  border-color: #ffffff;
  color: #020610;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.4);
}

/* Barra de Estado y Telemetría */
.console-telemetry-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
  gap: 10px;
}

.status-counter-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-counter-text {
  font-family: "SF Mono", "Roboto Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 1.5px;
  color: rgba(226, 238, 255, 0.85);
  text-transform: uppercase;
}

.status-radar-tag {
  font-family: "SF Mono", "Roboto Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 1.5px;
  color: rgba(226, 238, 255, 0.5);
  text-transform: uppercase;
}

/* ==========================================================================
   4. REJILLA BENTO ADAPTATIVA (BENTO GRID AEROESPACIAL)
   ========================================================================== */
.missions-bento-viewport {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
}

.missions-bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-flow: dense;
  gap: 24px;
  width: 100%;
}

/* Tarjeta Bento Base */
.bento-card {
  position: relative;
  background: rgba(3, 9, 24, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
  animation: bentoCardEnter 0.5s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

@keyframes bentoCardEnter {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.bento-card:hover {
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75), 0 0 35px var(--card-glow, rgba(86, 215, 255, 0.25));
}

/* Asignación de columnas del Bento */
.bento-card.span-12 { grid-column: span 12; }
.bento-card.span-8  { grid-column: span 8; }
.bento-card.span-7  { grid-column: span 7; }
.bento-card.span-6  { grid-column: span 6; }
.bento-card.span-5  { grid-column: span 5; }
.bento-card.span-4  { grid-column: span 4; }

/* Variables dinámicas por etapa en la tarjeta */
.bento-card[data-stage="origen"]      { --card-accent: var(--stage-origen); --card-glow: var(--stage-origen-glow); }
.bento-card[data-stage="movimiento"]  { --card-accent: var(--stage-movimiento); --card-glow: var(--stage-movimiento-glow); }
.bento-card[data-stage="crecimiento"] { --card-accent: var(--stage-crecimiento); --card-glow: var(--stage-crecimiento-glow); }
.bento-card[data-stage="estacion"]    { --card-accent: var(--stage-estacion); --card-glow: var(--stage-estacion-glow); }

/* Esquinas tácticas aeroespaciales en tarjetas */
.bento-card .tactical-corner {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 1.5px solid var(--card-accent, #56D7FF);
  pointer-events: none;
  z-index: 5;
  transition: border-color 0.3s ease;
}

.bento-card .tactical-corner.corner-tl { top: 8px; left: 8px; border-right: none; border-bottom: none; }
.bento-card .tactical-corner.corner-tr { top: 8px; right: 8px; border-left: none; border-bottom: none; }
.bento-card .tactical-corner.corner-bl { bottom: 8px; left: 8px; border-right: none; border-top: none; }
.bento-card .tactical-corner.corner-br { bottom: 8px; right: 8px; border-left: none; border-top: none; }

/* Contenedor Visual de la Tarjeta */
.card-media-box {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #01040a;
}

.bento-card.format-wide .card-media-box       { height: 260px; }
.bento-card.format-vertical .card-media-box   { height: 380px; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 50%, #06122a 0%, #01040a 85%); }
.bento-card.format-portrait .card-media-box   { height: 320px; }
.bento-card.format-metrics .card-media-box    { height: 260px; background: radial-gradient(circle at 50% 60%, rgba(44, 183, 100, 0.1) 0%, #01040a 80%); }

/* Malla de escáner en la imagen */
.card-grid-mesh {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(86, 215, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(86, 215, 255, 0.04) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
  z-index: 2;
}

/* Badges flotantes en la imagen */
.card-floating-badges {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 3;
  pointer-events: none;
}

.badge-code {
  font-family: "SF Mono", "Roboto Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 1.5px;
  color: var(--card-accent, #56D7FF);
  background: rgba(2, 6, 16, 0.85);
  border: 1px solid var(--card-accent, #56D7FF);
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 700;
}

.badge-stage-pill {
  font-family: "SF Mono", "Roboto Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 1px;
  color: #FFF7D0;
  background: rgba(2, 6, 16, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 3px 8px;
  border-radius: 999px;
  text-transform: uppercase;
}

/* Portadas con Imagen Real de Proyecto */
.card-media-box.has-cover-image {
  background: #01040a;
}

.card-cover-img-wrap {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.card-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  filter: brightness(0.92) contrast(1.04);
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
}

.bento-card:hover .card-cover-img {
  transform: scale(1.05);
  filter: brightness(1.04) contrast(1.08);
}

.card-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 16, 0.6) 0%, transparent 35%, rgba(2, 6, 16, 0.85) 100%);
  pointer-events: none;
  z-index: 1;
}

.card-preview-tag {
  position: absolute;
  bottom: 12px;
  right: 14px;
  background: rgba(4, 12, 30, 0.88);
  border: 1px solid rgba(86, 215, 255, 0.4);
  border-radius: 999px;
  padding: 4px 12px;
  font-family: "SF Mono", "Roboto Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 1px;
  color: #56D7FF;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  z-index: 3;
  backdrop-filter: blur(8px);
  pointer-events: none;
}

.card-preview-tag .pulse-icon {
  color: #56D7FF;
  font-size: 0.55rem;
  animation: pulseDot 2s infinite ease-in-out;
}

/* Botón de reproducción interactivo sobre tarjetas de video */
.card-video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.7));
}

.bento-card:hover .card-video-play-btn {
  transform: translate(-50%, -50%) scale(1.18);
  filter: drop-shadow(0 0 20px rgba(86, 215, 255, 0.65));
}

/* Simulación de Reel 9:16 en Smartphone */
.phone-mockup-simulator {
  position: relative;
  width: 180px;
  height: 320px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.9), 0 0 20px var(--card-glow);
  background: #020610;
}

.phone-mockup-screen {
  position: relative;
  width: 100%;
  height: 100%;
}

.phone-mockup-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.bento-card:hover .phone-mockup-screen img {
  transform: scale(1.06);
}

.phone-reels-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 40%, rgba(0, 0, 0, 0.4) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px;
  box-sizing: border-box;
}

.reels-format-tag {
  align-self: flex-start;
  font-family: "SF Mono", "Roboto Mono", monospace;
  font-size: 0.55rem;
  letter-spacing: 1px;
  color: #56D7FF;
  background: rgba(0, 0, 0, 0.65);
  padding: 2px 6px;
  border-radius: 3px;
}

.reels-play-indicator {
  align-self: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(86, 215, 255, 0.25);
  border: 1.5px solid #56D7FF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 18px rgba(86, 215, 255, 0.6);
  transition: transform 0.3s ease, background 0.3s ease;
}

.bento-card:hover .reels-play-indicator {
  transform: scale(1.15);
  background: #56D7FF;
}

.reels-play-indicator svg path {
  fill: #FFF7D0;
  transition: fill 0.3s ease;
}

.bento-card:hover .reels-play-indicator svg path {
  fill: #020610;
}

.reels-stats-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: "SF Mono", "Roboto Mono", monospace;
  font-size: 0.6rem;
  color: #FFF7D0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

/* Imagen en tarjetas estándar (Branding, Foto, Video) */
.card-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
}

.bento-card:hover .card-cover-img {
  transform: scale(1.05);
  filter: contrast(1.08) brightness(1.05);
}

/* Indicador de Video 16:9 con Timecode */
.card-video-hud-bar {
  position: absolute;
  bottom: 12px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 3;
  pointer-events: none;
}

.video-tc-badge {
  font-family: "SF Mono", "Roboto Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 1.5px;
  color: #56D7FF;
  background: rgba(2, 6, 16, 0.85);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(86, 215, 255, 0.3);
}

.video-quality-tag {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 800;
  font-size: 0.65rem;
  letter-spacing: 1px;
  color: #020610;
  background: #56D7FF;
  padding: 3px 7px;
  border-radius: 4px;
}

/* Visualización de Métricas & Rendimiento (Sebastián / Crecimiento) */
.metrics-visual-dashboard {
  width: 100%;
  height: 100%;
  padding: 20px 22px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.metrics-brand-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.metrics-logo-container {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  max-width: 130px;
  height: 34px;
  box-sizing: border-box;
}

.metrics-company-logo {
  max-width: 100%;
  max-height: 22px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.metrics-badges-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.metrics-country-pill {
  font-family: "SF Mono", "Roboto Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 1.2px;
  font-weight: 700;
  color: #56D7FF;
  background: rgba(86, 215, 255, 0.12);
  border: 1px solid rgba(86, 215, 255, 0.35);
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  white-space: nowrap;
}

.metrics-exp-level-badge {
  font-family: "SF Mono", "Roboto Mono", monospace;
  font-size: 0.58rem;
  letter-spacing: 1.2px;
  font-weight: 700;
  color: #2CB764;
  background: rgba(44, 183, 100, 0.12);
  border: 1px solid rgba(44, 183, 100, 0.35);
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  white-space: nowrap;
}

.metrics-highlight-stat {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.metrics-big-num {
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 800;
  color: var(--card-accent, #2CB764);
  line-height: 1;
  text-shadow: 0 0 25px var(--card-glow);
}

.metrics-label-kpi {
  font-family: "SF Mono", "Roboto Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  color: rgba(226, 238, 255, 0.7);
  text-transform: uppercase;
}

.metrics-bar-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.metrics-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #2CB764, #56D7FF);
  border-radius: 999px;
  box-shadow: 0 0 12px #2CB764;
}

.metrics-sub-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.sub-stat-item {
  display: flex;
  flex-direction: column;
}

.sub-stat-val {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: #FFF7D0;
}

.sub-stat-lbl {
  font-family: "SF Mono", "Roboto Mono", monospace;
  font-size: 0.58rem;
  letter-spacing: 1px;
  color: rgba(226, 238, 255, 0.5);
  text-transform: uppercase;
}

/* ==========================================================================
   5. CONTENIDO & METADATOS DE LA TARJETA BENTO
   ========================================================================== */
.card-content-box {
  padding: 18px 20px 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
  gap: 14px;
  background: rgba(4, 12, 30, 0.85);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.card-header-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-client-sector {
  font-family: "SF Mono", "Roboto Mono", monospace;
  font-size: 0.64rem;
  letter-spacing: 1.8px;
  color: var(--card-accent, #56D7FF);
  text-transform: uppercase;
  font-weight: 700;
}

.card-format-tag {
  font-family: "SF Mono", "Roboto Mono", monospace;
  font-size: 0.58rem;
  letter-spacing: 1px;
  color: rgba(226, 238, 255, 0.55);
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.card-title-h3 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: #FFF7D0;
  margin: 4px 0 6px 0;
  line-height: 1.25;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

.bento-card:hover .card-title-h3 {
  color: #ffffff;
  text-shadow: 0 0 14px var(--card-glow);
}

.card-desc-p {
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(226, 238, 255, 0.7);
  margin: 0;
}

/* Pie de la tarjeta: Oficial a cargo */
.card-footer-officer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.card-officer-pill {
  display: flex;
  align-items: center;
  gap: 10px;
}

.officer-micro-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--card-accent, #56D7FF);
  background: #01040a;
  object-fit: cover;
  object-position: center 18%;
}

.officer-micro-info {
  display: flex;
  flex-direction: column;
}

.officer-micro-name {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: #FFF7D0;
  line-height: 1.1;
}

.officer-micro-role {
  font-family: "SF Mono", "Roboto Mono", monospace;
  font-size: 0.58rem;
  color: rgba(226, 238, 255, 0.5);
  letter-spacing: 0.8px;
}

.card-explore-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(226, 238, 255, 0.7);
  font-size: 0.82rem;
  transition: all 0.3s ease;
}

.bento-card:hover .card-explore-arrow {
  background: var(--card-accent, #56D7FF);
  border-color: var(--card-accent, #56D7FF);
  color: #020610;
  transform: rotate(45deg);
}

/* ==========================================================================
   6. ESTADO VACÍO (SIN RESULTADOS)
   ========================================================================== */
.missions-empty-state {
  width: 100%;
  max-width: 600px;
  margin: 60px auto;
  text-align: center;
  padding: 40px 24px;
  background: rgba(3, 9, 24, 0.6);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.empty-icon-orb {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(86, 215, 255, 0.08);
  border: 1px solid rgba(86, 215, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.empty-title {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #FFF7D0;
  margin: 0;
}

.empty-desc {
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(226, 238, 255, 0.65);
  margin: 0;
}

.btn-reset-filters {
  margin-top: 10px;
  font-family: "SF Mono", "Roboto Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: #020610;
  background: #56D7FF;
  border: none;
  border-radius: 999px;
  padding: 10px 22px;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(86, 215, 255, 0.4);
  transition: all 0.25s ease;
}

.btn-reset-filters:hover {
  transform: scale(1.04);
  background: #ffffff;
}

/* ==========================================================================
   7. MODAL DE EXPEDIENTE CLASIFICADO (FULLSCREEN DOSSIER)
   ========================================================================== */
.mission-dossier-overlay {
  position: fixed;
  inset: 0;
  background: rgba(1, 4, 12, 0.88);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mission-dossier-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mission-dossier-card {
  position: relative;
  width: 100%;
  max-width: 1100px;
  max-height: 90vh;
  background: rgba(3, 9, 26, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.9), 0 0 50px rgba(86, 215, 255, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.96) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.mission-dossier-overlay.is-open .mission-dossier-card {
  transform: scale(1) translateY(0);
}

/* Barra Superior del Expediente */
.dossier-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(4, 12, 32, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dossier-topbar-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dossier-code-tag {
  font-family: "SF Mono", "Roboto Mono", monospace;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: #020610;
  background: #56D7FF;
  padding: 3px 10px;
  border-radius: 4px;
}

.dossier-security-badge {
  font-family: "SF Mono", "Roboto Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 1.5px;
  color: rgba(226, 238, 255, 0.7);
  text-transform: uppercase;
}

.btn-dossier-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFF7D0;
  padding: 6px 14px;
  border-radius: 6px;
  font-family: "SF Mono", "Roboto Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-dossier-close:hover {
  background: rgba(255, 73, 36, 0.25);
  border-color: #FF4924;
  color: #FF4924;
}

/* Rejilla de 2 Columnas del Cuerpo */
.dossier-body-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(86, 215, 255, 0.3) transparent;
}

/* Columna Multimedia Izquierda */
.dossier-media-column {
  background: #01040a;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}

.dossier-media-stage {
  width: 100%;
  height: 100%;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Variaciones del Visor Multimedia en el Modal */

/* Visor de Caso de Estudio / Tira Vertical Continua */
.modal-casestudy-scroll-viewer {
  width: 100%;
  max-width: 520px;
  height: clamp(520px, 72vh, 680px);
  background: #000814;
  border: 1px solid rgba(86, 215, 255, 0.35);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.85), 0 0 30px rgba(86, 215, 255, 0.15);
  overflow: hidden;
  position: relative;
}

.casestudy-sticky-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(3, 9, 24, 0.96);
  border-bottom: 1px solid rgba(86, 215, 255, 0.2);
  backdrop-filter: blur(12px);
  z-index: 5;
  flex-shrink: 0;
}

.casestudy-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "SF Mono", "Roboto Mono", monospace;
  font-size: 0.64rem;
  letter-spacing: 1.5px;
  color: #56D7FF;
  font-weight: 600;
  text-transform: uppercase;
}

.casestudy-badge .badge-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #56D7FF;
  box-shadow: 0 0 8px #56D7FF;
  animation: pulseDot 2s infinite ease-in-out;
}

.casestudy-indicator {
  font-family: "SF Mono", "Roboto Mono", monospace;
  font-size: 0.58rem;
  letter-spacing: 1.2px;
  color: rgba(226, 238, 255, 0.6);
  text-transform: uppercase;
}

.casestudy-image-container {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #56D7FF rgba(2, 8, 20, 0.6);
  -webkit-overflow-scrolling: touch;
}

.casestudy-image-container::-webkit-scrollbar {
  width: 7px;
}

.casestudy-image-container::-webkit-scrollbar-track {
  background: rgba(2, 8, 20, 0.8);
}

.casestudy-image-container::-webkit-scrollbar-thumb {
  background: rgba(86, 215, 255, 0.5);
  border-radius: 4px;
}

.casestudy-image-container::-webkit-scrollbar-thumb:hover {
  background: #56D7FF;
}

.casestudy-full-img {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: auto;
}

.casestudy-scroll-hint {
  padding: 16px;
  text-align: center;
  background: #01040a;
  border-top: 1px dashed rgba(86, 215, 255, 0.2);
  font-family: "SF Mono", "Roboto Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 2px;
  color: rgba(255, 247, 208, 0.7);
  text-transform: uppercase;
  flex-shrink: 0;
}

.modal-reel-viewer {
  width: 240px;
  height: 426px;
  border-radius: 28px;
  border: 2px solid rgba(86, 215, 255, 0.5);
  overflow: hidden;
  box-shadow: 0 0 35px rgba(86, 215, 255, 0.35);
  position: relative;
  background: #020610;
}

.modal-reel-viewer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-video-viewer {
  width: 100%;
  max-width: 580px;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(86, 215, 255, 0.4);
  box-shadow: 0 0 35px rgba(86, 215, 255, 0.25), 0 16px 40px rgba(0, 0, 0, 0.85);
  position: relative;
  background: #000000;
}

.modal-video-viewer img,
.modal-video-viewer iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: none;
}

.modal-youtube-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.modal-video-fallback-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.video-direct-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(86, 215, 255, 0.08);
  border: 1px solid rgba(86, 215, 255, 0.3);
  padding: 10px 20px;
  border-radius: 999px;
  font-family: "SF Mono", "Roboto Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.8px;
  color: #FFF7D0;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.video-direct-link-btn:hover {
  background: rgba(86, 215, 255, 0.2);
  border-color: #56D7FF;
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(86, 215, 255, 0.35);
  color: #ffffff;
}

.modal-gallery-viewer {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.gallery-main-frame {
  width: 100%;
  max-width: 480px;
  height: 340px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.gallery-main-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumbs-row {
  display: flex;
  gap: 8px;
}

.gallery-thumb-btn {
  width: 50px;
  height: 40px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.2s ease;
}

.gallery-thumb-btn.is-active,
.gallery-thumb-btn:hover {
  opacity: 1;
  border-color: #56D7FF;
}

.gallery-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Visor de Métricas & Dashboard en el Modal */
.modal-metrics-viewer {
  width: 100%;
  height: 100%;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.modal-metrics-card {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border-radius: 16px;
  padding: 30px 26px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), inset 0 0 35px rgba(44, 183, 100, 0.08);
}

.modal-metrics-brand-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-metrics-logo-wrap {
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}

.modal-metrics-logo {
  max-height: 32px;
  max-width: 150px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.modal-metrics-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.modal-country-badge {
  font-family: "SF Mono", "Roboto Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 1.2px;
  font-weight: 700;
  color: #56D7FF;
  background: rgba(86, 215, 255, 0.14);
  border: 1px solid rgba(86, 215, 255, 0.4);
  padding: 4px 11px;
  border-radius: 999px;
  text-transform: uppercase;
}

.modal-level-badge {
  font-family: "SF Mono", "Roboto Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 1.2px;
  font-weight: 700;
  color: #2CB764;
  background: rgba(44, 183, 100, 0.14);
  border: 1px solid rgba(44, 183, 100, 0.4);
  padding: 4px 11px;
  border-radius: 999px;
  text-transform: uppercase;
}

.modal-metrics-hero-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.modal-metrics-num {
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 0 35px rgba(44, 183, 100, 0.5);
}

.modal-metrics-kpi {
  font-family: "SF Mono", "Roboto Mono", monospace;
  font-size: 0.76rem;
  letter-spacing: 1.8px;
  color: rgba(226, 238, 255, 0.75);
  text-transform: uppercase;
}

.modal-metrics-progress-line {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.modal-metrics-progress-bar {
  height: 100%;
  width: 88%;
  border-radius: 999px;
  box-shadow: 0 0 15px rgba(44, 183, 100, 0.6);
}

.modal-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.modal-metric-box {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.modal-m-val {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
}

.modal-m-lbl {
  font-family: "SF Mono", "Roboto Mono", monospace;
  font-size: 0.64rem;
  letter-spacing: 1px;
  color: rgba(226, 238, 255, 0.65);
  text-transform: uppercase;
}

.modal-metrics-footer-tag {
  font-family: "SF Mono", "Roboto Mono", monospace;
  font-size: 0.6rem;
  letter-spacing: 1.5px;
  color: rgba(226, 238, 255, 0.4);
  text-align: right;
  text-transform: uppercase;
}

/* Columna de Información Derecha */
.dossier-info-column {
  padding: 30px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: rgba(3, 9, 24, 0.9);
}

.dossier-client-sector {
  font-family: "SF Mono", "Roboto Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 2px;
  color: #56D7FF;
  font-weight: 700;
  text-transform: uppercase;
}

.dossier-project-title {
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1.8rem, 2.8vw, 2.5rem);
  font-weight: 800;
  letter-spacing: 1px;
  color: #FFF7D0;
  margin: 6px 0 4px 0;
  line-height: 1.1;
  text-transform: uppercase;
}

.dossier-subtitle-tagline {
  font-size: 0.92rem;
  line-height: 1.4;
  color: rgba(226, 238, 255, 0.7);
  margin: 0;
}

/* Oficial a Cargo en Modal */
.dossier-officer-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: rgba(6, 16, 40, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}

.officer-card-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid #56D7FF;
  background: #01040a;
  overflow: hidden;
  flex-shrink: 0;
}

.officer-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.officer-card-info {
  flex: 1;
  min-width: 0;
}

.officer-card-info .officer-label {
  font-family: "SF Mono", "Roboto Mono", monospace;
  font-size: 0.58rem;
  letter-spacing: 1.5px;
  color: rgba(226, 238, 255, 0.5);
  text-transform: uppercase;
}

.officer-card-info .officer-name {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.94rem;
  font-weight: 800;
  color: #FFF7D0;
  margin: 2px 0 0 0;
}

.officer-card-info .officer-role {
  font-family: "SF Mono", "Roboto Mono", monospace;
  font-size: 0.65rem;
  color: rgba(226, 238, 255, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

.btn-view-officer {
  font-family: "SF Mono", "Roboto Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 1.2px;
  color: #56D7FF;
  border: 1px solid rgba(86, 215, 255, 0.35);
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-view-officer:hover {
  background: rgba(86, 215, 255, 0.15);
  border-color: #56D7FF;
  color: #ffffff;
}

/* Bloques de narrativa (Desafío & Solución) */
.dossier-narrative-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.block-title {
  font-family: "SF Mono", "Roboto Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 2px;
  color: rgba(226, 238, 255, 0.6);
  text-transform: uppercase;
  margin: 0;
}

.block-text {
  font-size: 0.86rem;
  line-height: 1.6;
  color: rgba(226, 238, 255, 0.85);
  margin: 0;
}

/* Métricas del Modal */
.dossier-stats-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.dossier-stat-box {
  background: rgba(2, 6, 16, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
}

.dossier-stat-box .val {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: #56D7FF;
}

.dossier-stat-box .lbl {
  font-family: "SF Mono", "Roboto Mono", monospace;
  font-size: 0.58rem;
  letter-spacing: 1px;
  color: rgba(226, 238, 255, 0.5);
  text-transform: uppercase;
}

/* Botón CTA del Expediente */
.dossier-actions-footer {
  margin-top: 10px;
}

.btn-dossier-cta {
  position: relative;
  width: 100%;
  background: linear-gradient(90deg, #FF4924 0%, #FF6F4E 100%);
  border: none;
  border-radius: 12px;
  padding: 16px 24px;
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 8px 30px rgba(255, 73, 36, 0.45);
  transition: all 0.3s ease;
  overflow: hidden;
}

.btn-dossier-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(255, 73, 36, 0.65);
}

/* ==========================================================================
   8. RESPONSIVE / MEDIA QUERIES (TABLETS & MÓVILES)
   ========================================================================== */
@media (max-width: 1024px) {
  .bento-card.span-8,
  .bento-card.span-7,
  .bento-card.span-6,
  .bento-card.span-5,
  .bento-card.span-4 {
    grid-column: span 6;
  }

  .dossier-body-grid {
    grid-template-columns: 1fr;
  }

  .dossier-media-column {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
}

@media (max-width: 768px) {
  .missions-filter-console {
    padding: 16px;
  }

  .filter-group-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .bento-card.span-12,
  .bento-card.span-8,
  .bento-card.span-7,
  .bento-card.span-6,
  .bento-card.span-5,
  .bento-card.span-4 {
    grid-column: span 12;
  }

  .bento-card.format-vertical .card-media-box {
    height: 320px;
  }

  .phone-mockup-simulator {
    width: 150px;
    height: 270px;
  }

  .dossier-stats-items {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .missions-main-section {
    padding: 95px 14px 60px 14px;
  }

  .missions-headline-title {
    font-size: 2.6rem;
    letter-spacing: 2px;
  }

  .filter-pills-row {
    gap: 6px;
  }

  .filter-pill-btn {
    font-size: 0.65rem;
    padding: 5px 12px;
  }
}
