.publicidad-pantalla {
  margin-top: 44px;
}

.publicidad-pantalla [hidden] {
  display: none !important;
}

.pp-barra {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-bottom: 14px;
}

.pp-campo {
  flex: 0 1 320px;
  min-width: 220px;
}

.pp-resumen {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pp-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  background: #eef2fd;
  border-radius: 15px;
  color: #143DD4;
  font-size: 13px;
  font-weight: 600;
}

.pp-chip-gris {
  background: #f1f3f7;
  color: #5b6377;
}

.pp-fondo {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-bottom: 14px;
  padding: 12px;
  background: #fff;
  border: 1px solid #dfe5ef;
  border-radius: 12px;
}

.pp-fondo-vista {
  flex: none;
  width: 160px;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0d0f14;
  border-radius: 8px;
}

.pp-fondo-vista img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pp-fondo-defecto {
  background-color: #0d0f14;
  background-image:
    radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.4px),
    linear-gradient(135deg, rgba(20, 61, 212, .35), rgba(20, 61, 212, 0) 60%);
  background-size: 10px 10px, 100% 100%;
}

.pp-fondo-datos {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 160px;
}

.pp-fondo-datos .lista-doc-lb {
  margin: 0;
}

.pp-fondo-nombre {
  overflow: hidden;
  color: #1f2d4d;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.pp-fondo-datos small {
  color: #7a8396;
  font-size: 12px;
}

.pp-fondo-acciones {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pp-fondo-acciones .pp-icono.pp-borrar {
  width: 38px;
  height: 38px;
  margin-left: 0;
}

.pp-zona {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  margin: 0 0 16px;
  padding: 22px 16px;
  background: #f8faff;
  border: 2px dashed #c9d3e6;
  border-radius: 12px;
  color: #5b6377;
  font-weight: normal;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}

.pp-zona i {
  color: #143DD4;
  font-size: 30px;
}

.pp-zona strong {
  color: #1f2d4d;
  font-size: 15px;
}

.pp-zona span {
  font-size: 13px;
}

.pp-zona:hover,
.pp-zona.pp-encima {
  background: #eef2fd;
  border-color: #143DD4;
}

.pp-progreso {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: -4px 0 16px;
}

.pp-progreso-barra {
  flex: 1;
  height: 8px;
  overflow: hidden;
  background: #e3e8f2;
  border-radius: 4px;
}

.pp-progreso-barra span {
  display: block;
  width: 0;
  height: 100%;
  background: #143DD4;
  transition: width .2s;
}

.pp-progreso small {
  min-width: 120px;
  color: #5b6377;
  font-size: 13px;
  text-align: right;
}

.pp-grilla {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.pp-grilla.pp-cargando {
  opacity: .5;
  pointer-events: none;
}

.pp-tarjeta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dfe5ef;
  border-radius: 12px;
  transition: box-shadow .2s, opacity .2s, transform .2s;
}

.pp-tarjeta:hover {
  box-shadow: 0 4px 14px rgba(20, 61, 212, .10);
}

.pp-tarjeta.pp-arrastrando {
  opacity: .4;
}

.pp-tarjeta.pp-inactiva .pp-miniatura img,
.pp-tarjeta.pp-inactiva .pp-miniatura video {
  filter: grayscale(1);
  opacity: .45;
}

.pp-miniatura {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: 100%;
  overflow: hidden;
  background: #0b0c0f;
  cursor: grab;
}

.pp-miniatura img,
.pp-miniatura video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pp-falta {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #c9d3e6;
  font-size: 12px;
}

.pp-falta i {
  font-size: 22px;
}

.pp-tipo,
.pp-orden {
  position: absolute;
  top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 9px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .4px;
}

.pp-tipo {
  left: 8px;
  background: rgba(11, 12, 15, .7);
  color: #fff;
}

.pp-orden {
  right: 8px;
  min-width: 24px;
  justify-content: center;
  background: #fff;
  color: #143DD4;
}

.pp-datos {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding: 10px 12px 4px;
}

.pp-nombre {
  overflow: hidden;
  color: #1f2d4d;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.pp-datos small {
  color: #7a8396;
  font-size: 12px;
}

.pp-acciones {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px 12px;
}

.pp-icono {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  background: #fff;
  border: 1px solid #c9d3e6;
  border-radius: 8px;
  color: #1f2d4d;
  font-size: 13px;
}

.pp-icono:hover:not(:disabled) {
  background: #eef2fd;
  border-color: #143DD4;
  color: #143DD4;
}

.pp-icono:disabled {
  opacity: .35;
  cursor: default;
}

.pp-icono.pp-borrar {
  margin-left: auto;
  color: #c0392b;
}

.pp-icono.pp-borrar:hover {
  background: #fdecea;
  border-color: #c0392b;
  color: #c0392b;
}

.pp-switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 0 6px;
  color: #5b6377;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}

.pp-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pp-switch span {
  position: relative;
  width: 34px;
  height: 20px;
  background: #c9d3e6;
  border-radius: 10px;
  transition: background .2s;
}

.pp-switch span::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
  transition: transform .2s;
}

.pp-switch input:checked + span {
  background: #143DD4;
}

.pp-switch input:checked + span::after {
  transform: translateX(14px);
}

.pp-switch input:focus-visible + span {
  outline: 2px solid #143DD4;
  outline-offset: 2px;
}

.pp-vacio {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 30px 16px 18px;
  color: #7a8396;
  font-size: 15px;
}

.pp-vacio i {
  color: #c9d3e6;
  font-size: 40px;
}

.pp-lista-aviso {
  font-size: 14px;
  line-height: 1.6;
  text-align: left;
}

@media (max-width: 767px) {
  .publicidad-pantalla {
    margin-top: 56px;
  }

  .pp-campo {
    flex-basis: 100%;
  }

  .pp-grilla {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
}
